• 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

Web page for hand-held

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Evacuate the building! Here, take this tiny ad with you:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic