4 Replies Latest reply on Jul 30, 2003 11:06 PM by nraghuram

    error while creating entity bean in 3.2.1

    nraghuram Newbie

      hi,
      i hope this is the right forum for this query.
      i get the following error when i am trying to create an entity through a
      session bean. the code was working properly with 3.0.4 but isnt working with
      3.2.1 . the stack trace is as follows
      47:43,019 INFO [CachedConnectionManager] Successfully closed a connection
      for you. Please close them yourself:
      org.jboss.resource.adapter.jdbc.WrappedConnection@28ebb4
      a.lang.Exception: Stack Trace
      at
      org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(Cached
      ConnectionManager.java:376)
      at
      org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObj
      ect(CachedConnectionManager.java:199)
      at
      org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
      edConnectionInterceptor.java:190)
      at
      org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
      ssionInstanceInterceptor.java:72)
      at
      org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
      .java:84)
      at
      org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
      java:243)
      at
      org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
      at
      org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
      7)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      at
      org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
      rInterceptor.java:122)
      at
      org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta
      iner.java:322)
      at org.jboss.ejb.Container.invoke(Container.java:674)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
      )
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
      .java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at
      org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
      cher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at
      org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
      at
      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83)
      at
      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46
      )
      at
      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
      at
      org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInter
      ceptor.java:100)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      at $Proxy166.saveBulkOrder(Unknown Source)
      at
      com.gist.usapl.controller.RemittanceControllerServlet.saveBulkOrder(Remittan
      ceControllerServlet.java:1435)
      at
      com.gist.usapl.controller.RemittanceControllerServlet.doGet(RemittanceContro
      llerServlet.java:144)
      at
      com.gist.usapl.controller.RemittanceControllerServlet.doPost(RemittanceContr
      ollerServlet.java:239)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
      java:684)
      at
      org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
      er.java:432)
      at
      org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
      .java:356)
      at
      com.gist.usapl.controller.MainControllerServlet.doPost(MainControllerServlet
      .java:483)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
      FilterChain.java:247)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
      ain.java:193)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
      va:256)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
      va:191)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:643)
      at
      org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
      46)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:641)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
      )
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:643)
      at
      org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
      java:171)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
      )
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:641)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
      :174)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
      eNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
      at
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
      ction(Http11Protocol.java:392)
      at
      org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
      a:619)
      at java.lang.Thread.run(Thread.java:536)

      I have a SLSB where i call method x() which in turn calls a private method
      y(), which creates the entity bean.
      all methods are currently marked with trans attribute as Required

      can anybody help me with this
      regards
      raghu