hoopsho
Posts: 4
Joined: Sat Oct 17, 2009 12:59 am

Java Service will not start

We have software that is using the Advanced Installer to install and run our java code as a service. It has run on many other systems... installed and started the services just fine. But we have a couple of systems that pop up here and there where we are unable to start the service after installing the software. The install works just fine and we are able to execute our java code outside of the service wrapper, but using the service simply fails on these systems.

So how can I tell what error is being thrown from the service wrapper? Are there any logs that can be created as to why the service wrapper will not even attempt to call our java code?

Thanks for any help.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java Service will not start

Hello,

You could try the following:
- on the machine on which the service is failing, type eventvwr.msc in Start->Run to open up the Event Viewer and see if there are any related errors there that might help you pinpoint the issue
- you could make another version of your service that writes to a log file to help you trace your service's actions

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
hoopsho
Posts: 4
Joined: Sat Oct 17, 2009 12:59 am

Re: Java Service will not start

Gabriel,

We have very detailed logging for our java service. Our code is never being instantiated. The wrapper service is never calling our code, which is the difficult part. If the service wrapper never calls our code, and does not produce any logging to determine where it fails, what information can be used to troubleshoot the problem?

The event logs do not show anything in regards to the service failure.

Thanks for your help.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Java Service will not start

Hi,

Is a valid JRE installed on the machines with the problem? If so, can you please give us more details about the exact behavior (and errors) you are encountering when starting the service?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hoopsho
Posts: 4
Joined: Sat Oct 17, 2009 12:59 am

Re: Java Service will not start

Yes we are installing a valid JRE with out code and pointing to it in the ini file.

I just installed our package on 10 machines. 8 worked great and are running fine. 2 are not. Go to start the service... you get the typical cannot start service error. That is it. Event logs say service failed to start.

Essentially the wrapper starts up and that bails. There are no dr watson logs. It is stopping gracefully.

I just need to know what is happening within the servicewrapper exe. There has to be something on small subset of machines that it does not like and bails because of it... but I need to know what it is that it does not like.

Can you please provide me with a debug version of the java service wrapper. It should be able to just throw it in, rename it, use the existing ini file and have it output a log of what it does not like.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java Service will not start

Hello,

Please tell us the platform on which the service fails so we can send you a debug version of the wrapper for the specified platform.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
hoopsho
Posts: 4
Joined: Sat Oct 17, 2009 12:59 am

Re: Java Service will not start

Thank you!

These are from two completely different customer machines:

One of the servers is as follows:
OS Name Microsoft(R) Windows(R) Server 2003, Standard Edition
Version 5.2.3790 Service Pack 2 Build 3790
Other OS Description R2
OS Manufacturer Microsoft Corporation
System Manufacturer HP
System Model ProLiant DL380 G4
System Type X86-based PC
Processor x86 Family 15 Model 4 Stepping 10 GenuineIntel ~3600 Mhz
Processor x86 Family 15 Model 4 Stepping 10 GenuineIntel ~3600 Mhz
Processor x86 Family 15 Model 4 Stepping 10 GenuineIntel ~3600 Mhz
Processor x86 Family 15 Model 4 Stepping 10 GenuineIntel ~3600 Mhz
BIOS Version/Date HP P51, 7/19/2007
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.2.3790.3959 (srv03_sp2_rtm.070216-1710)"
User Name Not Available
Time Zone Central Daylight Time
Total Physical Memory 2,047.47 MB
Available Physical Memory 1.20 GB
Total Virtual Memory 3.86 GB
Available Virtual Memory 3.14 GB
Page File Space 2.00 GB
Page File C:\pagefile.sys


Another server is as follows:
OS Name Microsoft(R) Windows(R) Server 2003, Standard Edition
Version 5.2.3790 Service Pack 1 Build 3790
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name ORBIT2
System Manufacturer HP
System Model ProLiant ML370 G5
System Type X86-based PC
Processor x86 Family 6 Model 15 Stepping 6 GenuineIntel ~2666 Mhz
Processor x86 Family 6 Model 15 Stepping 6 GenuineIntel ~2666 Mhz
Processor x86 Family 6 Model 15 Stepping 6 GenuineIntel ~2666 Mhz
Processor x86 Family 6 Model 15 Stepping 6 GenuineIntel ~2666 Mhz
BIOS Version/Date HP P57, 9/18/2006
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.2.3790.1830 (srv03_sp1_rtm.050324-1447)"
User Name NTDOMAIN\Administrator
Time Zone Central Daylight Time
Total Physical Memory 3,327.30 MB
Available Physical Memory 545.27 MB
Total Virtual Memory 1.10 GB
Available Virtual Memory 2.75 GB
Page File Space 2.00 GB
Page File C:\pagefile.sys
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java Service will not start

Hello,

Please contact us at support at advancedinstaller dot com so we can send you the debug version..

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

Return to “Common Problems”