I m not able to use Samurai tools on Sun Solaris 8 boxes

52 views
Skip to first unread message

Dwarkesh

unread,
Jul 10, 2008, 11:06:30 AM7/10/08
to Samurai-tool
Hello,
I have coppied samurai.jar file to my solaris box. Then is set my
environment
echo $CLASSPATH
/opt/bea/jdk142_11/lib/tools.jar:/opt/bea/.weblogic816/server/lib/
weblogic_sp.jar:/opt/bea/.weblogic816/server/lib/weblogic.jar:

Then i ran
java -jar samurai.jar
but this did not launched the app properly and gave following errors :
java.lang.ArithmeticException: / by zero
at javax.swing.text.PlainView.paint(PlainView.java:254)
at javax.swing.plaf.basic.BasicTextUI
$RootView.paint(BasicTextUI.java:13
19)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:
770)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:
749)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JViewport.paint(JViewport.java:722)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4794)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:
4740)
at javax.swing.JComponent.paint(JComponent.java:798)
at java.awt.GraphicsCallback
$PaintCallback.run(GraphicsCallback.java:21)
at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
60)
at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
)
at java.awt.Container.paint(Container.java:1312)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at
sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:405)
at java.awt.Component.dispatchEventImpl(Component.java:3678)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh .

So can you please let me know what need to be done to run this program
on Solaris Box.

Thanks,
Dwarkesh


Yusuke Yamamoto

unread,
Jul 10, 2008, 11:10:11 AM7/10/08
to samura...@googlegroups.com
Hi Dwarkesh,

Thanks for using Samurai.

I don't see any class from samurai.* package in the stacktrace and I
can't
imagine what's going inside.
Could you attach the full stacktrace?

Best regards,
Yusuke Yamamoto

dwarkesh....@jpmchase.com

unread,
Jul 10, 2008, 11:20:38 AM7/10/08
to samura...@googlegroups.com

Here is the stack trace when i ran :  java -jar samurai.jar
Please refer to the attached file for the stack trace.

Dwarkesh Marakna
Desk Contact: 312-954-5923



Yusuke Yamamoto <yus...@mac.com>
Sent by: samura...@googlegroups.com

07/10/2008 10:10 AM

Please respond to
samura...@googlegroups.com

To
samura...@googlegroups.com
cc
Subject
[Samurai] Re: I m not able to use Samurai tools on Sun Solaris 8 boxes



This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.

New Text Document (2).txt.zip

Yusuke Yamamoto

unread,
Jul 10, 2008, 11:32:39 AM7/10/08
to samura...@googlegroups.com
Hi,

It looks to be a known bug reported against JDK1.4.2_11 or earlier.

Try getting the latest JDK and see how it goes.
- JDK5 Update 16
- JDK6 Update 7

I suggest you using Java5 Update 16 or JDK6 Update 7 instead of JDK1.4.2.
Since JDK1.4.2 is going to retire very soon(Oct 2008).

Best regards,
Yusuke Yamamoto

dwarkesh....@jpmchase.com

unread,
Jul 10, 2008, 11:55:11 AM7/10/08
to samura...@googlegroups.com

Hi,
        Ill try installing the latest JVM and then will run the samurai tool. Ill keep you informed about the status of my progress with samurai tool.

Thanking You,

Dwarkesh Marakna
Desk Contact: 312-954-5923
Yusuke Yamamoto <yus...@mac.com>
Sent by: samura...@googlegroups.com

07/10/2008 10:32 AM

dwarkesh....@jpmchase.com

unread,
Jul 10, 2008, 3:26:27 PM7/10/08
to samura...@googlegroups.com

Hello Yusuke,
        I installed Java 6 Update7 on my laptop and updated the PATH environment variable and then tried to run the samurai software but it did not worked.
Here is the snapshot and the error msg:

C:\Data\e198502\downloads>java -jar samurai.jar
Exception in thread "main" java.util.zip.ZipException: error in opening zip file

        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)

Thanking You,

Dwarkesh Marakna
Desk Contact: 312-954-5923
Yusuke Yamamoto <yus...@mac.com>
Sent by: samura...@googlegroups.com

07/10/2008 10:32 AM

Yusuke Yamamoto

unread,
Jul 11, 2008, 12:56:50 AM7/11/08
to samura...@googlegroups.com
Interesting.

It looks that the jvm is unable to unarchive the jar file which used to be unarchivable with the prior jvm.

