Solved

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

Posted on 1998-05-08
3
1,066 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

706 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

18 Experts available now in Live!

Get 1:1 Help Now