Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Null Pointer generated when copying text from external source into XML Doc
Null Pointer generated when copying text from external source into XML Doc [message #206102] Fri, 21 December 2007 14:17 Go to next message
Eclipse UserFriend
Originally posted by: italdesign99.hotmail.com

I am using WST's text editor(ie.
org.eclipse.wst.sse.ui.StructuredTextEditor as the source editor for my
xml editor) However Everytime I copy xml snippets of code in from an
external source a null pointer exception is generated.

Here is the error log:
eclipse.buildId=M20070921-1145
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 0 2007-12-19 14:25:34.746
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.wst.server.ui.internal.actions.RunOnServerAction Delegate.selectionChanged(RunOnServerActionDelegate.java:726 )
at
org.eclipse.wst.server.ui.internal.ServerLaunchShortcut.laun ch(ServerLaunchShortcut.java:38)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchSho rtcutExtension.launch(LaunchShortcutExtension.java:429)
at
org.eclipse.debug.internal.ui.contextlaunching.ContextRunner .selectAndLaunch(ContextRunner.java:170)
at
org.eclipse.debug.internal.ui.contextlaunching.ContextRunner .launch(ContextRunner.java:82)
at
org.eclipse.debug.ui.actions.AbstractLaunchToolbarAction.run (AbstractLaunchToolbarAction.java:80)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:256)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Re: Null Pointer generated when copying text from external source into XML Doc [message #206146 is a reply to message #206102] Mon, 24 December 2007 08:55 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2335
Registered: July 2009
Senior Member
Muneer wrote:
> I am using WST's text editor(ie.
> org.eclipse.wst.sse.ui.StructuredTextEditor as the source editor for my
> xml editor) However Everytime I copy xml snippets of code in from an
> external source a null pointer exception is generated.
>
> Here is the error log:
> eclipse.buildId=M20070921-1145
> java.version=1.6.0_03
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.ui 4 0 2007-12-19 14:25:34.746
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.wst.server.ui.internal.actions.RunOnServerAction Delegate.selectionChanged(RunOnServerActionDelegate.java:726 )

This should definitely be reported in Bugzilla starting with the
wst.server component. Does it only happen when copying from another
editor?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=wst.server

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Best Practice to manage J2EE projects in eclipse
Next Topic:Installing earlier version of Subclipse/Subversion
Goto Forum:
  


Current Time: Wed Nov 26 18:58:29 GMT 2014

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

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