You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Mikhail Kryshen (JIRA)" <se...@james.apache.org> on 2014/05/01 00:37:15 UTC

[jira] [Commented] (JAMES-1517) Server fails with UnsatisfiedDependencyException after enabling JDBCGreylistHandler

    [ https://issues.apache.org/jira/browse/JAMES-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986176#comment-13986176 ] 

Mikhail Kryshen commented on JAMES-1517:
----------------------------------------

Tried again with a clean install of the latest snapshot (http://repository.apache.org/content/repositories/snapshots/org/apache/james/james-server-app/3.0.0-beta5-SNAPSHOT/james-server-app-3.0.0-beta5-20140430.113749-464-app.tar.gz).

Copied conf/smtpserver-template.xml to smtpserver.xml. Server starts successfully using "bin/james start".

Then stopped the server and uncommented "<handler class="org.apache.james.smtpserver.fastfail.JDBCGreylistHandler">...</handler>" in smtpserver.xml. Server fails to start, UnsatisfiedDependencyException is reported in log/wrapper.log.

> Server fails with UnsatisfiedDependencyException after enabling JDBCGreylistHandler
> -----------------------------------------------------------------------------------
>
>                 Key: JAMES-1517
>                 URL: https://issues.apache.org/jira/browse/JAMES-1517
>             Project: James Server
>          Issue Type: Bug
>          Components: SMTPServer
>    Affects Versions: 3.0.0-beta5
>         Environment: java version "1.7.0_25"
> OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
>            Reporter: Mikhail Kryshen
>
> James server snapshot 3.0.0-beta5-20130803.005327-163 fails to start after uncommenting the following lines in smtpserver.xml:
>   <handler class="org.apache.james.smtpserver.fastfail.JDBCGreylistHandler">
>       <repositoryPath>db://maildb</repositoryPath>
>       <sqlFile>file://conf/sqlResources.xml</sqlFile>
>       <tempBlockTime>1 hour</tempBlockTime>
>       <unseenLifeTime>4 hours</unseenLifeTime>
>       <autoWhiteListLifeTime>36 days</autoWhiteListLifeTime>
>       <whitelistedNetworks>127.0.0.0/8</whitelistedNetworks>
>   </handler>
> bin/wrapper.log contains:
> INFO   | jvm 1    | 2013/08/03 17:11:17 | WrapperSimpleApp: Encountered an error running main: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpserver': Invocation of init method failed; nested exception is org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
> INFO   | jvm 1    | 2013/08/03 17:11:17 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpserver': Invocation of init method failed; nested exception is org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at java.lang.reflect.Method.invoke(Method.java:606)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at java.lang.Thread.run(Thread.java:724)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | Caused by: org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.container.spring.bean.factory.protocols.ProtocolHandlerLoaderBeanFactory.load(ProtocolHandlerLoaderBeanFactory.java:48)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.protocols.lib.ProtocolHandlerChainImpl.init(ProtocolHandlerChainImpl.java:83)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer.preInit(AbstractProtocolAsyncServer.java:52)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.smtpserver.netty.SMTPServer.preInit(SMTPServer.java:95)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer.init(AbstractConfigurableAsyncServer.java:270)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.protocols.lib.netty.AbstractServerFactory.init(AbstractServerFactory.java:66)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at java.lang.reflect.Method.invoke(Method.java:606)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	... 22 more
> INFO   | jvm 1    | 2013/08/03 17:11:17 | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.james.smtpserver.fastfail.JDBCGreylistHandler': Unsatisfied dependency expressed through bean property 'log': Set this property value or disable dependency checking for this bean.
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.checkDependencies(AbstractAutowireCapableBeanFactory.java:1295)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1114)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:331)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	at org.apache.james.container.spring.bean.factory.protocols.ProtocolHandlerLoaderBeanFactory.load(ProtocolHandlerLoaderBeanFactory.java:40)
> INFO   | jvm 1    | 2013/08/03 17:11:17 | 	... 34 more
> STATUS | wrapper  | 2013/08/03 17:11:19 | <-- Wrapper Stopped



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org