java.net.MalformedURLException: unknown protocol: commons-httpclient.jar

Coderanch | William Barnes | 1 decade ago
  1. 0

    Running with jar files in jar file.

    Coderanch | 1 decade ago | William Barnes
    java.net.MalformedURLException: unknown protocol: commons-httpclient.jar
  2. 0

    This IS NOT an issue in 4.3.0 GA. Update: All HDFS steps are not affected. This seems to be isolated to the HDFS Browser. To reproduce: - From Spoon's main menu do a "File/Open URL" - Choose "HDFS:" from the "Loon In" drop down. - Enter "bad-qa-apahad" in the "Server" field. - Enter "54310" in the "Port" field. No error is displayed via a dialog but the Spoon console will have: org.apache.commons.vfs.FileSystemException: Badly formed URI "hdfs://bad-qa-apahad:54310". at org.apache.commons.vfs.provider.url.UrlFileProvider.findFile(Unknown Source) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Unknown Source) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Unknown Source) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Unknown Source) at org.pentaho.di.ui.vfs.hadoopvfsfilechooserdialog.HadoopVfsFileChooserDialog$3.widgetSelected(HadoopVfsFileChooserDialog.java:228) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:414) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:336) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:328) at org.pentaho.di.ui.spoon.Spoon.openFileVFSFile(Spoon.java:3964) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:85) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1221) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8298) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.net.MalformedURLException: unknown protocol: hdfs at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) ... 40 more ERROR 10-10 09:39:47,558 - Error invoking method: spoon.openFileVFSFile() java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:85) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1221) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8298) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.lang.NullPointerException at org.pentaho.vfs.ui.VfsFileChooserDialog.setSelectedFile(VfsFileChooserDialog.java:978) at org.pentaho.di.ui.vfs.hadoopvfsfilechooserdialog.HadoopVfsFileChooserDialog$3.widgetSelected(HadoopVfsFileChooserDialog.java:233) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:414) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:336) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:328) at org.pentaho.di.ui.spoon.Spoon.openFileVFSFile(Spoon.java:3964) ... 26 more ERROR 10-10 09:39:47,560 - Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: spoon.openFileVFSFile() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:333) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:85) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1221) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8298) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) ... 21 more Caused by: java.lang.NullPointerException at org.pentaho.vfs.ui.VfsFileChooserDialog.setSelectedFile(VfsFileChooserDialog.java:978) at org.pentaho.di.ui.vfs.hadoopvfsfilechooserdialog.HadoopVfsFileChooserDialog$3.widgetSelected(HadoopVfsFileChooserDialog.java:233) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:414) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:336) at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:328) at org.pentaho.di.ui.spoon.Spoon.openFileVFSFile(Spoon.java:3964) ... 26 more

    Pentaho BI Platform Tracking | 4 years ago | Sean Flatley
    org.apache.commons.vfs.FileSystemException: Badly formed URI "hdfs://bad-qa-apahad:54310".
  3. 0

    VSzA techblog

    vsza.hu | 3 weeks ago
    java.lang.IllegalArgumentException: Malformed URL: javascript:mo_search('444344','ATMEL','ATATMEGA168P');
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    2014-J2EE开发工作中遇到的异常问题及解决方法总结 —核心网络

    netfoucs.com | 12 months ago
    java.net.MalformedURLException: unknown protocol: c
  6. 0

    View topic - Webstart funktioniert nicht • GeoGebra User Forum

    geogebra.org | 1 year ago
    java.net.MalformedURLException: unknown protocol: socket

    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.net.MalformedURLException

      unknown protocol: commons-httpclient.jar

      at java.net.URL.<init>()
    2. Java RT
      ClassLoader.loadClass
      1. java.net.URL.<init>(URL.java:611)
      2. java.net.URL.<init>(URL.java:501)
      3. sun.misc.URLClassPath$JarLoader.parseClassPath(URLClassPath.java:894)
      4. sun.misc.URLClassPath$JarLoader.getClassPath(URLClassPath.java:868)
      5. sun.misc.URLClassPath.getLoader(URLClassPath.java:340)
      6. sun.misc.URLClassPath.getResource(URLClassPath.java:194)
      7. java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:842)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(URLClassLoader.java:369)
      10. java.lang.ClassLoader.loadClass(ClassLoader.java:562)
      11. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:438)
      12. java.lang.ClassLoader.loadClass(ClassLoader.java:494)
      12 frames