java.lang.IllegalAccessError: tried to access class org.springframework.binding.message.DefaultMessageContext from class org.springframework.webflow.test.MockRequestContext

Spring JIRA | Barbara McInnes | 8 years ago
  1. 0

    using ctor: public MockRequestContext(Flow flow) causes the following exception: java.lang.IllegalAccessError: tried to access class org.springframework.binding.message.DefaultMessageContext from class org.springframework.webflow.test.MockRequestContext at org.springframework.webflow.test.MockRequestContext.<init>(MockRequestContext.java:108) at org.springframework.webflow.test.MockRequestContext.<init>(MockRequestContext.java:84) at com.s1.arch.orch2.webflow.customization.test.CustomListenerInstanceTest.getRequestContext(CustomListenerInstanceTest.java:880) at com.s1.arch.orch2.webflow.customization.test.CustomListenerInstanceTest.testCustomTransition(CustomListenerInstanceTest.java:333) 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:585) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) This class has changed from public to package protected but the code still attempts to use it from a different package.

    Spring JIRA | 8 years ago | Barbara McInnes
    java.lang.IllegalAccessError: tried to access class org.springframework.binding.message.DefaultMessageContext from class org.springframework.webflow.test.MockRequestContext
  2. 0

    using ctor: public MockRequestContext(Flow flow) causes the following exception: java.lang.IllegalAccessError: tried to access class org.springframework.binding.message.DefaultMessageContext from class org.springframework.webflow.test.MockRequestContext at org.springframework.webflow.test.MockRequestContext.<init>(MockRequestContext.java:108) at org.springframework.webflow.test.MockRequestContext.<init>(MockRequestContext.java:84) at com.s1.arch.orch2.webflow.customization.test.CustomListenerInstanceTest.getRequestContext(CustomListenerInstanceTest.java:880) at com.s1.arch.orch2.webflow.customization.test.CustomListenerInstanceTest.testCustomTransition(CustomListenerInstanceTest.java:333) 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:585) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) This class has changed from public to package protected but the code still attempts to use it from a different package.

    Spring JIRA | 8 years ago | Barbara McInnes
    java.lang.IllegalAccessError: tried to access class org.springframework.binding.message.DefaultMessageContext from class org.springframework.webflow.test.MockRequestContext
  3. 0

    IllegalAccessError passing object with RMI

    Oracle Community | 8 years ago | 843793
    java.lang.IllegalAccessError: tried to access TestSerial from class $Proxy0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalAccessException during Ant jwsc webservice build

    Stack Overflow | 6 years ago | KevB
    java.lang.IllegalAccessError: tried to access class com.sun.tools.javac.jvm.ClassReader$AnnotationDefaultCompleter from class com.sun.tools.javac.jvm.ClassReader
  6. 0

    Hibernate - Entity Manager Factory

    Stack Overflow | 7 years ago
    java.lang.IllegalAccessError: tried to access class javassist.bytecode.StackMapTable$Writer from class org.jboss.seam.util.ProxyFactory

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access class org.springframework.binding.message.DefaultMessageContext from class org.springframework.webflow.test.MockRequestContext

      at org.springframework.webflow.test.MockRequestContext.<init>()
    2. Spring Web Flow
      MockRequestContext.<init>
      1. org.springframework.webflow.test.MockRequestContext.<init>(MockRequestContext.java:108)
      2. org.springframework.webflow.test.MockRequestContext.<init>(MockRequestContext.java:84)
      2 frames
    3. com.s1.arch
      CustomListenerInstanceTest.testCustomTransition
      1. com.s1.arch.orch2.webflow.customization.test.CustomListenerInstanceTest.getRequestContext(CustomListenerInstanceTest.java:880)
      2. com.s1.arch.orch2.webflow.customization.test.CustomListenerInstanceTest.testCustomTransition(CustomListenerInstanceTest.java:333)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    5. JUnit
      JUnit38ClassRunner.run
      1. junit.framework.TestCase.runTest(TestCase.java:168)
      2. junit.framework.TestCase.runBare(TestCase.java:134)
      3. junit.framework.TestResult$1.protect(TestResult.java:110)
      4. junit.framework.TestResult.runProtected(TestResult.java:128)
      5. junit.framework.TestResult.run(TestResult.java:113)
      6. junit.framework.TestCase.run(TestCase.java:124)
      7. junit.framework.TestSuite.runTest(TestSuite.java:232)
      8. junit.framework.TestSuite.run(TestSuite.java:227)
      9. junit.framework.TestSuite.runTest(TestSuite.java:232)
      10. junit.framework.TestSuite.run(TestSuite.java:227)
      11. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
      11 frames
    6. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
      1 frame
    7. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      5 frames