Re: Session timeout and memory

2006-09-19 Thread Tom M. Blenko
3) Can someone point me at some good doc for learning about memory profiling of Java app's. Specifically over a long period of time. Even to figure out how much ram each session is taking and when that is being garbage collected as per Tom's example below. I've used OptimizeIt (http://www.b

Re: RE : Re: restart except saturday and sunday

2006-09-19 Thread Gavin Eadie
At 11:00 AM +0200 9/17/06, Pierre Bernard wrote: public void refuseNewSession(boolean flag) { ... it's "refuseNewSessions(...)" <-- plural, with an "s" ... Gav ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing li

constructing a url...

2006-09-19 Thread James Cicenia
Hello - I need to construct a componentActionURL vs a directActionURL. Basically I am using jfreeChart and need to create a popup of an object. I can make it work great with direct actions however, for reasons unimportant here, I need a componentActionURL. My question I think is how to set t

Re: A Bad Bug?

2006-09-19 Thread James Cicenia
Funny I just learned something similar just today. If I create related records on the fly using my old trusted a.setObject(EOObject) for the relationship it didn't render, but when I used the addObjectToBothSidesOfRelationship it displayed. Now if I saved the record the first version

Re: Session timeout and memory

2006-09-19 Thread Owen McKerrow
Hi All, Interesting thread ! And its very similar to a problem Im having. We are deploying our App under Tomcat and after several days of running we get and out of memory exception. so we increased the heap size. We got a couple more days out of the app. So we increased it again, this time

Re: Re: Flattened relationship and iterator oddness

2006-09-19 Thread Peter
I have a similar problem trying to use a flattened relationship in my WOUnitTesting. I have this: Study <->> StudyPeriod <->> StudySchedule My flattened relationship periodSchedules is defined in my EOModel for Entity Study as studyPeriods.studySchedules named "studySchedules". I create the st

Re: MS SQL Server Unicode Support

2006-09-19 Thread Chuck Hill
For EOF, you can set the Read Format to N %P and the Write Format to N %V for each attribute in the model. I'd expect this could just be done on a prototype, but I have never done so. Chuck On Sep 19, 2006, at 2:02 PM, Dov Rosenberg wrote: We are using Cayenne for some web services alongs

MS SQL Server Unicode Support

2006-09-19 Thread Dov Rosenberg
Title: MS SQL Server Unicode Support We are using Cayenne for some web services alongside our EOF based application. Our application supports unicode formatted characters in the database but in order to support it properly using MS SQL Server apparently we need to change our data types from char

MS SQL Server Unicode Support

2006-09-19 Thread Dov Rosenberg
Title: MS SQL Server Unicode Support We are using Cayenne for some web services alongside our EOF based application. Our application supports unicode formatted characters in the database but in order to support it properly using MS SQL Server apparently we need to change our data types from char

Re: A Bad Bug?

2006-09-19 Thread Jean Pierre Malrieu
Le 19 sept. 06 à 19:03, Ken Anderson a écrit : I have hundreds of one-way relationships and they work just fine in the latest WO release. I am glad for you! And this gives me hope after a difficult programming week... I have created a very simple test to double check this issue. Assum

Re: A Bad Bug?

2006-09-19 Thread Ken Anderson
Kieran,The latest EOGenerator templates already have setRelationship methods that do the proper thing for you.In many cases, the regular set methods and KVC suffice.  When you have a reciprocal relationship that has already been set, the relationship TO the other object that you set will have the r

Re: A Bad Bug?

2006-09-19 Thread Kieran Kelleher
Ken and Robert,I _do_ see your point, but what got me is that the EditingContext _did_ show the new relationship, but the SQLw ritten to the db did _not_ implement it . at least if walking the object graph showed that the relationship did not exist. In any case, EOF is justified in requiring th

Re: A Bad Bug?

2006-09-19 Thread Robert Walker
On Sep 19, 2006, at 12:24 PM, Kieran Kelleher wrote:The SOLUTION was to change my code to useeoSourceObject.addObjectToBothSidesOfRelationshipWithKey( destObject, relationshipKey);.but WHY does not takeValueForKey or takeStoredValueForKey not set the relationship both ways?Simple answer; becaus

Re: WOApp disappearing

2006-09-19 Thread Robert Walker
Ken,Yuck, that sound like a "fun" one.  Good luck...On Sep 19, 2006, at 1:19 PM, Ken Anderson wrote:Chuck,Thank you!  Didn't know about that one.  Sure enough, there's a file in /Library/Logs/CrashReporter:  java.crash.logIt turns out that a crash is occurring in a jnilib that I'm using.  Yuck!  Si

Re: A Bad Bug?

2006-09-19 Thread Ken Anderson
Kieran,Well that's your answer then.  If you have existing objects that are already tied together that have reciprocal relationships, you can't just set one side.KenOn Sep 19, 2006, at 1:39 PM, Kieran Kelleher wrote:Yes, it is a plain standard EOModeler two-way relationship   CTCampaign <<--> CTMed

Re: Session timeout and memory

2006-09-19 Thread Chuck Hill
Good information, thanks! On Sep 19, 2006, at 1:29 AM, Tom M. Blenko wrote: What you are seeing is almost certainly just the way garbage collection works. When the session times out, the objects it allocated are available for garbage collection. They are not collected at that time, ju

Re: Where is my WebObjects license code ??

2006-09-19 Thread Kieran Kelleher
And if you cannot find a direct answer, then go ahead and use it. As the old Irish proverb says: "Sure 'tis easier to ask for forgiveness than ask for permission." ;-) On Sep 19, 2006, at 1:15 PM, David Avendasora wrote: Amedeo, Check out the Wiki FAQ at: http://www.objectstyle.org/confluen

