This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "NullPointerException using Arrays.sort" Watch "NullPointerException using Arrays.sort" New topic
Author

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?

Thanks

Zak
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.

Zak
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException using Arrays.sort
 
Similar Threads
Spring and Hessian
Tomcat not loading mysql database driver
Problem with Jakarta Commons Fileupload
Remote Home lookup from tomcat 5.0 to Weblogic 8.1
The First Steps.. you start here