GeeCON Prague 2014*
The moose likes Servlets and the fly likes Marshal Exception occured Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Marshal Exception occured" Watch "Marshal Exception occured" New topic
Author

Marshal Exception occured

Gopal
Greenhorn

Joined: Sep 04, 2002
Posts: 7
Please help me in get rid of this problem
The servlet that i had is
try
{ // Insert user code from here.
Properties p= new Properties();
p.put("Context.INITIAL_CONTEXT_FACTORY","com.ibm.ejs.ns.jndi.CNInitialContextFactory");
p.put("java.naming.provider.url","IIOP://localhost:900/");
PrintWriter out;
InitialContext ic= new InitialContext(p);
Object obj= ic.lookup("com/ibm/ivj/wte/samples/leapyear/getin");
getinHome gih= (getinHome) PortableRemoteObject.narrow(obj,getinHome.class);
try
{
out = response.getWriter();
out.println("<h1> Creating Bean</h1>");
getin gi= gih.create();
out.println("<br><h1>Calling method</h1>");
gi.testMethod();
out.println("<br><h1>Method called</h1>");
}
catch(Exception e)
{
System.out.println(+e.toString());
}


}
catch(Throwable theException)
{
// uncomment the following line when unexpected exceptions
// are occuring to aid in debugging the problem.
//theException.printStackTrace();
}
I did not age any error while creating the object. but whan i run the servlet it throws the following exception
java.rmi.MarshalException: CORBA COMM_FAILURE 3 No; nested exception is:
org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No
reply this as quick as possible.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
I asked nicely before for you to change your display name. Change it or your account will be locked.
 
GeeCON Prague 2014
 
subject: Marshal Exception occured