Search found 3 matches

Go to advanced search

by Ferrograph
Wed Jan 30, 2013 4:35 pm
Forum: Common Problems
Topic: Java Service stops after 30 seconds
Replies: 6
Views: 7538
 
Jump to post

Re: Java Service stops after 30 seconds

Im strapped for time currently, and since my service is now working...

If I get chance I will put together a clean project to test it, and report back here. Thanks for being so responsive.

The version of AI was 9.8.
by Ferrograph
Wed Jan 30, 2013 2:39 am
Forum: Common Problems
Topic: Java Service stops after 30 seconds
Replies: 6
Views: 7538
 
Jump to post

Re: Java Service stops after 30 seconds

Tried all of that stuff in many combinations and unless the following conditions are met the wrapper reports your service as "started then stopped":

# Main() must not exit until after stop() is called.
# You must do at least one System.out.print during main()

As with the majority of the AI ...
by Ferrograph
Tue Jan 29, 2013 12:05 pm
Forum: Common Problems
Topic: Java Service stops after 30 seconds
Replies: 6
Views: 7538
 
Jump to post

Re: Java Service stops after 30 seconds

Using an infinite while is ok, but not a great idea as it could consume a lot of CPU time, I'd be surprised if it doesn't.

Here is the method I used below. And a side note is that if you dont put any System.out.print in your main for some reason the AI service.exe wrapper thinks your service ...

Go to advanced search