Apache FtpServer常见问题及解决方案

ftpdw.exe所在目录下缺少msvcr71.dll

jakarta_service_20190520.log

[2019-05-20 00:08:41] [info] Running Service...
[2019-05-20 00:08:41] [info] Starting service...
[2019-05-20 00:08:41] [174  javajni.c] [error] The specified module could not be found.

[2019-05-20 00:08:41] [947  prunsrv.c] [error] Failed creating java C:\Portable\JRE_6.0.450.6_x86\bin\client\jvm.dll
[2019-05-20 00:08:41] [1202 prunsrv.c] [error] ServiceStart returned 1
[2019-05-20 00:08:41] [info] Run service finished.
[2019-05-20 00:08:41] [info] Procrun finished.
将"C:\Portable\JRE_6.0.450.6_x86\bin\plugin2\msvcr71.dll"拷贝到ftpdw.exe所在目录即可修复。

[2019-05-20 00:08:41] [info] Procrun finished.
[2019-05-20 00:09:42] [info] Running Service...
[2019-05-20 00:09:42] [info] Starting service...
[2019-05-20 00:09:43] [info] Service started in 1132 ms.

users.properties的值包含反斜杠

ftpserver.user.upload.homedirectory=D:\Trusteeship\Apache FtpServer\pub\upload

ftpd.log

