×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    NMSS Example App problems

    Hi

    I have been having problems getting the example app that comes with NMSS working.

    I followed your advice and installed library version 1.0 for the NMSS API. I still can't get the example to work.

    I'm not sure if I'm doing the right things so here is a breakdown of what I have done.

    I installed and configured the BES Server and the NMSS. I Installed the Java Library (I have 1.1 and 1.0 on the system now).

    I put the following in my classpath:
    c:\Nokia\Libraries_1_0\lib\mmsdriver.jar;
    c:\Nokia\Libraries_1_0\lib\dlsdriver.jar;

    I start the BES server

    Then Start NMSS applet.

    I have an emulator set up in the NMSS with the following details:
    Name of Emulator testORG
    type = MMSC
    mode = terminating
    port = 8191
    Logging Level = Debug
    Validator = Default
    Store Messages = Store in DB

    I have changed these lines in the config file which is found in

    C:\Nokia\Server_SDks\Libraries_1_0\examples\mms\data\MMSServiceApp.properties

    mmsc.Engine.MMSCURL = http://localhost:8190
    mmsc.Engine.server.port = 8191

    I saw these server and port settings suggested elsewhere in the forum.

    The mode is:
    mmsc.Engine.mode=originating

    I also added a row in the platform configuration table (just in case):
    +48605621249/TYPE=PLMN Routed to: http://localhost:8190

    I then try to run the example app and get the following error messages:

    C:\Nokia\Server_SDKs\Libraries_1_0\examples>ant run-mms
    Buildfile: build.xml

    init:

    compile:
    [javac] Compiling 2 source files to C:\Nokia\Server_SDKs\Libraries_1_0\examples\out

    run-mms:
    [java] Loading configuration data from mms/data/MMSServiceApp.properties ..
    .
    [java] 13:57:00,120 [DEBUG] com.nokia.mobile.services.driver.common.httpsrv
    .HTTPServerEngine: Initializing engine with parameters={server.port=8191, ssl.en
    abled=false, mode=originating, MMSCURL=http://localhost:8190}
    [java] 13:57:00,130 [INFO] com.nokia.mobile.services.driver.common.httpsrv.
    HTTPServerEngine: Starting HTTP server engine
    [java] 13:57:00,130 [DEBUG] com.nokia.mobile.services.driver.common.httpsrv
    .HTTPServerEngine: Creating unsecured server socket
    [java] 13:57:00,260 [ERROR] com.nokia.mobile.services.driver.common.httpsrv
    .HTTPServerEngine: Cannot create server socket
    [java] java.net.BindException: Address in use: JVM_Bind
    [java] at java.net.PlainSocketImpl.socketBind(Native Method)
    [java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
    [java] at java.net.ServerSocket.<init>(ServerSocket.java:170)
    [java] at java.net.ServerSocket.<init>(ServerSocket.java:82)
    [java] at com.nokia.mobile.services.driver.common.httpsrv.HTTPServerEng
    ine.connect(HTTPServerEngine.java:167)
    [java] at com.nokia.mobile.services.driver.mms.eaif.MMSEngineImpl.conne
    ct(MMSEngineImpl.java:72)
    [java] at com.nokia.mobile.services.examples.MMSServiceApp.main(MMSServ
    iceApp.java:142)
    [java] Cannot create server socket[nested: [Address in use: JVM_Bind]]
    [java] 13:57:00,270 [INFO] com.nokia.mobile.services.driver.common.httpsrv.
    HTTPServerEngine: Stopping HTTP server engine
    [java] 13:57:00,270 [DEBUG] com.nokia.mobile.services.driver.common.httpsrv
    .HTTPServerEngine: The server thread has been interrupted - should stop running
    soon
    [java] 13:57:00,270 [DEBUG] com.nokia.mobile.services.driver.common.httpsrv
    .HTTPServerEngine: Sending notification to worker objects that they should close
    the HTTP connections
    [java] 13:57:00,300 [DEBUG] com.nokia.mobile.services.driver.common.httpsrv
    .HTTPServerEngine: Waiting for worker objects to finish for 100 miliseconds
    [java] 13:57:00,400 [INFO] com.nokia.mobile.services.driver.common.httpsrv.
    HTTPServerEngine: HTTP server engine stopped

    BUILD SUCCESSFUL

    Total time: 2 seconds

    I got slightly differnet error messages when I tried the example in the 1.1 library but neither versions could create a server socket.

    Sorry if this is an obvious mistake but I'm really stuck now.

    Where am I going wrong?

    Thanks in advance

    John

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    JVM_Bind error

    Hi... I'm having the same problem. I just can&acute;t bind to the terminating emulator with my originating application. I guess it shouldn't show this error, as I am not using the same port.

    Any ideas?

    Thanks...

    Rodrigo Melga&ccedil;o
    Compera
    Brazil

Posting Permissions

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