Re: A Bad Bug?

2006-09-19 Thread Kieran Kelleher
Yes, it is a plain standard EOModeler two-way relationship   CTCampaign <<--> CTMediaTemplate. Both are abstract classes don't know if that makes a difference.Here is my tech specs. The problem manifested itself both on DEV and DEPLOYMENT with the same behaviour.Dev Config = OS X 10.4.6 i686-C

Re: WOApp disappearing

2006-09-19 Thread Ken Anderson
Chuck, Thank you! Didn't know about that one. Sure enough, there's a file in /Library/Logs/CrashReporter: java.crash.log It turns out that a crash is occurring in a jnilib that I'm using. Yuck! Since it's intermittent, I'm concerned that maybe it's a problem with the dylib that the j

Re: Where is my WebObjects license code ??

2006-09-19 Thread David Avendasora
Amedeo, Check out the Wiki FAQ at: http://www.objectstyle.org/confluence/ display/WOCOM/FAQ+on+WebObjects That should answer most of your questions! If there are any that aren't ask away and I'm sure someone will try to help! Dave On Sep 19, 2006, at 1:07 PM, Amedeo Mantica wrote: thank

Re: WOApp disappearing

2006-09-19 Thread Chuck Hill
Hi Ken, By crashing do you mean the JVM process stops running? If so, have you checked out the JVM crash logs /Library/Logs/something or other? Perhaps you are hitting a JVM bug. Chuck On Sep 19, 2006, at 6:02 AM, Ken Anderson wrote: I have a situation where a WOApp is crashing without

Re: Where is my WebObjects license code ??

2006-09-19 Thread Amedeo Mantica
thanks! is legal to use that gode on another machine running linux ?? obviously I don't want to deploy WO on both systems concurrently !! On 19/set/06, at 13:23, Timo Hoepfner wrote: In Terminal type: cat /System/Library/Frameworks/JavaWebObjects.framework/Resources/ License.key It should

Re: A Bad Bug?

2006-09-19 Thread Ken Anderson
I have hundreds of one-way relationships and they work just fine in the latest WO release. On Sep 19, 2006, at 12:49 PM, Jean Pierre Malrieu wrote: What version of WO are you using? Relationships have started to behave strangely since 5.3.2., I fear. For example a to-many with no reverse to-o

Re: A Bad Bug?

2006-09-19 Thread Ken Anderson
Does the target of the relationship have a reciprocal relationship?  If so, this would explain the problem, since EOF wouldn't know which way you wanted the relationship (you created an inconsistency in the data).KenOn Sep 19, 2006, at 12:24 PM, Kieran Kelleher wrote:Here is one that bit me bad yes

Re: A Bad Bug?

2006-09-19 Thread Jean Pierre Malrieu
What version of WO are you using? Relationships have started to behave strangely since 5.3.2., I fear. For example a to-many with no reverse to-one relationship no longer works with 5.3.2 (foreign key is not updated in sql). JPM Here is one that bit me bad yesterday. I am trying to understa

A Bad Bug?

2006-09-19 Thread Kieran Kelleher
Here is one that bit me bad yesterday. I am trying to understand if it is really a bug situation or not, or whether the code I used is expected to produce unpredictable behavior like this did.I was using eoSourceObject.takeValueForKey( destObject, relationshipKey ) to set a relationship. Upon savin

AjaxUpdateContainer function not defined [SOLVED]

2006-09-19 Thread Marcos Trejo Munguia
Hi List, I found the following on this issue, If your server logic returns JavaScript code along with HTML markup, the Ajax.Updater object can evaluate that JavaScript code. To get the object to treat the response as JavaScript, you simply add evalScripts: true; to the list of properties in the

Re: WOApp disappearing

2006-09-19 Thread Ken Anderson
Robert,I don't think so / hope not, but I'll investigate.KenOn Sep 19, 2006, at 9:26 AM, Robert Walker wrote:Ken,Are you sure you don't have an EOEditingContext deadlocking issues?  Have you double checked all you locks and unlocks?  I have had similar problems in the past and in most cases discove

Re: WOApp disappearing

2006-09-19 Thread Robert Walker
Ken,Are you sure you don't have an EOEditingContext deadlocking issues?  Have you double checked all you locks and unlocks?  I have had similar problems in the past and in most cases discovered it was due to improper, or unbalanced, editing context locking.On Sep 19, 2006, at 9:02 AM, Ken Anderson

WOApp disappearing

2006-09-19 Thread Ken Anderson
I have a situation where a WOApp is crashing without any information whatsoever. I'm running on OS X 10.4.6 using monitor to start/stop. When it crashes, there's nothing unusual in the log. It's intermittent - I can start it and it crashes 2 minutes later, and if I restart it, it runs fi

Re: Where is my WebObjects license code ??

2006-09-19 Thread Timo Hoepfner
In Terminal type: cat /System/Library/Frameworks/JavaWebObjects.framework/Resources/ License.key It should give you the key. Timo Am 19.09.2006 um 12:19 schrieb Amedeo Mantica: I bought Xserve... In the box there is no Deployment key for WebObjects... If I want deploy on linux where i ge

Where is my WebObjects license code ??

2006-09-19 Thread Amedeo Mantica
I bought Xserve... In the box there is no Deployment key for WebObjects... If I want deploy on linux where i get the key ? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-de

Re: Session timeout and memory

2006-09-19 Thread Tom M. Blenko
What you are seeing is almost certainly just the way garbage collection works. When the session times out, the objects it allocated are available for garbage collection. They are not collected at that time, just made available for collection. The garbage collector won't run until it ne