Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMSDemo NullPointerException.

 
Mike Wang
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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.
Does anybody got the same message
[ February 22, 2004: Message edited by: Mike Wang ]
 
Mike Wang
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic