Open Sourcefile failed

Help
Georg
2014-06-26
2014-06-27
  • Georg
    Georg
    2014-06-26

    Hello,

    i recently installed the next gen editor.
    i would like to use it for developing with an iseries v7.1

    A connection is configurated, and the libraries are displayed correctly.
    When opening a RPGLE source file a blank editor window appears.

    I checked the logs and found following stacktrace.

    !ENTRY de.rpgng 4 4 2014-06-26 14:24:10.303
    !MESSAGE Could not read data from member /QSYS.LIB/ISSWSS.LIB/QRPGLESRC.FILE/WSSREU3C.MBR.
    !STACK 0
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at com.ibm.as400.access.DataStream.readFromStream(DataStream.java:50)
    at com.ibm.as400.access.DataStream.readFromStream(DataStream.java:75)
    at com.ibm.as400.access.DDMEXCSATReplyDataStream.read(DDMEXCSATReplyDataStream.java:39)
    at com.ibm.as400.access.ClassDecoupler.connectDDMPhase1(ClassDecoupler.java:56)
    at com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.java:958)
    at com.ibm.as400.access.AS400FileImplRemote.connect(AS400FileImplRemote.java:178)
    at com.ibm.as400.access.AS400FileImplRemote.execute(AS400FileImplRemote.java:524)
    at com.ibm.as400.access.AS400FileRecordDescriptionImplRemote.retrieveRecordFormat(AS400FileRecordDescriptionImplRemote.java:1136)
    at com.ibm.as400.access.AS400FileImplBase.setRecordFormat(AS400FileImplBase.java:775)
    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 com.ibm.as400.access.AS400FileImplBase.invoke(AS400FileImplBase.java:373)
    at com.ibm.as400.access.AS400FileImplBase.doItRecordFormat(AS400FileImplBase.java:277)
    at com.ibm.as400.access.AS400File.setRecordFormat(AS400File.java:2282)
    at com.ibm.as400.access.AS400File.setRecordFormat(AS400File.java:2252)
    at de.rpgng.editor.rpg.SourceStorage.getContents(SourceStorage.java:137)
    at de.rpgng.editor.rpg.SourceDocumentProvider.createDocument(SourceDocumentProvider.java:58)
    at org.eclipse.ui.texteditor.AbstractDocumentProvider.createElementInfo(AbstractDocumentProvider.java:331)
    at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:398)
    at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4135)
    at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:203)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1413)
    at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3116)
    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.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3134)
    at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3161)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:238)
    at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:319)
    at de.rpgng.editor.ILEEditor.addPages(ILEEditor.java:30)
    at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:357)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2854)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
    at de.rpgng.editor.rpg.OpenSourceAction.run(OpenSourceAction.java:100)
    at de.rpgng.editor.action.DefaultOpenAction.run(DefaultOpenAction.java:54)
    at de.rpgng.explorer.DefaultDoubleClickListener.doubleClick(DefaultDoubleClickListener.java:42)
    at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:821)
    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.StructuredViewer.fireDoubleClick(StructuredViewer.java:819)
    at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1419)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1195)
    at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
    at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
    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.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    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 de.rpgng.Application.start(Application.java:39)
    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)

    Any help is welcome

    Thank you

     
  • Mihael Schmidt
    Mihael Schmidt
    2014-06-26

    Hi,

    could you please check if DDM is correctly configured and you can get a data connection to your server.

    http://www-01.ibm.com/support/docview.wss?uid=nas8N1019667

    Check your Database Access job (as-database).

    You should be able to establish a telnet connection to that service.

    telnet yourserver 8471

    Hope that helps.

     
  • Georg
    Georg
    2014-06-27

    Hi,

    thank you for your quick answer.
    Establishing a connection from my pc to the iseries works fine and the System i Navigator is also working fine (as far as this tool can work fine).

    What should the output for a telnet session to the port 8471 look like, i'm not getting an error, but also no content from the iseries is displayed, if i enter some characters the session quits, is this abnormal?

    Thank you for your hint.

     
  • Mihael Schmidt
    Mihael Schmidt
    2014-06-27

    Telnet DDM Database Service connection: You need just to be able to establish a connection to that host+port. You don't need to enter any character. If you get something like

    telnet: Unable to connect to remote host: Connection refused

    then your DDM service would be not configured as expected or not started. But that doesn't seem to be the case.

    Is the server in the same LAN? Or do you work remotely (from another office or from home). It is a bit weird that you get a socket connection reset. Smells like a network problem (though I am not sure).

    Do you also have WDSC or RDP on your computer. These two (probably) also use the same lib (Java Toolbox for IBM i / JTOpen) for accessing the data on the server. If they can open a source member so should the editor.

     
    Last edit: Mihael Schmidt 2014-06-27