Solved

Unable to start NMONVisualizer...problem with java. what am I doing wrong?

Posted on 2015-02-18
12
500 Views
Last Modified: 2015-03-09
Hello all,

This ismy first time using NMONVisualizerr and I am experiencing the following error. What am I doing wron? What do I need to do to get NMONVisualizer working? Any and all assistance will be highly appreciated. The error I am getting follows:

rapmq02hdqra /home/rapmq01i/workdir/perfmon/JarFile >java -jar NMONVisualizer_2015-02-02.jar


Exception in thread "main" java.lang.NoSuchMethodError: java.net.URLDecoder: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found
        at org.eclipse.jdt.internal.jarinjarloader.RsrcURLConnection.getInputStream(RsrcURLConnection.java:42)
        at java.net.URL.openStream(URL.java:827)
        at sun.misc.URLClassPath$Loader.getResource(URLClassPath.java:449)
        at sun.misc.URLClassPath.getResource(URLClassPath.java:166)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:676)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:239)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:516)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:220)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:54)

 

Thanks for your assistance.


Enyimba
0
Comment
Question by:Enyimba
  • 7
  • 4
12 Comments
 
LVL 13

Assisted Solution

by:Mark Bullock
Mark Bullock earned 125 total points
Comment Utility
It's possible you are using an older version of java.
Run the command java -version.
If it's prior to 1.8, consider upgrading.
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
This looks quite as if your Java version were too old (1.3?)

If your OS is indeed AIX 7.1 then you should be fine with Java 5 which comes with that version, however.

What do you see with "java -version" and "oslevel -r"?
0
 

Author Comment

by:Enyimba
Comment Utility
Guys, this what I am getting:

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM AIX build ca131-20051025 (SR9) (JIT enabled: jitc))
rapmq02hdqra /home/rapmq01i/workdir >


oslevel -r
7100-03

It looks like I will need to talk to some "grumpy" AIX folks in my shop, would you agree? Also, can I run NMONVisualizer in windows? If so, I could just as well run topas_nmon on AIX, ftp the data to my windows environment and work from there if my AIX people are not in a hurry to upgrade java. Is that workable? please respond...

Thanks

Enyimba
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 375 total points
Comment Utility
With AIX 7.1 you should have newer versions of Java available.

Please check

ls -d /usr/java*

If you see directories looking like "java5" or "java5_64" or "java6" or "java6_64"

then you can retry with (example)

/usr/java6/bin/java -jar NMONVisualizer_2015-02-02.jar

You can also try the 64bit versions, if present.

Consider changing your PATH to contain e.g. "/usr/java6/bin:/usr/java6/jre/bin" instead of the current value which is probably "/usr/java13/bin:/usr/java13/jre/bin"
0
 

Author Comment

by:Enyimba
Comment Utility
woolmilkporc,

I have just searced and found java5 and java6. I followed your recommendation and ran into the following error. Do you know what my problem may be? Thanks

rapmq02hdqra /home/rapmq01i/workdir/perfmon/JarFile >/usr/java6/bin/java -jar NMONVisualizer_2015-02-02.jar

Feb 18, 2015 2:07:47 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:174)
        at java.awt.Window.<init>(Window.java:443)
        at java.awt.Frame.<init>(Frame.java:414)
        at javax.swing.JFrame.<init>(JFrame.java:213)
        at com.ibm.nmon.gui.main.NMONVisualizerGui.<init>(NMONVisualizerGui.java:108)
        at com.ibm.nmon.gui.main.NMONVisualizerGui$1.run(NMONVisualizerGui.java:45)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:220)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:690)
        at java.awt.EventQueue.access$400(EventQueue.java:92)
        at java.awt.EventQueue$2.run(EventQueue.java:651)
        at java.awt.EventQueue$2.run(EventQueue.java:649)
        at java.security.AccessController.doPrivileged(AccessController.java:298)
        at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
        at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:660)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:280)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:195)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:180)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:172)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:133)
rapmq02hdqra /home/rapmq01i/workdir/perfmon/JarFile >
0
 

Author Comment

by:Enyimba
Comment Utility
woolmilkporc,
I ran the process again, this time I supplied the input file as shown. I tried it with java6 and with java5. Both return with error as shown:

rapmq02hdqra /home/rapmq01i/workdir/perfmon/JarFile >/usr/java6/bin/java -jar NMONVisualizer_2015-02-02.jar rapmq02hdqra_150218_1331.nmon

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
Caused by: java.lang.ClassNotFoundException: rapmq02hdqra_150218_1331.nmon
        at java.lang.Class.forName(Class.java:182)
        at com.ibm.nmon.DelegatingMain.main(DelegatingMain.java:19)
        ... 5 more

rapmq02hdqra /home/rapmq01i/workdir/perfmon/JarFile >/usr/java5/bin/java -jar NMONVisualizer_2015-02-02.jar rapmq02hdqra_150218_1331.nmon

Exception in thread "main" java.lang.UnsupportedClassVersionError: (com/ibm/nmon/DelegatingMain) bad major version at offset=6
        at java.lang.ClassLoader.defineClassImpl(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:267)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:602)
        at java.net.URLClassLoader.access$400(URLClassLoader.java:126)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1057)
        at java.security.AccessController.doPrivileged(AccessController.java:361)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:494)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:651)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:617)
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:204)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:54)
rapmq02hdqra /home/rapmq01i/workdir/perfmon/JarFile >

Any other things to try?

Thanks
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 375 total points
Comment Utility
The first error is due to missing X11 support. You need an X11 server on the client side.
From Windows best use MobaXterm (Home Edition): http://mobaxterm.mobatek.net/download.html

As for the second error: Please try the Java 64bit version, if present.
0
 

Author Comment

by:Enyimba
Comment Utility
I don't see java 64bit in my list. Could you explain what you mean by "From Windows best use MobaXterm (Home Edition): http://mobaxterm.mobatek.net/download.html"?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 375 total points
Comment Utility
MobaXterm is a self-contained executable for Windows
which provides ssh access to hosts just like PuTTY does, but which is also an X11 server that is needed to display on Windows NMONVisualizer's graphics coming from AIX.

The 64bit versions are in /usr/java5_64" and "/usr/java6_64".

Did you try Java6 (64bit or not)?

If anything fails you could indeed transfer the nmon file(s) to Windows and try to run the visualizer there.
If using FTP for the transfer take care to specify "binary" transfer mode!
0
 

Author Comment

by:Enyimba
Comment Utility
woolmilkporc,

Please disregard the last question...I download from mobaXterm, installed it and it was easy to follow what it was doing...now let me see if this solves my problem(s)
0
 

Author Comment

by:Enyimba
Comment Utility
woolmilkporc,
Nope...I still have the problem...here's what I get when I try to run the jar file from mobaXterm. Note: I logged in to the AIX server from mobaXter and tried to run the jar file that way and when I did, nothing happened. Frankly, I will prefer to run from windows environment. So I will focus on getting this baby working in that environment...

If I run from the windows environment, do I still need Xterm? I I thought that's what windows do natively, right?

I will try to run on windows and report back....
0
 

Author Closing Comment

by:Enyimba
Comment Utility
Thanks guys
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now