This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Help to fix bug in Weblogic8.1 Server
 
It's not a secret anymore!