Solved

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

Posted on 1998-05-08
3
1,135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

726 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