Looks like an AOP bug. Could you try 2.2.0.CR5 ?
Cheers
Manik
On 9 Jul 2008, at 15:44, Dilip Ladhani wrote:
Hello Everyone,
I am trying to get JbossCache POJO working in my RSA 7 environment
(RSA has Websphere 6.1 as the plugin server) and running into issues.
I downloaded JbossCache POJO 2.1.0 and copied all the jars from the
"lib" folder to my EAR. I also copied jbosscache-pojo.jar from root of
the download to my EAR. My WAR is (via the Manifest is pointing to all
these jars in the EAR.
I have a simple class and I get an error at the following line. The
configFile is a string with Absolute path to the replSync-service.xml.
cache=PojoCacheFactory.createCache(configFile);
I tried to debug this by attaching the source and it seems it is
unable to load the class PojoCacheImpl. I will copy my stacktrace at
the bottom. I am not sure why this file can't get loaded. Any ideas?
Thanks...
I could have copied the same jars to my WEB-INF folder in my WAR but I
get the same problem
[7/9/08 10:44:24:831 EDT] 0000001f ServletWrappe E SRVE0068E:
Uncaught exception thrown in one of the service methods of the
servlet: CachePOJO. Exception thrown :
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:214)
at
org
.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:
29)
at com.ford.aps.CachePOJO.doPost(CachePOJO.java:40)
at com.ford.aps.CachePOJO.doGet(CachePOJO.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com
.ibm
.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:
989)
at
com
.ibm
.ws
.webcontainer
.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at
com
.ibm
.ws
.wswebcontainer
.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:
3252)
at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:
264)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:
811)
at
com
.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:
1439)
at
com
.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:
112)
at
com
.ibm
.ws
.http
.channel
.inbound
.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at
com
.ibm
.ws
.http
.channel
.inbound
.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at
com
.ibm
.ws
.http
.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at
com
.ibm
.ws
.tcp
.channel
.impl
.NewConnectionInitialReadCallback
.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at
com
.ibm
.ws
.tcp
.channel
.impl
.NewConnectionInitialReadCallback
.complete(NewConnectionInitialReadCallback.java:113)
at
com
.ibm
.ws
.tcp
.channel
.impl
.AioReadCompletionListener
.futureCompleted(AioReadCompletionListener.java:165)
at
com
.ibm
.io
.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:
217)
at
com
.ibm
.io
.async
.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at
com
.ibm
.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.NullPointerException
at org.jboss.aop.Domain$1.run(Domain.java:107)
at
java.security.AccessController.doPrivileged(AccessController.java:193)
at org.jboss.aop.Domain.getDomainName(Domain.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl
$PojoCacheImplAdvisor.initialise(PojoCacheImpl
$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl
$PojoCacheImplAdvisor.<init>(PojoCacheImpl$PojoCacheImplAdvisor.java)
at
org.jboss.cache.pojo.impl.PojoCacheImpl.<clinit>(PojoCacheImpl.java)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
... 26 more
[7/9/08 10:44:24:846 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened
incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc
\server2_2e942e94_08.07.09_10.44.24_0.txt
[7/9/08 10:44:24:893 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC
closed incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc
\server2_2e942e94_08.07.09_10.44.24_0.txt
[7/9/08 10:44:24:909 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened
incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc
\server2_2e942e94_08.07.09_10.44.24_1.txt
[7/9/08 10:44:24:956 EDT] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC
closed incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\server2\logs\ffdc
\server2_2e942e94_08.07.09_10.44.24_1.txt
[7/9/08 10:44:24:956 EDT] 0000001f WebApp E [Servlet
Error]-[CachePOJO]: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:214)
at
org
.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:
29)
at com.ford.aps.CachePOJO.doPost(CachePOJO.java:40)
at com.ford.aps.CachePOJO.doGet(CachePOJO.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com
.ibm
.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:
989)
at
com
.ibm
.ws
.webcontainer
.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at
com
.ibm
.ws
.wswebcontainer
.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:
3252)
at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:
264)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:
811)
at
com
.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:
1439)
at
com
.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:
112)
at
com
.ibm
.ws
.http
.channel
.inbound
.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at
com
.ibm
.ws
.http
.channel
.inbound
.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at
com
.ibm
.ws
.http
.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at
com
.ibm
.ws
.tcp
.channel
.impl
.NewConnectionInitialReadCallback
.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at
com
.ibm
.ws
.tcp
.channel
.impl
.NewConnectionInitialReadCallback
.complete(NewConnectionInitialReadCallback.java:113)
at
com
.ibm
.ws
.tcp
.channel
.impl
.AioReadCompletionListener
.futureCompleted(AioReadCompletionListener.java:165)
at
com
.ibm
.io
.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:
217)
at
com
.ibm
.io
.async
.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at
com
.ibm
.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.NullPointerException
at org.jboss.aop.Domain$1.run(Domain.java:107)
at
java.security.AccessController.doPrivileged(AccessController.java:193)
at org.jboss.aop.Domain.getDomainName(Domain.java:102)
at org.jboss.cache.pojo.impl.PojoCacheImpl
$PojoCacheImplAdvisor.initialise(PojoCacheImpl
$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl
$PojoCacheImplAdvisor.<init>(PojoCacheImpl$PojoCacheImplAdvisor.java)
at
org.jboss.cache.pojo.impl.PojoCacheImpl.<clinit>(PojoCacheImpl.java)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
... 26 more
_______________________________________________
jbosscache-users mailing list
jbosscache-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-users
--
Manik Surtani
Lead, JBoss Cache
manik(a)jboss.org