wood burning stoves
The moose likes Tomcat and the fly likes NullPointerException using Arrays.sort Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "NullPointerException using Arrays.sort" Watch "NullPointerException using Arrays.sort" New topic

NullPointerException using Arrays.sort

Zak Nixon
Ranch Hand

Joined: Sep 27, 2003
Posts: 126
This is the stack trace after I
setup Tomcat5 as a service. This
did NOT occur before installing it
as a service.

Any hints?


Jonas Isberg
Ranch Hand

Joined: Mar 18, 2003
Posts: 118
Does it work when you comment out the call to sort, and does the call to sort
work if you run the same code from the console? Do you know the exact line in your code that calls the non-succesful sort? Is there anything on that line that possible could be null? Well... I don't have the code, so I am trying to make you debug it and solve it yourself. ;-)
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

J Isberg.. just take a look at the stacktrace and think about it.

None of the stacktrace contains any classes that Zak would have written. These are all tomcat/sun internal classes.

Zak... did you install tomcat twice? How about uninstalling, and then re-installing it with the service, all in one shot?
Zak Nixon
Ranch Hand

Joined: Sep 27, 2003
Posts: 126
I tried to install it all at once, to no avail. I still
have the above stack trace.

I agree. Here's the link: http://aspose.com/file-tools
subject: NullPointerException using Arrays.sort
It's not a secret anymore!