Thursday, March 24, 2011

(Another) GWT exception in Development Mode

Lately I got a new kind of exception during GWT Development Mode startup.


java.lang.NullPointerException
        at com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.descendToFindResources(DirectoryClassPathEntry.java:79)
        at com.google.gwt.dev.resource.impl.DirectoryClassPathEntry.findApplicableResources(DirectoryClassPathEntry.java:54)
        at com.google.gwt.dev.resource.impl.ResourceOracleImpl.refresh(ResourceOracleImpl.java:351)
        at com.google.gwt.dev.cfg.ModuleDef.refresh(ModuleDef.java:386)
        at com.google.gwt.dev.cfg.ModuleDefLoader.tryGetLoadedModule(ModuleDefLoader.java:150)
        at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:136)
        at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:963)
        at com.google.gwt.dev.DevMode.loadModule(DevMode.java:468)
...


This was because after I started Development Mode, my IDE cleaned compiled classes directory(target/classes/ in my case).
Rebuild project and I'll be back to game :)

Did you like the post? Was it helpful? Leave a comment!

No comments:

Post a Comment