IllegalAccessError after upgrading to 2.1.2.CR1
chawax Apr 16, 2009 9:55 AMHi,
I wrote my own test base class to run unit tests on OpenEJB instead of JBoss embedded (because of some bugs I encoutered with it). This class extends org.jboss.seam.mock.AbstractSeamTest class and overrides startSeam method this way :
@org.testng.annotations.BeforeSuite @Override protected void startSeam() throws Exception { super.startSeam(); }
It used to work with Seam 2.1.1.GA. But I just upgraded to Seam 2.1.2.CR1 and I have the following exception :
startSeam(t4.core.utils.process.internal.test.ProcessInternalServiceTest) Time elapsed: 0 sec <<< FAILURE! java.lang.IllegalAccessError: tried to access class javassist.bytecode.StackMapTable$Writer from class org.jboss.seam.util.ProxyFactory at org.jboss.seam.util.ProxyFactory.makeConstructor(ProxyFactory.java:803) at org.jboss.seam.util.ProxyFactory.makeConstructors(ProxyFactory.java:685) at org.jboss.seam.util.ProxyFactory.make(ProxyFactory.java:565) at org.jboss.seam.util.ProxyFactory.createClass3(ProxyFactory.java:346) at org.jboss.seam.util.ProxyFactory.createClass2(ProxyFactory.java:325) at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:284) at org.jboss.seam.Component.createProxyFactory(Component.java:2426) at org.jboss.seam.Component.getProxyFactory(Component.java:1513) at org.jboss.seam.Component.wrap(Component.java:1504) at org.jboss.seam.Component.instantiateJavaBean(Component.java:1442) at org.jboss.seam.Component.instantiate(Component.java:1359) at org.jboss.seam.Component.newInstance(Component.java:2122) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:113) at org.jboss.seam.init.Initialization.init(Initialization.java:736) at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:919) at t4.core.utils.test.OpenEjbSeamTest.startSeam(OpenEjbSeamTest.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:262) at org.testng.SuiteRunner.run(SuiteRunner.java:191) at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808) at org.testng.TestNG.runSuitesLocally(TestNG.java:776) at org.testng.TestNG.run(TestNG.java:701) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
Any idea about what this exception means ?
Regards,
Olivier