geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Dooley <bran...@rootedlabs.com>
Subject CMP Setter & ejbCreate
Date Sat, 16 Sep 2006 19:07:47 GMT

I'm getting this exception when I try and create a new bean that has setter.
I did find Aaron's post 
http://www.nabble.com/CMR-Setters---ejbCreate-tf407940.html#a1122043
http://www.nabble.com/CMR-Setters---ejbCreate-tf407940.html#a1122043  but
his was a slightly different error and I'm using CMP Beans not CMR Beans.


javax.ejb.EJBException
        at
org.openejb.proxy.EJBMethodInterceptor.intercept(EJBMethodInterceptor.java:169)
        at
org.openejb.proxy.EntityEJBLocalHome$$EnhancerByCGLIB$$91505cb7.create(<generated>"0"
src="images/emoticons/wink.gif" alt=";)">
        at
org.apache.jsp.calendar.gadmin_jsp._jspService(org.apache.jsp.calendar.gadmin_jsp:116)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:46)
        at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:342)
        at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException: Identity not available
        at org.tranql.cache.CacheRow.getId(CacheRow.java:163)
        at org.tranql.cache.InTxCache.associate(InTxCache.java:43)
        at org.tranql.cache.CacheTable.addRow(CacheTable.java:92)
        at
org.openejb.entity.cmp.CMPCreateMethod.execute(CMPCreateMethod.java:195)
        at
org.openejb.dispatch.DispatchInterceptor.invoke(DispatchInterceptor.java:72)
        at
org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(ComponentContextInterceptor.java:56)
        at
org.openejb.ConnectionTrackingInterceptor.invoke(ConnectionTrackingInterceptor.java:81)
        at
org.openejb.entity.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:136)
        at
org.openejb.entity.cmp.InTxCacheInterceptor.invoke(InTxCacheInterceptor.java:90)
        at
org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPolicy.java:140)
        at
org.openejb.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:80)
        at
org.openejb.SystemExceptionInterceptor.invoke(SystemExceptionInterceptor.java:82)
        at
org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java:238)
        at
org.openejb.proxy.EJBMethodInterceptor.intercept(EJBMethodInterceptor.java:164)
        ... 26 more



Here is the create and postcreate for this method:


    /**
    *
    * 
    * The  ejbCreate method.
    * 
    *
    * 
    * @ejb.create-method view-type="local"
    * 
    * @generated
    */
   public java.lang.Long ejbCreate(String title, String description, String
location,
		   Integer typeId, String url, String type, String creator) throws
javax.ejb.CreateException {
	   setTitle(title);
	   setDescription(description);
	   setLocation(location);
	   setTypeid(typeId);
	   setType(type);
	   setUrl(url);
	   setCreator(creator);
	   return null;
   }

   /**
    * 
    * The container invokes this method immediately after it calls
ejbCreate.
    * 
    *
    * @generated
    */
   public void ejbPostCreate(String title, String description, String
location, 
		   Integer typeId, String url, String type, String creator) throws
javax.ejb.CreateException {
   }



I have other working beans. but this is the first where I am calling setter
methods within ejbCreate. I'll post more code if needed, any suggestions?
Thanks.
-- 
View this message in context: http://www.nabble.com/CMP-Setter---ejbCreate-tf2283342.html#a6342963
Sent from the Apache Geronimo - Users forum at Nabble.com.


Mime
View raw message