This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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: 20360
112
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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!