jboss3.2.3web程序和应用程序分开部署问题,紧急求救啊!

05-05-25 healshui
我在两台服务器分别安装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>

healshui
2005-05-26 09:44
BANQ大哥帮帮忙吧,偶都折腾几天了。

猜你喜欢