Eclipse and pydev doesn`t work anymore after reboot

Bug #94442 reported by bennym
2
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

I got Feisty and eclipse with pydev. Pydev is added on >window>preferences>pydev>interpreter-python.
When I now reboot and start eclipse again. I get the message
"Unable to create this part due to an internal error. Reason for the failure: Editor could not be initialized."

When I click on details:

java.nio.charset.IllegalCharsetNameException
   at java.nio.charset.Charset.checkName(libgcj.so.70)
   at java.nio.charset.Charset.charsetForName(libgcj.so.70)
   at java.nio.charset.Charset.isSupported(libgcj.so.70)
   at org.python.pydev.core.REF.getValidEncoding(REF.java:630)
   at org.python.pydev.core.REF.getPythonFileEncoding(REF.java:608)
   at org.python.pydev.core.REF.getPythonFileEncoding(REF.java:524)
   at org.python.pydev.editor.PyEdit.fixEncoding(PyEdit.java:519)
   at org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:471)
   at org.eclipse.ui.texteditor.AbstractTextEditor$17.run(AbstractTextEditor.java:2396)
   at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
   at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
   at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
   at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
   at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
   at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:2414)
   at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:2441)
   at org.python.pydev.editor.PyEdit.init(PyEdit.java:335)
   at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:840)
   at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:583)
   at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
   at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
   at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
   at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
   at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
   at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
   at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
   at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
   at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
   at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
   at org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
   at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
   at org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
   at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
   at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
   at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
   at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
   at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:820)
   at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:719)
   at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:680)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2593)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
   at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
   at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
   at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
   at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
   at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
   at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
   at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:125)
   at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:328)
   at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:679)
   at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:434)
   at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
   at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
   at org.eclipse.core.runtime.Platform.run(Platform.java:852)
   at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
   at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
   at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
   at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
   at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
   at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
   at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
   at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3166)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2842)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
   at java.lang.reflect.Method.invoke(libgcj.so.70)
   at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
   at org.eclipse.core.launcher.Main.run(Main.java:977)
   at org.eclipse.core.launcher.Main.main(Main.java:952)

Revision history for this message
Vladimír Lapáček (vil) wrote :

Can you please try running Eclipse on different workspace?

eclipse -data /new/workspace

I think that this should help. The problem for me seems to be some character that Java IO cannot cope with.

You can also try using other vm like

eclipse -vm /usr/lib/jvm/java-6-sun/bin/java

If you succeed, please let us know.

Revision history for this message
bennym (bmet) wrote :

Hi,

thanks for you answer.

Well, I know reinstalled Ubuntu Feisty. Then I installed the java jre 5 and the installed eclipse-pydev. Now it works fine!

On ubuntu packages it is sayd that Eclipse doesn't depend on jre5.
That maybe should be changed...

best regards and thanks for you answer!

Changed in eclipse:
status: Unconfirmed → Rejected
Revision history for this message
Scott Lewin (sclewin) wrote :

I also have the same problem with the same error. I tried using both the Jre 5 and 6 and both receive the same error. Without the ability to do Python, Eclipse is useless to me.

Revision history for this message
Seth Kriticos (seth-kriticos) wrote :

Had the same problem. Moving the workplace helped. I had to reset all the settings I did before and copy the project files back. Now I saved the ~/workspace/.metadata folder. Suppose the settings are stored there. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.