[
http://jira.jboss.com/jira/browse/JGRP-688?page=all ]
Bela Ban resolved JGRP-688.
---------------------------
Fix Version/s: 2.6.2
(was: 2.6.3)
Resolution: Done
Need to report root causes to end user as exception in code
-----------------------------------------------------------
Key: JGRP-688
URL:
http://jira.jboss.com/jira/browse/JGRP-688
Project: JGroups
Issue Type: Task
Affects Versions: 2.6.1
Environment: Windows/Linux
Reporter: Dipak Kothari
Assigned To: Bela Ban
Fix For: 2.6.2, 2.7
An example of what exception is received at the application level when an incorrect host
has been specified in the protocol properties:
org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.init(JChannel.java:1403)
at org.jgroups.JChannel.<init>(JChannel.java:279)
at org.jgroups.JChannelFactory.createChannel(JChannelFactory.java:308)
at
com.ubs.apm.control.service.nameservice.jgroup.JGroupNameService.init(JGroupNameService.java:82)
at
com.ubs.apm.control.service.nameservice.jgroup.JGroupTest.testPropertiesLoad(JGroupTest.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.IllegalArgumentException: the following properties in TCPPING are
not recognized: {num_initial_members=1, timeout=3000}
at
org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:700)
at
org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:595)
at org.jgroups.stack.Configurator.createProtocols(Configurator.java:375)
at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:58)
at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:205)
at org.jgroups.JChannel.init(JChannel.java:1400)
... 27 more
either you have to look into the code or enable correct logging level to see real cause.
What would be useful is to see the actual cause of exception at the application layer.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira