PojoCache and Weblogic 10 : Failure while registering mbeans
egeesken Feb 11, 2009 4:55 PMHi,
ia m trying to integrate my JBoss PojoCache 3.0 GA in an WebLogic 10.0 Server using JDK 5. I have integrated the PoJoCache initialization in my WebLogic StartUpClass.
I can initialize the PojoCache (.createCache(config, false)) but when i try to start the cache i get an
org.jboss.cache.CacheException: Failure while registering mbeans
My code in the StartUpClass is:
try { pojoCache = PojoCacheFactory.createCache(configFile, false); pojoCache.start(); } catch (Exception e) { e.printStackTrace(); }
and the exception
org.jboss.cache.pojo.PojoCacheException: Failed starting org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException at org.jboss.cache.pojo.impl.PojoCacheImpl.start(PojoCacheImpl.java:316) at com.csc.weblogic.security.GTESLifecycleListener.preStart(GTESLifecycleListener.java:43) at com.csc.weblogic.security.GTESLifecycleListenerStartup.main(GTESLifecycleListenerStartup.java:10) 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:585) at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeMain(ClassDeploymentManager.java:353) at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClass(ClassDeploymentManager.java:263) at weblogic.management.deploy.classdeployment.ClassDeploymentManager.access$000(ClassDeploymentManager.java:54) at weblogic.management.deploy.classdeployment.ClassDeploymentManager$1.run(ClassDeploymentManager.java:205) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClassDeployment(ClassDeploymentManager.java:198) at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClassDeployments(ClassDeploymentManager.java:177) at weblogic.management.deploy.classdeployment.ClassDeploymentManager.runStartupsAfterAppActivation(ClassDeploymentManager.java: at weblogic.management.deploy.classdeployment.StartupClassPrelistenService.start(StartupClassPrelistenService.java:13) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) Caused by: org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148) at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:970) at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:746) at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:610) at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:355) at org.jboss.cache.pojo.impl.PojoCacheImpl.start(PojoCacheImpl.java:312) ... 19 more Caused by: java.lang.reflect.InvocationTargetException 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:585) at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144) ... 24 more Caused by: org.jboss.cache.CacheException: Failure while registering mbeans at org.jboss.cache.jmx.JmxRegistrationManager.registerAllMBeans(JmxRegistrationManager.java:144) at org.jboss.cache.jmx.PlatformMBeanServerRegistration.registerToPlatformMBeanServer(PlatformMBeanServerRegistration.java:70) ... 29 more Caused by: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property at javax.management.ObjectName.construct(ObjectName.java:529) at javax.management.ObjectName.<init>(ObjectName.java:1304) at org.jboss.cache.jmx.JmxRegistrationManager.registerAllMBeans(JmxRegistrationManager.java:135) ... 30 more
I am using the eviction-enabled.xml policy.
<?xml version="1.0" encoding="UTF-8"?> <jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0"> <!-- Configure the TransactionManager --> <transaction transactionManagerLookupClass="org.jboss.cache.transaction.JBossTransactionManagerLookup"/> <!-- wakeUpInterval: time interval (millis) when the eviction thread kicks in. --> <eviction wakeUpInterval="60000"> <!-- Cache wide defaults default algorithmClass: if an algorithm class is not specified for a region, this one is used by default. default eventQueueSize if an event queue size is not specified for a region, this one is used by default. --> <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="2000000"> <property name="maxNodes" value="3000000" /> <property name="timeToLive" value="1000000" /> </default> <!-- configurations for various regions--> <region name="/_default_"> <property name="maxNodes" value="3000000" /> <property name="timeToLive" value="1000000" /> </region> </eviction> </jbosscache>
Can anyone give me a hint what i am doing wrong or what i have forgotten.
Any help would be perfect.
Thanks in advance
Edmund