×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    20

    MFBlock.write to sector trailer problem

    hi,

    I use MFBlock.write(key, src,dstoffset) to write to a sector trailer. I write 16 bytes and they contain a valid sector trailer (0xd3 0xf7 0xd3 0xf7 0xd3 0xf7 0x7f 0x07 0x88 0x40 0xff 0xff 0xff 0xff 0xff 0xff). I write at offset 0 of block 3.

    I get an IllegalArgumentException back. The docs say
    However if writing sector trailers and the amount of data isn't a multiple of the block size then an IllegalArgumentException will be thrown
    So I would expect this to succeed.

    I'm writing to the mifare emulation on the secure element.
    The SE has been unlocked, I checked an all trailers are set to default.
    The midlet is signed and can successfully talk to the secure element.

    any ideas how I could write this sector trailer to the mifare emulation?

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    20

    Re: MFBlock.write to sector trailer problem

    ok sorry,
    i was using MFBlock.write(key, data,0,0,16) and that gave an illegalargumentexception. If i use MFBlock.write(key, data, 0) it works. strange, but if it works...

    thnx

    Tim

  3. #3
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: MFBlock.write to sector trailer problem

    Shouldn't it have been MFBlock.write(key, data,0,16,0), not MFBlock.write(key, data,0,0,16)?

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    20

    Re: MFBlock.write to sector trailer problem

    you're right. I should have read the docs

    sorry

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  3. WAP service problem on Apache
    By bigg_o in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2005-04-17, 16:05
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. wireless problem
    By sash_mca in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-06-06, 11:34

Posting Permissions

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