java.lang.NumberFormatException: For input string: " " at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:183) 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.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:183) 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

    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.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:183) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:166) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:148)
  3. 0

    [GLASSFISH-6885] Unable to lookup remote JMS Connection Factory from within server - Java.net JIRA

    java.net | 12 months ago
    java.lang.NumberFormatException: For input string: " " at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:183) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:166) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:148)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JANUM (Java and Azureus Usage Monitor) - Netspace - iiNet Group

    net.au | 10 months ago
    java.lang.NumberFormatException: For input string: "HTML PUBLIC " at java.lang.NumberFormatException.fo­ rInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown­ Source) at java.lang.Integer.<init>(Unk­ nown Source) at usage.Netspace.getStartDateAsDateT­ ime(Netspace.java:715) at usage.Netspace.parseXmlFeed(Netspa­ ce.java:1113) at usage.Netspace.downloadXmlFeed(Net­ space.java:338) at netspace.UsageMonitor.run(UsageMon­ itor.java:410)
  6. 0

    57264423 Tib Tra Release Notes - Documents

    documents.mx | 9 months ago
    java.lang.NumberFormatException: For input string: "tibhawksvc" . . .

    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 com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(Co nnectionFactoryAdapter.java:183) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:166) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Conne ctionFactoryAdapter.java:148)

      at Loader.run()
    2. Unknown
      Loader.run
      1. Loader.run(Loader.java:65)
      1 frame
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame