• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Stacktrace on device  RSS feed

 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got this Midlet which sends a four digit numeric string to the server.
Works fine in the emulator.
I deployed it on two different Nokia handset models.
On one, it works fine, just like the emulator.
However, on the other, it gives me a HTTP connection error.

This is driving me crazy.
Is there any way to check out the stack trace on a real handset? All I am limited to is the exception.getMessage() which is of no use really.

 
Bartender
Posts: 19807
93
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a busy little bee you are today, Maneesh!

I haven't done this in a while, but I think I just dumped the stacktrace to a popup dialog myself.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:What a busy little bee you are today, Maneesh!
I haven't done this in a while, but I think I just dumped the stacktrace to a popup dialog myself.




Big question. How do I actually go about dumping the stack trace on the dialog?
Unfortunately the JME version of exception does not offer access to the stack trace elements and the toString() just returns the e.getMessage().
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would this help or have you already seen it?
http://www.forum.nokia.com/Develop/Java/Tools/Series40_debugger.xhtml
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Darryl.
That looks promising. Will give it a whirl.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update:
The debugger link cites the system requirements as Windoze XP and 7. I use Snow Leopard and was reluctant to get my Windoze VM configured with everything just to solve this problem.

I invested some time googling and eventually found http://blogs.forum.nokia.com/blog/hartti-suomelas-forum-nokia-blog/2006/11/09/series-40-and-network-configuration I have posted the link here for future users.
It seems opera works, but to get midlets one needs to tweak the access point.
Who would have thought of this?

Anyway, this solves my problem (running the midlet, not the stack trace one).

Thanks Tim & Darryl for your suggestions and help.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!