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

pydev | sveinh | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 1 decade 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 | 1 decade 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 | 1 decade ago | *anonymous
    java.nio.charset.IllegalCharsetNameException: utf-8;
  6. 0

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

    GitHub | 3 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
      AbstractDebugTarget.breakpointAdded
      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:777)
      4. org.python.pydev.core.REF.getCustomReturnFromFile(REF.java:652)
      5. org.python.pydev.core.REF.getDocFromFile(REF.java:612)
      6. org.python.pydev.core.REF.getDocFromFile(REF.java:554)
      7. org.python.pydev.editor.codecompletion.revisited.modules.AbstractModule.createModule(AbstractModule.java:235)
      8. org.python.pydev.editor.codecompletion.revisited.ModulesManager.getModule(ModulesManager.java:498)
      9. org.python.pydev.editor.codecompletion.revisited.ModulesManager.getModule(ModulesManager.java:410)
      10. org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getModuleInDirectManager(ProjectModulesManager.java:317)
      11. org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getModuleAndRelatedModulesManager(ProjectModulesManager.java:290)
      12. org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getModule(ProjectModulesManager.java:257)
      13. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getModule(AbstractASTManager.java:344)
      14. org.python.pydev.debug.model.PyBreakpoint.getFunctionName(PyBreakpoint.java:192)
      15. org.python.pydev.debug.model.AbstractDebugTarget.breakpointAdded(AbstractDebugTarget.java:259)
      15 frames
    4. Debug Core
      BreakpointManager$BreakpointNotifier.run
      1. org.eclipse.debug.internal.core.BreakpointManager$BreakpointNotifier.run(BreakpointManager.java:876)
      1 frame
    5. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      1 frame
    6. Debug Core
      BreakpointManager.addBreakpoint
      1. org.eclipse.debug.internal.core.BreakpointManager$BreakpointNotifier.notify(BreakpointManager.java:902)
      2. org.eclipse.debug.internal.core.BreakpointManager.fireUpdate(BreakpointManager.java:816)
      3. org.eclipse.debug.internal.core.BreakpointManager.addBreakpoints(BreakpointManager.java:535)
      4. org.eclipse.debug.internal.core.BreakpointManager.addBreakpoints(BreakpointManager.java:505)
      5. org.eclipse.debug.internal.core.BreakpointManager.addBreakpoint(BreakpointManager.java:498)
      5 frames
    7. org.python.pydev
      BreakpointRulerAction$1.run
      1. org.python.pydev.debug.ui.actions.BreakpointRulerAction$1.run(BreakpointRulerAction.java:126)
      1 frame
    8. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      2. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
      2 frames
    9. org.python.pydev
      BreakpointRulerAction.run
      1. org.python.pydev.debug.ui.actions.BreakpointRulerAction.addMarker(BreakpointRulerAction.java:130)
      2. org.python.pydev.debug.ui.actions.BreakpointRulerAction.run(BreakpointRulerAction.java:73)
      2 frames
    10. JFace
      Action.runWithEvent
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      1 frame
    11. Text Editor Framework
      AbstractRulerActionDelegate.runWithEvent
      1. org.eclipse.ui.texteditor.AbstractRulerActionDelegate.runWithEvent(AbstractRulerActionDelegate.java:113)
      1 frame
    12. Eclipse UI
      PluginAction.runWithEvent
      1. org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
      1 frame
    13. JFace
      ActionContributionItem$5.handleEvent
      1. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
      2. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
      3. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      3 frames
    14. 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
    15. 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
    16. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
      1 frame
    17. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
      1 frame
    18. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    19. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      1 frame
    20. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
      1 frame
    21. 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
    22. 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
    23. 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