james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-1522) Running james 3.0beta5 fails due to unsatisfied dependencies
Date Wed, 23 Nov 2016 06:40:59 GMT

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

Tellier Benoit commented on JAMES-1522:
---------------------------------------

It is not the same issue. JAMES-1865 concerns some other optional components.

Could you share with us your configuration files ?

Does the issue still appears with 3.0.0-beta5 ?



> Running james 3.0beta5 fails due to unsatisfied dependencies
> ------------------------------------------------------------
>
>                 Key: JAMES-1522
>                 URL: https://issues.apache.org/jira/browse/JAMES-1522
>             Project: James Server
>          Issue Type: Bug
>          Components: Build System, James Core
>    Affects Versions: Trunk
>            Reporter: Lee Hanxue
>              Labels: build
>             Fix For: 3.0.0-beta5
>
>
> When starting James server after a clean build, this is the error that is produced:
> WARN  00:48:07,605 | org.springframework.beans.factory.support.DisposableBeanAdapter
| Invocation of destroy method failed on bean with name 'entityManagerFactory': <openjpa-2.2.1-r422266:1396819
nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation
failed for some instances.  See the nested exceptions array for details.
> Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'mailprocessor' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]:
Unsatisfied dependency expressed through bean property 'mailetContext': : Error creating bean
with name 'mailetcontext' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]:
Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException:
Unable to execute lifecycle method on beanmailetcontext; nested exception is <openjpa-2.2.1-r422266:1396819
nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation
cannot be performed while a Transaction is active.; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'mailetcontext' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]:
Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException:
Unable to execute lifecycle method on beanmailetcontext; nested exception is <openjpa-2.2.1-r422266:1396819
nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation
cannot be performed while a Transaction is active.
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1199)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1091)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
> 	at org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
> 	at org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
> 	at org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'mailetcontext' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]:
Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException:
Unable to execute lifecycle method on beanmailetcontext; nested exception is <openjpa-2.2.1-r422266:1396819
nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation
cannot be performed while a Transaction is active.
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:876)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:818)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1184)
> 	... 15 more
> Caused by: org.springframework.beans.FatalBeanException: Unable to execute lifecycle
method on beanmailetcontext; nested exception is <openjpa-2.2.1-r422266:1396819 nonfatal
user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot
be performed while a Transaction is active.
> 	at org.apache.james.container.spring.lifecycle.AbstractLifecycleBeanPostProcessor.postProcessBeforeInitialization(AbstractLifecycleBeanPostProcessor.java:63)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> 	... 24 more
> Caused by: <openjpa-2.2.1-r422266:1396819 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException:
This operation cannot be performed while a Transaction is active.
> 	at org.apache.openjpa.kernel.BrokerImpl.close(BrokerImpl.java:4358)
> 	at org.apache.openjpa.kernel.DelegatingBroker.close(DelegatingBroker.java:1354)
> 	at org.apache.openjpa.persistence.EntityManagerImpl.close(EntityManagerImpl.java:1310)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)
> 	at com.sun.proxy.$Proxy58.close(Unknown Source)
> 	at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:108)
> 	at org.apache.james.mailetcontainer.impl.JamesMailetContext.configure(JamesMailetContext.java:478)
> 	at org.apache.james.container.spring.lifecycle.ConfigurableBeanPostProcessor.executeLifecycleMethodBeforeInit(ConfigurableBeanPostProcessor.java:44)
> 	at org.apache.james.container.spring.lifecycle.ConfigurableBeanPostProcessor.executeLifecycleMethodBeforeInit(ConfigurableBeanPostProcessor.java:28)
> 	at org.apache.james.container.spring.lifecycle.AbstractLifecycleBeanPostProcessor.postProcessBeforeInitialization(AbstractLifecycleBeanPostProcessor.java:59)
> 	... 27 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
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