Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    1

    Question nokia 6630 and JABWT: authorisation failed (authorization failed)

    Hi,

    I've come to the point where I would like to install my BT-enabled
    MIDlet to a cell phone. The packaged MIDlet runs well on the WTK 2.2
    emulator. When i try to install it on a Nokia 6630, it gives me
    (after going through all of the installation steps-"accept
    installation","nevermind if it is not signed") an error-
    AUTHORISATION FAILED (and, as it has just hit me, with an "s" - not
    authoriZation failed - which might explain the no-search-results
    anywhere on the topic...grin)

    I have tried to canibalise the application to the point of excluding
    the jabwt-related parts from the application for test purposes. The
    problem dissapears-so it lays somewhere in the devices acceptance of
    the Bluetooth API-enabled apps.

    Here's my JAD file:
    ----------
    MIDlet-Version: 1.0.0
    MIDlet-Vendor: Active Tools
    MIDlet-Jar-URL: BlueBridge.jar
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-1: BlueBridge,,si.activetools.bluebridge.BlueBridge
    MicroEdition-Profile: MIDP-2.0
    MIDlet-Name: Blue Bridge
    MIDlet-Permissions:
    javax.microedition.io.Connector.bluetooth.client,
    javax.microedition.io.Connector.bluetooth.server
    ----------

    Thanks for your attention.

    Best regards,

    David Potocnik,
    Active Tools [Slovenia]
    david@activetools.si

  2. #2
    Registered User
    Join Date
    Oct 2004
    Posts
    2
    Hello,

    I experienced 'authorization failed' on installation as well, but not with JABWT.

    In my case, third party source was including an interface from the com.sun.cldc package. Unfortunately, the WTK and nokia emulators support this package, which is not officially part of J2ME. The phones I tried do not support the package.

    To solve the 'authorization failed' problem, I replicated the interface from com.sun.cldc in my own package.

    Cheers

  3. #3
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: nokia 6630 and JABWT: authorisation failed (authorization failed)

    Hello, I have the same problem
    with JSR 180 (SIP API).

    Phones prior s60 v3 doesn't support jsr 180, so I have packed a Jar that has:

    1. classes that use SIP API
    2. classes that implements SIP API (from RI Nokia - reference implementation)

    When I install the jar I get the error 'authorization failed'

    Please, can you explain the process:

    "To solve the 'authorization failed' problem, I replicated the interface from com.sun.cldc in my own package."

    Thank You very much.

  4. #4
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: nokia 6630 and JABWT: authorisation failed (authorization failed)

    Ok, I have made some tests and the problem is that the classes must not have package javax.microedition.sip or com.nokia.phone.sdk.concept.sip in phones that don't support jsr 180.

    I can't replicate the interface javax.microedition.sip because I don't have RI JSR 180 Source Code.

    Does somebody know how to use SIP API in S60 v2 Phones from Java?

  5. #5
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: nokia 6630 and JABWT: authorisation failed (authorization failed)

    imho the problem is that you declare permissions without singning the app, which is theorically forbidden.

  6. #6
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: nokia 6630 and JABWT: authorisation failed (authorization failed)

    Hello!

    I'm not sure if I have understood what you have said.

    Do you mean that if I sign the application, I will be able to use classes that has package javax.microedition.sip (the JSR 180 Reference Implementation has classes that have (belongs to) package javax.microedition.sip)??

    I'm not sure where I'm declaring permissions (Do you mean by including JSR 180 RI classes in the jar?)

    Thank You very much :-)

  7. #7
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: nokia 6630 and JABWT: authorisation failed (authorization failed)

    i was replying to the first post :

    MIDlet-Permissions:
    javax.microedition.io.Connector.bluetooth.client,
    javax.microedition.io.Connector.bluetooth.server

    means that you _must_ sign the application in theory

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Posts
    4,110
    Quote Originally Posted by njzk2
    you declare permissions without singning the app, which is theorically forbidden.
    Where is this said? You can (and should) declare permissions even as untrusted 3rd-party. The MIDP device is then able to reject your MIDlet, when there are not enough permissions (ever).

    The thread from activetools is one year old and probably fixed. This thread was hijacked by AlfredoRU. Do not think they are related in any way.
    Quote Originally Posted by AlfredoRU
    I can't replicate the interface javax.microedition.sip because I don't have RI JSR 180 Source Code.
    When your preverifier is configured correctly, the classes will move out of this namespace automatically. Nevertheless, make sure to check with Nokia first as using a RI often needs a different license to fulfill.

Posting Permissions

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