NullPointerException with GWT-Designer 7.0

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

NullPointerException with GWT-Designer 7.0

Postby svenali » Thu Mar 26, 2009 1:44 pm

Hello,

After installing the new GWT-Designer Version I get this Exception. The error stays the same after installing a new eclipse enviroment.

I use Debian Linux (Lenny) with iceweasel 3/xulrunner-1.9.

java.lang.NullPointerException
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)
at org.apache.commons.digester.Digester.parse(Digester.java:1887)
at com.instantiations.designer.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:354)
at com.instantiations.designer.core.model.description.helpers.ComponentDescriptionHelper.getDescription(ComponentDescriptionHelper.java:244)
at com.instantiations.designer.core.model.JavaInfoUtils.createJavaInfo(JavaInfoUtils.java:287)
at com.instantiations.designer.gwt.parser.ParseFactory.getRootContext(ParseFactory.java:101)
at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:833)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:176)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:118)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:330)
at com.instantiations.designer.core.editor.DesignPage.access$600(DesignPage.java:44)
at com.instantiations.designer.core.editor.DesignPage$6$1.run(DesignPage.java:262)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:178)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4021)
at com.instantiations.designer.core.editor.DesignPage$6.run(DesignPage.java:259)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:280)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:421)
at com.instantiations.designer.core.editor.DesignPage.refreshGEF(DesignPage.java:238)
at com.instantiations.designer.core.editor.actions.RefreshAction.run(RefreshAction.java:30)
at com.instantiations.designer.core.editor.actions.DesignPageAction.run(DesignPageAction.java:23)
at com.instantiations.designer.core.editor.errors.ExceptionComposite$2.widgetSelected(ExceptionComposite.java:94)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Full context stack trace:

java.lang.NullPointerException
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)
at org.apache.commons.digester.Digester.parse(Digester.java:1887)
at com.instantiations.designer.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:354)
at com.instantiations.designer.core.model.description.helpers.ComponentDescriptionHelper.getDescription(ComponentDescriptionHelper.java:244)
at com.instantiations.designer.core.model.JavaInfoUtils.createJavaInfo(JavaInfoUtils.java:287)
at com.instantiations.designer.gwt.parser.ParseFactory.getRootContext(ParseFactory.java:101)
at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:833)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:176)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:118)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:330)
at com.instantiations.designer.core.editor.DesignPage.access$600(DesignPage.java:44)
at com.instantiations.designer.core.editor.DesignPage$6$1.run(DesignPage.java:262)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:178)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4021)
at com.instantiations.designer.core.editor.DesignPage$6.run(DesignPage.java:259)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:280)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:421)
at com.instantiations.designer.core.editor.DesignPage.refreshGEF(DesignPage.java:238)
at com.instantiations.designer.core.editor.actions.RefreshAction.run(RefreshAction.java:30)
at com.instantiations.designer.core.editor.actions.DesignPageAction.run(DesignPageAction.java:23)
at com.instantiations.designer.core.editor.errors.ExceptionComposite$2.widgetSelected(ExceptionComposite.java:94)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
svenali
 
Posts: 7
Joined: Fri Mar 20, 2009 10:18 am

Re: NullPointerException with GWT-Designer 7.0

Postby svenali » Thu Mar 26, 2009 3:03 pm

I have to add, that this error messages is displaying after pressing the "design" tab.

Enviroment: Linux, Debian Lenny
Eclipse 3.4 SDK

regards,
Sven
svenali
 
Posts: 7
Joined: Fri Mar 20, 2009 10:18 am

Re: NullPointerException with GWT-Designer 7.0

Postby Eric Clayberg » Thu Mar 26, 2009 5:11 pm

Is the SAXParser class present on your system?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: NullPointerException with GWT-Designer 7.0

Postby svenali » Fri Mar 27, 2009 1:33 am

You've got right, if i try to import javax.xml.parsers.SAXParser, eclipse shows an error. But I thought that the SAXParser is in the Java6Se-Package included. What kind of jar-file do I have to install for the javax-Packages?

regards,
sven
svenali
 
Posts: 7
Joined: Fri Mar 20, 2009 10:18 am

Re: NullPointerException with GWT-Designer 7.0

Postby svenali » Fri Mar 27, 2009 1:37 am

I've added the JAVA_HOME - Path to eclipse and now eclipse himselves does not show me an error for SAXParser. But in the GWT-Design-Widget the error shown above stays :-(.

regards,
Sven
svenali
 
Posts: 7
Joined: Fri Mar 20, 2009 10:18 am

Re: NullPointerException with GWT-Designer 7.0

Postby Konstantin.Scheglov » Fri Mar 27, 2009 4:05 am

Unfortunately it is hard to say what exactly may be incorrect.

It seems that this exception is popular in Google.

1. http://marc.info/?l=myfaces-user&m=117026716720450&w=2
==========================================
Well, assuming this is commons-digester 1.3,

reader = getParser().getXMLReader();

So the problem is that the digester hasn't been initialized with a
parser. Not really sure what would cause that, but it's probably
outside of the scope of facelets or JSF.
==========================================


2. Or this one.
http://www.coderanch.com/t/423990/XML-R ... -Exception
==========================================
I found the solution. It is because of library files, they were got corrupted some how! i copied them and everything is fine.
==========================================


So, it seems that this problem is unrelated with WindowBuilder itself.
Can you reinstall JDK, may be something is broken?
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Re: NullPointerException with GWT-Designer 7.0

Postby svenali » Fri Mar 27, 2009 12:11 pm

Now I am completly convinced!!! It works. Thanks for your wonderful support. I will buy some academic licenses thru my german reseller! Your designer tools are great!

I installed a new jdk (1.6 update 13) and now it works.

regards,
Sven
svenali
 
Posts: 7
Joined: Fri Mar 20, 2009 10:18 am

Re: NullPointerException with GWT-Designer 7.0

Postby Eric Clayberg » Fri Mar 27, 2009 7:07 pm

Glad that worked. This was certainly a weird one.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests