-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Help, net.sf.ehcache.CacheException: error setting options
PostPosted: Thu Jun 14, 2007 12:23 am 
Newbie

Joined: Thu Jun 14, 2007 12:19 am
Posts: 2
Hi guys, I meet some problem with my system, when Tomcat starts up, if the server is not connected to the internet, one feature designed with Hibernate is not working. but if the server is online, it is working very well.

any idea?


here is the error msg:


SEVERE: Servlet.service() for servlet action threw exception
java.lang.ExceptionInInitializerError
at au.com.polonious.pcom.utils.TickitDocumentUtil.getReferenceObjectByID(TickitDocumentUtil.java:47)
at au.com.polonious.pcom.web.AttachmentDetailAction.execute(AttachmentDetailAction.java:70)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at au.com.sgen.tickit.control.NoCacheFilter.doFilter(NoCacheFilter.java:39)
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.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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
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:566)
Caused by: org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: error setting options
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:134)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:173)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at au.com.sgen.tickit.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:7)
... 25 more
Caused by: net.sf.ehcache.CacheException: error setting options
at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:92)
at net.sf.ehcache.CacheManager.init(CacheManager.java:204)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:183)
at net.sf.ehcache.CacheManager.create(CacheManager.java:343)
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:130)
... 28 more


Top
 Profile  
 
 Post subject: Re: Help, net.sf.ehcache.CacheException: error setting optio
PostPosted: Thu Jun 14, 2007 1:21 am 
Newbie

Joined: Thu Jun 14, 2007 12:19 am
Posts: 2
Hi,

my system is using Cache Provider plugin for ehcache-1.2.3
which is setting net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory
instead of net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider

in my ehcache.xml file.

now I found in the error msg:


Caused by: net.sf.ehcache.CacheException: error setting options
at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:92)
at net.sf.ehcache.CacheManager.init(CacheManager.java:204)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:183)
at net.sf.ehcache.CacheManager.create(CacheManager.java:343)
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:130)


Should I set net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
in ehcache.xml file , or should i provide ehcache-2.xml in classpath?


please give me some hints if you have any idea. Thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.