×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    5

    Post IOException SymbianOS error -21

    Hi,

    I'm trying to connect Nokia 6120c (s60 system) with a POS printer via USB cable.
    comm = (CommConnection) Connector.open("comm:USB1");

    But it throws the exception IOException SymbianOS error -21

    As searched from the official specification, it means KErrAccessDenied.

    I also tried Connector.open("comm:COM0") and Connector.open("comm:COM1"), and the error is ConnectionNotFound.

    I think the port USB1 should be used, but why the error KErrAccessDenied happened?

    Do you have any idea?

    Thanks a lot for your kind help!

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: IOException SymbianOS error -21

    6120 c is S60 3rd Edition FP1 device
    https://www.forum.nokia.com/Devices/.../6120_classic/

    There is this known issue.
    http://wiki.forum.nokia.com/index.ph...on_S60_devices
    Have you tried USB0?

    Hartti

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    5

    Re: IOException SymbianOS error -21

    Hi hartti,

    Thanks a lot for your quick response!

    I have already tried the resolution mentioned in http://wiki.forum.nokia.com/index.ph...on_S60_devices, but it isn't helpful.

    Yes, I have tested all the ports from USB0 to USB10,and the error is the same.

    Thanks!

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: IOException SymbianOS error -21

    Then I am not sure if there are any other workarounds. Sorry.

    Hartti

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    5

    Re: IOException SymbianOS error -21

    Thanks all the same!

    If somebody has some idea, please kindly let me know.

    Thanks.
    Last edited by humoren; 2011-06-11 at 19:16.

Similar Threads

  1. IOException - SymbianOS error -4159
    By cassioli in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2008-11-04, 08:16
  2. After an update: Midlet SymbianOS error=-21
    By afranco2 in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2007-02-26, 08:31
  3. java.io.IOEXCEPTION: SymbianOS error = -33 : System error
    By hari_scjp in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-02-27, 13:38
  4. IOException SymbianOS error = -34
    By davidgu in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-03-25, 08:33
  5. java.io.IOException: SymbianOS error = -28 : System error
    By raghuraman in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2004-10-21, 09:33

Posting Permissions

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