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

pydev | *anonymous | 10 years ago
  1. 0

    Creating new PyDev project hangs Eclipse

    pydev | 10 years ago | *anonymous
    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

    Debugging problems

    pydev | 8 years ago | sveinh
    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:477)
      4 frames
    3. org.python.pydev
      REF.getDocFromFile
      1. org.python.pydev.core.REF.getValidEncoding(REF.java:639)
      2. org.python.pydev.core.REF.getPythonFileEncoding(REF.java:617)
      3. org.python.pydev.core.REF.getPythonFileEncoding(REF.java:544)
      4. org.python.pydev.core.REF.getPythonDocFromFile(REF.java:461)
      5. org.python.pydev.core.REF.getDocFromFile(REF.java:443)
      6. org.python.pydev.core.REF.getDocFromFile(REF.java:432)
      6 frames
    4. com.python.pydev
      InterpreterObserver.notifyDefaultPythonpathRestored
      1. com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver.restoreInfoForModuleManager(InterpreterObserver.java:154)
      2. com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver.notifyDefaultPythonpathRestored(InterpreterObserver.java:56)
      2 frames
    5. org.python.pydev
      AbstractInterpreterPreferencesPage$1.run
      1. org.python.pydev.ui.interpreters.AbstractInterpreterManager.restorePythopathFor(AbstractInterpreterManager.java:429)
      2. org.python.pydev.ui.pythonpathconf.PythonInterpreterPreferencesPage.doRestore(PythonInterpreterPreferencesPage.java:42)
      3. org.python.pydev.ui.pythonpathconf.AbstractInterpreterPreferencesPage$1.run(AbstractInterpreterPreferencesPage.java:171)
      3 frames
    6. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
      1 frame