Paste & keystroke exceptions with CFEclipse & other perspectives like SQL

72 views
Skip to first unread message

Alan Holden

unread,
Sep 1, 2011, 4:09:21 PM9/1/11
to cfeclip...@googlegroups.com
Am I the only one who gets Null Pointer Exception errors when pasting
- and occasionally just wacky editor behavior while typing (content
shuffles around, lines double-space downward, etc) - when using
CFEclipse and other perspectives?

My Eclipse is 3.5.2 and my CFEclipse is 1.4.4 - on Windows 7. There's
also WTP, Flash and CF Builder plugins in there, along with Subclipse
SVN; but I notice the problems predominately after I have opened a
database connection with the SQL Explorer 3.6.1 plugin. Thereafter,
CFEclipse seems to have problems keeping track in the editor.

Is it just me? Usually is...

--
Alan K Holden


denstar

unread,
Sep 5, 2011, 5:17:55 PM9/5/11
to cfeclip...@googlegroups.com
Hrm. I haven't seen that, myself. I wonder if it's a RAM issue?
Have you upped it from the default? If not, that'll help lots of
plugins, including ours.

:Denny

--
I have not had any serious non-academic job.
Amartya Sen

> --
> For more information on CFEclipse visit: cfeclipse.org
> For support, FAQ and tips and tricks visit: trac.cfeclipse.org
>
> You are subscribed to the Google Groups "CFEclipse Users" group.
> To post send email to: cfeclip...@googlegroups.com
> To unsubscribe send email to: cfeclipse-use...@googlegroups.com
> For more options, visit this group online:
> http://groups.google.com/group/cfeclipse-users?hl=en

Alan Holden

unread,
Sep 5, 2011, 6:52:21 PM9/5/11
to cfeclip...@googlegroups.com
I'll change -Xms40m to -Xms128m and see if things change. Thanks
Al

Dan G. Switzer, II

unread,
Sep 5, 2011, 8:08:35 PM9/5/11
to cfeclip...@googlegroups.com
I've seen the behavior occasionally. I have seen it in a while--probably since about the time I started shutting down Eclipse every night.

-Dan
> --
> For more information on CFEclipse visit: cfeclipse.org
> For support, FAQ and tips and tricks visit: trac.cfeclipse.org
>
> You are subscribed to the Google Groups "CFEclipse Users" group.
> To post send email to: cfeclip...@googlegroups.com
> To unsubscribe send email to: cfeclipse-use...@googlegroups.com
> For more options, visit this group online: http://groups.google.com/group/cfeclipse-users?hl=en
>

--
Dan G. Switzer, II

Alan Holden

unread,
Sep 15, 2011, 1:50:34 PM9/15/11
to cfeclip...@googlegroups.com
Just to circle back on this. I changed -Xms40m to -Xms128m, and
thought that I was good for a while.

But today - right after I opened the SQL Explorer perspective and looked
at the text of a stored procedure, I returned to the CFEclipse
perspective - pasted in about 200 lines of code into a 1400 line cfc -
and started to type again.

About 10 characters into my entry the screen stopped responding. About 7
second later all the lines of the file looked doublespaced, and some
sections of the text appeared to move about.

I can save the file, reopen it, and all looks good again. Lather rinse
repeat... (I shut down the machine every night)

This seems to reinforce my theory that there's something specific
between yours and SQL Explorer's that's at issue here.

No need for everyone to drop what they're doing and rush to my aid ;-]

I'm just documenting it, in case is has happened - or will happen - to
someone else.

Al

On 9/5/2011 2:17 PM, denstar wrote:

Alan Holden

unread,
Sep 15, 2011, 2:23:11 PM9/15/11
to cfeclip...@googlegroups.com
FYI: I also got a NullPointerException when saving the file.

Al

Lars

unread,
Sep 16, 2011, 3:19:08 AM9/16/11
to CFEclipse Users
This happens for me 2/3 times a day. Plugins: CFE and JSDK
Eclipse: 3.6.2
CFE 1.4.5

denstar

