[ spindle-Bugs-1254837 ] NPE during various operations

"SourceForge.net" <[email protected]> Sun, 11 Sep 2005 11:48:15 -0700
Newsgroups gmane.comp.ide.eclipse.spindle.devel
Message-ID <[email protected]>
Bugs item #1254837, was opened at 2005-08-09 05:04
Message generated for change (Settings changed) made by glongman
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459328&aid=1254837&group_id=50321

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Spindle
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Øyvind Harboe (gowinex)
Assigned to: Geoffrey Longman (glongman)
Summary: NPE during various operations

Initial Comment:
This NPE happens e.g. during new tapestry page, show
advanced options. 

Latest Spindle 3.2.0
Windows XP


java.lang.NullPointerException
	at
org.eclipse.ui.texteditor.SourceViewerDecorationSupport.getAnnotationPreferenceInfo(SourceViewerDecorationSupport.java:511)
	at
org.eclipse.ui.texteditor.SourceViewerDecorationSupport.handlePreferenceStoreChanged(SourceViewerDecorationSupport.java:584)
	at
org.eclipse.ui.texteditor.SourceViewerDecorationSupport$1.propertyChange(SourceViewerDecorationSupport.java:297)
	at
org.eclipse.ui.texteditor.ChainedPreferenceStore.firePropertyChangeEvent(ChainedPreferenceStore.java:163)
	at
org.eclipse.ui.texteditor.ChainedPreferenceStore.handlePropertyChangeEvent(ChainedPreferenceStore.java:430)
	at
org.eclipse.ui.texteditor.ChainedPreferenceStore.access$0(ChainedPreferenceStore.java:407)
	at
org.eclipse.ui.texteditor.ChainedPreferenceStore$PropertyChangeListener.propertyChange(ChainedPreferenceStore.java:68)
	at
org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:344)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:783)
	at
org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:341)
	at
org.eclipse.ui.preferences.ScopedPreferenceStore.setValue(ScopedPreferenceStore.java:748)
	at
com.iw.plugins.spindle.ui.wizards.NewTapComponentWizardPage$FieldEventsAdapter.widgetSelected(NewTapComponentWizardPage.java:1085)
	at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
	at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)

----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-09-11 14:15

Message:
Logged In: YES 
user_id=387057

fixed, will appear in Spindle 3.2.2

----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-09-07 08:32

Message:
Logged In: YES 
user_id=387057

Still having problems building a release. Trying now to see
if I can build a 3.1 version using 3.0

----------------------------------------------------------------------

Comment By: Øyvind Harboe (gowinex)
Date: 2005-08-29 13:45

Message:
Logged In: YES 
user_id=486779

>Of course this happens jsut after a release!
>
>Found the root cause of the original stack trace. fixed in
>3.2.2. The second problem is not related and probably not
>going to be fixed in the short term.

You found the bug. I suggest we put this in the "win column" :-)



----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-08-29 13:38

Message:
Logged In: YES 
user_id=387057

Of course this happens jsut after a release!

Found the root cause of the original stack trace. fixed in
3.2.2. The second problem is not related and probably not
going to be fixed in the short term.

----------------------------------------------------------------------

Comment By: Øyvind Harboe (gowinex)
Date: 2005-08-21 16:13

Message:
Logged In: YES 
user_id=486779

>However, this error is not related to the preferences problem

I'm pretty sure that this was the second place that I
thought I saw the same NPE problem. Mark this bug as fixed?


----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-08-20 13:24

Message:
Logged In: YES 
user_id=387057

hmm, yes. This is a side effect of the current Spindle
editors using bits of another open source project to build,
on the fly, a dom-like model of the document. That code is
pretty hard to debug and the project it comes from is dead
so I doubt this particular problem will be fixed in a timely
manner.

Good news is that the next generation of Spindle editor will
be based on the Eclipse WTP xml editor so these issues will
go away.

However, this error is not related to the preferences problem.

And, as always, thanks for keeping an eye out!

----------------------------------------------------------------------

Comment By: Øyvind Harboe (gowinex)
Date: 2005-08-19 09:24

Message:
Logged In: YES 
user_id=486779

I can reproduce the problem by:

- opening UserControl.html
- Going to the <form> line and marking the line with <form
xxx> by holding down shift and pressing the down key + del.
- Delete the remaining </form> line by marking the line with
by holding down shift and pressing the down key + del.

=> 

NPE

----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-08-19 09:24

Message:
Logged In: YES 
user_id=387057

not sure. I can't tell from the trace which action was being
invoked and where it was invoked..

What were you doing when the trace appeared?

thx.

----------------------------------------------------------------------

Comment By: Øyvind Harboe (gowinex)
Date: 2005-08-19 09:20

Message:
Logged In: YES 
user_id=486779

Is this related?

java.lang.NullPointerException
at
org.xmen.internal.ui.text.XMLReconciler.fix(XMLReconciler.java:486)
at
org.xmen.internal.ui.text.XMLReconciler.documentChanged(XMLReconciler.java:327)
at
org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:724)
at
org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:687)
at
org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:672)
at
org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:749)
at
org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1104)
at
org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1111)
at
org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:238)
at
org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
at
org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
at
org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2672)
at
org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5671)
at
org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3521)
at
org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:801)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at
org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:311)
at
org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at
org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1045)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1030)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1057)
at
org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:621)
at
org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1964)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:560)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1365)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3442)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native
Method)
at
org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4777)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1067)
at
org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1158)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2570)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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:585)
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)


----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-08-15 07:59

Message:
Logged In: YES 
user_id=387057

thanks much.

----------------------------------------------------------------------

Comment By: Øyvind Harboe (gowinex)
Date: 2005-08-15 02:44

Message:
Logged In: YES 
user_id=486779

>Have you encountered this anywhere else? 

Yes, I believe it was during normal editing as I recall. 

> If so, could you *attach* the stack trace to this bug? thx.

I'll be on the lookout.


Øyvind

----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-08-13 21:16

Message:
Logged In: YES 
user_id=387057

Without finding the root cause I have worked around the
specific issue that cause the stack trace you pasted into
the bug. (will appear in 3.2.1).

Have you encountered this anywhere else? If so, could you
*attach* the stack trace to this bug? thx.

----------------------------------------------------------------------

Comment By: Geoffrey Longman (glongman)
Date: 2005-08-10 08:33

Message:
Logged In: YES 
user_id=387057

There is a bug in Eclipse 3.1 that causes these. I also get
them sometimes when I work with preference pages that have
nothing to do with Spindle.

Leaving open for now.

----------------------------------------------------------------------

Comment By: Øyvind Harboe (gowinex)
Date: 2005-08-09 05:18

Message:
Logged In: YES 
user_id=486779

When I restarted Eclipse the problem was gone.

I noticed when adding a new Tapestry page before putting up
the "New Tapestry Component" requester, the Spindle
plugin(?) was busy rebuilding "artifacts"(it went by pretty
fast).

Sorry I can't be more helpful.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459328&aid=1254837&group_id=50321


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf