java.lang.NumberFormatException: For input string: " " at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionExceptio n(ExceptionHandler.java:274) at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException( ExceptionHandler.java:220) at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMap perClient.java:234) at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.j ava:148) at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient .java:90) at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init> (TCPConnectionHandler.java:130) at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnec tion(TCPStreamHandler.java:135) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(Con nectionInitiator.java:778) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew( ConnectionInitiator.java:254) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(Con nectionInitiator.java:208) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(Con nectionInitiator.java:158) at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.jav a:807) at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.j ava:1509) at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(Connection Impl.java:2280) at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java: 1012) at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.jav a:414) at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConn ectionImpl.java:60) at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.<init>(XAConnectionImpl .java:58) at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnectionFac tory.java:91) at com.sun.messaging.jms.ra.ManagedConnection.<init>(ManagedConnection.java :193) at com.sun.messaging.jms.ra.ManagedConnectionFactory.createManagedConnectio n(ManagedConnectionFactory.java:213) at com.sun.enterprise.resource.ConnectorAllocator.createResource(ConnectorA llocator.java:136) at com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(Ab stractResourcePool.java:891) at com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToP ool(AbstractResourcePool.java:1752) at com.sun.enterprise.resource.AbstractResourcePool.createResources(Abstrac tResourcePool.java:917) at com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResour cePool.java:225) at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(Abs tractResourcePool.java:516) at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractRes ourcePool.java:443) at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolMana gerImpl.java:248) at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl. java:176) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnectio n(ConnectionManagerImpl.java:337) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(C onnectionManagerImpl.java:189) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(C onnectionManagerImpl.java:165) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(C onnectionManagerImpl.java:158) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:179) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:166) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:148)

Java.net JIRA | janchj | 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

    I am using Glassfish 9.1_02 (build b04-fcs) with 2 servers (domain1 and domain2). I have created a JMS Connection Factory on server 1: /jms/myFactory When I use the following code from a standalone client, I can lookup the factory with no issues. Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory"); env.put("org.omg.CORBA.ORBInitialPort", "3700"); env.put("org.omg.CORBA.ORBInitialHost", "server1"); env.put("java.naming.factory.url.pkgs", "com.sun.enterprise.naming"); env.put("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"); Context ic = new InitialContext(env); ConnectionFactory connectionFactory = (ConnectionFactory)(ic.lookup("jms/myFactory")); However, if I place this code inside an EJB on server2 and try to exercise it, I get the following error: [#|2008-12-08T14:12:43.768-0700|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=12;_ThreadName=Thread-7;_RequestID=54a6359b-fced-4237-9501-311c7dc551e6;|javax.naming.NameNotFoundException: myFactory not found at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216) at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188) at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192) at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74) at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:129) 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 com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154) at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687) at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088) at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567) at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555) This seems to only occur when trying to look up a JMS resource. If I create an EJB on server1 I can look it up with no problem using the above code and replacing the connection lookup with: myEJB ejb = (myEJB)(ic.lookup("myEJB")); Is it possible to send/receive JMS messages between servers? If so, how? Thanks, Joe

    Java.net JIRA | 8 years ago | janchj
    java.lang.NumberFormatException: For input string: " " at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionExceptio n(ExceptionHandler.java:274) at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException( ExceptionHandler.java:220) at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMap perClient.java:234) at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.j ava:148) at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient .java:90) at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init> (TCPConnectionHandler.java:130) at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnec tion(TCPStreamHandler.java:135) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(Con nectionInitiator.java:778) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew( ConnectionInitiator.java:254) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(Con nectionInitiator.java:208) at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(Con nectionInitiator.java:158) at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.jav a:807) at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.j ava:1509) at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(Connection Impl.java:2280) at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java: 1012) at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.jav a:414) at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConn ectionImpl.java:60) at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.<init>(XAConnectionImpl .java:58) at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnectionFac tory.java:91) at com.sun.messaging.jms.ra.ManagedConnection.<init>(ManagedConnection.java :193) at com.sun.messaging.jms.ra.ManagedConnectionFactory.createManagedConnectio n(ManagedConnectionFactory.java:213) at com.sun.enterprise.resource.ConnectorAllocator.createResource(ConnectorA llocator.java:136) at com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(Ab stractResourcePool.java:891) at com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToP ool(AbstractResourcePool.java:1752) at com.sun.enterprise.resource.AbstractResourcePool.createResources(Abstrac tResourcePool.java:917) at com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResour cePool.java:225) at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(Abs tractResourcePool.java:516) at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractRes ourcePool.java:443) at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolMana gerImpl.java:248) at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl. java:176) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnectio n(ConnectionManagerImpl.java:337) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(C onnectionManagerImpl.java:189) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(C onnectionManagerImpl.java:165) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(C onnectionManagerImpl.java:158) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:179) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:166) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:148)
  2. 0

    How to give the user input when asked in java while executing the script through python

    Stack Overflow | 2 years ago | user3010409
    java.lang.NumberFormatException: null</p> <pre><code>at java.lang.Integer.parseInt(Integer.java:415)
  3. 0

    Erro no formulario: java.lang.NumberFormatException: For input string: "" ?

    com.br | 1 year ago
    java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4 at java.lang.Integer.parseInt(Integer.java:46
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android progress bar doesn't update

    Stack Overflow | 2 years ago | Leonardo
    java.lang.NumberFormatException: Invalid int: "0.0"
  6. 0

    Proguard android keep class

    Stack Overflow | 3 years ago | Ganesh
    java.lang.NumberFormatException: Invalid int: "null"

  1. rp 4 times, last 3 weeks ago
  2. Handemelindo 6 times, last 3 weeks ago
  3. treefolk 3 times, last 1 month ago
  4. andreeaa marin 2 times, last 1 month ago
  5. eti22 6 times, last 1 month ago
33 more registered users
62 unregistered visitors
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: " " at java.lang.NumberFormatException.forInputString(NumberFormatException.jav a:48) at java.lang.Integer.parseInt(Int|#] [#|2008-12-09T08:36:01.188-0700|WARNING|sun-appserver9.1|javax.enterpris e.system.stream.err|_ThreadID=12;_ThreadName=Thread-6;_RequestID=078bf18 e-5592-4332-9a41-2b39db6f5526;|eger.java:447)

    at java.lang.Integer.parseInt()
  2. Java RT
    Integer.parseInt
    1. java.lang.Integer.parseInt(Integer.java:497)
    1 frame