0 Replies Latest reply on Jul 16, 2002 8:18 AM by gurumurthy

    Error in accesing Adapter - Activation Failure

    gurumurthy Newbie

      Hi,

      I deployed adapter in JBoss3.0.0 Final release.
      Adapter is deployed properly. (No Transaction)


      and i also deployed an .ear file to access the adapter.

      my web application(.ear) has a bean and a jsp.

      im getting following error when i try to access the adapter thru bean.

      Log Trace:
      ---------------------------------------------------------
      java.rmi.ServerException: Could not activate; nested exception is:
      java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions
      \com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system can
      not find the file specified)
      java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions\com.ver
      gil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system cannot find
      the file specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.(FileInputStream.java:64)
      at java.io.FileInputStream.(FileInputStream.java:95)
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateS
      ession(StatefulSessionFilePersistenceManager.java:222)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(StatefulS
      essionInstanceCache.java:83)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache
      .java:177)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      fulSessionInstanceInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      r.java:380)
      at org.jboss.ejb.Container.invoke(Container.java:705)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:102)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
      6)
      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSession
      Interceptor.java:117)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy22.disconnect(Unknown Source)
      at org.apache.jsp.BAPI_0005fCOMPANYCODE_0005fGETLIST$jsp._jspService(BAP
      I_0005fCOMPANYCODE_0005fGETLIST$jsp.java:180)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      81)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371
      )
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:6
      07)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
      at org.mortbay.http.HttpServer.service(HttpServer.java:757)
      at org.jboss.jetty.Jetty.service(Jetty.java:527)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      151)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:484)
      16:32:37,062 INFO [STDOUT] 53641 [SocketListener-0] ERROR org.jboss.ejb.plugins
      .AbstractInstanceCache com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean - Activatio
      n failure
      java.rmi.ServerException: Could not activate; nested exception is:
      java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions
      \com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system can
      not find the file specified)
      java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions\com.ver
      gil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system cannot find
      the file specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.(FileInputStream.java:64)
      at java.io.FileInputStream.(FileInputStream.java:95)
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateS
      ession(StatefulSessionFilePersistenceManager.java:222)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(StatefulS
      essionInstanceCache.java:83)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache
      .java:177)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      fulSessionInstanceInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      r.java:380)
      at org.jboss.ejb.Container.invoke(Container.java:705)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:102)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
      6)
      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSession
      Interceptor.java:117)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy22.disconnect(Unknown Source)
      at org.apache.jsp.BAPI_0005fCOMPANYCODE_0005fGETLIST$jsp._jspService(BAP
      I_0005fCOMPANYCODE_0005fGETLIST$jsp.java:180)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      81)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371
      )
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:6
      07)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
      at org.mortbay.http.HttpServer.service(HttpServer.java:757)
      at org.jboss.jetty.Jetty.service(Jetty.java:527)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      151)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:484)
      16:32:37,234 WARN [Jetty] WARNING: Servlet Exception for /BAPI_COMPANYCODE_GETL
      IST/BAPI_COMPANYCODE_GETLIST.jsp?action=submit
      java.rmi.NoSuchObjectException: Could not activate; nested exception is:
      java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions
      \com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system can
      not find the file specified)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache
      .java:185)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      fulSessionInstanceInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      r.java:380)
      at org.jboss.ejb.Container.invoke(Container.java:705)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:102)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
      6)
      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSession
      Interceptor.java:117)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy22.disconnect(Unknown Source)
      at org.apache.jsp.BAPI_0005fCOMPANYCODE_0005fGETLIST$jsp._jspService(BAP
      I_0005fCOMPANYCODE_0005fGETLIST$jsp.java:180)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      81)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371
      )
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:6
      07)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
      at org.mortbay.http.HttpServer.service(HttpServer.java:757)
      at org.jboss.jetty.Jetty.service(Jetty.java:527)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      151)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:484)

      16:32:37,375 INFO [STDOUT] 54000 [SocketListener-0] WARN org.jboss.jetty.Jetty
      - WARNING: Servlet Exception for /BAPI_COMPANYCODE_GETLIST/BAPI_COMPANYCODE_GET
      LIST.jsp?action=submit
      java.rmi.NoSuchObjectException: Could not activate; nested exception is:
      java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions
      \com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system can
      not find the file specified)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache
      .java:185)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      fulSessionInstanceInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      r.java:380)
      at org.jboss.ejb.Container.invoke(Container.java:705)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:102)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
      6)
      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSession
      Interceptor.java:117)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy22.disconnect(Unknown Source)
      at org.apache.jsp.BAPI_0005fCOMPANYCODE_0005fGETLIST$jsp._jspService(BAP
      I_0005fCOMPANYCODE_0005fGETLIST$jsp.java:180)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      81)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371
      )
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:6
      07)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
      at org.mortbay.http.HttpServer.service(HttpServer.java:757)
      at org.jboss.jetty.Jetty.service(Jetty.java:527)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      151)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:484)
      ----------------------------------------------------------

      using stateful session bean.

      JBOSS.xml File in .jar is:
      ============================

      <?xml version="1.0" encoding="UTF-8"?>

      <enterprise-beans>

      <ejb-name>com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean</ejb-name>
      <jndi-name>com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean</jndi-name>
      <local-jndi-name>com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean</local-jndi-name>
      <resource-ref>
      <res-ref-name>eis/com.vergil.bean.BAPI_COMPANYCODE_GETLISTFactory</res-ref-name>
      <resource-name>BAPI_COMPANYCODE_GETLISTFactory</resource-name>
      </resource-ref>

      </enterprise-beans>
      <resource-managers>
      <resource-manager>
      <res-name>BAPI_COMPANYCODE_GETLISTFactory</res-name>
      <res-jndi-name>java:/VSAPRAJNDINAME</res-jndi-name>
      </resource-manager>
      </resource-managers>

      =========================================

      Ejb-jar.xml

      ============================================
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
      <ejb-jar>
      <enterprise-beans>

      <ejb-name>com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean</ejb-name>
      com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Home
      com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Remote
      <ejb-class>com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
      <resource-ref>
      <res-ref-name>eis/com.vergil.bean.BAPI_COMPANYCODE_GETLISTFactory</res-ref-name>
      <res-type>javax.resource.cci.ConnectionFactory</res-type>
      <res-auth>Application</res-auth>
      </resource-ref>

      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>

      <ejb-name>com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>
      =======================================================

      *-service.xml file
      ======================================================



      <!-- ==================================================================== -->
      <!-- New ConnectionManager setup for default hsql dbs -->
      <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
      <!-- ==================================================================== -->


      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->

      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=VSAP JCA Adapter
      VSAPRAJNDINAME


      <config-property name="ClientNumber" type="java.lang.String">800</config-property>
      <config-property name="Language" type="java.lang.String">EN</config-property>
      <config-property name="UserName" type="java.lang.String">sap*</config-property>
      <config-property name="Password" type="java.lang.String">pass</config-property>
      <config-property name="ServerName" type="java.lang.String">sap2</config-property>
      <config-property name="SystemNumber" type="java.lang.String">13</config-property>
      <config-property name="LicenceKey" type="java.lang.String">zCd-HNNa-VN3S-nBBC-eJhS-]eAd-MI</config-property>



      <!--Below here are advanced properties -->




      <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->


      0
      50
      5000
      15
      <!--criteria indicates if Subject (from security domain) or app supplied
      parameters (such as from getConnection(user, pw)) are used to distinguish
      connections in the pool. Choices are
      ByContainerAndApplication (use both),
      ByContainer (use Subject),
      ByApplication (use app supplied params only),
      ByNothing (all connections are equivalent, usually if adapter supports
      reauthentication)-->
      ByApplication


      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager

      <!--make the rar deploy! hack till better deployment-->
      jboss.jca:service=RARDeployer




      =========================================================

      in client side im getting error as :
      ---------------------------------------------------
      HTTP ERROR: 500 Could not activate; nested exception is: java.io.FileNotFoundException: E:\jboss-3.0.0\server\default\db\sessions\com.vergil.bean.BAPI_COMPANYCODE_GETLIST_Bean\1026817330562.ser (The system cannot find the file specified)
      ----------------------------------------------------

      kindly tell me wht can be a problem.

      thanks in advance.

      Gurumurthy R.