Menu

#42 "File > Open File..." with class files

open-accepted
None
5
2009-11-15
2005-09-28
No

Opening a class file with "File >Open File..." doesn't
automatically decompile the class.

java.lang.NullPointerException
at
org.eclipse.jdt.internal.core.BinaryType.sourceFileName(BinaryType.java:875)
at
org.eclipse.jdt.internal.core.SourceMapper.mapSource(SourceMapper.java:1163)
at
org.eclipse.jdt.internal.core.SourceMapper.mapSource(SourceMapper.java:1101)
at
jadclipse.JadclipseSourceMapper.mapSource(JadclipseSourceMapper.java:206)
at
jadclipse.JadclipseClassFileEditor.doOpenBuffer(JadclipseClassFileEditor.java:121)
at
jadclipse.JadclipseClassFileEditor.doSetInput(JadclipseClassFileEditor.java:68)
at
jadclipse.JadclipseActionBarContributor.setActiveEditor(JadclipseActionBarContributor.java:87)

Discussion

  • DerManiac

    DerManiac - 2005-09-29

    Logged In: YES
    user_id=1352347

    Well.. got the same problem.. but for me it doesn't even
    work in Navigator view, by double clicking on it..

    But... i think this is no Jadclipse problem, because a have
    the completely same problem with the Jode decompiler plugin
    for eclipse...

     
  • DerManiac

    DerManiac - 2005-09-29

    Logged In: YES
    user_id=1352347

    Wait a sec... no its not the same error..
    when i use Open File i get the same error like you,

    but from the navigator view i get a source not found error..
    But it IS the jadclipse editor who is telling me this...

     
  • Johann Gyger

    Johann Gyger - 2005-10-25

    Logged In: YES
    user_id=7927

    Depends on https://bugs.eclipse.org/bugs/show_bug.cgi?id=70347

     
  • VijayW

    VijayW - 2006-11-06

    Logged In: YES
    user_id=1638478

    I am using Eclipse 3.2 M2.

    After setting everything (plugin and jad.exe), when double
    clicked a class file,
    i get an error from eclipse, saying:

    An Error has occured when activating this view.

    Is this a problme from Eclipse or from Jad?

     
  • Johann Gyger

    Johann Gyger - 2009-11-15

    This is still an issue, even with v3.4:

    org.eclipse.core.runtime.CoreException: The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
    at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.doSetInput(ClassFileEditor.java:642)
    at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3115)
    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:3133)
    at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3160)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:644)
    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.EditorReference.getEditor(EditorReference.java:286)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
    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 org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1151)
    at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
    at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
    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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    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(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:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

     
  • Johann Gyger

    Johann Gyger - 2009-11-15
    • status: open --> open-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB