google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

java.lang.ExceptionInInitializerError #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the ant task to run all test.

What is the expected output? What do you see instead?
The expected output is to see success. I got the following:

java.lang.ExceptionInInitializerError
at 
com.googlecode.gwt.test.internal.runner.AbstractGwtRunnerFactory.newInstance(Abs
tractGwtRunnerFactory.java:52)
at 
com.googlecode.gwt.test.internal.runner.AbstractGwtRunnerFactory.create(Abstract
GwtRunnerFactory.java:32)
at 
com.googlecode.gwt.test.internal.runner.AbstractGwtRunner.<init>(AbstractGwtRunn
er.java:24)
at com.googlecode.gwt.test.GwtRunner.<init>(GwtRunner.java:19)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
Caused by: com.googlecode.gwt.test.exceptions.GwtTestPatchException: Error 
while scanning package 'com.googlecode.gxt.test.internal.patchers'
at 
com.googlecode.gwt.test.internal.ClassesScanner.scanPackages(ClassesScanner.java
:69)
at 
com.googlecode.gwt.test.internal.ConfigurationLoader.visitPatchClasses(Configura
tionLoader.java:231)
at 
com.googlecode.gwt.test.internal.ConfigurationLoader.<init>(ConfigurationLoader.
java:70)
at 
com.googlecode.gwt.test.internal.ConfigurationLoader.createInstance(Configuratio
nLoader.java:41)
at 
com.googlecode.gwt.test.internal.GwtClassLoader.<init>(GwtClassLoader.java:53)
at 
com.googlecode.gwt.test.internal.GwtClassLoader.<clinit>(GwtClassLoader.java:36)
Caused by: java.lang.TypeNotPresentException: Type 
com.extjs.gxt.ui.client.widget.selection.AbstractSelectionModel not present
at $Proxy122.value(Unknown Source)
at 
com.googlecode.gwt.test.internal.ConfigurationLoader$1.visit(ConfigurationLoader
.java:207)
at 
com.googlecode.gwt.test.internal.ClassesScanner.visitClass(ClassesScanner.java:1
16)
at 
com.googlecode.gwt.test.internal.ClassesScanner.scanClassesFromJarFile(ClassesSc
anner.java:105)
at 
com.googlecode.gwt.test.internal.ClassesScanner.scanPackages(ClassesScanner.java
:61)
Caused by: java.lang.ClassNotFoundException: 
com.extjs.gxt.ui.client.widget.selection.AbstractSelectionModel
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:3070)
at java.lang.Class.getDeclaredAnnotations(Class.java:3058)
at 
com.googlecode.gwt.test.utils.GwtReflectionUtils.getAnnotation(GwtReflectionUtil
s.java:198)
at 
com.googlecode.gwt.test.internal.ConfigurationLoader$1.visit(ConfigurationLoader
.java:198)

What version of the product are you using? On what operating system?
I'm using the latest version on ubuntu 11.10 32-bit

Please provide any additional information below.
I'm pretty lost on what I should do to fix this. Am I missing a jar?

Original issue reported on code.google.com by tdespe...@gmail.com on 5 Apr 2012 at 4:29

GoogleCodeExporter commented 9 years ago
Is your classpath correctly set ? it seems your gxt.jar is present but not 
added in the test classpath.

Original comment by gael.laz...@gmail.com on 6 Apr 2012 at 6:47

GoogleCodeExporter commented 9 years ago
Does it have to be there even though I'm not using Ext-JS?

Original comment by tdespe...@gmail.com on 6 Apr 2012 at 1:16

GoogleCodeExporter commented 9 years ago
Nevermind. I see that the classpath include the gwt-gxt jars. Once I removed 
them I got a different error.

Original comment by tdespe...@gmail.com on 6 Apr 2012 at 5:39

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 9 Apr 2012 at 8:03