[jbosstools-issues] [JBoss JIRA] (JBIDE-19183) Constant AssertionFailedExceptions from FreeMarker Editor

Jacques Le Roux (JIRA) issues at jboss.org
Tue Apr 7 09:14:19 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056475#comment-13056475 ] 

Jacques Le Roux commented on JBIDE-19183:
-----------------------------------------

Using
Eclipse Luna
Plugin 1.4.1.Final-v20141209-0743-B10
I get
{code}
!ENTRY org.eclipse.ui 4 0 2015-04-07 14:33:39.977
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
    at org.eclipse.jface.text.Position.setLength(Position.java:185)
    at org.eclipse.jface.text.rules.FastPartitioner.computePartitioning(FastPartitioner.java:634)
    at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:1430)
    at org.eclipse.jface.text.TextUtilities.computePartitioning(TextUtilities.java:431)
    at org.eclipse.jface.text.presentation.PresentationReconciler.createPresentation(PresentationReconciler.java:451)
    at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:569)
    at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:567)
    at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:227)
    at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2825)
    at org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3496)
    at org.jboss.ide.eclipse.freemarker.editor.Editor.resetRange(Editor.java:282)
    at org.jboss.ide.eclipse.freemarker.editor.Editor.highlightRelatedRegions(Editor.java:245)
    at org.jboss.ide.eclipse.freemarker.editor.Editor.keyReleased(Editor.java:449)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:174)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1112)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108)
    at org.eclipse.swt.widgets.Widget.wmKeyUp(Widget.java:1931)
    at org.eclipse.swt.widgets.Control.WM_KEYUP(Control.java:4979)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4643)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    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:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
{code}

from https://svn.apache.org/repos/asf/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

> Constant AssertionFailedExceptions from FreeMarker Editor
> ---------------------------------------------------------
>
>                 Key: JBIDE-19183
>                 URL: https://issues.jboss.org/browse/JBIDE-19183
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: freemarker
>         Environment: Eclipse 4.4.1
> Linux
>            Reporter: Eric Sirianni
>
> I get constant "assertion failed" errors in the freemarker editor.  The error is associated with the following stack trace in my eclipse log:
> {noformat}
> !ENTRY org.eclipse.ui 4 0 2015-02-06 12:28:37.974
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
>         at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
>         at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
>         at org.eclipse.jface.text.Position.setLength(Position.java:185)
>         at org.eclipse.jface.text.rules.FastPartitioner.computePartitioning(FastPartitioner.java:634)
>         at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:1430)
>         at org.eclipse.jface.text.TextUtilities.computePartitioning(TextUtilities.java:431)
>         at org.eclipse.jface.text.presentation.PresentationReconciler.createPresentation(PresentationReconciler.java:451)
>         at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:569)
>         at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:567)
>         at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:227)
>         at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2830)
>         at org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3501)
>         at org.jboss.ide.eclipse.freemarker.editor.Editor.resetRange(Editor.java:282)
>         at org.jboss.ide.eclipse.freemarker.editor.Editor.highlightRelatedRegions(Editor.java:257)
>         at org.jboss.ide.eclipse.freemarker.editor.Editor.handleCursorPositionChanged(Editor.java:174)
>         at org.jboss.ide.eclipse.freemarker.editor.Editor.mouseUp(Editor.java:200)
>         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
>         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>         at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
>         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
>         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
> {noformat}
> This happens across multiple FreeMarker templates, all with very basic syntax.
> I am using version 1.4.1.Final of the FreeMarker plugin.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list