-
Enhancement
-
Resolution: Done
-
Major
-
5.1.1.FINAL
-
None
When configuring the cache programmatic using the GlobalConfigurationBuilder and setting the clustername to null,
causes JGroupsTransport to hang at startup or creating NPE, when JMX is enabled.
e.g.:
Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:236)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:875)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:630)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:619)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:523)
at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:200)
... 32 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:597)
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:234)
... 37 more
Caused by: org.infinispan.CacheException: Channel connected, but unable to register MBeans
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:195)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:169)
... 42 more
Caused by: java.lang.NullPointerException
at javax.management.ObjectName.quote(ObjectName.java:1855)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:189)
... 43 more