Skip to main content

Unable to install midlet......

7 replies [Last post]
irisbr
Offline
Joined: 2006-11-30
Points: 0

1. I have unzipped the phoneme_feature-mr1-rel-bin-b04-win-09_nov_2006[1].zip and tried to run the cmd: usertest.bat. the emulator GUI looked weird and I got the following reports:
C:\JavaMeBin\win32_i386_mvm\bin\i386>C:\JavaMeBin\win32_i386_mvm\bin\i386\usertest.bat
REPORT: No resource found when loading Image resource: screen.image_bg
REPORT: No resource found when loading Image resource: ticker.image_au_bg0
REPORT: No resource found when loading Image resource: pti.left_arrow
REPORT: No resource found when loading Image resource: pti.right_arrow
REPORT: No resource found when loading Image resource: alert.image_bg0
REPORT: No resource found when loading Image resource: alert.image_icon_info
REPORT: No resource found when loading Image resource: alert.image_icon_warn
REPORT: No resource found when loading Image resource: alert.image_icon_errr
REPORT: No resource found when loading Image resource: alert.image_icon_alrm
REPORT: No resource found when loading Image resource: alert.image_icon_cnfm
REPORT: No resource found when loading Image resource: busycrsr.image_bg
REPORT: No resource found when loading Image resource: busycrsr.image_frame0
REPORT: No resource found when loading Image resource: choice.image_radio0
REPORT: No resource found when loading Image resource: choice.image_chkbx0
REPORT: No resource found when loading Image resource: choice.image_btn_bg0
REPORT: No resource found when loading Image resource: choice.image_btn_icon
REPORT: No resource found when loading Image resource: choice.image_popup_bg0
REPORT: No resource found when loading Image resource: dateeditor.image_mon_bg
REPORT: No resource found when loading Image resource: dateeditor.image_yr_bg
REPORT: No resource found when loading Image resource: dateeditor.image_cal_bg
REPORT: No resource found when loading Image resource: dateeditor.image_dates
REPORT: No resource found when loading Image resource: dateeditor.image_time_bg
REPORT: No resource found when loading Image resource: dateeditor.image_radio0
REPORT: No resource found when loading Image resource: dateeditor.image_ampm
REPORT: No resource found when loading Image resource: dateeditor.image_clock_bg
REPORT: No resource found when loading Image resource: datefield.image_btn_bg0
REPORT: No resource found when loading Image resource: datefield.image_icon_date
REPORT: No resource found when loading Image resource: datefield.image_icon_time
REPORT: No resource found when loading Image resource: datefield.image_icon_datetime
REPORT: No resource found when loading Image resource: gauge.image_bg
REPORT: No resource found when loading Image resource: gauge.image_mtr_empty
REPORT: No resource found when loading Image resource: gauge.image_mtr_full
REPORT: No resource found when loading Image resource: gauge.image_inc_btn
REPORT: No resource found when loading Image resource: gauge.image_dec_btn
REPORT: No resource found when loading Image resource: gauge.image_values
REPORT: No resource found when loading Image resource: menu.image_bg0
REPORT: No resource found when loading Image resource: menu.image_submenu
REPORT: No resource found when loading Image resource: menu.image_submenu_hl
REPORT: No resource found when loading Image resource: pbar.image_bg
REPORT: No resource found when loading Image resource: pbar.image_mtr_empty
REPORT: No resource found when loading Image resource: pbar.image_mtr_full
REPORT: No resource found when loading Image resource: pbar.image_values
REPORT: No resource found when loading Image resource: pbar.image_prcnts
REPORT: No resource found when loading Image resource: stringitem.image_lnk
REPORT: No resource found when loading Image resource: stringitem.image_btn0
REPORT: No resource found when loading Image resource: updatebar.image_bg
REPORT: No resource found when loading Image resource: updatebar.image_frame0

2. I have tried to installed midlet using the cmd : installMidlet
The first screen looked OK but when I have clicked on the installed button I have got the yellow screen with the error message:
Install Error
The connection dropped and the installation did not complete.
Please try installing again

No exceptions were thrown on my cmd screen.

Please advice,
Thanks you! Irisbr

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexey_z
Offline
Joined: 2006-10-18
Points: 0

Hi Irisbr,

It looks like that the implementation doesn't find the MIDP home directory for some reason. This might be a cause of both errors.
You may want to try to set MIDP_HOME environment variable to the directory containing "appdb" and "lib" and try to run usertest.bat again. For example:

set MIDP_HOME=C:\JavaMeBin\win32_i386_mvm

Regards,
Alexey

irisbr
Offline
Joined: 2006-11-30
Points: 0

