ERROR ClientBase$ExceptionHandler : class com.ClientBase$ExceptionHandler error occur!ERROR PapDe : javax.management.MBeanException: javax.management.InstanceNotFoundException: cab:service=cab is not registered.false
ERROR Mcg : connected failed SurvivalSignal
javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)
at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
at org.jnp.server.NamingServer.lookup(NamingServer.java:277)
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at java.lang.Thread.run(Thread.java:619)
ERROR Mcg : connected failed moduletopic
javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)
at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
at org.jnp.server.NamingServer.lookup(NamingServer.java:277)
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at java.lang.Thread.run(Thread.java:619)
ERROR Mcg : connected failed tocabd

解决方案 »

  1.   


    javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:277)
    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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at java.lang.Thread.run(Thread.java:619)
    ERROR ReconnectThread : error occur
    javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:277)
    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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at java.lang.Thread.run(Thread.java:619)ERROR Mcg : connected failed SurvivalSignal
    javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
    at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1280)
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1360)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:575)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.net.SocketTimeoutException: Receive timed out
    at java.net.PlainDatagramSocketImpl.receive0(Native Method)
    at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
    at java.net.DatagramSocket.receive(DatagramSocket.java:712)
    at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1250)
    ... 9 more
    javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: ConnectionFactory not bound]
    at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1047)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:681)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    ERROR Mcg : connected failed SurvivalSignal
    javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 202.18.71.22; nested exception is: 
    java.net.ConnectException: Connection refused: connect]
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:703)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.rmi.ConnectException: Connection refused to host: 202.18.71.22; nested exception is: 
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    ERROR ReconnectThread : error occurCaused by: javax.naming.NameNotFoundException: ConnectionFactory not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:277)
    at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1041
      

  2.   

    错误位置显而易见 class com.ClientBase$ExceptionHandler
    但是可能有很多情况,最好是发代码上来,如果太多你可以只发ClientBase$ExceptionHandler这个类的代码,然后注释写的详细写,只是把你的错误异常发上来没发解决
      

  3.   

    javax.management.MBeanException:楼主你在用JMS?
    javax命名空间下的包是JDK提出的规范,很多厂商有自己的具体实现,JDK标准组织再选取一种作为下一代JDK的API,你看看你引入的包是哪里的?怀疑是包冲突或者不对导致的
      

  4.   

    UIL2ConnectionFactory not bound这里提示的信息看好像是没找到连接工厂啊。
      

  5.   


    我是这样解决包冲突的,希望对你有用!!打开Eclipse,随便新建一工程。把你的包丢进工程中。然后按【 Ctrl + Shift + T】,在输入框中输入类名,在下面就会显示 你这个类在那个JAR包中存在了。然后把冲突的删掉就好了。
      

  6.   

    <property name="jndiName" value="XAConnectionFactory"/>
    你用这个试试看  替代你的UIL2ConnectionFactory 
      

  7.   

    UIL2ConnectionFactory 
    看这个类在哪,标识对应上了没?
      

  8.   

    看到了两种异常:
    1.javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound
       你程序连接的jboss的jndi服务中UIL2ConnectionFactory 并没有绑定到任何一个对象,请查看jboss是否有异常或者根本没有绑定UIL2ConnectionFactory 
    2.Caused by: java.rmi.ConnectException: Connection refused to host: 202.18.71.22; nested exception is 
      202.18.71.22能连接不
      

  9.   

     不知道 应该是 JMS 的连接问题把。
    接分了。
      

  10.   

    估计与 JNDI 的配置有关,JNDI 的名字好像没到啊。