Re: How do I use JAVA Frame instead of WOFrame in my app

2006-12-07 Thread Daniele Corti
Hi Randy, FileDialog takes as argument a java.awt.Frame, that coincides with a windows Dialog box, not a web Frame. I'm not sure, so if someones disagree, please correct my explanation, but I think a code that uses this class can be runned only as a java application. If you need to parse th

Re: Help With XML

2006-12-07 Thread Daniele Corti
Hi Gino, why don't you try to use the javax.xml.parsers package? When you have the xml file in a string write it in a File object myXml, then do: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(myXml); t

Re: Xcode and WOUnitTest 2

2006-12-07 Thread Eugene Khablov
Hi list! Using wounittest2 I've stuck with testing methods containing calls of EOEnterpriseObjectClazz.objectWithPrimaryKeyValue(ec, pk); or EOUtilities.objectWithPrimaryKeyValue(ec, entity, pk); These methods create qualifiers against primary key attribute which is not selected as a class prope

Re: MySQL 5.0.26 or 5.1.12 beta and WebObjects

2006-12-07 Thread Zak Burke
J Stephanos wrote on 12/6/06 12:39 PM: Does anyone on this list have any experience with the latest versions of MySQL and WebObjects. Based on the list postings, Frontbase and Openbase seem to be more popular. We use 4.1.x and 5.0.x and are basically happy with things. zak. ___

Re: Consistent reads

2006-12-07 Thread John Larson
Hi Miquel, Funny, I just got done working through a similar problem myself. I'm a little short on time right now, but the gist of it is that I have objects register with a singleton directory in awake from fetch. I use a subclass of eogenericrecord to do that and index off the eoglobali

... has exited due to signal 10 (SIGBUS) ?

2006-12-07 Thread Simon McLean
Hi - We are trying to use WOPDFReports to generate a PDF from a component. If we run the process once it spews out the following errors, but does the job anyway: 2006-12-07 14:43:14.909 java[6707] *** _NSAutoreleaseNoPool(): Object 0x333f10 of class __NSFontTypefaceInfo autoreleased with

Bug in stateless WOComponent management?

2006-12-07 Thread Francis Labrie
Hi, I have several WebObjects 5.3.2 applications deployed in production running with Java 5, and I've found something worrying with stateless components. By the way, these applications are set to allow concurrent request. I have an heavily used stateless component managing is own binding

Re: Bug in stateless WOComponent management?

2006-12-07 Thread Ulrich Köster
_flag is a state ! public boolean flag() { Boolean _flag; if(_flag == null) { // Initialize _flag to a Boolean instance: it can't be set to null [...] }

Re: Bug in stateless WOComponent management?

2006-12-07 Thread Ulrich Köster
I've hit the send button to early. The special thing about a stateless component is that only one instance of the component is used. With concurrent request handling it's very likely that a reset and valueForKey are called at eh same time. Uli Am 07.12.2006 um 16:25 schrieb Ulrich Köster:

Re: Bug in stateless WOComponent management?

2006-12-07 Thread Pierre Bernard
A stateless component should be locked to one request/response loop and thus thread at a given time. No two things should happen concurrently. If the stateless component is needed by another thread, a new copy will be created. I have had a similar problem that I traced back to having my

Question about Session

2006-12-07 Thread Daniele Corti
Hi all, I'm a little cofused: in my app I use as editing context the Session.defaultEditingContext(), and I thought that when the session is terminated automatically the ec would be disposed. well, today I've notice that when the session timed out, and I reenter in the app, when the session is

Re: Question about Session

2006-12-07 Thread Chuck Hill
One of these things is true: - you think it is the same EC, but it is not - the session did not terminate What makes you think it is the same EC? Chuck On Dec 7, 2006, at 8:09 AM, Daniele Corti wrote: Hi all, I'm a little cofused: in my app I use as editing context the Session.defaul

Re: Xcode and WOUnitTest 2

2006-12-07 Thread Christian Pekeler
EOEnterpriseObjectClazz.objectWithPrimaryKeyValue(ec, pk); or EOUtilities.objectWithPrimaryKeyValue(ec, entity, pk); These methods create qualifiers against primary key attribute which is not selected as a class property in model. Why do you fetch objects by their primary key? I don't mean t

RE: Bug in stateless WOComponent management?

2006-12-07 Thread Müller, Michael
Hi Pierre, hi Francis, additionally, there's a problem/bug with performParentAction() in WOComponent: before the actual parentAction gets called via parent.valueForKey(action), WOF calls pushValuesToParent(). In case of stateless components this method also prematurely resets the component and ret

Re: Bug in stateless WOComponent management?

2006-12-07 Thread Chuck Hill
On Dec 7, 2006, at 7:49 AM, Pierre Bernard wrote: A stateless component should be locked to one request/response loop and thus thread at a given time. No two things should happen concurrently. If the stateless component is needed by another thread, a new copy will be created. I have ha

Re: Question about Session

2006-12-07 Thread Robert Walker
Daniele, I don't believe that you are getting the same editing context. The default editing context for a session is created and "owned" by the session instance. What is more likely is that you are expecting to get fresh data from the database because you have a new EOEditingContext.

Re: Question about Session

2006-12-07 Thread Daniele Corti
well, I'm quite sure that it's the same and that it's called Session.terminate(): When I wrote the first code, I thought it would be better to forget all the objects in the ec, to reinizialize the ec with the session so in the Session.java I've overwritten public void terminate() public void _cl

why not true when testing for equality with a null query

2006-12-07 Thread Baiss Eric Magnusson
Wouldn't the following fetch the record if I don't set any value for the 3 <$> variables, and the record in the DB has for the 3 fields? ((areaID = $areaID) or (stateID = $stateID) or (groupID = $groupID) or ((areaID = stateID) and (areaID = groupID))) Do I

Re: Question about Session

2006-12-07 Thread Chuck Hill
On Dec 7, 2006, at 8:40 AM, Daniele Corti wrote: well, I'm quite sure that it's the same and that it's called Session.terminate(): When I wrote the first code, I thought it would be better to forget all the objects in the ec, to reinizialize the ec with the session so in the Session.java

Re: why not true when testing for equality with a null query

2006-12-07 Thread Chuck Hill
What does the generated SQL look like? I don't use display groups, so I don't know. You might want to try setting EOKeyValueCoding.NullValue in place of the null. Chuck On Dec 7, 2006, at 9:32 AM, Baiss Eric Magnusson wrote: Wouldn't the following fetch the record if I don't set any value

MIME Parser

2006-12-07 Thread Gino Pacitti
Hi All I have an app that receives a MMS message that contains an image that has been transferred as 7 bit data which I have decoded using Base64decoding. Sorry for my ignorance but I need to be able to convert/save the image to the system - the documentation mentions this: "The MMS mus

Re: Bug in stateless WOComponent management?

2006-12-07 Thread Ryan Klems
Recursive stateless components should work just fine, I use them all the time. In the stateless side, each time it needs an instance of the component if there isn't an instance available to service the need, it will create a new instance for the pool. Its possible that 1 instance will onl

Re: why not true when testing for equality with a null query

2006-12-07 Thread Pierre Bernard
To query for NULL values you need to use NSKeyValueCoding.NullValue Pierre On 7 Dec 2006, at 18:32, Baiss Eric Magnusson wrote: Wouldn't the following fetch the record if I don't set any value for the 3 <$> variables, and the record in the DB has for the 3 fields? ((areaID = $ar

Re: Question about Session

2006-12-07 Thread Pierre Bernard
Are you holding onto an EO that was created within the default editing context? E.g. are you assigning the User or Currency objects to a variable within your application class, or to a static variable? Pierre On 7 Dec 2006, at 18:45, Chuck Hill wrote: On Dec 7, 2006, at 8:40 AM, Daniel

Instance recycle itself after a specific load point is reached

2006-12-07 Thread Tanmoy Roy
Hi all, I wanted to know if there is anything available in the WebObjects that will allow the instance to recycle itself after a specific load point is reached. Is something available in the monitor where in I can specify that after an instance gets a specified number of session it will recycle

Re: _EOCheapCopyMutableArray bug!

2006-12-07 Thread Ian Joyner
Just hit this problem myself, since I was changing Enumeration to the more elegant Iterator and wanted to use generics (which should avoid runtime type checking, but I'm not sure if it can since you can't put a matching generic type on the NSArray and for backward compatibility, Java does n

Re: Instance recycle itself after a specific load point is reached

2006-12-07 Thread Sacha Michel Mallais
On Dec 7, 2006, at 4:57 PM, Tanmoy Roy wrote: I wanted to know if there is anything available in the WebObjects that will allow the instance to recycle itself after a specific load point is reached. Is something available in the monitor where in I can specify that after an instance gets a speci

Re: Instance recycle itself after a specific load point is reached

2006-12-07 Thread Chuck Hill
On Dec 7, 2006, at 5:08 PM, Sacha Michel Mallais wrote: On Dec 7, 2006, at 4:57 PM, Tanmoy Roy wrote: I wanted to know if there is anything available in the WebObjects that will allow the instance to recycle itself after a specific load point is reached. Is something available in the monit

Re-[SOLVED] why not true when testing for equality with a null query

2006-12-07 Thread Baiss Eric Magnusson
Thanks Chuck & Pierre, < NSKeyValueCoding.NullValue> is the winning ticket, as in: if ( curArea != null ) groups.queryBindings().setObjectForKey ( curArea.areaID(), "areaID"); else groups.queryBindings().setObjectForKey ( EOKeyValueCoding.NullValue, "areaID"); if ( curState != null ) group