java.net.MalformedURLException: For input string: "9002localhost:9002"

Mirth Project | Nick Rupley | 3 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

    If your HTTP Listener received a proxied request and the entire target URL is specified in the URI section of the method line, the receiver will fail: {code}[2014-06-12 14:18:48,531] ERROR (com.mirth.connect.connectors.http.HttpMessageConverter:84): Error converting HTTP request. java.net.MalformedURLException: For input string: "9002localhost:9002" at java.net.URL.<init>(URL.java:619) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at com.mirth.connect.connectors.http.HttpMessageConverter.httpRequestToXml(HttpMessageConverter.java:42) at com.mirth.connect.connectors.http.HttpMessageAdapter.setMessage(HttpMessageAdapter.java:38) at com.mirth.connect.connectors.http.HttpMessageAdapter.<init>(HttpMessageAdapter.java:19) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:271) at org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:278) at org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:270) at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:149) at com.mirth.connect.connectors.http.HttpMessageReceiver.processData(HttpMessageReceiver.java:182) at com.mirth.connect.connectors.http.HttpMessageReceiver.access$400(HttpMessageReceiver.java:49) at com.mirth.connect.connectors.http.HttpMessageReceiver$RequestHandler.handle(HttpMessageReceiver.java:67) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:744)Caused by: java.lang.NumberFormatException: For input string: "9002localhost:9002" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:217) at java.net.URL.<init>(URL.java:614) ... 30 more{code}

    Mirth Project | 3 years ago | Nick Rupley
    java.net.MalformedURLException: For input string: "9002localhost:9002"
  2. 0

    If your HTTP Listener received a proxied request and the entire target URL is specified in the URI section of the method line, the receiver will fail: {code}[2014-06-12 14:18:48,531] ERROR (com.mirth.connect.connectors.http.HttpMessageConverter:84): Error converting HTTP request. java.net.MalformedURLException: For input string: "9002localhost:9002" at java.net.URL.<init>(URL.java:619) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at com.mirth.connect.connectors.http.HttpMessageConverter.httpRequestToXml(HttpMessageConverter.java:42) at com.mirth.connect.connectors.http.HttpMessageAdapter.setMessage(HttpMessageAdapter.java:38) at com.mirth.connect.connectors.http.HttpMessageAdapter.<init>(HttpMessageAdapter.java:19) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:271) at org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:278) at org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:270) at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:149) at com.mirth.connect.connectors.http.HttpMessageReceiver.processData(HttpMessageReceiver.java:182) at com.mirth.connect.connectors.http.HttpMessageReceiver.access$400(HttpMessageReceiver.java:49) at com.mirth.connect.connectors.http.HttpMessageReceiver$RequestHandler.handle(HttpMessageReceiver.java:67) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:744)Caused by: java.lang.NumberFormatException: For input string: "9002localhost:9002" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:217) at java.net.URL.<init>(URL.java:614) ... 30 more{code}

    Mirth Project | 3 years ago | Nick Rupley
    java.net.MalformedURLException: For input string: "9002localhost:9002"
  3. 0

    Unable to write to Text File Exist in FTP server

    Stack Overflow | 3 years ago
    java.net.MalformedURLException: For input string: "g@1234@ftp.xyz.com"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 43#66386672

    GitHub | 2 years ago | tleyden
    java.net.MalformedURLException: For input string: "51773_session"
  6. 0

    Exception in thread "main" java.net.MalformedURLException: no protocol:

    Stack Overflow | 3 years ago | Deivi
    java.net.MalformedURLException: no protocol: /PGJ/portal/Importador_Documentos_Financeiro/FILES/FINANCEIRO/RF255677.pdf
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.lang.NumberFormatException

    For input string: "9002localhost:9002"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    URL.<init>
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2. java.lang.Integer.parseInt(Integer.java:492)
    3. java.lang.Integer.parseInt(Integer.java:527)
    4. java.net.URLStreamHandler.parseURL(URLStreamHandler.java:217)
    5. java.net.URL.<init>(URL.java:614)
    6. java.net.URL.<init>(URL.java:482)
    7. java.net.URL.<init>(URL.java:431)
    7 frames
  3. com.mirth.connect
    HttpMessageAdapter.<init>
    1. com.mirth.connect.connectors.http.HttpMessageConverter.httpRequestToXml(HttpMessageConverter.java:42)
    2. com.mirth.connect.connectors.http.HttpMessageAdapter.setMessage(HttpMessageAdapter.java:38)
    3. com.mirth.connect.connectors.http.HttpMessageAdapter.<init>(HttpMessageAdapter.java:19)
    3 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  5. Mule Core
    ClassHelper.instanciateClass
    1. org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:271)
    2. org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:278)
    2 frames
  6. org.mule.providers
    AbstractServiceEnabledConnector.getMessageAdapter
    1. org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:270)
    2. org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:149)
    2 frames
  7. com.mirth.connect
    HttpMessageReceiver$RequestHandler.handle
    1. com.mirth.connect.connectors.http.HttpMessageReceiver.processData(HttpMessageReceiver.java:182)
    2. com.mirth.connect.connectors.http.HttpMessageReceiver.access$400(HttpMessageReceiver.java:49)
    3. com.mirth.connect.connectors.http.HttpMessageReceiver$RequestHandler.handle(HttpMessageReceiver.java:67)
    3 frames
  8. Jetty
    BlockingHttpConnection.handle
    1. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
    2. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    4. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
    5. org.eclipse.jetty.server.Server.handle(Server.java:349)
    6. org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
    7. org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
    8. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
    9. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
    10. org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50)
    10 frames
  9. GWT dev
    SocketConnector$ConnectorEndPoint.run
    1. org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245)
    1 frame
  10. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
    2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
    2 frames
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame