1 Reply Latest reply on Jun 23, 2006 9:21 AM by biswajit_java

    Cache Loader Impl Probs

    biswajit_java Newbie

      Hi all,

      Please refer

      http://jboss.org/index.html?module=bb&op=viewtopic&t=82088
      and now i am again reopening this issue in a new topic.

      Now i migrated from JBossCache-1.3.0.SP1 to JBossCache-1.4.0.CR1.

      In the current release the bug(
      * [ JBCACHE-608 ] Cache loader does not load data for cache.get(Fqn fqn) calls) is fixed,i got this information from Changelog.txt

      But again i m getting the earlier error which is jboss:internal:uninitialized=null

      13:00:10,973 INFO [STDOUT] Mon Jun 19 13:00:10 IST 2006 [DEBUG] com.dnaO2.infra.cache.service.JBossCacheService.getCacheObject(String sFqn). - Object returned from the Cache:{jboss:internal:uninitialized=null}
      13:00:10,973 INFO [STDOUT] Mon Jun 19 13:00:10 IST 2006 [DEBUG] com.dnaO2.infra.cache.service.JBossCacheService.getCacheObject(String sFqn). - Found the Object in Cache
      13:00:10,973 INFO [STDOUT] For the 1st Time:::Data:::{jboss:internal:uninitialized=null}

      Again in my treecache-service.xml i have placed TransactionManagerLookupClass as the JBossTransactionManagerLookup

      org.jboss.cache.JBossTransactionManagerLookup

      It was working fine with JBossCache-1.3.0.SP1 but with JBossCache-1.4.0.CR1 i am getting following error.


      13:00:11,441 INFO [STDOUT] Mon Jun 19 13:00:11 IST 2006 [INFO] com.dnaO2.infra.cache.loader.AppCacheLoader.rollback(Object tx). - Coming into rollback(Object tx) with tx as:<biswajit:4470>:1
      13:00:11,441 INFO [STDOUT] Mon Jun 19 13:00:11 IST 2006 [ERROR] com.dnaO2.infra.cache.service.JBossCacheService.putCacheObject(String sFqn, Object objKey, Object objValue). - RollBack Failed
      13:00:11,441 INFO [STDOUT] Mon Jun 19 13:00:11 IST 2006 [ERROR] com.dnaO2.infra.cache.service.JBossCacheService.putCacheObject(String sFqn, Object objKey, Object objValue). - org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=biswajit/26, BranchQual=, localId=26] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.util.NestedRuntimeException: ; - nested throwable: (java.lang.NoSuchMethodError: org.jboss.cache.Modification.getType()B))
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:354)
      at org.jboss.tm.TxManager.commit(TxManager.java:224)
      at com.dnaO2.infra.cache.service.JBossCacheService.putCacheObject(JBossCacheService.java:194)
      at org.apache.jsp.cacheClient_jsp._jspService(org.apache.jsp.cacheClient_jsp:86)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      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:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      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.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: org.jboss.util.NestedRuntimeException: ; - nested throwable: (java.lang.NoSuchMethodError: org.jboss.cache.Modification.getType()B)
      at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:241)
      at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1473)
      at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1092)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:306)
      ... 28 more
      Caused by: java.lang.NoSuchMethodError: org.jboss.cache.Modification.getType()B
      at com.dnaO2.infra.cache.loader.AppCacheLoader.put(AppCacheLoader.java:193)
      at com.dnaO2.infra.cache.loader.AppCacheLoader.prepare(AppCacheLoader.java:317)
      at org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:149)
      at org.jboss.cache.interceptors.CacheStoreInterceptor.access$100(CacheStoreInterceptor.java:22)
      at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:227)
      ... 31 more
      org.jboss.util.NestedRuntimeException: ; - nested throwable: (java.lang.NoSuchMethodError: org.jboss.cache.Modification.getType()B)
      at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:241)
      at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1473)
      at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1092)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:306)
      at org.jboss.tm.TxManager.commit(TxManager.java:224)
      at com.dnaO2.infra.cache.service.JBossCacheService.putCacheObject(JBossCacheService.java:194)
      at org.apache.jsp.cacheClient_jsp._jspService(org.apache.jsp.cacheClient_jsp:86)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      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:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      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.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.NoSuchMethodError: org.jboss.cache.Modification.getType()B
      at com.dnaO2.infra.cache.loader.AppCacheLoader.put(AppCacheLoader.java:193)
      at com.dnaO2.infra.cache.loader.AppCacheLoader.prepare(AppCacheLoader.java:317)
      at org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:149)
      at org.jboss.cache.interceptors.CacheStoreInterceptor.access$100(CacheStoreInterceptor.java:22)
      at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:227)
      ... 31 more
      java.lang.NoSuchMethodError: org.jboss.cache.Modification.getType()B
      at com.dnaO2.infra.cache.loader.AppCacheLoader.put(AppCacheLoader.java:193)
      at com.dnaO2.infra.cache.loader.AppCacheLoader.prepare(AppCacheLoader.java:317)
      at org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:149)
      at org.jboss.cache.interceptors.CacheStoreInterceptor.access$100(CacheStoreInterceptor.java:22)
      at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:227)
      at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1473)
      at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1092)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:306)
      at org.jboss.tm.TxManager.commit(TxManager.java:224)
      at com.dnaO2.infra.cache.service.JBossCacheService.putCacheObject(JBossCacheService.java:194)
      at org.apache.jsp.cacheClient_jsp._jspService(org.apache.jsp.cacheClient_jsp:86)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      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:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      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.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:534)


      Could you suggest a solution for this.
      Awaiting for your early reply.
      Thanks in advance.

      Regards,
      Biswajit.