Where are my logs .. ?

It is nice and polite when application writes log. Especially when something went wrong it can help to track down the source of problem.  JMESDK has several components which produce their own log files. Here they are:

Device-manager

  • This is core component for the product. It starts automatically and registers all devices and emulators. Since all communication goes through device-manager this log contains always the most important information.
  • Log file is placed into /user's home/javame-sdk/3.0/log/device-manager.log (windows) or /Users/username/Library/Application Support/javame-sdk/3.0/log/device-manager.log (MacOSX)

Emulator

  • Emulator loads its skin and starts cldc or cdc virtual machine (VM). Emulator and VM write log under the emulator instance working directory /user's home/javame-sdk/3.0/work/(instance ID)/device.log. How to get the instance ID? When emulator starts, ID is displayed in window caption after the name of device.

mini IDE

  • JMESDK contains simple IDE which is built on top of Netbeans platform and thus uses platform logging mechanism. It writes log into /user's home/javame-sdk/toolbar/3.0/var/log/messages.log

Comments:

Dear Devs,

I am trying to get a sample eSWT based application to run in the Java ME SDK 3.0 for mac. For some reason though I get the error below, I am sure the code is absolutely correct. I am an experienced java and swt on desktop programmer and am targeting devices such as Nokia N97 and other s60 5th edition phones. All the required libraries are also included in my project.

Installing suite from: http://127.0.0.1:55477/eSWT_example.jad
Uncaught exception: java.lang.NullPointerException: 0
at com.symbian.midp.runtime.MIDletSuiteAMS.getCurrentApplication(MIDletSuiteAMS.java:15)
at com.nokia.mj.impl.runtime.rtport.midp.RuntimeInfoImpl.getApplicationUid(RuntimeInfoImpl.java:81)
at org.eclipse.swt.internal.symbian.ApplicationIdWrapper.getApplicationId(), bci=5
at org.eclipse.swt.graphics.Device.<init>(Device.java:126)
at org.eclipse.swt.graphics.Device.<init>(Device.java:107)
at org.eclipse.swt.widgets.Display.<init>(Display.java:192)
at test.HelloWorld.run(HelloWorld.java:62)
at java.lang.Thread.run(), bci=11

P.S. please have an IRC channel, support forum or an email address so that people can easily contact you and give some feedback!

Regards,

Posted by multiHYP on March 29, 2010 at 11:20 AM PDT #

NPE in symbian library doesn't look like problem of Java ME SDK but the application. Be aware that emulator runtime is generic one its behavior may differ from Nokia runtimes nor underlying platform os is symbian.
Have you tried Nokia emulators?
-Tomas

Posted by Tomas Brandalik on April 05, 2010 at 05:01 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Java ME Platform SDK is a toolbox for developing mobile applications. Java ME SDK Download

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today