[ INFO] 2019-05-20 17:02:52,736 [] [] Using xml configuration file res\conf\ftpd-typical.xml...
[ INFO] 2019-05-20 17:02:52,776 [] [] Refreshing org.[email protected]1db4f6f: display name [org.[email protected]1db4f6f]; startup date [Mon May 20 17:02:52 CST 2019]; root of context hierarchy
[ INFO] 2019-05-20 17:02:52,821 [] [] Loading XML bean definitions from file [C:\Portable\apache-ftpserver-1.0.6\res\conf\ftpd-typical.xml]
[ INFO] 2019-05-20 17:02:52,948 [] [] Bean factory for application context [org.[email protected]1db4f6f]: org.s[email protected]195d4fe
[ INFO] 2019-05-20 17:02:52,961 [] [] Pre-instantiating singletons in org.s[email protected]195d4fe: defining beans [org.apache.ftpserver.listener.ListenerFactory#0,org.apache.ftpserver.usermanager.PropertiesUserManagerFactory#0,org.apache.ftpserver.FtpServerFactory#0,myServer]; root of factory hierarchy
[ INFO] 2019-05-20 17:02:53,047 [] [] Destroying singletons in org.s[email protected]195d4fe: defining beans [org.apache.ftpserver.listener.ListenerFactory#0,org.apache.ftpserver.usermanager.PropertiesUserManagerFactory#0,org.apache.ftpserver.FtpServerFactory#0,myServer]; root of factory hierarchy
[ERROR] 2019-05-20 17:02:53,047 [] [] Daemon error
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.apache.ftpserver.FtpServerFactory#0‘: Cannot create inner bean ‘(inner bean)‘ while setting bean property ‘userManager‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)#1‘: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.ftpserver.ftplet.UserManager org.apache.ftpserver.usermanager.PropertiesUserManagerFactory.createUserManager()] threw exception; nested exception is java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
    at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140)
    at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:84)
    at org.apache.ftpserver.main.Daemon.getConfiguration(Daemon.java:104)
    at org.apache.ftpserver.main.Daemon.main(Daemon.java:52)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)#1‘: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.ftpserver.ftplet.UserManager org.apache.ftpserver.usermanager.PropertiesUserManagerFactory.createUserManager()] threw exception; nested exception is java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
    ... 19 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.ftpserver.ftplet.UserManager org.apache.ftpserver.usermanager.PropertiesUserManagerFactory.createUserManager()] threw exception; nested exception is java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
    ... 26 more
Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    at java.util.Properties.loadConvert(Unknown Source)
    at java.util.Properties.load0(Unknown Source)
    at java.util.Properties.load(Unknown Source)
    at org.apache.ftpserver.usermanager.impl.PropertiesUserManager.loadFromFile(PropertiesUserManager.java:164)
    at org.apache.ftpserver.usermanager.impl.PropertiesUserManager.<init>(PropertiesUserManager.java:137)
    at org.apache.ftpserver.usermanager.PropertiesUserManagerFactory.createUserManager(PropertiesUserManagerFactory.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
    ... 27 more
ftpserver.user.upload.homedirectory=D:/Trusteeship/Apache FtpServer/pub/upload

注意:必须使用正斜杠以UNIX样式指定配置文件中的路径。

原文地址:https://www.cnblogs.com/rms365/p/10961575.html

时间: 2024-10-13 16:36:52

Apache FtpServer常见问题及解决方案的相关文章

(转载)Windows 上搭建Apache FtpServer

因工作需要,最近经常接触到FTP,今天我来介绍一个开源的FTP服务器,那就是Apache FTPServer,Apache FTPServer是一个100%纯Java的FTP服务器. 它的设计是基于现有的开放式协议的完整和便携式FTP服务器引擎解决方案.FTPServer可独立运行作为Windows服务或Unix/ Linux后台程序或是被嵌入在Java应用程序中.接下来介绍一下如何在Windows环境下安装Apache FTPServer: 第一步:下载Apache FTPServer 可以到

NHibernate的常见问题及解决方案

问题1 : 异常:in expected: <end-of-text> (possibly an invalid or unmapped class name was used in the query) [from Customer] 解决方案:查看HQL语句查询的是否是实体类,映射文件属性是否正确:复制到输出目录à始终复制 ..生成操作à嵌入的资源. 问题2: 异常:缺少必需的属性“name”. 解决方案:查看映射文件里,是否哪个<property>节点缺少name属性 问题3

Apache FtpServer扩展【动手实现自己的业务】

Apache FtpServer是当下最热门的走ftp协议的用于用户上传下载的服务器. 官网http://mina.apache.org/ftpserver-project/ 一般来说,用的话,去官网下载完整的项目文件ftpserver-1.0.6.zip[windows版]和ftpserver-1.0.6.tar.gz[linux版]到本地,解压之后配置一下\ftpserver-1.0.6\apache-ftpserver-1.0.6\res\conf\下的users.properties或者

NTP常见问题和解决方案&配置文件详解

一.命令:NTP.ntpq.ntpdate ntpd.ntpq.ntpdate1.ntpq -np //输出参数说明    -n:不显示域名#ntpq -np     remote           refid      st t when poll reach   delay   offset  jitter============================================================================== 127.127.1.0   

《PDF.NE数据框架常见问题及解决方案-初》

1.新增数据库后,获取标识列的值: 解决方案:    PDF.NET数据框架,已经为我们考略了很多,因为用PDF.NET进行数据的添加操作时,一般我们会传递Model实体进去,             在进行数据库的新增操作时,执行成功后,新增记录的标示又会赋值给传递的实体,例如: ///<summary>             ///添加一体记录             /// <param name="model">实体</param>    

[转]Linux下使用JNI的常见问题及解决方案

Linux下使用JNI的常见问题及解决方案 转载地址:http://www.cnblogs.com/javawebsoa/p/3220069.html 我碰到的问题是bad value 参考这里解决的 linux生成动态库时遇到了relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC错误. 由于我的系统是AMD64位的,所以需要在编译的时候

Android Studio使用过程中常见问题及解决方案

熟悉Android的童鞋应该对Android Studio都不陌生.Android编程有两个常用的开发环境,分别是Android Studio和Eclipse,之前使用比较多的是Eclipse,而现在呢,由于Android Studio的优越性,越来越多的人转而使用它了. 随着Android Studio使用人数的增加,使用过程中的问题也日益凸显,本文小编就整理了一些Windows系统下使用Android Studio的常见问题及解决方案,大家可以围观围观,遇到类似问题,不妨可以试试小编下面分享

在Window2008上搭建 Apache FTPServer

在Window2008上搭建 Apache FTPServer windows2003马上要停止维护了,时间好像是在2015年5月7日.阿里云希望用户能够升级服务器,刚好公司的新项目马上要上线了,所以就尝试了一下将云服务器升级到Windows2008. 是一个小项目,所以生产环境也比较简单: Java7 Tomcat Mysql FTP服务器(选择的Apache FTPServer) 别的安装没什么说的,和在Windows2003上是一样的.具体说说安装FTP的问题. 下载 下载个人建议不管下载

Apache FtpServer详解

FTP 是FileTransfer Protocol(文件传输协议)的英文简称,而中文简称为"文传协议".用于Internet上的控制文件的双向传输.同时,它也是一个应用程序 (Application).基于不同的操作系统有不同的FTP应用程序,而所有这些应用程序都遵守同一种协议以传输文件.在FTP的使用当中,用户经常 遇到两个概念:"下载"(Download)和"上传"(Upload)."下载"文件就是从远程主机拷贝文件至自