Re: Eclipse Crashes but WOApp Keeps Running

2009-03-12 Thread Kieran Kelleher

Hi David,

Use a fixed WOPort in your run/debug configuration to avoid this   
and you get bookmarkable URLs as a bonus too ;-)


Kieran

On Mar 12, 2009, at 11:45 AM, David Avendasora wrote:


Hey all,

I have just discovered something that I didn't realize before. If  
you have you have a WO app running inside of Eclipse and Eclipse  
crashes the WO app keeps running.


This can cause all sorts of problems. I ended up with three separate  
apps running (Eclipse crashed twice) and they were all running the  
same scheduled task (via Quartz) so not only was it s...l...o...w   
with lots of unexplained DB activity, I was also getting DB errors  
on unique-constraints because all three had their own cache of  
objects and were each creating the same object.


I had to manually go in and quit the "Java" process in Activity  
Monitor.


Talk about spending way too much time looking in my code for a bug.  
I did, however, end up making my app much more resilient to  
unexpected DB changes.


Dave
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to kieran_li...@mac.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Eclipse Crashes but WOApp Keeps Running

2009-03-12 Thread Stamenkovic Florijan


On Mar 12, 2009, at 11:45, David Avendasora wrote:

I have just discovered something that I didn't realize before. If  
you have you have a WO app running inside of Eclipse and Eclipse  
crashes the WO app keeps running.


Huh, that's good to know. Thinking about it, this could be both a bug  
and a feature, from Eclipse's point of view...


This can cause all sorts of problems. I ended up with three separate  
apps running (Eclipse crashed twice) and they were all running the  
same scheduled task (via Quartz) so not only was it s...l...o...w   
with lots of unexplained DB activity, I was also getting DB errors  
on unique-constraints because all three had their own cache of  
objects and were each creating the same object.


I had to manually go in and quit the "Java" process in Activity  
Monitor.


However, if you define the port on which the app runs, you can only  
have one instance running. Other instances can't start up as the port  
is taken. This is useful also in other situations. For example, I  
normally run my builds from the cmd line before deploying, because an  
app can behave differently if you run it from Eclipse (which I do  
during dev). So, if one version is already running, the other will  
crash on startup. Thereby, I am 100% sure which app I am connecting to.


Talk about spending way too much time looking in my code for a bug.  
I did, however, end up making my app much more resilient to  
unexpected DB changes.


:D

F
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Eclipse Crashes but WOApp Keeps Running

2009-03-12 Thread Atli Páll Hafsteinsson
If you set wolips to always run you app on the same port then you will
notice this right away since the app will refuse to run because another app
is bound to the port.

:)

Atli


On 3/12/09 3:45 PM, "David Avendasora"  wrote:

> Hey all,
> 
> I have just discovered something that I didn't realize before. If you
> have you have a WO app running inside of Eclipse and Eclipse crashes
> the WO app keeps running.
> 
> This can cause all sorts of problems. I ended up with three separate
> apps running (Eclipse crashed twice) and they were all running the
> same scheduled task (via Quartz) so not only was it s...l...o...w
> with lots of unexplained DB activity, I was also getting DB errors on
> unique-constraints because all three had their own cache of objects
> and were each creating the same object.
> 
> I had to manually go in and quit the "Java" process in Activity Monitor.
> 
> Talk about spending way too much time looking in my code for a bug. I
> did, however, end up making my app much more resilient to unexpected
> DB changes.
> 
> Dave
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/atlip%40us.is
> 
> This email sent to at...@us.is


Fyrirvari á tölvupósti / e-mail disclaimer
http://us.is/Apps/WebObjects/US.woa/wa/dp?id=3776

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Eclipse Crashes but WOApp Keeps Running

2009-03-12 Thread David Avendasora

Hey all,

I have just discovered something that I didn't realize before. If you  
have you have a WO app running inside of Eclipse and Eclipse crashes  
the WO app keeps running.


This can cause all sorts of problems. I ended up with three separate  
apps running (Eclipse crashed twice) and they were all running the  
same scheduled task (via Quartz) so not only was it s...l...o...w   
with lots of unexplained DB activity, I was also getting DB errors on  
unique-constraints because all three had their own cache of objects  
and were each creating the same object.


I had to manually go in and quit the "Java" process in Activity Monitor.

Talk about spending way too much time looking in my code for a bug. I  
did, however, end up making my app much more resilient to unexpected  
DB changes.


Dave
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com