wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Help to fix bug in Weblogic8.1 Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Help to fix bug in Weblogic8.1 Server" Watch "Help to fix bug in Weblogic8.1 Server" New topic
Author

Help to fix bug in Weblogic8.1 Server

Jothish Justin
Greenhorn

Joined: Aug 25, 2006
Posts: 1
Please Help to fix the bug in the weblogic 8.1 server

Server : Weblogic 8.1
JDK version :1.4.1

While I create a new domain and try to bind simple object in the JNDI tree I get the following run time error.

Javax.naming.CommunicationException [ Root exception is java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.io.StreamCorruptedException ]

Source code of programs:

jnditest.java

package com.examples;

import javax.naming.*;
import java.util.*;
import java.io.*;
import weblogic.common.*;
import weblogic.jndi.*;

public class jnditest{

public static void main(String arg[]){
Context ctx=null;
Hashtable ht=new Hashtable();
try{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,weblogic.jndi.WLInitialContextFactory.class.getName());
ctx = new InitialContext(env);
personone myperson=new personone();
ctx.bind("Person one object",myperson);
}catch(NamingException e){
System.out.println(e);
}
finally{
try{
ctx.close();
}
catch(Exception e){
}
}
}
}

personone.java

package com.examples;

import java.io.*;

public class personone implements Serializable{

String name;
int age;
public personone(){
}
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help to fix bug in Weblogic8.1 Server