java.nio.charset.IllegalCharsetNameException: utf-8;

pydev | sveinh | 8 years ago
  1. 0

    Debugging problems

    pydev | 8 years ago | sveinh
    java.nio.charset.IllegalCharsetNameException: utf-8;
  2. 0

    It looks like when my script starts like: # -*- coding: utf-8; -*- # import logging . . . then pydev editor is reporting the following error: Unable to create this part due to an internal error. Reason for the failure: Editor could not be initialized. java.nio.charset.IllegalCharsetNameException: utf-8; at java.nio.charset.Charset.checkName(Unknown Source) at java.nio.charset.Charset.lookup2(Unknown Source) at java.nio.charset.Charset.lookup(Unknown Source) at java.nio.charset.Charset.isSupported(Unknown Source) at org.python.pydev.core.REF.getValidEncoding(REF.java:627) at org.python.pydev.core.REF.getPythonFileEncoding(REF.java:605) at org.python.pydev.core.REF.getPythonFileEncoding(REF.java:521) at org.python.pydev.editor.PyEdit.fixEncoding(PyEdit.java:520) at org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:472) 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.EditorReference.getEditor(EditorReference.java:214) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595) 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.actions.OpenWithMenu.openEditor(OpenWithMenu.java:288) at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:280) at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:184) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) 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 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.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)

    Appcelerator JIRA | 10 years ago | tinti
    java.nio.charset.IllegalCharsetNameException: utf-8;
  3. 0

    It looks like when my script starts like: # -*- coding: utf-8; -*- # import logging . . . then pydev editor is reporting the following error: Unable to create this part due to an internal error. Reason for the failure: Editor could not be initialized. java.nio.charset.IllegalCharsetNameException: utf-8; at java.nio.charset.Charset.checkName(Unknown Source) at java.nio.charset.Charset.lookup2(Unknown Source) at java.nio.charset.Charset.lookup(Unknown Source) at java.nio.charset.Charset.isSupported(Unknown Source) at org.python.pydev.core.REF.getValidEncoding(REF.java:627) at org.python.pydev.core.REF.getPythonFileEncoding(REF.java:605) at org.python.pydev.core.REF.getPythonFileEncoding(REF.java:521) at org.python.pydev.editor.PyEdit.fixEncoding(PyEdit.java:520) at org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:472) 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.EditorReference.getEditor(EditorReference.java:214) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595) 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.actions.OpenWithMenu.openEditor(OpenWithMenu.java:288) at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:280) at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:184) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) 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 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.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)

    Appcelerator JIRA | 10 years ago | tinti
    java.nio.charset.IllegalCharsetNameException: utf-8;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Creating new PyDev project hangs Eclipse

    pydev | 10 years ago | *anonymous
    java.nio.charset.IllegalCharsetNameException: utf-8;
  6. 0

    java.nio.charset.IllegalCharsetNameException: UTF-8,gb2312

    GitHub | 2 years ago | liangyangtao
    java.nio.charset.IllegalCharsetNameException: UTF-8,gb2312

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.nio.charset.IllegalCharsetNameException

      utf-8;

      at java.nio.charset.Charset.checkName()
    2. Java RT
      Charset.isSupported
      1. java.nio.charset.Charset.checkName(Charset.java:285)
      2. java.nio.charset.Charset.lookup2(Charset.java:459)
      3. java.nio.charset.Charset.lookup(Charset.java:438)
      4. java.nio.charset.Charset.isSupported(Charset.java:480)
      4 frames
    3. org.python.pydev
      PyEdit.doSetInput
      1. org.python.pydev.core.REF.getValidEncoding(REF.java:878)
      2. org.python.pydev.core.REF.getPythonFileEncoding(REF.java:853)
      3. org.python.pydev.core.REF.getPythonFileEncoding(REF.java:766)
      4. org.python.pydev.editor.PyEdit.fixEncoding(PyEdit.java:673)
      5. org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:587)
      5 frames
    4. Text Editor Framework
      AbstractTextEditor$19.run
      1. org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3026)
      1 frame
    5. JFace
      ApplicationWindow$1.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:458)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
      3. org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
      3 frames
    6. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    7. JFace
      ApplicationWindow.run
      1. org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
      1 frame
    8. Eclipse UI
      WorkbenchWindow.run
      1. org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2487)
      1 frame
    9. Text Editor Framework
      AbstractTextEditor.init
      1. org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3044)
      2. org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3071)
      2 frames
    10. org.python.pydev
      PyEdit.init
      1. org.python.pydev.editor.PyEdit.init(PyEdit.java:475)
      1 frame
    11. Eclipse UI
      WorkbenchPage$10.run
      1. org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
      2. org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
      3. org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
      4. org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
      5. org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
      6. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
      7. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
      8. org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
      9. org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
      9 frames
    12. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    13. Eclipse UI
      WorkbenchPage.openEditor
      1. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
      2. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
      3. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
      3 frames
    14. Eclipse UI
      IDE.openEditor
      1. org.eclipse.ui.ide.IDE.openEditor(IDE.java:678)
      1 frame
    15. org.python.pydev
      PyOpenPythonFileAction.run
      1. org.python.pydev.navigator.actions.PyOpenResourceAction.openFiles(PyOpenResourceAction.java:33)
      2. org.python.pydev.navigator.actions.PyOpenPythonFileAction.run(PyOpenPythonFileAction.java:70)
      2 frames
    16. Eclipse UI
      RetargetAction.run
      1. org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
      1 frame
    17. Common Navigator View
      CommonNavigatorManager$3.open
      1. org.eclipse.ui.internal.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:184)
      1 frame
    18. JFace
      StructuredViewer$2.run
      1. org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
      1 frame
    19. Eclipse Core
      Platform.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      2. org.eclipse.core.runtime.Platform.run(Platform.java:880)
      2 frames
    20. Eclipse UI
      JFaceUtil$1.run
      1. org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
      1 frame
    21. JFace
      StructuredViewer.handleOpen
      1. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      2. org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
      3. org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
      3 frames
    22. Common Navigator View
      CommonViewer.handleOpen
      1. org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:372)
      1 frame
    23. JFace
      OpenStrategy$1.handleEvent
      1. org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
      2. org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
      3. org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
      4. org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
      4 frames
    24. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
      4 frames
    25. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
      4. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
      4 frames
    26. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
      1 frame
    27. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
      1 frame
    28. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    29. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      1 frame
    30. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
      1 frame
    31. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    32. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    33. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1236)
      3 frames