unread,
Sep 18, 2011, 4:53:07 AM9/18/11
to cfeclip...@googlegroups.com
On Fri, Sep 16, 2011 at 1:19 AM, Lars wrote:
> This happens for me 2/3 times a day.

Wow, that's too much!

I've noticed that if I don't have a clean shutdown, and then start
back up, and then work for a while, I can reproduce this. Usually
it's the Ant editor that seems to somehow contribute, but I dunno.

The stacktrace is unhelpful, as the thread is a GUI one, I guess, but
somewhere there's a getPointOffset that is triggering a null pointer
that is cascading into havoc and a forced shutdown. Which kind of
makes the cycle continue.

Maybe it's just perception, but maybe not, so give this a go: when it
happens, start CFE back up, let things refresh, and then shut it down
clean and restart.

If that does help, well, that'll at least help. :)

This could be many things, ranging from (most likely) something bad
we're doing when redrawing/parsing model updates, to some bit of
information that we're not providing, which we don't use but that
other editors do use (some editors do stuff to files that don't belong
to them, basically, while you're editing. Not intentionally, but
because of listeners and whatnot that they've subscribed to).

:den

--
It is also very engaging - and a delight - to go back to Bangladesh as
often as I can, which is not only my old home, but also where some of
my closest friends and collaborators live and work.
Amartya Sen

Hirons, Budd A

unread,
Sep 21, 2011, 2:57:56 PM9/21/11
to cfeclip...@googlegroups.com
OK, so this usually only happens to me in large files (>700 lines), and it usually formatting only, but occasionally it is null-pointer funtime.

Today it happened when I deleted a cffunction chunk of code and then try to save and also when I closed a start tag and a matching close tag is inserted, like <cffunction> for example.

Sometimes the editor will bork up and I will see things like extra folding indicators and lines of code will disappear. Usually at this point I save and close the file, and reopen and everything is fine-- it was the formatting going crazy I guess.

I got a null pointer exception on the delete, below are the error details for you,

Budd.

eclipse.buildId=
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

This is a continuation of log file C:\wamp\www\.metadata\.bak_0.log
Created Time: 2011-09-21 13:49:49.803


Error
Wed Sep 21 13:50:24 CDT 2011
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.NullPointerException
at org.cfeclipse.cfml.editors.pairs.CFMLPairMatcher.match(CFMLPairMatcher.java:98)
at org.cfeclipse.cfml.editors.decoration.MatchingCharacterPainter.paint(MatchingCharacterPainter.java:266)
at org.eclipse.jface.text.PaintManager.paint(PaintManager.java:298)
at org.eclipse.jface.text.PaintManager.selectionChanged(PaintManager.java:337)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2714)
at org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2693)
at org.eclipse.jface.text.TextViewer$4.widgetSelected(TextViewer.java:1818)
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:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.swt.custom.StyledText.sendSelectionEvent(StyledText.java:7486)
at org.eclipse.swt.custom.StyledText.clearSelection(StyledText.java:1706)
at org.eclipse.swt.custom.StyledText.setSelection(StyledText.java:8834)
at org.eclipse.swt.custom.StyledText.updateSelection(StyledText.java:9475)
at org.eclipse.swt.custom.StyledText.handleTextChanged(StyledText.java:6095)
at org.eclipse.swt.custom.StyledText$6.textChanged(StyledText.java:5522)
at org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanged(DefaultDocumentAdapter.java:347)
at org.eclipse.jface.text.DefaultDocumentAdapter.documentChanged(DefaultDocumentAdapter.java:291)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:735)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:712)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:697)
at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:762)
at org.eclipse.jface.text.projection.ProjectionDocument.internalAddMasterDocumentRange(ProjectionDocument.java:354)
at org.eclipse.jface.text.projection.ProjectionDocument.addMasterDocumentRange(ProjectionDocument.java:575)
at org.eclipse.jface.text.projection.ProjectionDocument.adaptProjectionToMasterChange(ProjectionDocument.java:688)
at org.eclipse.jface.text.projection.ProjectionDocument.masterDocumentAboutToBeChanged(ProjectionDocument.java:721)
at org.eclipse.jface.text.projection.ProjectionDocumentManager.fireDocumentEvent(ProjectionDocumentManager.java:121)
at org.eclipse.jface.text.projection.ProjectionDocumentManager.documentAboutToBeChanged(ProjectionDocumentManager.java:138)
at org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged(AbstractDocument.java:645)
at org.eclipse.jface.text.AbstractDocument.set(AbstractDocument.java:1194)
at org.eclipse.jface.text.AbstractDocument.set(AbstractDocument.java:1183)
at org.eclipse.ui.editors.text.FileDocumentProvider.handleElementContentChanged(FileDocumentProvider.java:846)
at org.eclipse.ui.editors.text.FileDocumentProvider$2.execute(FileDocumentProvider.java:274)
at org.eclipse.ui.editors.text.FileDocumentProvider$SafeChange.run(FileDocumentProvider.java:163)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop(EventLoopProgressMonitor.java:123)
at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.internalWorked(EventLoopProgressMonitor.java:90)
at org.eclipse.core.runtime.ProgressMonitorWrapper.internalWorked(ProgressMonitorWrapper.java:94)
at org.eclipse.core.runtime.SubProgressMonitor.internalWorked(SubProgressMonitor.java:155)
at org.eclipse.core.runtime.SubProgressMonitor.worked(SubProgressMonitor.java:181)
at org.eclipse.core.runtime.SubMonitor$RootInfo.worked(SubMonitor.java:284)
at org.eclipse.core.runtime.SubMonitor.done(SubMonitor.java:554)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1812)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:75)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:65)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.executeOperation(AbstractDocumentProvider.java:549)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.saveDocument(AbstractDocumentProvider.java:627)
at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:4946)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSave(AbstractTextEditor.java:4735)
at org.cfeclipse.cfml.editors.CFMLEditor.doSave(CFMLEditor.java:346)
at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:7067)
at org.eclipse.ui.Saveable.doSave(Saveable.java:214)
at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:346)
at org.eclipse.ui.internal.SaveableHelper$3.run(SaveableHelper.java:193)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:274)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2579)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:282)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:261)
at org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHelper.java:204)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:144)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1357)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3328)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3341)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1208)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1368)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4053)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3946)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4619)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2411)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3501)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

-----------------------------------
Budd Hirons Jr
Innovative Learning Center - Tulane University
504.314.2533

:den

--

Alan Holden

unread,
Sep 21, 2011, 7:06:43 PM9/21/11
to cfeclip...@googlegroups.com
Here's another quasi-related event that just happened:

I had SQL Explorer open, with an edit window open on a stored procedure.
Opened a cfc file 2480 lines long.
Copied a 100 line cffunction block from the middle and pasted it to the end.
Erased about 40 lines from the middle of the new cffunction and saved
the file.

When the save was completed, a 5 line block of commented-out code - that
was previously within another cfunction entirely (and probably
collapsed) - just magically appeared between two cffunction blocks.

No errors. It was as though CFEclipse just decided that this comment
block needed to be displayed elsewhere.
Close the file, open it up again, all better. But I'll bet that if I had
tried to keep editing that file, all hell would've broken loose.

+1 on Budd's comment too. Sometimes it seems as though some unfolding
happens by itself, and perhaps the editor looses track of the cursor
location at this point...*

Eclipse is 3.5.2
CFEclipse is 1.4.4
Windows 7
SQL Explorer 3.6.1 plugin

Al

* As a kid, I used to build editors and do collision detection using
PEEK and POKE commands on the display memory of my TRS-80; so therefore
I'm infinitely qualified to know whatever the hell is going on here,
right Denny?

Alan Holden

unread,
Sep 21, 2011, 7:18:33 PM9/21/11
to cfeclip...@googlegroups.com
!ENTRY org.eclipse.ui 4 4 2011-09-21 16:13:22.168
!MESSAGE "Cut" did not complete normally. Please see the log for more
information.

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:13:22.169
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jface.text.DefaultPositionUpdater.update(DefaultPositionUpdater.java:233)
at
org.eclipse.jface.text.AbstractDocument.updatePositions(AbstractDocument.java:1219)
at
org.eclipse.jface.text.AbstractDocument.updateDocumentStructures(AbstractDocument.java:683)
at
org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:759)
at
org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1157)
at
org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1176)
at
org.eclipse.text.edits.DeleteEdit.performDocumentUpdating(DeleteEdit.java:64)
at
org.eclipse.text.edits.TextEdit.traverseDocumentUpdating(TextEdit.java:917)
at
org.eclipse.text.edits.TextEditProcessor.executeDo(TextEditProcessor.java:194)
at
org.eclipse.text.edits.TextEdit.dispatchPerformEdits(TextEdit.java:739)
at
org.eclipse.text.edits.TextEditProcessor.performEdits(TextEditProcessor.java:156)
at org.eclipse.text.edits.TextEdit.apply(TextEdit.java:711)
at
org.eclipse.jface.internal.text.SelectionProcessor.doDelete(SelectionProcessor.java:641)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.deleteSelection(ProjectionViewer.java:1640)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.copyToClipboard(ProjectionViewer.java:1624)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1471)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:13:27.083
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)

Caused by: java.lang.NullPointerException
at
org.eclipse.jface.text.AbstractDocument.getOffset(AbstractDocument.java:526)
at
org.eclipse.jface.text.AbstractDocument.computeIndexInPositionList(AbstractDocument.java:500)
at
org.eclipse.jface.text.AbstractDocument.getStartingPositions(AbstractDocument.java:1772)
at
org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1702)
at
org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737)
at
org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.redraw(AnnotationRulerColumn.java:811)
at
org.eclipse.jface.text.source.AnnotationRulerColumn$6.run(AnnotationRulerColumn.java:798)


at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

... 22 more

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:13:27.171
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)

Caused by: java.lang.NullPointerException
at
org.eclipse.jface.text.AbstractDocument.getOffset(AbstractDocument.java:526)
at
org.eclipse.jface.text.AbstractDocument.computeIndexInPositionList(AbstractDocument.java:500)
at
org.eclipse.jface.text.AbstractDocument.getStartingPositions(AbstractDocument.java:1772)
at
org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1702)
at
org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737)
at
org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.redraw(AnnotationRulerColumn.java:811)
at
org.eclipse.jface.text.source.AnnotationRulerColumn$6.run(AnnotationRulerColumn.java:798)


at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

... 22 more

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:13:27.173
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)

Caused by: java.lang.NullPointerException
at
org.eclipse.jface.text.AbstractDocument.getOffset(AbstractDocument.java:526)
at
org.eclipse.jface.text.AbstractDocument.computeIndexInPositionList(AbstractDocument.java:500)
at
org.eclipse.jface.text.AbstractDocument.getStartingPositions(AbstractDocument.java:1772)
at
org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1702)
at
org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737)
at
org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.redraw(AnnotationRulerColumn.java:811)
at
org.eclipse.jface.text.source.AnnotationRulerColumn$6.run(AnnotationRulerColumn.java:798)


at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

... 22 more

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:13:27.177
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.IllegalStateException)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)

Caused by: java.lang.IllegalStateException
at
org.eclipse.jface.text.projection.ProjectionMapping.toImageLine(ProjectionMapping.java:480)
at
org.eclipse.jface.text.TextViewer.modelLine2WidgetLine(TextViewer.java:5237)
at
org.eclipse.jface.text.JFaceTextUtil.modelLineToWidgetLine(JFaceTextUtil.java:224)
at
org.eclipse.jface.internal.text.source.DiffPainter.paintLine(DiffPainter.java:220)
at
org.eclipse.jface.internal.text.source.DiffPainter.paint(DiffPainter.java:158)
at
org.eclipse.jface.text.source.LineNumberChangeRulerColumn.doPaint(LineNumberChangeRulerColumn.java:190)
at
org.eclipse.jface.text.source.LineNumberRulerColumn.doubleBufferPaint(LineNumberRulerColumn.java:692)
at
org.eclipse.jface.text.source.LineNumberRulerColumn.redraw(LineNumberRulerColumn.java:844)
at
org.eclipse.jface.text.source.LineNumberRulerColumn$1.run(LineNumberRulerColumn.java:411)


