Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    12

    Connect to agent error

    Hi.

    I'm starting in Java-ME and a problem occur when the Eclipse is opened. I'm using the Java ME Developer's Library 1.2 reference and had followed all steps described there. I install Java SE, Eclipse, and Carbide J but when I open the Eclipse a error window appear. The SDK begin to load but in the stage Connect to agent a error message appear:

    Failed to initialize session
    Caught exception:
    java.lang.NullPointerException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.symbian.tools.j2me.sei.emulator.session.Session.create(Session.java:109)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.initializeSession (EmulatorLauncher.java:514)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launcher(EmulatorLauncher.java:296)
    at com.symbian.tools.j2me.sei.emulator.Main.main(Main.java:47)

    In console the message "Deployment tool could not be initialized" appear too.

    What can I do to correct this wrong?

    Reguards,
    Glauber

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    6

    Re: Connect to agent error

    I had exactly the same problem: when Eclipse is launched, the SDK begin to load until it reaches the 'Connect to agent' stage and then the exception messages pop up. I am using the S60 3rd MIDP SDK FP1, carbidej 1.5 and Eclipse 3.2.1

    Because of this error, I cannot run HelloWorld example using the emulator.

    I already disabled my Norton protection center, but still the problem exists. Can somebody please help?

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    12

    Re: Connect to agent error

    Hi.

    I find the problem. The Eclipse version must to be 3.1. Change it and will work.

    I have a other problem now: when I compile the program (HelloWorld), has no errors or warnings, but don't create the jad file, only the class. Is it a configure of Eclipse?

    Reguards,
    Glauber

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    7

    Failed to initialize session

    Hi!

    I am starting Java ME project : SVGProject (provided in the website of Nokia forum) using NetBeans IDE 6.0 with NetBeans Mobility 1.0.2. with S60 SDK 3.2. No problem is occurred while building the project, but when I start running the project, The SDK begin to load but in the stage Connect to agent a error message appear

    Failed to initialize session
    Caught exception:
    java.lang.NullPointerException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.symbian.tools.j2me.sei.emulator.session.Session.create(Session.java:109)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.initializeSession (EmulatorLauncher.java:489)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launcher(EmulatorLauncher.java:275)
    at com.symbian.tools.j2me.sei.emulator.Main.main(Main.java:49)


    What can I do to correct this wrong?

    Reguards,
    Bijen

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    136

    Re: Connect to agent error

    You guys owe me a beer for this one.

    go to project properties, manage emulators, select the nokia emulator and in execution/debugger command edit boxes delete the (-Xdevice .....} option.

    Works fine for me now.

  6. #6
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Re: Connect to agent error

    Happy to buy you a beer kellogs but can you give me some more guidance on finding the execution/debugger command edit boxes. I'm with you right up to selecting the nokia emulator. At that stage I can't see where to edit the command. I'm using NetBeans 6.8 with SDK 3rd edition.
    Last edited by glenn.newnham; 2010-02-19 at 15:47.

Similar Threads

  1. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 17:53
  2. code warrior problems
    By mayankkedia in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2004-10-25, 06:59
  3. CEikDialog Question
    By AdamBeck in forum Symbian
    Replies: 2
    Last Post: 2004-09-30, 19:40
  4. Building
    By pacman2000z in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-07-17, 10:44
  5. Link errors
    By georgica1979 in forum Symbian
    Replies: 4
    Last Post: 2003-04-03, 17:03

Posting Permissions

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