×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    52

    Read/Write NFC-Mifare tag from 6131 - writeNDEF() Exception

    Hi all,

    I've been reading a while and test some of the found "possible" solutions but they don't work.

    The problem:
    I wanna write a Mifare card with a NDEFRecord in order to get it from the mobile. I have develop the midlet and test it with the emulator and it works fine. But when going to the real mobile it doesn't.
    Initially I check with keys on the card set to FF..FF but the data is not written on the card. Then I have tried to map the binary stored in the simulated card and place it on my Mifare card, but no success.

    Besides that when I set the writter class, it detects the card with the NDEFTagConnection, but when doing the conn.writeNDEF() it launches a "no class def found error " and application is ended. I'm using 5.12 version of 6131.

    Exception that shows up on writeNDEF():
    No Class Def Found Error
    java/lang/NoClassDefFoundError
    java/lang/UnsupportedOperationException

    Question:
    How do I have to set my Mifare card to be read/written from the mobile? What are the keys and the format?

    TA
    Last edited by jlanza; 2008-04-03 at 09:25.

  2. #2
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    52

    Re: Read/Write NFC-Mifare tag from 6131 - writeNDEF() Exception

    Quote Originally Posted by jlanza View Post
    Hi all,

    Besides that when I set the writter class, it detects the card with the NDEFTagConnection, but when doing the conn.writeNDEF() it launches a "no class def found error " and application is ended. I'm using 5.12 version of 6131.

    Exception that shows up on writeNDEF():
    No Class Def Found Error
    java/lang/NoClassDefFoundError
    java/lang/UnsupportedOperationException
    Answering my own question. The problem is that the UnsupportedOperationException is a class not defined for J2ME, removing the place where I used it seems to be working ok.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    2

    Re: Read/Write NFC-Mifare tag from 6131 - writeNDEF() Exception

    Quote Originally Posted by jlanza View Post
    Answering my own question. The problem is that the UnsupportedOperationException is a class not defined for J2ME, removing the place where I used it seems to be working ok.
    Wow - I had the same problem and I was getting the NoClassDefFoundError exception for UnsupportedOperationException. Thanks so much for the advice; I hate to think how long I might have spent trying to troubleshoot this. Once I knew, I just took out the reference to the exception: problem solved.

Similar Threads

  1. Nokia 6131 NFC and Secure Element of a MiFare SmartCard
    By j.delinselle in forum Near Field Communication
    Replies: 2
    Last Post: 2009-11-05, 08:56
  2. Nokia 6131 NFC SDK v. 1.1 has been released!
    By Raluca_ in forum Near Field Communication
    Replies: 8
    Last Post: 2008-05-29, 13:54
  3. Creating a 6131 readable external tag wth an external reader
    By gngulrajani in forum Near Field Communication
    Replies: 1
    Last Post: 2008-04-03, 17:47
  4. How to read the UID of a MIFARE card with the 6131 NFC
    By stewert in forum Near Field Communication
    Replies: 2
    Last Post: 2007-05-15, 11:18
  5. Nokia 6131 NFC SDK 1.0 has been released
    By Nokia Ron in forum Near Field Communication
    Replies: 0
    Last Post: 2007-03-26, 22:28

Posting Permissions

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