• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

SMSDemo NullPointerException.

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I run the SMSDemo in WTK 2.1,but It can not recieve the messege
It will always give me
Uncaught exception java/lang/NullPointerException.
(btw: I follow the step suggested in the WTK document,)
Does anybody got the same message?
Or anyone has successfully run the SMSDemo on Sun WTK 2.1 or 2.0?
I have tried OTA, but still can not work
 
Mike Wang
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have solved this problem.

I think it should be a bug in WTK 2.1
Another guy also asked the same question in sun forum,
http://forum.java.sun.com/thread.jsp?thread=476073&forum=82&message=2209148
Here is how I solved it:
(OS: WinXP Pro+JDK1.4.2_03)
1. Uninstall the old WTK 2.1, delete all the files
2. Change My system's default Locale to English(U.S) (My original default is Chinese)
3. restart your computer
4. reinstall the WTK 2.1
Run the SMSDemo through OTA, It should be fine.
Very simple , but it waste me a lot of time. I have tried on a lot of machines to find whether it is a bug(Unfortunatly their default Locale are all Chinese) and debug the sun's source until I change my system Locale to English. In my understanding, the NullPointerException should be always a bug!
There days people are like to say "UNFAIR". Yes, it is unfair anywhere, the lack of testing on other's language OS make it "UNFAIR" for none english speaking nations. (Just a joke, Unfair is too popular now)
[ February 25, 2004: Message edited by: Mike Wang ]
 
Beauty is in the eye of the tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic