[jbosstools-issues] [JBoss JIRA] (ERT-79) o.e.w.j.c.i.d.JSONPairImpl cannot be cast to o.e.w.j.c.i.d.JSONObjectImpl [EBZ#486606]

Fred Bricon (JIRA) issues at jboss.org
Thu Feb 4 11:24:00 EST 2016


     [ https://issues.jboss.org/browse/ERT-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Bricon updated ERT-79:
---------------------------
    Summary: o.e.w.j.c.i.d.JSONPairImpl cannot be cast to o.e.w.j.c.i.d.JSONObjectImpl [EBZ#486606]  (was: o.e.w.j.c.i.d.JSONPairImpl cannot be cast to o.e.w.j.c.i.d.JSONObjectImpl [EBZ#487168])


> o.e.w.j.c.i.d.JSONPairImpl cannot be cast to o.e.w.j.c.i.d.JSONObjectImpl [EBZ#486606]
> --------------------------------------------------------------------------------------
>
>                 Key: ERT-79
>                 URL: https://issues.jboss.org/browse/ERT-79
>             Project: Eclipse Release Train
>          Issue Type: Task
>          Components: WTP Source Editing
>            Reporter: Friendly Jira Robot
>              Labels: bzira, wst.json
>
> Created attachment 259553
> JSON content causing the error
> Whenever I type something in the JSON editor (content generated by openshift3/kubernetes, see attached foo.json file), the log fills with 
> !ENTRY org.eclipse.wst.json.core 4 4 2016-02-03 15:46:35.835
> !MESSAGE org.eclipse.wst.json.core.internal.document.JSONPairImpl cannot be cast to org.eclipse.wst.json.core.internal.document.JSONObjectImpl
> !STACK 0
> java.lang.ClassCastException: org.eclipse.wst.json.core.internal.document.JSONPairImpl cannot be cast to org.eclipse.wst.json.core.internal.document.JSONObjectImpl
> 	at org.eclipse.wst.json.core.internal.document.JSONModelParser.removeStructuredDocumentRegion(JSONModelParser.java:2500)
> 	at org.eclipse.wst.json.core.internal.document.JSONModelParser.changeStructuredDocumentRegion(JSONModelParser.java:552)
> 	at org.eclipse.wst.json.core.internal.document.JSONModelParser.changeRegion(JSONModelParser.java:354)
> 	at org.eclipse.wst.json.core.internal.document.JSONModelImpl.regionChanged(JSONModelImpl.java:602)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:542)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1180)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1964)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:141)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:2368)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:103)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:106)
> 	at org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:111)
> 	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1184)
> 	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210)
> 	at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:629)
> 	at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
> 	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7305)
> 	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:8156)
> 	at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2306)
> 	at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:7095)
> 	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5968)
> 	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5995)
> 	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5682)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1528)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1524)
> 	at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:496)
> 	at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:1060)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5784)
> 	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
> 	at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:68)
> 	at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:594)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list