LWUIT framework of the J2ME provide the Logging form which can have a log the statement inside it. You can add the log at each and every place you think may generate the exception.
Example : Log.getInstance().showLog();
By adding the above line you can able to track the logging in the J2ME devices.