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

Apache FtpServer常见问题及解决方案_第1张图片

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.springframework.context.support.FileSystemXmlApplicationContext@1db4f6f: display name [org.springframework.context.support.FileSystemXmlApplicationContext@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.springframework.context.support.FileSystemXmlApplicationContext@1db4f6f]: org.springframework.beans.factory.support.DefaultListableBeanFactory@195d4fe
[ INFO] 2019-05-20 17:02:52,961 [] [] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@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.springframework.beans.factory.support.DefaultListableBeanFactory@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.(FileSystemXmlApplicationContext.java:140)
    at org.springframework.context.support.FileSystemXmlApplicationContext.(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.(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

你可能感兴趣的:(Apache FtpServer常见问题及解决方案)