saiddfhi / gwt-maven

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

Nullpointer Exeption in DirectoryClassPathEntry.descendToFindResources #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With Maven 2 and Hudson GWTCompiler causes following Exception:

[INFO] [gwt:compile {execution: default}]
[INFO] establishing classpath list (buildClaspathList - scope = COMPILE)
[INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM for
GWT dependencies
Exception in thread "main" java.lang.NullPointerException
    at
com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.descendToFindResources(
DirectoryClassPathEntry.java:78)
    at
com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.findApplicableResources
(DirectoryClassPathEntry.java:54)
    at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.refresh(ResourceOracleImpl.j
ava:265)
    at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:430)
    at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:273)
    at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:12
7)
    at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:10
8)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:562)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
    at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
Exception in thread "main" java.lang.NullPointerException
    at
com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.descendToFindResources(
DirectoryClassPathEntry.java:78)
    at
com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.findApplicableResources
(DirectoryClassPathEntry.java:54)
    at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.refresh(ResourceOracleImpl.j
ava:265)
    at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:430)
    at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:273)
    at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:12
7)
    at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:10
8)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:562)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
    at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)

The reason is that the generated classpath for the compile.sh is like:

"/foo.jar:/bar.jar:"

The last colon gives the ResourceOracleImpl some space for (wrong)
interpretation. 

Original issue reported on code.google.com by hau...@gmail.com on 18 Nov 2008 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for noting this, and the patch, will be applied to next release. 

Original comment by charlie....@gmail.com on 19 Nov 2008 at 6:46

GoogleCodeExporter commented 9 years ago
in trunk

Original comment by charlie....@gmail.com on 19 Nov 2008 at 6:58

GoogleCodeExporter commented 9 years ago
resolved in 2.0-beta26

Original comment by charlie....@gmail.com on 19 Nov 2008 at 7:44