12 Replies Latest reply on Jun 25, 2009 3:28 PM by chawax

    IllegalAccessError after upgrading to 2.1.2.CR1

    chawax

      Hi,


      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

        • 1. Re: IllegalAccessError after upgrading to 2.1.2.CR1
          stephanos

          I even get this exception when I simply start my application :-(


          PS: I've already started like 2 threads about info on how to use OpenEJB for unit testing, with no useful answers. Do you mind telling/showing how you did it?


          Cheers,
          Stephan

          • 2. Re: IllegalAccessError after upgrading to 2.1.2.CR1
            chawax

            Do you have this exception with OpenEJB too ?


            About OpenEJB for unit testing, I am sorry I forgot to answer ... Could you please remind me where you asked for this ?

            • 3. Re: IllegalAccessError after upgrading to 2.1.2.CR1
              stephanos

              @IllegalAccessError: I meant to say that I get the exact same error when just starting/running my application server. No testing involved. I went back to 2.1.1.GA for the moment.


              @OpenEJB: I was just saying I started 2 treads about this already where no one really answered and would be great if you could provide some details! Pick one ;-) (Thread 1 or Thread 2)


              Cheers,
              Stephan

              • 4. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                titou09

                Could you re-try your tests with javassist 3.9?

                • 5. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                  chawax

                  Thanks Denis. I just upgraded to javassist 3.9.0.GA and it still doesn't work, but exception is not the same. I have this stack trace now :



                  org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.el.referenceCache
                       at org.jboss.seam.Component.newInstance(Component.java:2144)
                       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 fr.horoquartz.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)
                  Caused by: java.lang.RuntimeException: exception invoking: start
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
                       at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                       at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
                       at org.jboss.seam.Component.newInstance(Component.java:2132)
                       ... 28 more
                  Caused by: java.lang.reflect.InvocationTargetException
                       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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                       at org.jboss.seam.el.JBossELReferenceCache_$$_javassist_seam_0.start(JBossELReferenceCache_$$_javassist_seam_0.java)
                       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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                       ... 31 more
                  Caused by: java.lang.NoSuchMethodError: org.jboss.el.util.ReflectionUtil.startup()V
                       at org.jboss.seam.el.JBossELReferenceCache.start(JBossELReferenceCache.java:18)
                       ... 52 more
                  Caused by: java.lang.RuntimeException: exception invoking: start
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
                       at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                       at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
                       at org.jboss.seam.Component.newInstance(Component.java:2132)
                       ... 28 more
                  Caused by: java.lang.reflect.InvocationTargetException
                       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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                       at org.jboss.seam.el.JBossELReferenceCache_$$_javassist_seam_0.start(JBossELReferenceCache_$$_javassist_seam_0.java)
                       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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                       ... 31 more
                  Caused by: java.lang.NoSuchMethodError: org.jboss.el.util.ReflectionUtil.startup()V
                       at org.jboss.seam.el.JBossELReferenceCache.start(JBossELReferenceCache.java:18)
                       ... 52 more
                  
                  


                  • 6. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                    zeppelinux.dmitry.diligesoft.com

                    I' have the same exception in the glassfish V3 log trying to deploy some web app.
                    changing the javassist version doesn't help:



                    [#|2009-05-13T16:44:05.564-0700|SEVERE|glassfish|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=Thread-3;|WebModule[/immigration]PWC1275: Exceptio
                    n sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                    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.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4623)
                    


                     

                    • 7. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                      stephanos

                      I still get this error with final version 2.1.2!
                      (running Glassfish v3 Prelude - same stacktrace as Dmitry, google only brings up this thread)


                      My dependencies (if that matters):



                      [INFO] my:author-portal-web:war:0.0.4
                      [INFO] +- javax.servlet:servlet-api:jar:2.5:provided (scope not updated to compile)
                      [INFO] +- de.odysseus.juel:juel:jar:2.1.0:test
                      [INFO] +- commons-digester:commons-digester:jar:1.8:compile
                      [INFO] |  \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
                      [INFO] +- commons-lang:commons-lang:jar:2.4:compile
                      [INFO] +- commons-logging:commons-logging:jar:1.1:compile
                      [INFO] |  +- logkit:logkit:jar:1.0.1:compile
                      [INFO] |  \- avalon-framework:avalon-framework:jar:4.1.3:compile
                      [INFO] +- my:portal-users:jar:0.0.4:compile
                      [INFO] |  +- my:portal-common:jar:0.0.4:compile
                      [INFO] |  |  \- my:portal-generic:jar:0.0.4:compile
                      [INFO] |  |     +- org.metawidget:metawidget:jar:0.7:compile
                      [INFO] |  |     +- org.metawidget:metawidget-backend:jar:0.7:compile
                      [INFO] |  |     +- org.metawidget:metawidget-frontend:jar:0.7:compile
                      [INFO] |  |     +- com.sun:jsf-impl:jar:1.2_10:runtime
                      [INFO] |  |     +- javax.faces:jsf-api:jar:1.2_10:compile
                      [INFO] |  |     +- org.jboss.seam:jboss-seam:jar:2.1.2:compile
                      [INFO] |  |     |  \- org.jboss.el:jboss-el:jar:1.0_02.CR4:compile
                      [INFO] |  |     +- org.tuckey:urlrewritefilter:jar:3.1.0:compile
                      [INFO] |  |     +- org.hibernate:hibernate-entitymanager:jar:3.4.0.GA:compile
                      [INFO] |  |     |  +- org.hibernate:ejb3-persistence:jar:1.0.2.GA:compile
                      [INFO] |  |     |  +- org.hibernate:hibernate-commons-annotations:jar:3.1.0.GA:compile
                      [INFO] |  |     |  +- org.hibernate:hibernate-core:jar:3.3.0.SP1:compile
                      [INFO] |  |     |  |  \- antlr:antlr:jar:2.7.6:compile
                      [INFO] |  |     |  +- org.slf4j:slf4j-api:jar:1.4.2:compile
                      [INFO] |  |     |  +- dom4j:dom4j:jar:1.6.1:compile
                      [INFO] |  |     |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile
                      [INFO] |  |     |  +- javax.transaction:jta:jar:1.1:compile
                      [INFO] |  |     |  \- javassist:javassist:jar:3.4.GA:compile
                      [INFO] |  |     +- org.hibernate:hibernate-validator:jar:3.1.0.GA:compile
                      [INFO] |  |     +- org.hibernate:hibernate-annotations:jar:3.4.0.GA:compile
                      [INFO] |  |     +- net.sf.ehcache:ehcache:jar:1.5.0:compile
                      [INFO] |  |     |  +- backport-util-concurrent:backport-util-concurrent:jar:2.1:compile
                      [INFO] |  |     |  \- net.sf.jsr107cache:jsr107cache:jar:1.0:compile
                      [INFO] |  |     +- org.hibernate:hibernate-ehcache:jar:3.3.1.GA:compile
                      [INFO] |  |     +- org.hibernate:hibernate-tools:jar:3.2.3.GA:compile
                      [INFO] |  |     |  +- org.beanshell:bsh:jar:2.0b4:compile
                      [INFO] |  |     |  +- freemarker:freemarker:jar:2.3.8:compile
                      [INFO] |  |     |  \- org.hibernate:jtidy:jar:r8-20060801:compile
                      [INFO] |  |     +- org.jboss.envers:jboss-envers:jar:1.2.0.GA-hibernate-3.3:compile
                      [INFO] |  |     +- org.apache.ant:ant:jar:1.7.0:compile
                      [INFO] |  |     |  \- org.apache.ant:ant-launcher:jar:1.7.0:compile
                      [INFO] |  |     +- org.slf4j:slf4j-log4j12:jar:1.5.2:runtime
                      [INFO] |  |     |  \- log4j:log4j:jar:1.2.12:runtime
                      [INFO] |  |     +- org.jasypt:jasypt:jar:1.3.1:compile
                      [INFO] |  |     |  \- com.ibm.icu:icu4j:jar:3.4.4:compile
                      [INFO] |  |     +- org.compass-project:compass:jar:2.2.0:compile
                      [INFO] |  |     +- org.apache.lucene:lucene-core:jar:2.4.1:compile
                      [INFO] |  |     +- org.apache.lucene:lucene-analyzers:jar:2.4.1:runtime
                      [INFO] |  |     +- org.apache.lucene:lucene-highlighter:jar:2.4.1:runtime
                      [INFO] |  |     +- net.jawr:jawr:jar:2.7:runtime
                      [INFO] |  |     \- org.opensymphony.quartz:quartz:jar:1.6.1:compile
                      [INFO] |  \- javax.mail:mail:jar:1.4:compile
                      [INFO] |     \- javax.activation:activation:jar:1.1:compile
                      [INFO] +- my:author-integration:jar:0.0.4:compile
                      [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
                      [INFO] |  +- javax.ws.rs:jsr311-api:jar:1.0:compile
                      [INFO] |  +- com.sun.jersey:jersey-bundle:jar:1.0:compile
                      [INFO] |  \- my:common-utilities:jar:0.0.4:compile
                      [INFO] |     \- my:common-generic:jar:0.0.4:compile
                      [INFO] |        +- commons-io:commons-io:jar:1.4:compile
                      [INFO] |        \- javax.persistence:persistence-api:jar:1.0:compile
                      [INFO] +- org.jboss.seam:jboss-seam-ui:jar:2.1.1.GA:runtime
                      [INFO] |  \- org.jboss.seam:jboss-seam-jul:jar:2.1.1.GA:runtime
                      [INFO] +- org.jboss.seam:jboss-seam-mail:jar:2.1.1.GA:runtime
                      [INFO] +- org.jboss:jboss-faces:jar:4.2.3.GA:runtime
                      [INFO] +- jboss:jboss-serialization:jar:4.2.2.GA:runtime
                      [INFO] +- org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:runtime
                      [INFO] +- trove:trove:jar:1.0.2:runtime
                      [INFO] +- org.hdiv:hdiv-core:jar:2.0.3:compile
                      [INFO] |  +- org.springframework:spring:jar:2.5:compile
                      [INFO] |  +- commons-codec:commons-codec:jar:1.3:compile
                      [INFO] |  +- commons-validator:commons-validator:jar:1.1.4:compile
                      [INFO] |  \- junit:junit:jar:3.8.1:compile
                      [INFO] +- asm:asm:jar:3.1:runtime
                      [INFO] +- com.sun.messaging.mq:jms:jar:4.2:runtime
                      [INFO] +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
                      [INFO] +- org.richfaces.framework:richfaces-impl:jar:3.3.1.GA:compile
                      [INFO] +- org.richfaces.ui:richfaces-ui:jar:3.3.1.GA:compile
                      [INFO] +- org.richfaces.framework:richfaces-api:jar:3.3.1.GA:compile
                      [INFO] |  \- commons-collections:commons-collections:jar:3.2:compile
                      [INFO] +- net.sourceforge.nekohtml:nekohtml:jar:1.9.9:runtime
                      [INFO] |  \- xerces:xercesImpl:jar:2.8.1:runtime
                      [INFO] +- my:portal-test-container:jar:0.0.4:test
                      [INFO] |  +- my:portal-test:jar:0.0.4:test
                      [INFO] |  |  +- my:common-test:jar:0.0.4:test
                      [INFO] |  |  |  +- org.testng:testng:jar:jdk15:5.8:test
                      [INFO] |  |  |  +- jdepend:jdepend:jar:2.9.1:test
                      [INFO] |  |  |  +- org.mockito:mockito-all:jar:1.7:test
                      [INFO] |  |  |  \- fest:fest-assert:jar:1.1a1:test
                      [INFO] |  |  |     \- fest:fest-util:jar:1.0:test
                      [INFO] |  |  \- com.h2database:h2:jar:1.1.102:test
                      [INFO] |  +- org.jboss.jsfunit:jboss-jsfunit-core:jar:1.0.0.GA:test
                      [INFO] |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.4:test
                      [INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.4:test
                      [INFO] |  |  +- net.sourceforge.cssparser:cssparser:jar:0.9.5:test
                      [INFO] |  |  |  \- org.w3c.css:sac:jar:1.3:test
                      [INFO] |  |  +- xalan:xalan:jar:2.7.0:test
                      [INFO] |  |  \- cactus:cactus:jar:13-1.7.1:test
                      [INFO] |  |     +- cactus:cactus-ant:jar:13-1.7.1:test
                      [INFO] |  |     +- aspectj:aspectjrt:jar:1.2.1:test
                      [INFO] |  |     \- cargo:cargo:jar:0.5:test
                      [INFO] |  +- org.glassfish.embedded:glassfish-embedded-all:jar:3.0-Prelude-Embedded-b14:test
                      [INFO] |  \- org.apache.openejb:openejb-core:jar:3.0:test
                      [INFO] |     +- org.apache.openejb:javaee-api:jar:5.0-1:test
                      [INFO] |     +- org.apache.openejb:openejb-loader:jar:3.0:test
                      [INFO] |     +- org.apache.openejb:openejb-javaagent:jar:3.0:test
                      [INFO] |     +- org.apache.openejb:openejb-jee:jar:3.0:test
                      [INFO] |     |  \- com.sun.xml.bind:jaxb-impl:jar:2.0.5:test
                      [INFO] |     +- commons-cli:commons-cli:jar:1.1:test
                      [INFO] |     +- org.apache.activemq:activemq-ra:jar:4.1.1:test
                      [INFO] |     +- org.apache.activemq:activemq-core:jar:4.1.1:test
                      [INFO] |     |  \- org.apache.activemq:activeio-core:jar:3.0.0-incubator:test
                      [INFO] |     +- net.sourceforge.serp:serp:jar:1.13.1:test
                      [INFO] |     +- org.apache.geronimo.components:geronimo-connector:jar:2.1:test
                      [INFO] |     +- org.apache.geronimo.components:geronimo-transaction:jar:2.1:test
                      [INFO] |     +- org.objectweb.howl:howl:jar:1.0.1-1:test
                      [INFO] |     +- org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:jar:1.2:test
                      [INFO] |     +- org.apache.openejb:xbean-reflect:jar:3.4-r636442:test
                      [INFO] |     +- org.apache.openejb:xbean-finder:jar:3.4-r636442:test
                      [INFO] |     +- org.apache.xbean:xbean-naming:jar:3.3:test
                      [INFO] |     +- asm:asm-commons:jar:2.2.3:test
                      [INFO] |     |  \- asm:asm-tree:jar:2.2.3:test
                      [INFO] |     +- org.apache.openejb:commons-dbcp-all:jar:1.3:test
                      [INFO] |     +- org.codehaus.swizzle:swizzle-stream:jar:1.0.1:test
                      [INFO] |     \- wsdl4j:wsdl4j:jar:1.6.1:test
                      [INFO] +- my:portal-test-ui:jar:0.0.4:test
                      [INFO] |  +- org.openqa.selenium.webdriver:webdriver-htmlunit:jar:0.6.964:test
                      [INFO] |  |  \- org.openqa.selenium.webdriver:webdriver-common:jar:0.6.964:test
                      [INFO] |  +- org.openqa.selenium.webdriver:webdriver-firefox:jar:0.6.964:test
                      [INFO] |  |  \- org.json:json:jar:20080701:test
                      [INFO] |  \- org.openqa.selenium.webdriver:webdriver-support:jar:0.6.964:test
                      [INFO] |     \- org.hamcrest:hamcrest-all:jar:1.1:test
                      [INFO] +- org.jvnet.mock-javamail:mock-javamail:jar:1.7:compile
                      [INFO] +- hsqldb:hsqldb:jar:1.8.0.7:compile
                      [INFO] \- org.jboss.seam:jboss-seam-debug:jar:2.1.1.GA:compile
                      [INFO]    \- com.sun.facelets:jsf-facelets:jar:1.1.15.B1:compile



                      Cheers!

                      • 8. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                        norman

                        You need to update your jboss-el JAR.

                        • 9. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                          stephanos

                          Actually updating javassist to 3.8.0.GA fixed the problem.


                          (read this on in.relation.to)

                          • 10. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                            norman

                            Sorry.  I was responding to the reference cache issue.  These are two separate things.

                            • 11. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                              chawax

                              I just upgraded to Seam 2.1.2 and I still have the same error while running tests on OpenEJB.




                              -------------------------------------------------------------------------------
                              Test set: TestSuite
                              -------------------------------------------------------------------------------
                              Tests run: 114, Failures: 1, Errors: 0, Skipped: 113, Time elapsed: 18.032 sec <<< FAILURE!
                              startSeam(t4.core.utils.dictionary.internal.test.DictionaryInternalServiceTest)  Time elapsed: 0 sec  <<< FAILURE!
                              org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.el.referenceCache
                                   at org.jboss.seam.Component.newInstance(Component.java:2144)
                                   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:740)
                                   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)
                              Caused by: java.lang.RuntimeException: exception invoking: start
                                   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
                                   at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                                   at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
                                   at org.jboss.seam.Component.newInstance(Component.java:2132)
                                   ... 28 more
                              Caused by: java.lang.reflect.InvocationTargetException
                                   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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                                   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                                   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                                   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                                   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                                   at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                                   at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                                   at org.jboss.seam.el.JBossELReferenceCache_$$_javassist_seam_0.start(JBossELReferenceCache_$$_javassist_seam_0.java)
                                   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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                                   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                                   ... 31 more
                              Caused by: java.lang.NoSuchMethodError: org.jboss.el.util.ReflectionUtil.startup()V
                                   at org.jboss.seam.el.JBossELReferenceCache.start(JBossELReferenceCache.java:18)
                                   ... 52 more
                              Caused by: java.lang.RuntimeException: exception invoking: start
                                   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
                                   at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                                   at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
                                   at org.jboss.seam.Component.newInstance(Component.java:2132)
                                   ... 28 more
                              Caused by: java.lang.reflect.InvocationTargetException
                                   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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                                   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                                   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                                   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                                   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                                   at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                                   at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                                   at org.jboss.seam.el.JBossELReferenceCache_$$_javassist_seam_0.start(JBossELReferenceCache_$$_javassist_seam_0.java)
                                   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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                                   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                                   ... 31 more
                              Caused by: java.lang.NoSuchMethodError: org.jboss.el.util.ReflectionUtil.startup()V
                                   at org.jboss.seam.el.JBossELReferenceCache.start(JBossELReferenceCache.java:18)
                                   ... 52 more
                              
                              



                              I use Javassist 3.8.0.GA as suggested here. I use too the latest JBoss EL release.


                              Any idea ?

                              • 12. Re: IllegalAccessError after upgrading to 2.1.2.CR1
                                chawax

                                I found where it comes from !
                                I should not use JBoss EL latest release (2.0.2.CR1) but the one used in Seam root pom.xml, i.e. 1.0_02.CR4. Then everything works perfect !