- 
        1. Re: JMS :: Cannot authenticate userebasley Nov 6, 2003 10:53 AM (in response to ebasley)One missed point, the client was working correctly from a remote server with jboss 3.3.3RC4, may be I missed something in the migration ? 
 Eric
- 
        2. Re: JMS :: Cannot authenticate userbobbysun Nov 6, 2003 7:08 PM (in response to ebasley)I have a same problem. 
 Something changed in JBoss3.2.2
- 
        3. Re: JMS :: Cannot authenticate useradrian.brock Nov 6, 2003 8:19 PM (in response to ebasley)ME TO posts help nobody they are just noise. 
 Why don't you try helping somebody else instead of pissing about?
 There are many concurrent threads at the moment about this
 problem.
 I'm certain the behaviour has changed. I've yet to see
 that this is not a network configuartion error that wasn't exposed
 before.
 Maybe one of you guys can provide me with the logging,
 network traces that shows me the problem?
 See the other threads.
 Regards,
 Adrian
- 
        4. Re: JMS :: Cannot authenticate userebasley Nov 7, 2003 2:16 AM (in response to ebasley)Adrian, 
 I don't have more log than the one I posted.
 ERic
- 
        5. Re: JMS :: Cannot authenticate userrichieb Nov 7, 2003 1:58 PM (in response to ebasley)I have the same problem. 
 However, when the client and server run on the same machine everything works fine.
 I can reproduce the problem at will. What kind traces can I turn on to get useful logs?
 ...richie
- 
        6. Re: JMS :: Cannot authenticate useradrian.brock Nov 9, 2003 5:43 PM (in response to ebasley)I need the log4j trace logging from the client. 
 If you enable this for org.jnp
 it will show what naming is doing
 and org.jboss.mq
 will show what the invocation layers are trying to do.
 This is an example log4j.properties that you can add to your
 classpath, but it might produce a large log unless you
 limit the code executed.
 Change "somedirectory"
 log4j.rootCategory=TRACE#org.jboss.logging.XLevel, FILE
 log4j.appender.FILE=org.jboss.logging.appender.FileAppender
 log4j.appender.FILE.File=somedirectory/tracelog
 log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
 log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
 log4j.appender.FILE.Append=false
 Regards,
 Adrian
- 
        7. Re: JMS :: Cannot authenticate userebasley Nov 10, 2003 2:47 AM (in response to ebasley)Adrian, 
 here's the log :
 9:45:53,707 INFO [JmsQueueSender] #############JmsQueueSender##################
 09:45:53,710 INFO [JmsQueueSender] topicName = errorQueueDSF
 09:45:53,767 INFO [JmsQueueSender] nameFile = canalErreur.properties
 09:45:53,768 DEBUG [JmsQueueSender] INIT : canalErreur.properties
 09:45:53,771 DEBUG [JmsQueueSender] Send :
 09:45:53,952 DEBUG [JmsQueueSender] Lookup topic ='topic/errorQueueDSF'
 09:45:54,307 DEBUG [SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
 09:45:54,474 DEBUG [SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory:[server=org.jboss.mq.il.uil2.UILServerIL@cfec48,connectionProperties={UIL_ADDRESS_KEY=0.0.0.0, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}]
 09:45:54,561 DEBUG [SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()
 09:45:54,668 DEBUG [Connection] Setting the clockDaemon's thread factory
 09:45:54,673 TRACE [Connection] Connection Initializing
 09:45:54,690 TRACE [Connection] Getting the serverIL
 09:45:54,691 TRACE [Connection] serverIL=org.jboss.mq.il.uil2.UILServerIL@d1fa5
 09:45:54,691 TRACE [Connection] Authenticating
 09:45:54,691 TRACE [Connection] Authenticating user guest
 09:45:54,696 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 09:45:54,697 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@2b7eea, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 09:45:54,720 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
 09:45:54,733 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
 09:45:54,733 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
 09:45:54,734 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 09:45:54,734 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@2b7eea, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 09:45:54,752 ERROR [JmsQueueSender] Main JmsQueueSender Error
 org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused)
 at org.jboss.mq.Connection.authenticate(Connection.java:883)
 at org.jboss.mq.Connection.(Connection.java:238)
 at org.jboss.mq.SpyConnection.(SpyConnection.java:49)
 at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)
 at JmsQueueSender.send(JmsQueueSender.java:75)
 at JmsQueueSender.main(JmsQueueSender.java:45)
 Caused by: java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:159)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
 at java.net.Socket.connect(Socket.java:425)
 at java.net.Socket.connect(Socket.java:375)
 at java.net.Socket.(Socket.java:290)
 at java.net.Socket.(Socket.java:146)
 at javax.net.DefaultSocketFactory.createSocket(DashoA6275)
 at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:579)
 at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:500)
 at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:302)
 at org.jboss.mq.Connection.authenticate(Connection.java:876)
 ... 5 more
 and jndi.properties looks like :
 java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
 java.naming.provider.url=ora01.odb.fr
 with ora01.Odb.fr :
 [jms@mytux]%. host ora01.odb.fr
 ora01.odb.fr is an alias for odb700.odb.fr.
 odb700.odb.fr has address 10.1.0.20
 The jndi connection is correctly made on 10.1.0.20, whereas the socket for JMS try to be bound on 0.0.0.0.
 Regards.
 Eric
- 
        8. Re: JMS :: Cannot authenticate useradrian.brock Nov 10, 2003 7:01 AM (in response to ebasley)There is code in UIL2 to trap the 0.0.0.0 address 
 and use the host address instead.
 See my post in a different thread.
 I'm not sure why it is not working.
 You can workaround it by setting (or removing)
 the bind address in uil2-service.xml
 Regards,
 Adrian
- 
        9. Re: JMS :: Cannot authenticate userrichieb Nov 10, 2003 7:11 AM (in response to ebasley)Here is the log I see: 
 07:59:09,478 INFO [tradescope] OS: Linux
 07:59:09,478 INFO [tradescope] JVM version: 1.4.1_02-b06
 07:59:09,557 INFO [tradescope] Master Agent started on 127.0.0.1
 07:59:09,563 INFO [tradescope] Initializing Master Agent
 07:59:10,034 DEBUG [SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
 07:59:10,156 DEBUG [SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory:[server=org.jboss.mq.il.uil2.UILServerIL@17ce4e7,connectionProperties={UIL_ADDRESS_KEY=0.0.0.0, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}]
 07:59:10,221 DEBUG [Connection] Setting the clockDaemon's thread factory
 07:59:10,228 TRACE [Connection] Connection Initializing
 07:59:10,228 TRACE [Connection] Getting the serverIL
 07:59:10,229 TRACE [Connection] serverIL=org.jboss.mq.il.uil2.UILServerIL@12d15a9
 07:59:10,229 TRACE [Connection] Authenticating
 07:59:10,229 TRACE [Connection] Authenticating user null
 07:59:10,235 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 07:59:10,236 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@1c92535, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 07:59:10,258 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
 07:59:10,261 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
 07:59:10,262 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
 07:59:10,262 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 07:59:10,263 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@1c92535, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 07:59:10,432 DEBUG [tradescope] JMS Service Failure
 org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused)
 at org.jboss.mq.Connection.authenticate(Connection.java:883)
 at org.jboss.mq.Connection.(Connection.java:238)
 at org.jboss.mq.Connection.(Connection.java:315)
 at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
 at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:78)
 at com.javtech.tradescope.jms.JMSInterface.init(TradeScopeAgent:57)
 at com.javtech.tradescope.agent.master.MasterAgent.b(TradeScopeAgent:149)
 at com.javtech.tradescope.agent.master.MasterAgent.(TradeScopeAgent:132)
 at com.javtech.tradescope.agent.master.MasterAgent.main(TradeScopeAgent:84)
 Caused by: java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
 at java.net.Socket.connect(Socket.java:426)
 at java.net.Socket.connect(Socket.java:376)
 at java.net.Socket.(Socket.java:291)
 at java.net.Socket.(Socket.java:147)
 at javax.net.DefaultSocketFactory.createSocket(DashoA6275)
 at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:579)
 at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:500)
 at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:302)
 at org.jboss.mq.Connection.authenticate(Connection.java:876)
 ... 8 more
 07:59:10,438 WARN [tradescope] JMS service not reachable ... will try again in a few seconds
 07:59:12,456 DEBUG [SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
 07:59:12,459 DEBUG [SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory:[server=org.jboss.mq.il.uil2.UILServerIL@76e369,connectionProperties={UIL_ADDRESS_KEY=0.0.0.0, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}]
 07:59:12,459 TRACE [Connection] Connection Initializing
 07:59:12,459 TRACE [Connection] Getting the serverIL
 07:59:12,460 TRACE [Connection] serverIL=org.jboss.mq.il.uil2.UILServerIL@14c194d
 07:59:12,460 TRACE [Connection] Authenticating
 07:59:12,460 TRACE [Connection] Authenticating user null
 07:59:12,460 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 07:59:12,460 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@1c92535, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 07:59:12,468 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 07:59:12,468 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@1c92535, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 07:59:12,478 WARN [tradescope] JMS service not reachable ... will try again in a few seconds
 07:59:14,484 DEBUG [SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
 07:59:14,491 DEBUG [SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory:[server=org.jboss.mq.il.uil2.UILServerIL@1cbfe9d,connectionProperties={UIL_ADDRESS_KEY=0.0.0.0, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}]
 07:59:14,492 TRACE [Connection] Connection Initializing
 07:59:14,492 TRACE [Connection] Getting the serverIL
 07:59:14,492 TRACE [Connection] serverIL=org.jboss.mq.il.uil2.UILServerIL@1b8f864
 07:59:14,492 TRACE [Connection] Authenticating
 07:59:14,492 TRACE [Connection] Authenticating user null
 07:59:14,492 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 07:59:14,492 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@1c92535, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 07:59:14,500 TRACE [UILServerIL] Connecting to : /0.0.0.0:8093
 07:59:14,501 TRACE [UILServerIL] Connecting with addr=/0.0.0.0, port=8093, localAddr=null, localPort=0, socketFactory=javax.net.DefaultSocketFactory@1c92535, enableTcpNoDelay=true, bufferSize=2048, chunkSize=1000000
 Our application attempts to reconnect each time after connection failure.
 HIH
 ...richie
 
     
     
    