[15.1] Index out of bounds Exception, when inserting a PI an
Posted: Tue Oct 15, 2013 6:31 pm
Hello,
Since Oxygen Author version 15.1 we get an java.lang.IllegalArgumentException: Index out of bounds.
This occurs, when I do add a certain PI inside an AuthorNode and then refresh the parent of the AuthorNode:
Here is the Stacktrace of the error:
The Error occurs, when I refresh the parent AuthorNode like this :
editorPage.refresh(authorNode.getParent());
In 15.0 this error did not occur.
Best regards,
Simon
Since Oxygen Author version 15.1 we get an java.lang.IllegalArgumentException: Index out of bounds.
This occurs, when I do add a certain PI inside an AuthorNode and then refresh the parent of the AuthorNode:
Code: Select all
private void adjustDataToAuthorNode(WSAuthorEditorPage editorPage, AuthorDocumentController documentController,
AuthorNode authorNode, String piValue){
StringBuilder taggingPathBuilder = new StringBuilder();
taggingPathBuilder.append("<?"); //$NON-NLS-1$
taggingPathBuilder.append(getPIName());
taggingPathBuilder.append(" "); //$NON-NLS-1$
taggingPathBuilder.append(piValue);
taggingPathBuilder.append(" ?>"); //$NON-NLS-1$
documentController.insertXMLFragment(taggingPathBuilder.toString(),
authorNode, AuthorConstants.POSITION_INSIDE_FIRST);
editorPage.refresh(authorNode.getParent());
}
Code: Select all
java.lang.IllegalArgumentException: Index out of bounds
at org.eclipse.swt.SWT.error(SWT.java:4263)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168)
at org.eclipse.swt.graphics.TextLayout.getLocation(TextLayout.java:2003)
at com.oxygenxml.editor.editors.xsd.view.c.c(Unknown Source)
at ro.sync.ecss.h.ac.ij(Unknown Source)
at ro.sync.ecss.h.u.ij(Unknown Source)
at ro.sync.ecss.h.mb.ij(Unknown Source)
at ro.sync.ecss.h.rb.ij(Unknown Source)
at ro.sync.ecss.h.e.ij(Unknown Source)
at ro.sync.ecss.h.e.ij(Unknown Source)
at ro.sync.ecss.h.e.ij(Unknown Source)
at ro.sync.ecss.h.e.ij(Unknown Source)
at ro.sync.ecss.h.nb.ij(Unknown Source)
at ro.sync.ecss.component.m.njf(Unknown Source)
at ro.sync.ecss.component.m.relayout(Unknown Source)
at ro.sync.ecss.component.m.invalidateBox(Unknown Source)
at ro.sync.ecss.component.m.jnf(Unknown Source)
at ro.sync.exml.workspace.b.e.b.b.b.refresh(Unknown Source)
at ro.sync.ecss.extensions.h.refresh(Unknown Source)
at de.kgucms.kgu.tps.client.tagging.viewer.dnd.oxygen.OxygenTagDropListener.adjustDataToAuthornNode(Unknown Source)
at de.kgucms.kgu.tps.client.tagging.viewer.dnd.oxygen.OxygenTagDropListener.dropFromEditor(OxygenTagDropListener.java:140)
at de.kgucms.kgu.tps.client.tagging.viewer.dnd.oxygen.OxygenTagDropListener.handleXmlTagDrop(OxygenTagDropListener.java:113)
at de.kgucms.kgu.tps.client.tagging.viewer.dnd.oxygen.OxygenTagDropListener.drop(OxygenTagDropListener.java:102)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
editorPage.refresh(authorNode.getParent());
In 15.0 this error did not occur.
Best regards,
Simon