• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stacktrace on device

 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
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.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18282
56
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
Saloon Keeper
Posts: 11096
13
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().
 
Darryl Burke
Bartender
Posts: 5148
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
Saloon Keeper
Posts: 11096
13
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
Saloon Keeper
Posts: 11096
13
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic