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

Appcelerator JIRA | tinti | 10 years ago
  1. 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;
  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

    Debugging problems

    pydev | 8 years ago | sveinh
    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(Unknown Source)
      2. java.nio.charset.Charset.lookup2(Unknown Source)
      3. java.nio.charset.Charset.lookup(Unknown Source)
      4. java.nio.charset.Charset.isSupported(Unknown Source)
      4 frames
    3. org.python.pydev
      PyEdit.doSetInput
      1. org.python.pydev.core.REF.getValidEncoding(REF.java:627)
      2. org.python.pydev.core.REF.getPythonFileEncoding(REF.java:605)
      3. org.python.pydev.core.REF.getPythonFileEncoding(REF.java:521)
      4. org.python.pydev.editor.PyEdit.fixEncoding(PyEdit.java:520)
      5. org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:472)
      5 frames
    4. Text Editor Framework
      AbstractTextEditor$17.run
      1. org.eclipse.ui.texteditor.AbstractTextEditor$17.run(AbstractTextEditor.java:2396)
      1 frame
    5. JFace
      ApplicationWindow$1.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
      3. org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
      3 frames
    6. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      1 frame
    7. JFace
      ApplicationWindow.run
      1. org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
      1 frame
    8. Eclipse UI
      WorkbenchWindow.run
      1. org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
      1 frame
    9. Text Editor Framework
      AbstractTextEditor.init
      1. org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:2414)
      2. org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:2441)
      2 frames
    10. org.python.pydev
      PyEdit.init
      1. org.python.pydev.editor.PyEdit.init(PyEdit.java:335)
      1 frame
    11. Eclipse UI
      WorkbenchPage$9.run
      1. org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:840)
      2. org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:583)
      3. org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
      4. org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
      5. org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
      6. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
      7. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
      8. org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
      9. org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
      9 frames
    12. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      1 frame
    13. Eclipse UI
      WorkbenchPage.openEditor
      1. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
      1 frame
    14. Eclipse UI
      OpenWithMenu$2.handleEvent
      1. org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:288)
      2. org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:280)
      3. org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:184)
      3 frames
    15. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
      4 frames
    16. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
      3. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
      3 frames
    17. Eclipse UI
      IDEApplication.run
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      2. org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
      2 frames
    18. Eclipse Core
      PlatformActivator$1.run
      1. org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
      1 frame
    19. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
      4 frames
    20. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    21. Equinox
      Main.main
      1. org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
      2. org.eclipse.core.launcher.Main.basicRun(Main.java:280)
      3. org.eclipse.core.launcher.Main.run(Main.java:977)
      4. org.eclipse.core.launcher.Main.main(Main.java:952)
      4 frames