tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pechac, Lubos" <LPec...@pi-ag.com>
Subject possible regresion bug
Date Mon, 04 Apr 2011 11:27:02 GMT
Hi

I got this stack trace when I used @PrePassivate in stateless session
bean. Before I realized it is incorrect I googled this and found that
there should be an appropriate warning shown instead of this exception
from version 3.1.3 as described here:
https://issues.apache.org/jira/browse/OPENEJB-1286
I am using version 3.1.4 as you can see below, so maybe the bug is back?

Again, I am NOT complaining about @PrePassivate not working in stateless
session bean, I just wanted to let you know that 3.1.4 does not print an
appropriate warning.

Regards
Lubos


Apache OpenEJB 3.1.4    build: 20101112-03:32
http://openejb.apache.org/
INFO - openejb.home = #CAN'T SHOW THIS#
INFO - openejb.base = #CAN'T SHOW THIS#
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=#CAN'T SHOW THIS#, type=Resource,
provider-id=Default JDBC Database)
INFO - Found PersistenceModule in classpath: #CAN'T SHOW THIS#.jar
INFO - Found EjbModule in classpath: #CAN'T SHOW THIS#.jar
INFO - Found EjbModule in classpath: #CAN'T SHOW THIS#\target\classes
INFO - Found EjbModule in classpath: #CAN'T SHOW THIS#.jar
INFO - Found EjbModule in classpath: #CAN'T SHOW
THIS#\target\test-classes
INFO - Found EjbModule in classpath: #CAN'T SHOW THIS#.jar
INFO - Beginning load: #CAN'T SHOW THIS#.jar
INFO - Beginning load: #CAN'T SHOW THIS#.jar
INFO - Beginning load: #CAN'T SHOW THIS#\target\classes
INFO - Beginning load: #CAN'T SHOW THIS#.jar
INFO - Beginning load: #CAN'T SHOW THIS#\target\test-classes
INFO - Beginning load: #CAN'T SHOW THIS#.jar
INFO - Configuring enterprise application: classpath.ear
FOO moduleName = #CAN'T SHOW THIS#.jar
ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the
following stack trace and this message to users@openejb.apache.org :
 java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(AbstractList.java:131)
        at java.util.AbstractList.add(AbstractList.java:91)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.proce
ssCallbacks(AnnotationDeployer.java:2105)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deplo
y(AnnotationDeployer.java:1082)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deplo
y(AnnotationDeployer.java:684)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.j
ava:194)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(Configuratio
nFactory.java:248)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(Conf
igurationFactory.java:626)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(Conf
igurationFactory.java:576)
        at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(C
onfigurationFactory.java:391)
        at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(A
ssembler.java:300)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
        at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialCo
ntextFactory.java:71)
        at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialCo
ntextFactory.java:53)
        at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(L
ocalInitialContextFactory.java:42)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at com.piag.test.OpenEJBTest.bootstrap(OpenEJBTest.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet
hod.java:44)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab
le.java:15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho
d.java:41)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav
a:27)
        at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassR
unner.java:79)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner
.java:71)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner
.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.jav
a:62)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe
t(AbstractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr
actDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref
ireBooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
:1009)

FATAL - OpenEJB has encountered a fatal error and cannot be started:
Assembler failed to build the container system.
org.apache.openejb.OpenEJBException:
java.lang.UnsupportedOperationException: null
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:293)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
        at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialCo
ntextFactory.java:71)
        at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialCo
ntextFactory.java:53)
        at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(L
ocalInitialContextFactory.java:42)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at com.piag.test.OpenEJBTest.bootstrap(OpenEJBTest.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet
hod.java:44)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab
le.java:15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho
d.java:41)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav
a:27)
        at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassR
unner.java:79)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner
.java:71)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner
.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.jav
a:62)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe
t(AbstractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr
actDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref
ireBooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
:1009)
Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(AbstractList.java:131)
        at java.util.AbstractList.add(AbstractList.java:91)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.proce
ssCallbacks(AnnotationDeployer.java:2105)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deplo
y(AnnotationDeployer.java:1082)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deplo
y(AnnotationDeployer.java:684)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.j
ava:194)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(Configuratio
nFactory.java:248)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(Conf
igurationFactory.java:626)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(Conf
igurationFactory.java:576)
        at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(C
onfigurationFactory.java:391)
        at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(A
ssembler.java:300)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)
        ... 44 more
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.906
sec <<< FAILURE!

Mime
View raw message