james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Kryshen (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-1517) Server fails with UnsatisfiedDependencyException after enabling JDBCGreylistHandler
Date Tue, 06 Aug 2013 12:10:48 GMT

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

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

I downloaded the snapshot build from https://repository.apache.org/content/repositories/snapshots/org/apache/james/james-server-app/3.0.0-beta5-SNAPSHOT/james-server-app-3.0.0-beta5-20130803.005327-163-app.tar.gz
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message