Hi All:
I have a jar application which process n converts file into csv file. I have made it to run in windows service using Java Service Wrapper. It got installed my jar application successfully when i run "InstallApp-NT.bat" file and starts running my application when i run "app" command. But when i try to start the service in services, its not starting and showing following message in dialog box
"Windows could not start the generic Preprocessor application on Local Computer. For more information, review the System Event Log. If this is a non-microsoft service, contact the service vendor, and refer to service-specific error code1".
I have the system log file and it showing the below error message
System Event log :
--> Wrapper Started as Service
Java Service Wrapper Community Edition 3.3.2
Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved.
http://wrapper.tanukisoftware.org
Launching a JVM...
WrapperManager: Initializing...
WrapperSimpleApp:
WrapperSimpleApp: Encountered an error running main:
WrapperSimpleApp: java.lang.NullPointerException
WrapperSimpleApp: at java.util.Hashtable.put(Hashtable.java:396)
WrapperSimpleApp: at java.util.Properties.setProperty(Properties.java:128)
WrapperSimpleApp: at java.lang.System.setProperty(System.java:701)
WrapperSimpleApp: at com.dnb.genericpreprocessor.process.ProcessRunner.main(Unknown Source)
WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
WrapperSimpleApp: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
WrapperSimpleApp: at java.lang.reflect.Method.invoke(Method.java:585)
WrapperSimpleApp: at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:238)
WrapperSimpleApp: at java.lang.Thread.run(Thread.java:595)
<-- Wrapper Stopped
I don think any error in application code because it running fine when run "app" command. Please help what i should now. thanks in advance.