bcalmac
Posts: 4
Joined: Tue Jul 28, 2015 2:34 am

Troubleshooting a Java service

I'm using the Java service launcher from AI and the service fails to start after changing some VM parameters. How can I see the stderr of the process so I can understand what the JVM is complaining about?

The files referred by "Output File" and "Error File" are not created.

When I run java from the cmdline, the error would be displayed in the console:

Code: Select all

> java -Xxxx
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -Xxxx
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Troubleshooting a Java service

Hello,

To get a clear view of your installation scenario can you please send us the the AIP (project file) to support at advancedinstaller dot com so we can investigate its settings?

The standard error and output streams should be flushed in the output files you specify in the "Output Stream" and "Error Stream" fields from "Java Virtual Machine" tab of your setup project. Just make sure the user launching the installed EXE Java Product has permissions to write in the above output location.

Also, can you let us know if you get any error message displayed by the installed EXE Java Product when launched after it is installed?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”