Solved

remote exception error intializing: java.rmi.UnmarshalException: Transport return code invalid

Posted on 1998-05-08
3
1,090 Views
Last Modified: 2012-08-13
We have a multi-tiered client-server system that uses RMI to communicate between a client applet within a Netscape browser and our server. On our LAN, everythingruns just fine. At another site we get the error:

Remote Exception error intializing: java.rmi.UnmarshalException: Transport return code invalid.

The remote sit'es network is quite large and complex. I was wondering if certain types of hardware or software configurations could cause problems in RMI's mode of communication over an Intranet. Both the server and clients reside on the site's Intranet.

Any and all thoughts on this problem would be greatly appreciated.

Jeff Kish
ait@concentric.net

or John Victor
victorj@ait-mmii.com
0
Comment
Question by:kishj
  • 2
3 Comments
 

Author Comment

by:kishj
ID: 1220876
Adjusted points to 100
0
 
LVL 4

Accepted Solution

by:
evijay earned 100 total points
ID: 1220877
This error may occur if the default port used by rmi registry is also used by some other machine or process.

try to run rmiregistry on a different port number by saying
rmiregistry <portnumber>

ensure that the client/server uses the naming convention as
  rmi://host:port/name
  host = host name of registry  (defaults to current host)
  port = port number of registry (defaults to the registry port number)
  name = name for remote object

for registering and lookup


0
 

Author Comment

by:kishj
ID: 1220878
The problem seems to have turned out to be not an issue with the port number, but an issue with the name referenced for the RMI registry.

It seems that where we test we don't use DNS, and the machine names are what is used for the server/rmi registry creation and the client/rmi registry naming.lookup. The Server at the customer site, because of it's setup and use of DNS and 'lack' of a computer name created a registry with the name www.thename.com. The client was trying to connect with another name it got via an incorrect method that had worked back at the office.

Thanks
Jeff Kish ait@concentric.net
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
backtracking recursion  code 19 54
Java DateChooser? 3 29
session migration servlets 2 26
servlet example issue 6 31
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now