You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation please help me for sign midlet - 2008-01-25, 16:58

Join Date: Jul 2007
Posts: 1,127
Send a message via ICQ to aamitgupta Send a message via Yahoo to aamitgupta
aamitgupta's Avatar
aamitgupta
Offline
Super Contributor
Hi Experts

I am new in J2ME, and i made a midlet that read some value from file and write some value in to file but Security Exception comes , in NOKIA 3250, for this sign the midlet but how and where i don't know, please help me.

Thanks
Amit
Reply With Quote

#2 Old Re: please help me for sign midlet - 2008-01-26, 12:29

Join Date: Aug 2007
Posts: 774
r2j7's Avatar
r2j7
Offline
Forum Nokia Expert
Hello aamitgupta,

Quote:
.. read some value from file and write some value in to file but Security Exception comes..
For further evaluation, would you please send the piece of code in which you're trying to read and write. (Signing may not be needed at all.)

(I'm guessing here, but if you're using PIM API (JSR-75) and you're trying to write to a PIM database which is opened as READ, this SecurityExeception will be thrown. Try using READ_WRITE instead.)


Regards,
r2j7
Reply With Quote

#3 Old Re: please help me for sign midlet - 2008-01-26, 14:46

Join Date: Dec 2004
Posts: 228
matrix241
Offline
Regular Contributor
.. and check if you have declared your Midlet's required permission .
For example on sun wireless toolkit select project ->settings -> permissions. You have to add your midlet's requrementto write/read files.
Reply With Quote

#4 Old Exclamation Re: please help me for sign midlet - 2008-01-28, 10:43

Join Date: Jul 2007
Posts: 1,127
Send a message via ICQ to aamitgupta Send a message via Yahoo to aamitgupta
aamitgupta's Avatar
aamitgupta
Offline
Super Contributor
Thanks for reply, i did this process and but Security Exception is comes, and my another requirement is that i want mobile IMEI number, Sim identification number, network name, which is by S60 3rd Edition Feature Pack 2 , by System.getProperty(),

"com.nokia.mid.imei", "com.nokia.mid.imsi", "com.nokia.mid.networkid", "com.nokia.mid.networksignal",
"com.nokia.mid.networkavailability", "com.nokia.mid.batterylevel", "com.nokia.mid.countrycode","com.nokia.mid.dateformat", "com.nokia.mid.timeformat"


But these values are Null, because for this midlet is signed by certificate so i want certificate for nokia but i don't know how?

Please help me How can i sign my midlet?


Thanks and Regards

Amit Gupta
Reply With Quote

#5 Old Re: please help me for sign midlet - 2008-01-29, 16:44

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
most of the properties you want to access (like networkid, imsi, signal, etc.) are not available for MIDlets. It does not help even if you sign your MIDlet
IMEI should be accessible on (newer) S60 devices though.

Hartti
Reply With Quote

#6 Old Re: please help me for sign midlet - 2008-01-29, 17:50

Join Date: Jul 2007
Posts: 1,127
Send a message via ICQ to aamitgupta Send a message via Yahoo to aamitgupta
aamitgupta's Avatar
aamitgupta
Offline
Super Contributor
But on documentation mentioned that if midlet signed that will get the value on newer devices.
Reply With Quote

#7 Old Re: please help me for sign midlet - 2008-01-29, 18:26

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Hmmm... sorry... My memory failed me a little (and things have changed a little since I last checked...).
IMSI requires manufacturer or operator signing. Others in the list should be available on S60 3rd Edition FP2 as you mentioned. However the SDK is still beta, so it might not work properly.

http://www.forum.nokia.com/document/...rs_Library_v2/
and in more detail this
http://www.forum.nokia.com/document/...C996A25D7.html

Hartti
Reply With Quote

#8 Old Re: please help me for sign midlet - 2008-01-29, 18:32

Join Date: Jul 2007
Posts: 1,127
Send a message via ICQ to aamitgupta Send a message via Yahoo to aamitgupta
aamitgupta's Avatar
aamitgupta
Offline
Super Contributor
Yes right, i read all the links , my problem is that i want manufacture certificate for nokia, i have motorola's cert. And i have not any link and help for getting certificate for nokia devices.

Thanks for reply
Amit
Reply With Quote

#9 Old Re: please help me for sign midlet - 2008-01-29, 18:42

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Nokia signing requires that the MIDlet is developed by Nokia or Nokia branded. You will not get manufacturer signing for other MIDlets.

Hartti
Reply With Quote

#10 Old Re: please help me for sign midlet - 2008-01-29, 18:44

Join Date: Jul 2007
Posts: 1,127
Send a message via ICQ to aamitgupta Send a message via Yahoo to aamitgupta
aamitgupta's Avatar
aamitgupta
Offline
Super Contributor
I am not getting

Nokia signing requires that the MIDlet is developed by Nokia or Nokia branded

what is the mean i will not get certificate for midlet for nokia, why?

thanks
Amit
Reply With Quote

#11 Old Re: please help me for sign midlet - 2008-01-30, 22:29

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Quote:
what is the mean i will not get certificate for midlet for nokia
Yes, unless your application is Nokia branded (and passes the required tests, including Java Verified) your MIDlet will not get signed to manufacturer domain on Nokia devices.
BTW this is quite similar policy to what Sony Ericsson has
"Manufacturer signing requires MIDlet to be Sony Ericsson owned or licensed"

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening connection to the secure element fails when restarting the midlet. tfroidcoeur Near Field Communication 6 2007-08-24 09:38
calling midlet from midlet throws SecurityException on 6600 brianpegan Mobile Java General 2 2007-06-06 20:33
技术文档:MIDP 2.0安全机制 与 MIDlet 数字签名 wotrust Other Programming Discussion 关于其他编程技术的讨论 0 2006-12-30 08:42
'Response Unknown' when downloading midlet Weevil Mobile Java General 3 2004-05-30 18:01
How to create two instances of midlet marquito99 Mobile Java General 0 2004-04-30 02:33

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia