• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException using Arrays.sort

 
Zak Nixon
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to install it all at once, to no avail. I still
have the above stack trace.

Zak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic