[ https://issues.apache.org/jira/browse/ZOOKEEPER-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13771783#comment-13771783 ]
Flavio Junqueira commented on ZOOKEEPER-1696: --------------------------------------------- Ok, got it. My understanding is that one reason for proposing that we catch runtime exception because we also need to catch security exception. I'd rather catch both explicitly instead of catching runtime exception, to be conservative with respect to the exceptions we catch and for readability. Another reason seems to be that other applications might throw a different exception. Given that we don't know what other applications will do, I'd rather not speculate. Does it sound reasonable? > Fail to run zookeeper client on Weblogic application server > ----------------------------------------------------------- > > Key: ZOOKEEPER-1696 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1696 > Project: ZooKeeper > Issue Type: Bug > Components: java client > Affects Versions: 3.4.5 > Environment: Java version: jdk170_06 > WebLogic Server Version: 10.3.6.0 > Reporter: Dmitry Konstantinov > Assignee: Jeffrey Zhong > Priority: Critical > Fix For: 3.4.6 > > Attachments: zookeeper-1696.patch > > > The problem in details is described here: > http://comments.gmane.org/gmane.comp.java.zookeeper.user/2897 > The provided link also contains a reference to fix implementation. > {noformat} > ####<Apr 24, 2013 1:03:28 PM MSK> <Warning> <org.apache.zookeeper.ClientCnxn> > <devapp090> <clust2> <[ACTIVE] ExecuteThread: '2' for queue: > 'weblogic.kernel.Default (devapp090:2182)> <internal> <> <> <1366794208810> > <BEA-000000> <WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server > null, unexpected error, closing socket connection and attempting reconnect > java.lang.IllegalArgumentException: No Configuration was registered that can > handle the configuration named Client > at > com.bea.common.security.jdkutils.JAASConfiguration.getAppConfigurationEntry(JAASConfiguration.java:130) > at > org.apache.zookeeper.client.ZooKeeperSaslClient.<init>(ZooKeeperSaslClient.java:97) > at > org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:943) > at > org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:993) > > > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira