Menu

#1 Null pointer exception

open
nobody
None
5
2002-07-02
2002-07-02
No

I just built JPerfAnaly from CVS sources (using the
makefile). I started app with
java -Xmx96m -classpath net.javalinux.JPerfAnaly xx.prof

where xxx.prof was produced runing the IBM 1.3.1
version of Java for Linux

I get

Exception in thread "main" java.lang.NullPointerException
at net.javalinux.SelectMethod.<init>(SelectMethod.java:41)
at
net.javalinux.JPerfAnal.<init>(JPerfAnal.java(Compiled
Code))
at net.javalinux.JPerfAnal.main(JPerfAnal.java:320)

Is this a known bug?

Regards,

Barnet Wagman
wagman@enteract.com

Discussion

  • Nathan Meyers

    Nathan Meyers - 2002-08-21

    Logged In: YES
    user_id=413143

    Could you supply xxx.prof?

    JPerfAnal isn't smart about checking whether the file has
    any real data, and could fail in this way if there are no
    traces. Unfortunately, some JVMs don't produce any useful
    analysis data with hprof. Getting my hands on that file
    would help me ascertain if that's the case or we have a real
    bug.

     
  • Anders Eriksson

    Anders Eriksson - 2002-11-13

    Logged In: YES
    user_id=295842

    Hello,

    this happens when you do not have cpu=samples as hprof
    option. Turn that on and it works.

    /Anders

     
  • Kurt Werle

    Kurt Werle - 2003-11-18

    Logged In: YES
    user_id=6449

    Please give the user some kind of information when this exception
    happens so they don't have to look here!

     

Log in to post a comment.