1 Reply Latest reply on Jul 25, 2007 12:40 AM by Tony Mai

    JUnit exception thrown when doing a context.lookup

    Tony Mai Apprentice

      Hello all,

      I've just upgrade my JBoss to 4.2.1GA and am running into a weird exception. When I am doing a Context.lookup(name) I ran into the a java.lang.reflect.InvocationTargetException exception (within Eclipse):

      (java.lang.NoSuchFieldError) java.lang.NoSuchFieldError: TRACE


      with stack trace as:

      (java.lang.StackTraceElement[]) [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source), java.lang.reflect.Method.invoke(Unknown Source), org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74), org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50), org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33), org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52), org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29), org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42), org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34), org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52), org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38), org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38), org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460), org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673), org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386), org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)]


      Perhaps I am not upgrading any lib jar files as I should have. Any idea?

      Thanks
      -tony