this may be corba problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Zhang
Posted On:   Friday, February 27, 2004 08:56 AM

I asked a question in Serializition forum in JGuru as well as some others forums,but looks like this is not Serializition problem since I got answer in theServerside forum,and it looks like a CORBA problem,so,I hope I can get anser from CORBA gurus. basicaly,I made a rowset wrapper class "RowSetAdaptor"(as following),EJB return this class object and jsp try to get this object. this works fine in Jboss but not in Sybase Easerver. the communication between EJB and JSP in EAServer is using CORBA,I beleive in JBOSS use RMI,the error I got in easerver is : error:org.omg.CORBA.MARSHAL: java.io.NotSerializableException: Since the error message is a CORBA marshalling exception rather than a java.io.IOExceptio   More>>
			
I asked a question in Serializition forum in JGuru as well as some others forums,but looks like this is not Serializition problem since I got answer in theServerside forum,and it looks like a CORBA problem,so,I hope I can get anser from CORBA gurus.

basicaly,I made a rowset wrapper class "RowSetAdaptor"(as following),EJB return this class object and jsp try to get this object.
this works fine in Jboss but not in Sybase Easerver.
the communication between EJB and JSP in EAServer is using CORBA,I beleive in JBOSS use RMI,the error I got in easerver is :

error:org.omg.CORBA.MARSHAL: java.io.NotSerializableException:
Since the error message is a CORBA marshalling exception rather than a java.io.IOException

the rowset wrapper class:
public class RowSetAdaptor extends java.lang.Object implements Serializable
{
private CachedRowSetImpl rowset;
public RowSetAdaptor()
{ try{

rowset = new CachedRowSetImpl();

}catch(Exception e){System.out.println("constructor:"+e);}


}


public void populate(ResultSet data)
{

try{
rowset.populate(data);
}catch(Exception e){System.out.println("populate:"+e);}
}


public boolean next()
{

try{
return rowset.next();
}catch(Exception e){return false;}
}


public String getString(String columnName)
{
try{
return rowset.getString(columnName);
}catch(Exception e){return null;}
}


public String getString(int columnIndex)
{

try{
return rowset.getString(columnIndex);
}catch(Exception e){return null;}
}


public int getInt(String columnName)
{

try{
return rowset.getInt(columnName);
}catch(Exception e){return 0;}
}


public int getInt(int columnIndex)
{
try{
return rowset.getInt(columnIndex);
}catch(Exception e){return 0;}
}

....

the CachedRowSetImpl is Sun's implementation of rowset, I belive the CachedRowSetImpl is Serializable since I can send it from EJB to jsp.
is there any considreation regarding CORBA limitations?

   <<Less
About | Sitemap | Contact