Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » NullPointerException running a DynamicWeb Project in Tomcat
NullPointerException running a DynamicWeb Project in Tomcat [message #147687] Fri, 18 November 2005 10:15 Go to next message
Eclipse UserFriend
Originally posted by: mfernandez.gva.es

WTP version is 0.7.1
Tomcat version is 5.0.28
Eclipse version is 3.1.1

The Dynamic Web Project is a fresh one with no classes in it.
NullPointerException arises when performing "Run on Server" on project.
I searched for this bug on bugzilla but found nothing.
I no one heard about this, i will open e new bug.

Regards,

Mariano.
P.S.
Log is:
!ENTRY org.eclipse.ui 4 0 2005-11-18 10:36:29.485
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.wst.xml.core.internal.provisional.format.Element NodeFormatter.getUndefinedRegions(ElementNodeFormatter.java: 339)
at
org.eclipse.wst.xml.core.internal.provisional.format.Element NodeFormatter.formatStartTag(ElementNodeFormatter.java:170)
at
org.eclipse.wst.xml.core.internal.provisional.format.Element NodeFormatter.formatNode(ElementNodeFormatter.java:104)
at
org.eclipse.wst.xml.core.internal.provisional.format.NodeFor matter.format(NodeFormatter.java:152)
at
org.eclipse.wst.sse.core.internal.format.AbstractStructuredF ormatProcessor.formatNode(AbstractStructuredFormatProcessor. java:379)
at
org.eclipse.wst.xsd.ui.internal.actions.CreateElementAction. formatChild(CreateElementAction.java:199)
at
org.eclipse.wst.xsd.ui.internal.actions.CreateElementAction. createAndAddNewChildElement(CreateElementAction.java:183)
at
org.eclipse.wst.xsd.ui.internal.actions.CreateElementAction. run(CreateElementAction.java:214)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: NullPointerException running a DynamicWeb Project in Tomcat [message #150283 is a reply to message #147687] Thu, 01 December 2005 10:20 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4488
Registered: July 2009
Senior Member

Mariano Eloy Fernández wrote:
> WTP version is 0.7.1
> Tomcat version is 5.0.28
> Eclipse version is 3.1.1
>
> The Dynamic Web Project is a fresh one with no classes in it.
> NullPointerException arises when performing "Run on Server" on project.
> I searched for this bug on bugzilla but found nothing.
> I no one heard about this, i will open e new bug.
>
> Regards,
>
> Mariano.
> P.S.
> Log is:
> !ENTRY org.eclipse.ui 4 0 2005-11-18 10:36:29.485
> !MESSAGE java.lang.NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.wst.xml.core.internal.provisional.format.Element NodeFormatter.getUndefinedRegions(ElementNodeFormatter.java: 339)
>
> at
> org.eclipse.wst.xml.core.internal.provisional.format.Element NodeFormatter.formatStartTag(ElementNodeFormatter.java:170)
>
> at
> org.eclipse.wst.xml.core.internal.provisional.format.Element NodeFormatter.formatNode(ElementNodeFormatter.java:104)
>
> at
> org.eclipse.wst.xml.core.internal.provisional.format.NodeFor matter.format(NodeFormatter.java:152)
>
> at
> org.eclipse.wst.sse.core.internal.format.AbstractStructuredF ormatProcessor.formatNode(AbstractStructuredFormatProcessor. java:379)
>
> at
> org.eclipse.wst.xsd.ui.internal.actions.CreateElementAction. formatChild(CreateElementAction.java:199)
>
> at
> org.eclipse.wst.xsd.ui.internal.actions.CreateElementAction. createAndAddNewChildElement(CreateElementAction.java:183)
>
> at
> org.eclipse.wst.xsd.ui.internal.actions.CreateElementAction. run(CreateElementAction.java:214)
.....

This does look very odd--the trace looks like it came from adding a
new element into a XML Schema file and that shouldn't be related to
performing a Run on Server. Are you sure the two are related? Did
the Run on Server actually fail?

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Why I can't see any files under /lib?
Next Topic:Suggestion
Goto Forum:
  


Current Time: Sat Sep 14 12:04:58 GMT 2024

Powered by FUDForum. Page generated in 0.04049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top