[jboss-user] [EJB 3.0] - Re: Stateless Session Bean - java.lang.reflect.UndeclaredThr

2007-08-29 Thread ramarao_1234
Hi All,
My sincere thanks to Wolfc. He correctly pointed out the error.

In my code TabFactory contain some other objects which are not serializable. 
When i made them serializable, it is working fine. 
   If anybody faces similar error then plz check you objects returning from 
remote interface are serializable(including objects that object). 


Regards,

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079081#4079081

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079081
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Stateless Session Bean - java.lang.reflect.UndeclaredThr

2007-08-28 Thread wolfc
You're trying to force an object over the line which has a reference to an 
org.apache.log4j.Logger instance, which is not serializable.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078719#4078719

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078719
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Stateless Session Bean - java.lang.reflect.UndeclaredThr

2007-08-28 Thread ramarao_1234
Hi,
Thanks for the early response.
I am giving part of my code where the error is coming. Could you suggest me 
where may be error.


Method in the Bean:


public TabFactory getTabList(String corporateId) throws EccException {
Connection conn = null; 
TabFactory tabFactory = null;
logger = EkaLogger.getLogger(this.getClass().getName());
try {
logger.debug(came to tab list);
conn = DbConnection.getConnection(true);
tabFactory = new TabFactory(conn);
tabFactory.initialize(corporateId);
logger.debug(Successfully complted tablist initialization);
}catch(Exception ex) {
logger.debug(Exception in EccLoginBean - getTabList);
throw new EccException(ex.getMessage(),2,ex);
}finally{
try {
if(conn != null) {
if(rs != null) 
rs.close();
conn.close();
logger.debug(Closed connection in 
EccLoginBean TabList);
}
} catch (Exception e) {
logger.debug(Exception in EccLoginBean - 
getTabList-2);
throw new EccException(e.getMessage(),2,e);
}
}
logger.debug(Tabfactory is +tabFactory);
return tabFactory;
}



Calling part from servlet:

TabFactory tabFactory = eccLogin.getTabList(strCorporateId);




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078734#4078734

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078734
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user