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

ramarao_1234 do-not-reply at jboss.com
Tue Aug 28 08:44:42 EDT 2007


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=bb&op=viewtopic&p=4078734#4078734

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078734



More information about the jboss-user mailing list