|
From: Leif M. <le...@ta...> - 2004-09-04 16:09:15
|
Luke,
I can't think of anything in the Wrapper that would be stateful in the
Wrapper itself. The error that you are seeing is being caused by the
WrapperManager.start method being called multiple times. Are you sure
that there is no way that your code could be doing this?
WrapperManager.start(itplacemanager.SametimePersistentChatMain@58e6fffc,
args["C:\Program Files\Sametime Persistent
Chat\properties\SametimePersistentChat.properties", "C:\Program
Files\Sametime Persistent Chat\logs\STPersistentChat.log",
"JAVAWRAPPERSERVICE"]) called by thread: main
INFO | jvm 1 | 2004/08/25 22:23:34 | java.lang.IllegalStateException:
WrapperManager has already been started with a WrapperListener.
INFO | jvm 1 | 2004/08/25 22:23:34 | at
org.tanukisoftware.wrapper.WrapperManager.start(WrapperManager.java:1392)
INFO | jvm 1 | 2004/08/25 22:23:34 | at
itplacemanager.SametimePersistentChatMain.main(SametimePersistentChatMain.java:131)
If you want to send me your SametimePersistentChatMain class on or
off list, I can take a look at it and see if anything jumps out at me.
Your wrapper.conf file looks fine.
Cheers,
Leif
l l wrote:
> Leif,
>
> I am using Integration Methods 3.
>
> The purpose of this application is to run as a service that interface
> with Lotus Notes and Sametime Server to provide realtime persistent of
> instant messages and access to instant message.
>
> We have created a main class that implements the WrapperListener
> interface.
>
> When main(String[] args) is called, it reads some properties in and
> create some log files and the most important function is to do a
> WrapperManager.start(new SametimeAuthenticationMain(), args);
>
> I assumed that the WrapperManager.start calls
> public Integer start( String[] args )
> {
> //System.out.println("Entrying SametimePersistentChatMain start");
> logger.writeToDebugFile("Debug", className,"Entrying
> SametimeAuthenticationMain start");
> m_theApp = new ITSametimeAuthenticationApp(m_AppParameters, args,
> logger );
> m_theApp.start();
>
> return null;
> }
>
> The start function create an object that start up several threads that
> serve various purpose.
> Some access the Domino Server, listen for instant messages, write to a
> database.
>
> Everything works fine until I shutdown the service and then restart it.
>
>> From then on, no matter how many time I stop the service and restart,
>> the
>
> exception takes place. Only after rebooting the
> system does the service come up without an exception. If the service
> is stop and restarted, the exception is back.
>
> Here is a copy of my conf file.
>
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application
>
> # Example using system path:
> #wrapper.java.command=java
>
> #Example using JAVA_HOME environment variable:
> #wrapper.java.command=%JAVA_HOME%/bin/java
>
> #Example using full path (not platform independent):
> #wrapper.java.command=c:/j2sdk1.4.0/bin/java
>
> wrapper.java.command=C:\Lotus\Domino\ibm-jre\jre\bin\java.exe
>
> # Java Main class. This class must implement the WrapperListener
> interface
> # or guarantee that the WrapperManager class is initialized. Helper
> # classes are provided to do this for you. See the Integration section
> # of the documentation for details.
>
> wrapper.java.mainclass=itplacemanager.SametimePersistentChatMain
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=C:\Lotus\Domino\Notes.jar
> wrapper.java.classpath.2=../lib/wrapper.jar
> wrapper.java.classpath.3=../lib/wrappertest.jar
> wrapper.java.classpath.4=../lib/ITPlaceManager.jar
> wrapper.java.classpath.5=../lib/STComm.jar
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=C:\Lotus\Domino
> wrapper.java.library.path.2=../lib
>
> # Java Additional Parameters
> #wrapper.java.additional.1=
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
>
> # Maximum Java Heap Size (in MB)
> #wrapper.java.maxmemory=64
>
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1="C:\Program Files\Sametime Persistent
> Chat\SametimePersistentChat.properties"
> wrapper.app.parameter.2="C:\Program Files\Sametime Persistent
> Chat\logs\STPersistentChat.log"
> wrapper.app.parameter.3=JAVAWRAPPERSERVICE
>
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> # Format of output for the console. (See docs for formats)
> wrapper.console.format=PM
>
> # Log Level for console output. (See docs for log levels)
> #wrapper.console.loglevel=INFO
> #wrapper.console.loglevel=DEBUG
>
> # Log file to use for wrapper output logging.
> wrapper.logfile=../logs/wrapper.log
>
> # Format of output for the log file. (See docs for formats)
> wrapper.logfile.format=LPTM
>
> # Log Level for log file output. (See docs for log levels)
> #wrapper.logfile.loglevel=INFO
> wrapper.logfile.loglevel=DEBUG
>
> # Maximum size that the log file will be allowed to grow to before
> # the log is rolled. Size is specified in bytes. The default value
> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
> # 'm' (mb) suffix. For example: 10m = 10 megabytes.
> wrapper.logfile.maxsize=0
>
> # Maximum number of rolled log files which will be allowed before old
> # files are deleted. The default value of 0 implies no limit.
> wrapper.logfile.maxfiles=0
>
> # Log Level for sys/event log output. (See docs for log levels)
> wrapper.syslog.loglevel=NONE
>
> #********************************************************************
> # Wrapper NT Service Properties
> #********************************************************************
> # WARNING - Do not modify any of these properties when an application
> # using this configuration file has been installed as a service.
> # Please uninstall the service before modifying this section. The
> # service can then be reinstalled.
>
> # Name of the service
> wrapper.ntservice.name=Sametime Persistent Chat
>
> # Display name of the service
> wrapper.ntservice.displayname=Sametime Persistent Chat Application
>
> # Description of the service
> wrapper.ntservice.description=Save place chat information thru Sametime
>
> # Service dependencies. Add dependencies as needed starting from 1
> wrapper.ntservice.dependency.1=
>
> # Mode in which the service is installed. AUTO_START or DEMAND_START
> wrapper.ntservice.starttype=AUTO_START
>
> # Allow the service to interact with the desktop.
> wrapper.ntservice.interactive=false
>
>
> Thank You
> Luke
>
>
>
>
>
>
>
>> Luke,
>
> Which integration method are you using? The problem is that you
> are calling
> WrapperManager.start after the WrapperManager has already been started.
> I will need to see your config file and know a little more about what
> you are doing
> before I can be helpful.
>
> Cheers,
> Leif
>
> lukeysan wrote:
>
> > What could be causing this?
> > Is there any other information I can provide that help?
> >
> > Could it be thread not going away?
> >
> > Thank You
> > Luke
> >
> > Wrapper (Version 3.1.1) http://wrapper.tanukisoftware.org
> > INFO | jvm 1 | 2004/08/25 22:23:34 |
> > INFO | jvm 1 | 2004/08/25 22:23:34 |
> >
> WrapperManager.start(itplacemanager.SametimePersistentChatMain@58e6fffc,
> > args["C:\Program Files\Sametime Persistent
> > Chat\properties\SametimePersistentChat.properties", "C:\Program
> > Files\Sametime Persistent Chat\logs\STPersistentChat.log",
> > "JAVAWRAPPERSERVICE"]) called by thread: main
> > INFO | jvm 1 | 2004/08/25 22:23:34 |
> > java.lang.IllegalStateException: WrapperManager has already been
> > started with a WrapperListener.
> > INFO | jvm 1 | 2004/08/25 22:23:34 | at
> >
> org.tanukisoftware.wrapper.WrapperManager.start(WrapperManager.java:1392)
> > INFO | jvm 1 | 2004/08/25 22:23:34 | at
> >
> itplacemanager.SametimePersistentChatMain.main(SametimePersistentChatMain.java:131)
>
> >
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's
> FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|