google-code-export / gwt-test-utils

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

ExceptionInInitializerError when my module definition inherits Activity or Place #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In my Application.gwt.xml, I inherits place and activity modules:

<inherits name='com.google.gwt.place.Place' />
<inherits name='com.google.gwt.activity.Activity' />

Because of this, my tests are not running. It throw a 
java.lang.ExceptionInInitializerError,

and its cause:
Caused by: com.octo.gwt.test.exceptions.GwtTestConfigurationException: 
java.io.FileNotFoundException: 
http://google-web-toolkit.googlecode.com/svn/tags/0.0.999/distro-source/core/src
/gwt-module.dtd

This is happening because in the module configuration file (gwt.xml) of 
Activity and Place (and maybe in some place else) there are an invalid dtd that 
is being loaded and validated by some octo or xerces classes. This is the line 
being validated:
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 0.0.999//EN" 
"http://google-web-toolkit.googlecode.com/svn/tags/0.0.999/distro-source/core/sr
c/gwt-module.dtd">

Workaround:
To make it work, I've copied Place.gwt.xml and Activity.gwt.xml to my project 
and removed the dtd line.

Environment:
I'm using gwt-test-utils-0.29, gwt-2.3.0, Eclipse Helios and Ubuntu 10.10.

The full stacktrace is attached.

Original issue reported on code.google.com by jaime.sc...@gmail.com on 24 May 2011 at 12:42

Attachments:

GoogleCodeExporter commented 9 years ago
This problem should have been solved in 0.30-SNAPSHOT. 

Could you please give it a try and give me some feedback ?

Original comment by gael.laz...@gmail.com on 24 May 2011 at 12:55

GoogleCodeExporter commented 9 years ago
Hi, 0.30-SNAPSHOT solved the problem. 

Thanks for your help.

Original comment by jaime.sc...@gmail.com on 24 May 2011 at 6:03

GoogleCodeExporter commented 9 years ago
Glad to read that ! I'm closing this issue :-)

Original comment by gael.laz...@gmail.com on 25 May 2011 at 8:11

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 9 Jun 2011 at 3:33