jabelsc
Posts: 12
Joined: Tue Sep 05, 2006 10:12 am

Java service problem

Good afternoon!
We have an Enterprise licence (using AI version 4.9) and we've been trying to run our java app via a Windows 32 service. We have followed the instructions in http://www.advancedinstaller.com/user-g ... rvice.html and when we install the application, it is run as a service, but after few seconds it is automatically and unexpectedly closed without any trace. Apart of this, we cannot see the icons of the application (service is configured to interact with the desktop). We have checked the class paths several times, and the app is run well if we run it as a normal app, but not as a service.

Any clue of what is hapenning?

Thanks a lot in advance!
BR,
Abel S.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Java service problem

Hi,

This may happen because the Java Virtual Machine receives incorrect signals. To avoid this behavior you can try using the Reduced usage of operating-system signals (-Xrs) option in the Edit JVM Parameters dialog (it can be launched from the "Virtual Machine" tab of the "Java Products" page).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jabelsc
Posts: 12
Joined: Tue Sep 05, 2006 10:12 am

Re: Java service problem

Thanks for your prompt answer Cosmin!
I'm sorry but that's not the problem, because I've already checked it.
I have 2 main problems: one is that of the unexpected stop and the other that I cannot see the graphic files in the user interface of the program (the service is configured to interact with the desktop) despite having specified the classpath well.
Any help will be appreciated.
Thanks a lot!

BR,
Abel.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java service problem

Hi Abel,

Please note that services can not display a user interface on Windows Vista and above. Only on XP systems is this possible.
...but after few seconds it is automatically and unexpectedly closed without a trace.
Please make sure your service is not exiting. It should have a main loop, just like any executable that is expected to run until told otherwise.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”