×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    Series 60 Developer Platform SDK's for Symbian OS, for Java FP2 doesnt work with RMS at all. After running any MIDlet using method RecordStore.openRecordStore("RMS_NAME", true) throws an following error:

    java.lang.NullPointerException
    - javax.microedition.rms.RecordStore.initializeDb(), bci=134
    - javax.microedition.rms.RecordStore.initializeDb(), bci=5
    - javax.microedition.rms.RecordStore.openRecordStore(), bci=27
    ....

    No RecordStore can be created at all.

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Finland
    Posts
    51
    I'm using the same method and emulator, and it works.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    HW&SW configuration

    With this configuration emulator doesn't work not only on my computer but all with same config (tested on 2 other ones)

    Dell Latitude D610, Windows XP SP2, NDS 2.2, J2SE 5.0

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    1
    I'm having exactly the same problem with S60_2nd_FP2_MIDP_SDK emulator.

    java.lang.NullPointerException
    - javax.microedition.rms.RecordStore.initializeDb(), bci=134
    - javax.microedition.rms.RecordStore.initializeDb(), bci=5
    - javax.microedition.rms.RecordStore.openRecordStore(), bci=27

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    1
    Same problem here, S60_2nd_FP2_MIDP_SDK emulator:

    java.lang.NullPointerException
    - javax.microedition.rms.RecordStore.initializeDb(), bci=134
    - javax.microedition.rms.RecordStore.initializeDb(), bci=5
    - javax.microedition.rms.RecordStore.openRecordStore(), bci=27

  6. #6
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Finland
    Posts
    51
    Random guess: Don't use Java 1.5, use Java 1.4.x SDK

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    it's not just open...

    RecordStore.listRecordStores(); doesn't work, either. same NullPointer exception, and I'm using Java 1.4.2

  8. #8
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    101

    Re: Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    yeah, i'm too facing a lot of problems with S60 3rd edition SDK, working wih RMS, it shows realy strange behaviour, in one function it is going fine, in another it is not accessing the same record ID, throwing invalid record id exception.....hve anyone any soln...? me too using java 1.4

  9. #9
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    hi Ibraheem,
    welcome aboards!

    try "personalcontroller" example application that comes with S603rd edition emulator (in folder s60examples) - if it works fine please review your code - there could be coding issue (using just deleted record pointer for example) not emulator at all with that kind of runtime error you've observed,

    hth,
    regards,
    Peter

  10. #10
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    101

    Re: Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    hmmm, i tried the example it is working fine, but it is not using RMS, as i am having problems with RMS, record stores, the code which is not working properly here is working fine with nokia prototype sdk 4, with 60, 40, 80 and 90 emulators, and it is also working fine with sonnyerricsson emulators. I am sure. record did exists, but it is still just throwing invalid record id exception i even didn't deleted it, if trying to delete data stores it also showing un expected behaviour sometimes delete all stores, sometimes deletes it but no of records still shown to the actual number......but data can't accessable....sooo.....i'm realy confused abt tht...

  11. #11
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    Hi,

    forgive me - i've posted without looking into sources - the correct one is "shopping" exampe app,
    regards,
    peter

  12. #12
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    101

    Re: Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    thnxx, it is working fine, i'm reveiwing my code, its going to be complex so it may hve some problesm...anyway...CAN anyone tell me how can i chech before deletion of a record store, that it is currently opened or not ? if opened then hve to close it before deletion otherwise it;s throwing exception store open....so how do i chck all stores before deletion, with just names of stores.

  13. #13
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: Series 60 Developer Platform SDK's for Symbian OS, for Java FP 2 problems

    hi Ibraheem,
    I'm afraid there is no api for that, just hanlde runtime exception properly if you got RecordStoreException from RecordStore.deleteRecordStore,

    regards,
    Peter

Posting Permissions

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