aspose file tools*
The moose likes Java Micro Edition and the fly likes Stacktrace on device Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Stacktrace on device" Watch "Stacktrace on device" New topic
Author

Stacktrace on device

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10522
    
    9

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16246
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10522
    
    9

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

Joined: May 03, 2008
Posts: 4658
    
    5

Would this help or have you already seen it?
http://www.forum.nokia.com/Develop/Java/Tools/Series40_debugger.xhtml


luck, db
There are no new questions, but there may be new answers.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10522
    
    9

Thanks Darryl.
That looks promising. Will give it a whirl.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10522
    
    9

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stacktrace on device