• 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

NullPointerExceptions everywhere

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all java gurus

1 qn on java here.

I have 2 large scale jsp projects and they worked fine on the local machines. However when deployed to remote machines a real nasty problem came in.

If I press in IE F5 refresh a few times on remote side, on the 2nd, 3rd, 4th time I would get nullPointerExceptions or jdbc connectivity problems. And this problem occurs site wide for both projects on the remote server. This is not an issue with load balancing since we perform testing on 1 user isolated.

Both projects are using JSP/Javabeans and make frequent queries to database

1. Set up (local)
Project CMS
-- windows xp
-- Tomcat / jdk 1.4
-- Mysql

Project SSS
-- win 2k
-- tomcat / jrun 3 and 4 / jdk 1.3 /jdk 1.4 (all supported)
-- ms sql server 2000 / jdbc : odbc and jTDS

2. Remote setup (remote server)
Project CMS
-- Unix
-- Resin
-- Mysql

Project SSS
-- win 2k
-- jrun 3
-- jdk 1.3
-- sql server w sp3a / jdbc : odbc

Does anyone have a way out of this....
 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why are you using tomcat on local and resin in remote system? why cant you use/test the same environment in both the local as well as remote?
secondly which part of code is throwing exception? can you paste the code snippet here?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I would like to assure you that this app works on my development machine as well as on several other sites that runs win2k and jrun.

Not so much as a code problem.
reply
    Bookmark Topic Watch Topic
  • New Topic