Rey solved this problem. See below.

Best,
Fei


---------- Forwarded message ----------
From: Chavez, Rey <[email protected]>
Date: Fri, Jul 26, 2013 at 8:19 AM
Subject: Re: ZooInspector on Mac OS X
To: "[email protected]" <[email protected]>


Hi,

I came across your posting on the apache mail archive regarding the
following issue:


2013-06-14 08:45:39,033 [myid:] - ERROR [main:ZooInspectorPanel@76] -
Error loading default node viewers.
java.lang.ClassNotFoundException: # Licensed to the Apache Software
Foundation (ASF) under one or more
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at
org.apache.zookeeper.inspector.gui.ZooInspectorPanel.<init>(ZooInspectorPanel.java:72)
at org.apache.zookeeper.inspector.ZooInspector.main(ZooInspector.java:45)


I experienced the same issue and did not find a solution online, but
figured out the cause and a solution.  In case you are still
experiencing the issue, here they are:


Zoo Inspector uses a config file located in the 'config' directory
named DefaultNodeVeiwers.cfg to read in the names of some Java classes
which it dynamically loads.  If you open that file, you'll see that it
contains a commented-out header followed by the names of three Java
classes.  What is happening is that Zoo Keeper is not expecting any
comments, doesn't know to filter them out, and treats them as the
names of classes to load dynamically.  That exception you're seeing
means it's trying to find a Java class named "# Licensed to the Apache
Software Foundation (ASF) under one or more".  To fix the issue, open
up the file, remove all of the comments, save your changes, and start
up Zoo Keeper.


I'm not a member of the apache mailing list, so I can't post this
solution on there, but please free to post it if you would like.  This
might be helpful to someone else as well.


I hope this was helpful.


Best,

Rey


 <http://www.interoptechnologies.com>
<http://www.facebook.com/pages/Interop-Technologies/166558410115178><https://twitter.com/#%21/InteropTechnolo><http://www.linkedin.com/company/interop-technologies><http://www.youtube.com/user/InteropTechnologies/>
* Rey Chavez *
Software Development Manager *T:* +1 972-753-1866 (Texas)   *F:* +1
239-425+6845Confidentiality Notice: The information in this e-mail and in
any attachment may contain information which is legally privileged. It is
intended only for the attention and use of the named recipient. If you are
not the intended recipient, you are not authorized to retain, disclose,
copy or distribute the message and/or any of its attachments. If you
received this e-mail in error, please notify me and delete this message.
Thank you.

Reply via email to