• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web page for hand-held

 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this is the right forum - but here goes.

I'm developing a web app that will be viewed only from a handheld device, via a wireless network. My app worked fine in a test environment, but when I access it on a handheld, one of my objects isn't visible - I get a null-pointer exception when I try to display it. Without going into all the specifics, is there something special I should know about accessing my page & my objects thru a handheld?

My webserver is Tomcat 5, & using j2sdk1.4.2_02.

Darn. Usually by the time I word my question, I answer it myself. Guess I'll post this one. Any help's appreciated!!
[ January 10, 2005: Message edited by: Elaine Micheals ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you get the NullPointerException on the server-side or from the handheld's internals?
 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a HTTP Status 500 error, with a root cause of java.lang.NullPointerException, in the handheld's browser. No error in the Tomcat console on the server side. The browser error message points to a line in the compiled JSP. When I look at that line (or close to it...) it is the first time (on this page) where I'm referencing a method on one of my Objects.

Thank you for your interest in my problem!
 
Yuri Magrisso
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is hard to say what can be the problem.
It can be an encoding or content-type problem.
I had once problem when I tried to send POST data without setting proper content-type. Consequently the servlet could not get the parameters from the request and so on.

If you can run that under debugger I think it will be the easiest to catch the problem.

Best regards,
Yuri
 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AACCK!! I just realized I had different versions of both j2sdk & tomcat on my test machine vs the server machine. I reinstalled both & problem's gone
<knocks on wood/>

Thank you for your interest in helping!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic