[jboss-user] [EJB/JBoss] - JUnit exception thrown when doing a context.lookup

tonylmai do-not-reply at jboss.com
Tue Jul 24 22:18:27 EDT 2007


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):

anonymous wrote : 	 (java.lang.NoSuchFieldError) java.lang.NoSuchFieldError: TRACE
  | 

with stack trace as:

anonymous wrote : 	 (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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067261#4067261

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067261




More information about the jboss-user mailing list