• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NullPointerException using Arrays.sort

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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. ;-)
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried to install it all at once, to no avail. I still
have the above stack trace.

Zak
reply
    Bookmark Topic Watch Topic
  • New Topic