Endpoint Protection

 View Only
Expand all | Collapse all

Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

Chetan Savade

Chetan SavadeSep 02, 2014 07:58 AM

Migration User

Migration UserSep 02, 2014 08:29 AM

Migration User

Migration UserSep 02, 2014 09:43 AM

  • 1.  Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 06:01 AM

    Hi everybody,

     

    I post here because i read about 20 subjects on this error and i didn't find any solutions in all posts.

    Here's my problem :

     

    My SEPM service doesn't start anymore and i got this error in my log : The Java Virtual Machine has exited with a code of -1, the service is being stopped.

    Source : semsrv

    ID: 4096

    The server is a Windows 2008 SP2

    SEPM 12.1 RU4 MP1a

     

    Log from catalina.out

    [TraceMgr] Opening log file S:\Symantec Endpoint Protection Manager\tomcat/logs\ajaxswing.log
    Protecting dada/output/agent folder with ACLs ...
    Missing property: scm.db.datasource.
    Server is not configured correctly, please run Server Configuration Assistant!

     

    scm-server-0 doesn't contain any log and the last log use is sepm_xxxxxxxx and here's the log :

    2014/09/02 11:39:22:348 : RMI TCP Connection(1)-132.166.107.40 : [com.creamtec.ajaxswing.ClientAgentImpl] Initialization complete, instances in JVM = 1
    2014/09/02 11:39:38:565 : Thread-1 : [com.creamtec.ajaxswing.JVMProcess$1] Health check failed, exiting

     

    I already check port and the port i use isn't blocked by another application, i try another port but doesn't change anything, i check IIS conf and it's good (other posts talk about x86 and x64)

     

    The problem show up when i reboot the computer after i update windows. After that i uninstall all patch (i have a 2nd server and put the same configuration, both server are the same in windows update and sepm). Since theses tests i have no more ideas.

     

    Thanks a lot for helping.



  • 2.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 06:05 AM

    See this articles

    Java -1 Errors and HTTP 500 errors when connecting to the Symantec Endpoint Protection Manager on a Windows Server 2008 64 bit

    Article:TECH96006 | Created: 2009-01-04 | Updated: 2010-01-10 | Article URL http://www.symantec.com/docs/TECH96006

    Event ID 4096 Java -1 error in event viewer, SEPM service will not stay in started state. "Failed to connect to server" message during login to SEPM.

    Article:TECH181655 | Created: 2012-02-17 | Updated: 2012-12-17 | Article URL http://www.symantec.com/docs/TECH181655

    See this thread

    https://www-secure.symantec.com/connect/forums/sepm-service-fails-start-error-semsrv-event-id-4096

     



  • 3.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."
    Best Answer

    Posted Sep 02, 2014 06:21 AM

    Solution

     

     

    1. Browse to conf.properties by navigating through

    %Program Files\Symantec\Symantec Endpoint Protection Manager\tomcat\etc\conf.properties
    2. Edit Conf.properties
    3. Add scm.db.datasource= jdbc/metadatabase at the last line (There will be a space after the equal sign)
    4. Save the file

    Execute Management Configuration Wizard.

    Once the Management Configuration is complete. Symantec Endpoint Manager services would be started and you should be able to login to SEPM console.



  • 4.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 07:45 AM

    Thanks for helping, now SEPM start BUT seems not to be in my domain. I can't log with the admin account. Works on the 2nd SEPM server. Any ideas to log in SEPM ? Thanks



  • 5.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 07:50 AM

    if your SEPM is integrated with AD then you can use your AD account to authenticate SEPM. whats the error msg you get? can you post a screen shot?



  • 6.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 07:54 AM

    What the admin account have you tried to login SEPM?

    What the error message popup on screen?



  • 7.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 07:57 AM
      |   view attached

    I try an account created in the sep domain, says admin user name or pssword incorrect.

    When i try my domain admin account says same error.

    "Type a valid user name or password"

    Screen attached.

    Thank you guys :)



  • 8.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Broadcom Employee
    Posted Sep 02, 2014 07:58 AM

    Hi,

    Is it integrated with Active directory? 



  • 9.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 08:03 AM

    No (just checked on the 2nd sepm server).

    Edit : the account admin was a new one that i create in sepm domain



  • 10.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 08:08 AM

    I try to configure it as a new site. coming back after completion.



  • 11.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 08:09 AM

    Is your second SEPM replicating with first SEPM? or both are independent?

     



  • 12.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 08:11 AM

    try this

    @echo off
    setlocal

    set CATALINA_HOME=%CD%..\tomcat
    set JRE_HOME=%CD%..\jre

    “%JRE_HOME%\bin\java.exe” -Xms64m -Xmx256m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=40 -classpath “%CD%..\bin\inst.jar;%CD%..\bin\inst-res.jar” -Dcatalina.home=”%CATALINA_HOME%” -Djava.library.path=”%CATALINA_HOME%\bin;%CATALINA_HOME%..\ASA\win32″ com.sygate.scm.tools.DatabaseFrame setpassword admin admin
    endlocal

    just copy and paste above code into notepad and save asresetpass.bat in \Program Files\Symantec\Symantec Endpoint Protection Manager\Tools folder

    You will need to run this from command prompt with admin priviledges and your admin login will be set to:

    username: admin
    password: admin



  • 13.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 08:29 AM

    Replicating (replicating database in progress)



  • 14.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 08:31 AM

    I'm trying to configure it as a new server of sepm domain.

    After this i will try your solution.

    Thank you guys for following my thread, i really appreciate it.

     

    Keep you inform after replicating finish.



  • 15.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 09:06 AM

    I got this error :

    The filename, directory name, or volume label syntax is incorrect.
    'com.sygate.scm.tools.DatabaseFrame' is not recognized as an internal or external command,
    operable program or batch file.

     

    And i runned as admin.



  • 16.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 09:11 AM

    Check the article

    http://www.symantec.com/business/support/index?page=content&pmv=print&impressions=&viewlocale=&id=TECH170650

    http://www.symantec.com/connect/downloads/how-reset-sepm-password-121x



  • 17.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 09:16 AM

    Try this one copy in notepad and save it as resetpass.bat

    Run it with admin id

    @echo off
    setlocal

    set CATALINA_HOME=%CD%\..\tomcat
    set JRE_HOME=%CD%\..\jre

    "%JRE_HOME%\bin\java.exe" -Xms64m -Xmx256m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=40 -classpath "%CD%\..\bin\inst.jar;%CD%\..\bin\inst-res.jar" -Dcatalina.home="%CATALINA_HOME%" -Djava.library.path="%CATALINA_HOME%\bin;%CATALINA_HOME%\..\ASA\win32" com.sygate.scm.tools.DatabaseFrame setpassword admin admin
    endlocal

     

     

     

    edit

    thread

    https://www-secure.symantec.com/connect/forums/forgot-administrator-password-sepm#comment-10316771



  • 18.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 09:23 AM
      |   view attached

    Ok guys, my new site (replicating from my other sepm server) fail.

    i try to change the password (and that work) but can't connect because service stop again (same error first thread), so i try to use management server config wizard again and i got this error.

    This is insane :'(



  • 19.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 09:43 AM

    I'm restoring a backup of my DB, and try again.



  • 20.  RE: Error "The Java Virtual Machine has exited with a code of -1, the service is being stopped."

    Posted Sep 02, 2014 11:45 AM

    Ok guys, my SEPM is working now, i really appreciate your help.

    Thank you so much.

     

    To conclude :

    1 - Error The Java Virtual Machine has exited with a code of -1

    2 - "scm.db.datasource= jdbc/metadatabase" solution works, SEPM launch but got problem on database

    3 - restore a backup from my DB

    SEPM works (still need to rebuild replication but it's ok for that)

     

    Thank you everyone.