Firstly, please make sure you have the latest recommended and required patches.

And check the check sum.
-----------
$ md5sum samurai.jar 
77761a422ce10725c2328b300f921531  samurai.jar
-----------
And finally, make sure that the jar file is properly unarchivable.
-----------
$ jar xvf samurai.jar
 inflated: META-INF/MANIFEST.MF
 inflated: META-INF/MYSELF.SF
 inflated: META-INF/MYSELF.DSA
.
.
.
 inflated: samurai/web/table.vm
 inflated: samurai/web/threaddump.vm
-----------

Best regards,
Yusuke Yamamoto

dwarkesh....@jpmchase.com

unread,
Jul 11, 2008, 4:27:03 PM7/11/08
to samura...@googlegroups.com

Hello Yusuke,
        Right now i am installing Samurai on Windows XP with java installed on my laptop. So can you please let me know the steps to follow on Windows XP to setup Samurai tool.

Thanking You,
Dwarkesh Marakna
Desk Contact: 312-954-5923



Yusuke Yamamoto <yus...@mac.com>
Sent by: samura...@googlegroups.com

07/10/2008 11:56 PM

dwarkesh....@jpmchase.com

unread,
Jul 11, 2008, 4:32:45 PM7/11/08
to samura...@googlegroups.com

Hello,
I tried this on Windows XP with command prompt and got the error :

C:\Data\e198502\downloads>jar xvf samurai.jar
.
.
.
inflated: samurai/tail/MultipleLogWatcher.class
inflated: samurai/tail/SingleLogWatcher.class
inflated: samurai/tail/Tailer.class
inflated: samurai/util/CSVParser.class
ava.io.EOFException: Unexpected end of ZLIB input stream
       at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223)
       at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
       at java.util.zip.ZipInputStream.read(ZipInputStream.java:146)
       at sun.tools.jar.Main.extractFile(Main.java:827)
       at sun.tools.jar.Main.extract(Main.java:762)
       at sun.tools.jar.Main.run(Main.java:210)
       at sun.tools.jar.Main.main(Main.java:1022)


Thanking You,
Dwarkesh Marakna
Desk Contact: 312-954-5923



Yusuke Yamamoto <yus...@mac.com>
Sent by: samura...@googlegroups.com

07/10/2008 11:56 PM

Yusuke Yamamoto

unread,
Jul 12, 2008, 12:14:33 AM7/12/08
to samura...@googlegroups.com
Hi,

It looks that the samurai.jar is corrupted.
Please check the md5 check sum or the file size(809,445 bytes).

Otherwise, you can simply click the icon to launch Samurai via JavaWebStart.

Best regards,
Yusuke Yamamoto

dwarkesh....@jpmchase.com

unread,
Jul 14, 2008, 10:24:55 AM7/14/08
to samura...@googlegroups.com

Hello Yusuke,
        I tried to download the samurai.jar again from the your website and tried to run the java comman and received following error :
***********************************************
C:\Data\e198502\downloads>java -jar samurai.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: samurai/swing
/Samurai (Unsupported major.minor version 48.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\Data\e198502\downloads>dir samurai.jar
 Volume in drive C has no label.
 Volume Serial Number is 54E5-5861

 Directory of C:\Data\e198502\downloads

07/14/2008  09:14 AM           809,445 samurai.jar
               1 File(s)        809,445 bytes
               0 Dir(s)  15,035,764,736 bytes free
***************************************************************************
And for the other option when i click on icon         "Launch Samurai" , it popups to save  "samurai.jnlp" file . After saving that .jnlp file I dont know how to run that file.

Thanking You,
Dwarkesh Marakna
Desk Contact: 312-954-5923



Yusuke Yamamoto <yus...@mac.com>
Sent by: samura...@googlegroups.com

07/11/2008 11:14 PM

Yusuke Yamamoto

unread,
Jul 14, 2008, 11:16:44 AM7/14/08
to samura...@googlegroups.com
Hi,

Class version 48.0 is a version which is compatible with JDK1.4.x or later.
UnsupportedClassVersionError is throwed when you try to load an incompatible class.
It looks means that  the version of JDK you're using is JDK1.3.1 or earlier.
Samurai is compatible with JDK 1.4.x or later as mentioned in the site.
Plz check the version of the JDK with "java -version", ensure JDK1.4.x or later installed
on your machine and try again.

Thanks,
Yusuke Yamamoto

Reply all
Reply to author
Forward
0 new messages