Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI problem with Linuc

 
Andreas Karlsson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have a java RMI application that I can run under Windows 2000, 98, NT and Solaris. But when I try to connect the server application under Linux Red Hat 8.0 it cast an Socket exception.
I have made a simple Hello rmi application and tried to connect that one also with out any succes.
Output:
[root@SNOS16 classes]# rmiregistry 8666 &
[1] 2270
[root@SNOS16 classes]# java -Djava.rmi.server.codebase=file:/daek/classes/ -Djava.security.policy=policy examples.hello.HelloImpl
HelloImpl err: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at examples.hello.HelloImpl.main(HelloImpl.java:39)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2150)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2163)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2634)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
at sun.rmi.server.MarshalInputStream.<init>(MarshalInputStream.java:110)
at sun.rmi.transport.ConnectionInputStream.<init>(ConnectionInputStream.java:38)
at sun.rmi.transport.StreamRemoteCall.getInputStream(StreamRemoteCall.java:111)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:197)
... 4 more
[root@SNOS16 classes]#
Policy file:
grant {
// Allow everything for now
permission java.security.AllPermission;
};
I have made a normal red hat 8.0 installation.
Does anyone have any ideas what can be wrong.
I have tried using java J2SE 1.4.1 and J2SE 1.3.1 with no luck.
Kind regards
/Andreas
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If your Linux installation is by default setting, Linux by default enable the firewall setting.
Check if you firewall is blocking the network traffic.
Use ipchain to check it out.
Cheers.

Han Ming
 
Andreas Karlsson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
With the firewall disabled, I get the same result.
I was able to use the graphical interface after added the rpm redhat-config-securitylevel-1.1.2-1.noarch.rpm.
Kind regards
/Andreas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!