at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

... 22 more

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:13:27.178
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)

Caused by: java.lang.NullPointerException
at
org.eclipse.jface.text.AbstractDocument.getOffset(AbstractDocument.java:526)
at
org.eclipse.jface.text.AbstractDocument.computeIndexInPositionList(AbstractDocument.java:500)
at
org.eclipse.jface.text.AbstractDocument.getStartingPositions(AbstractDocument.java:1772)
at
org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1702)
at
org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737)
at
org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.redraw(AnnotationRulerColumn.java:811)
at
org.eclipse.jface.text.source.AnnotationRulerColumn$6.run(AnnotationRulerColumn.java:798)


at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

... 22 more

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:14:19.366
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jface.text.AbstractDocument.getOffset(AbstractDocument.java:526)
at
org.eclipse.jface.text.AbstractDocument.computeIndexInPositionList(AbstractDocument.java:500)
at
org.eclipse.jface.text.AbstractDocument.getStartingPositions(AbstractDocument.java:1772)
at
org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1702)
at
org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737)
at
org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.access$3(AnnotationRulerColumn.java:508)
at
org.eclipse.jface.text.source.AnnotationRulerColumn$1.paintControl(AnnotationRulerColumn.java:280)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217)


at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)

at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1425)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4001)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4632)

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:14:19.370
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalStateException
at
org.eclipse.jface.text.projection.ProjectionMapping.toImageLine(ProjectionMapping.java:480)
at
org.eclipse.jface.text.TextViewer.modelLine2WidgetLine(TextViewer.java:5237)
at
org.eclipse.jface.text.JFaceTextUtil.modelLineToWidgetLine(JFaceTextUtil.java:224)
at
org.eclipse.jface.internal.text.source.DiffPainter.paintLine(DiffPainter.java:220)
at
org.eclipse.jface.internal.text.source.DiffPainter.paint(DiffPainter.java:158)
at
org.eclipse.jface.text.source.LineNumberChangeRulerColumn.doPaint(LineNumberChangeRulerColumn.java:190)
at
org.eclipse.jface.text.source.LineNumberRulerColumn.doubleBufferPaint(LineNumberRulerColumn.java:692)
at
org.eclipse.jface.text.source.LineNumberRulerColumn.access$10(LineNumberRulerColumn.java:662)
at
org.eclipse.jface.text.source.LineNumberRulerColumn$5.paintControl(LineNumberRulerColumn.java:606)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217)


at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)

at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1425)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4001)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4632)

!ENTRY org.eclipse.ui 4 0 2011-09-21 16:14:19.371
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jface.text.AbstractDocument.getOffset(AbstractDocument.java:526)
at
org.eclipse.jface.text.AbstractDocument.computeIndexInPositionList(AbstractDocument.java:500)
at
org.eclipse.jface.text.AbstractDocument.getStartingPositions(AbstractDocument.java:1772)
at
org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1702)
at
org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737)
at
org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532)
at
org.eclipse.jface.text.source.AnnotationRulerColumn.access$3(AnnotationRulerColumn.java:508)
at
org.eclipse.jface.text.source.AnnotationRulerColumn$1.paintControl(AnnotationRulerColumn.java:280)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217)


at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)

at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1425)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4001)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4632)

Alan Holden

unread,
Sep 21, 2011, 10:04:04 PM9/21/11
to cfeclip...@googlegroups.com
FYI, I can close all projects and SQL connections, close down and
restart Eclipse, and CFE seems to work fine - as long as I do not start
working in another perspective (SQL Explorer in my case).

Al

On 9/21/2011 4:06 PM, Alan Holden wrote:

denstar

unread,
Sep 29, 2011, 12:02:38 AM9/29/11
to cfeclip...@googlegroups.com
I don't know if it's related, but I hit a spot where I was able to
repeatedly-ish reproduce a null pointer exception that would hang the
editor, and I *think* it's fixed, as I haven't been able to get it to
trigger again.

I pushed a build out (on dev) with this change, I'd recommend folks
having problems give it a shot to see if it improves anything. FWIW
it was related to the occurrence marking, so if you already had this
turned off you're probably seeing some /other/ error. :)