Thanks for your answer!
I have added the MIDP_HOME property as you have mentioned and I was able to install the midlet.
But still I wasn’t able to run it …
I have used the cmd:
runMidlet -classpathext C:\JSR190\jsr190api.jar;C:\JSR190\jsr190impl\jsr190impl.jar 1 com.amdocs.guess.Guess
and got on the emulator GUI the following exception:
Exception.
The application has unexpectedly quit. Contact the application provider to resolve the issue.
Javaxx/microedion/events/configuration/ConfigException
On the cmd window I am getting the exception:
runMidlet -classpathext C:\JSR190_2\jsr190api.jar;C:\JSR190_2\jsr190impl\jsr190impl.jar 1 com.amdocs.guess.Guess

when I am pressing the Done button, on the cmd screen I am getting another message:
REPORT: The MIDlet suite could not be run.
The MIDlet suite could not be run.

By the way, I didn’t find the MIDP_HOME in the documentation.
I want to make sure I haven’t missed other properties that I should consider; could you please tell me where can I find documentation about the subject?

Could you please advice?
Thanks a lot, Iris.

aka1278
Offline
Joined: 2006-10-18
Points: 0

Hi Irisbr!

The issue you described in the last post is JSR-190 API classes can not be found while the MIDlet is starting up.

Defining -classpathext should help but it doesn't. It can be, for example, if the paths to the .JARs are incorrect.
It looks strange to me what jsr190api.jar is located in the root directory of the JSR but jsr190impl.jar is in jsr190impl subdirectory. In the original source bundle of the JSR both .JARs are in subdirectories so please check the paths.

Also it's strange to see what the class path you used to run the MIDlet (C:\JSR190\jsr190api.jar;C:\JSR190\jsr190impl\jsr190impl.jar) doesn't match to class path you got in cmd window (C:\JSR190_2\jsr190api.jar;C:\JSR190_2\jsr190impl\jsr190impl.jar).

If the paths are fine, I would advice you to try the following approach:
Please add content of all relating .JARs (jsr190api.jar and jsr190impl.jar) into guess.jar then reinstall it and try to run. Also please don't forget to update 'MIDlet-Jar-Size' property in the .JAD after repacking.

P.S. MIDP_HOME variable is set and used internally so normally user shouldn't define it (it's not in the documentation due the same reason).

WBR, Alexey.

irisbr
Offline
Joined: 2006-11-30
Points: 0

Hi Alexey,

You were right, I had mismatch in the classpathext , I have fixed it and now it works!

Thanks a lot! Iris.

irisbr
Offline
Joined: 2006-11-30
Points: 0

Hi Again,

I have changed the packages name from javaxx.microedition … to javax.microedition ( one x) and I got the following error:
REPORT: Out of Memory
Out Of Memory
REPORT: The MIDlet suite could not be run.
The MIDlet suite could not be run.

Do have ant idea what it means…

Thanks again, Iris.

aka1278
Offline
Joined: 2006-10-18
Points: 0

Hi Irisbr!

In MR1 different types of errors can be mistakenly treated as out of memory so the real reason of failure can be somewhere besides.

Please could you provide details about what exactly you have done (step by step) to change package name?

WBR, Alexey.

irisbr
Offline
Joined: 2006-11-30
Points: 0

Hi again,

I have rebooted and the out of memory problem has disappeared.
I have managed to run the midlet but when I am pressing on the close button I am getting the following exception (and the windows is remaining stuck):
IPDR:Tue Dec 19 15:03:51 GMT+02:00 2006 State machine is not belong to session! State machine adrress: null :: removeStateMachine[CollectorList]
IPDR:Tue Dec 19 15:03:51 GMT+02:00 2006 State machine is not belong to session! State machine adrress: null :: removeStateMachine[CollectorList]
IPDR:Tue Dec 19 15:03:51 GMT+02:00 2006 [error] Application not authorized to access the restricted API :: run[org.ipdr.exporter.statemachine.DiscoveryHandler]
java.lang.SecurityException: Application not authorized to access the restricted API
- .unknown..checkForPermission(), bci=294
- .unknown..checkForPermission(), bci=15
- com.sun.midp.midletsuite.MIDletSuiteImpl..unknown.(), bci=29
- com.sun.midp.midletsuite.MIDletSuiteImpl.checkForPermission(), bci=18
- com.sun.midp.io.j2me.datagram.Protocol..unknown.(), bci=157
- com.sun.midp.io.j2me.datagram.Protocol..unknown.(), bci=21
- javax.microedition.io.Connector..unknown.(), bci=237
- javax.microedition.io.Connector.open(), bci=3
- javax.microedition.io.Connector.open(), bci=3
- javax.microedition.io.Connector.open(), bci=2
- org.ipdr.exporter.statemachine.DiscoveryHandler.run(), bci=30
Any ideas?

Thanks a lot!
Iris.