+ Reply to Thread
Results 1 to 3 of 3

Thread: JAVA Service Error: "Failed to start the service instance"

  1. #1
    ComputerGuy's Avatar
    ComputerGuy is offline Junior Member
    Join Date
    April 24th, 2008
    Posts
    22
    Downloads
    2
    Uploads
    0

    Default JAVA Service Error: "Failed to start the service instance"

    Hi, I was modifying the Java SampleApp. I imported some 3rd party libraries into my service, included the jar in the Makefile, and specified my JAVA bin directory in the PATH inside SampleAppJava.xml.

    I was able to compile and deploy the application successfully. However when I run, the client get stucked after the task was sent:

    connection ID=83bee1c0-ffff-ffff-c000-00112529883c-45665200-5001
    Session ID:801
    task submitted with ID : 1
    ^^^^^^


    I checked the logs, and found the following ERROR in SIM log:

    2008-04-24 19:48:12.700 GMT INFO [27096:50768816] sim.backend.BasicSiAdaptor - BasicSiAdaptor::initSi(): Spawned SI process: <27101> command: <"/install/symphonyDE/deploy/SampleAppJava/SampleServiceJava.v3/Runcom.platform.symphony.samples.SampleApp.service .MyService.sh">
    2008-04-24 19:48:13.692 GMT ERROR [27096:50768816] sim.backend.ServiceBroker - Code[S40004]: SimBasicSiAdaptor.cpp:561 Domain <Application>: Failed to start the service instance, service name /install/symphonyDE/deploy/SampleAppJava/SampleServiceJava.v3/Runcom.platform.symphony.samples.SampleApp.service .MyService.sh. The service startCmd command specified in the Application Profile terminated unexpectedly with exit code: 1 State:Exit. Check your Application Profile, whether the services dependent libraries can load, LD_LIBRARY_PATH is correct and your service code.
    2008-04-24 19:48:13.692 GMT ERROR [27096:50768816] soam.common.EventAgent - Code[S75049]: Application <SampleAppJava>, service <sampleService>: Method <register> exited. Action on service instance: action <blockHost> taken on service instance process <27101>, host <ib08b05>, service <sampleService>.
    2008-04-24 19:48:13.693 GMT ERROR [27096:50768816] soam.common.EventAgent - Code[S75008]: Application <SampleAppJava>: failed to create service <sampleService> on host <ib08b05>.


    Any ideas?

  2. #2
    lechen's Avatar
    lechen is offline Junior Member
    Join Date
    March 12th, 2008
    Location
    Toronto, Ontario
    Posts
    71
    Blog Entries
    1
    Downloads
    8
    Uploads
    0

    Default

    A couple of things to keep in mind when running Java Service:
    1. The Service Instance uses a script to launch the Java Service. It is located under Java/SampleApp/ directory, called "Runcom.platform.symphony.samples.SampleApp.servic e.MyService.sh".

      Make sure your "3rd party" jars are included in SOAM_APP_DEP_JARFILES where we put your dependent JARs containing all the implementation.

      The error message "whether the services dependent libraries can load" pertains to this.

      .
    2. Make sure the Java path you specified in the application profile is the same version as the one used to compile the service. Could cause potential conflicts resulting in the Service failing to start.

  3. #3
    ComputerGuy's Avatar
    ComputerGuy is offline Junior Member
    Join Date
    April 24th, 2008
    Posts
    22
    Downloads
    2
    Uploads
    0

    Default

    Thanks for the quick reploy~

    And Yes, forgot the run script. Problem solved now!

+ Reply to Thread

Posting Permissions

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