:Denny

--
The curriculum of the school did not neglect India's cultural,
analytical and scientific heritage, but was very involved also with
the rest of the world.
Amartya Sen

funaroma

unread,
Oct 14, 2011, 1:30:43 PM10/14/11
to CFEclipse Users
I joined up with this group specifically to try and solve this
problem. It seems to have gotten *worse* since I upgraded CFE.
(currently on Eclipse 3.6.2, CFEclipse (including MXUnit and
Frameworks) 1.4.4.201012220425).

I NEVER switch perspectives -- I'm ALWAYS in CFEclipse. I can close
eclipse (clean), restart, open a decent sized CFC file, and usually
within 15 minutes I'll start getting hangs, garbling of whatever was
entered, sometimes totally destroying edits prior to most recent save
to the point where I have to close without saving and reopen the
file. The NULL exception is often part of the experience. Before it
would happen once or twice a week, now it's more than 10 times per
hour... sometimes I have to reopen a file several times just to make
and complete a single edit.

I don't *THINK* i've turned on any "experimental features", but a
review of what those features might be and where to find them would be
helpful.

Also, I have no idea how to tweak Eclipse itself - i've seen mention
of " I'll change -Xms40m to -Xms128m and see if things change" and I
have no idea what that means or where to try it. I've just never
needed to before.

With most of my standard apps open on Windows 7, I have about 1.3GB
free RAM. There's a total of 4GB in the machine. It's not the fastest
machine by any means, but it should be able to handle this.

Help! I'm on a deadline and this problem is killing me! What do I
do? AHHH!!

Thanks for everything... I *DO* appreciate all the work that's gone
into this plugin, and don't take for granted for one moment that it's
free.

Jim Priest

unread,
Oct 14, 2011, 2:25:37 PM10/14/11
to cfeclip...@googlegroups.com
Do you have any other plugins installed?

For tweaking Eclipse - check out Mike Henke's blog:
http://henke.ws/post.cfm/easy-eclipse-performance-enhancements-with-ini

and or this article on the MXUnit blog:
http://blog.mxunit.org/2008/12/speeding-up-eclipse.html

I'd also think about a corrupt workspace... you can do a switch workspace, setup a few files there and see if you experience any issues.  If not it may be a workspace issues.  This may help:

http://stackoverflow.com/questions/950476/how-to-recover-corrupted-eclipse-workspace

Jim

Alan Holden

unread,
Oct 14, 2011, 3:00:49 PM10/14/11
to cfeclip...@googlegroups.com
There's a file in the Eclipse root directory called eclipse.ini

This is where I tweaked those settings in my attempts to fix this issue.

More memory seemed to help address the file size at which this starts to happen, but that's just anecdotal observation.

My Eclipse plugin is version 1.4.4.201012220425

I think Denny pushed out a newer one in an attempt to fix this, what version are you running?

Al

denstar

unread,
Oct 17, 2011, 2:46:32 AM10/17/11
to cfeclip...@googlegroups.com
On Fri, Oct 14, 2011 at 1:00 PM, Alan Holden wrote:
...

> I think Denny pushed out a newer one in an attempt to fix this, what version
> are you running?

I sure did! I'd had trouble reproducing the bug, but got to a spot
that made it happen almost every time.

I haven't run into it since the change, so my hopes are up there, but
that "almost" makes it hard to know for sure.

I've got to merge develop into master, and then I'll get another
"stable" build out as well (assuming I don't hear that the latest dev
build is worse). That's a bug that needs to be killed, even if
there's some unpolished new stuff in the next release. Obviously
we've been struggling a bit on the new moon cycle (ha!), tho we'll get
back there.

So, the current update is on cfeclipse.org/update-dev -- please give
it a whirl and holler if there's anything worse than the current
stable. :)

:Denny

--
Confucius was a humanist and an agnostic.
Hu Shih

funaroma

unread,
Oct 20, 2011, 1:35:05 PM10/20/11
to CFEclipse Users
so far so good here
Reply all
Reply to author
Forward
0 new messages