aspose file tools*
The moose likes JSP and the fly likes NullPointerExceptions everywhere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "NullPointerExceptions everywhere" Watch "NullPointerExceptions everywhere" New topic
Author

NullPointerExceptions everywhere

kw yap
Greenhorn

Joined: Mar 29, 2005
Posts: 1
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....
Sripathi Krishnamurthy
Ranch Hand

Joined: Mar 07, 2005
Posts: 232
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?
kwyap me
Greenhorn

Joined: Apr 02, 2005
Posts: 8
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.
 
Don't get me started about those stupid light bulbs.
 
subject: NullPointerExceptions everywhere