jboss3.2.3web程式和應用程式分開部署問題,緊急求救啊!

healshui發表於2005-05-25
我在兩臺伺服器分別安裝jboss3.2.3分別釋出web程式和應用程式,遇到這樣的問題,InitialContext第一次呼叫初始化每個ejb都成功,但是第二次呼叫就不行了,會報如下錯誤,而且把應用伺服器的jboss變得奇慢。連進入jmx-console都進不去
-- Initializing bean access.
context:javax.naming.InitialContext@1e97676
javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)-- Failed initializing bean access.
at com.shine.icid.ejb.esystem.test.esystemTestClient1.initialize(esystemTestClient1.java:38)
at com.shine.icid.ejb.esystem.test.esystemTestClient1.<init>(esystemTestClient1.java:23)
at com.shine.icid.ejb.esystem.test.esystemTestClient1.main(esystemTestClient1.java:2396)
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
... 5 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at java.io.DataInputStream.readByte(DataInputStream.java:331)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
... 9 more
java.lang.NullPointerException
at com.shine.icid.ejb.esystem.test.esystemTestClient1.create(esystemTestClient1.java:76)-- Calling create()
-- Failed: create()
at com.shine.icid.ejb.esystem.test.esystemTestClient1.main(esystemTestClient1.java:2402)
-- Return value from create(): null.
Error in getInfoSystem(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.

// 在此輸入java程式碼
<p class="indent">

相關文章