jankrause / idocit

Automatically exported from code.google.com/p/idocit
0 stars 0 forks source link

iDocIt! could not save documentation-texts ending with empty lines #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open the ebay Trading API example WSDL-file with iDocIt!
2. Navigate to the node "GetFeeback" in the TreeViewer.
3. Klick into the documentation-textfield on the right and navigate to the end 
of the text.
4. Enter two empty lines by pressing the RETURN-key.
5. Click on the PortType-node in the TreeViewer.
6. Save the changed file.

What is the expected output? What do you see instead?
iDocIt! should save the changed file and mark the editor as not dirty (by 
removing the "*" from its title). Instead of doing this, it shows a message box 
with the text "File can not be saved: String index out of range: 1438".

Original issue reported on code.google.com by krauseda...@web.de on 14 Apr 2011 at 7:23

GoogleCodeExporter commented 8 years ago
Estimation: 3 hours

Original comment by dirk.mei...@gmail.com on 27 Apr 2011 at 7:15

GoogleCodeExporter commented 8 years ago
I tried to reconstruct the issue, but I do not get the error by following the 
steps. Perhaps it is already solved by solving another issue.

Jan, please check yourself, if you still have this problem.

Original comment by dirk.mei...@gmail.com on 12 May 2011 at 6:49

GoogleCodeExporter commented 8 years ago
The problem remains. I followed the given instruction and got the described 
error. Did you use my Ebay-Example-WSDL-file to reproduce the problem?

Original comment by krauseda...@web.de on 17 May 2011 at 6:55

GoogleCodeExporter commented 8 years ago
This is the stacktrace from my console:

SCHWERWIEGEND: String index out of range: 1474
java.lang.StringIndexOutOfBoundsException: String index out of range: 1474
    at java.lang.String.charAt(String.java:694)
    at de.akra.idocit.wsdl.services.DocumentationGenerator.addTextAsNodes(DocumentationGenerator.java:206)
    at de.akra.idocit.wsdl.services.DocumentationGenerator.generateDocpartElement(DocumentationGenerator.java:143)
    at de.akra.idocit.wsdl.services.DocumentationGenerator.generateDocumentationElement(DocumentationGenerator.java:86)
    at de.akra.idocit.wsdl.services.WSDLInterfaceGenerator.updateOperationsDocumentations(WSDLInterfaceGenerator.java:133)
    at de.akra.idocit.wsdl.services.WSDLInterfaceGenerator.updateDocumentationInDefinition(WSDLInterfaceGenerator.java:107)
    at de.akra.idocit.wsdl.services.WSDLParser.write(WSDLParser.java:111)
    at de.akra.idocit.core.services.PersistenceService.writeInterface(PersistenceService.java:114)
    at de.akra.idocit.ui.components.DocumentationEditor.doSave(DocumentationEditor.java:79)
    at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
    at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277)
    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:2600)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:285)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:264)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1369)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3334)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3347)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
    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:468)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1524)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)
    at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)
    at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2841)
    at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
    at org.eclipse.swt.widgets.Tree.gtk_key_press_event(Tree.java:1977)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
    at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3485)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
    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:8168)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
    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:2229)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3159)
    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.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

Original comment by krauseda...@web.de on 17 May 2011 at 6:57

GoogleCodeExporter commented 8 years ago

Original comment by krauseda...@web.de on 1 Jun 2011 at 6:39

GoogleCodeExporter commented 8 years ago
Thanks for the stacktrace it has helped a lot. The problem was the different 
line separator of Mac. The error has not occurred under Windows.

Original comment by dirk.mei...@gmail.com on 20 Jun 2011 at 6:39