Re: WOLips new Wonder app+framework creation fails

2009-03-17 Thread Chuck Hill
Is ERExtensions included? That is what has the properly genericized NSDictionary class. On Mar 17, 2009, at 9:33 PM, Jonathan 'Wolf' Rentzsch wrote: When creating a new Wonder Application in Eclipse+WOLips that references an existing Wonder Framework project, I get a build error ("The ty

WOLips new Wonder app+framework creation fails

2009-03-17 Thread Jonathan 'Wolf' Rentzsch
When creating a new Wonder Application in Eclipse+WOLips that references an existing Wonder Framework project, I get a build error ("The type NSDictionary is not generic; it cannot be parameterized with arguments ". * Creating a new Wonder app referencing an existing non-wonder Framework

Re: New Variation --- My embedded .woa is displaying funny characters

2009-03-17 Thread Chuck Hill
BOM is Byte Order Marker. Other than that, I have no idea. Chuck On Mar 17, 2009, at 9:30 PM, Ricardo J. Parada wrote: In case it helps, if I open the .java file using BBEdit and select Read as: (autodetect) then BBEdit reads and displays the characters in the file correctly and then it

Re: New Variation --- My embedded .woa is displaying funny characters

2009-03-17 Thread Ricardo J. Parada
In case it helps, if I open the .java file using BBEdit and select Read as: (autodetect) then BBEdit reads and displays the characters in the file correctly and then it shows the file is Unicode (UTF-8, no BOM). I'm not sure what no BOM means. But it seems the file is encoded using UTF-

Re: New Variation --- My embedded .woa is displaying funny characters

2009-03-17 Thread Ricardo J. Parada
Ok... I thought I had solved this one. All my components have a .woo that specifies UTF-8. It's a Wonder app and my application constructor calls setDefaultEncoding("UTF-8"). In developmen everything works great. HOWEVER, the embedded app displays characters wrong when the characters a

[OT] Holiday Inn Civic Center?

2009-03-17 Thread Pascal Robert
Hello everyone, Did any of you went to the Holiday Inn Civic Center in San Francisco? We are looking at doing WOWODC West at this hotel, but since I never went at this place and I can't really take a plane just to see it, I would like to know if someone have any good or bad experience at th

Re: .woo and display groups

2009-03-17 Thread Ricardo J. Parada
Thank you both... Understanding it from a code perspective helps me a lot and I'll try from the GUI/.woo file. Thank you both!!! :-) On Mar 17, 2009, at 8:08 PM, David LeBer wrote: On 17-Mar-09, at 7:42 PM, David Holt wrote: On 17-Mar-09, at 3:43 PM, Ricardo J. Parada wrote: Hi Davi

Re: Unique Fields in Database

2009-03-17 Thread Chuck Hill
On Mar 17, 2009, at 4:12 PM, Jeff Schmitz wrote: Hi Andrew, Not being a database expert, I was wondering what you meant by a "lock in the database"? I think he means another field that is used as an editing lock. I think this would still leave you open to a race condition. I coul

Re: .woo and display groups

2009-03-17 Thread David LeBer
On 17-Mar-09, at 7:42 PM, David Holt wrote: On 17-Mar-09, at 3:43 PM, Ricardo J. Parada wrote: Hi David! Ok... so for example, how would you create the addressesDisplayGroup? Reading David's blog is your best bet: http://david.codeferous.com/index.php?s=displaygroup&submit=Search Remem

Re: SimpleDB and EOF

2009-03-17 Thread Drew Thoeni
We're just looking into that and were actually thinking about loading Frontbase on an Amazon AWS instance and run WO from other instances. I'd be very interested in hearing what you've done with SimpleDB and EOF. On Mar 16, 2009, at 3:09 PM, Joe Moreno wrote: Hi all, I'm just checking

Re: Unique Fields in Database

2009-03-17 Thread Jeff Schmitz
Hi Andrew, Not being a database expert, I was wondering what you meant by a "lock in the database"? I could see using a Java synchronized object for a lock, but that wouldn't work across application instances. My problem is it is the user that is specifying the "unique" field (unique

Re: Does "cascade delete" drill down multiple teirs?

2009-03-17 Thread David Avendasora
On Mar 17, 2009, at 6:31 PM, Dan Grec wrote: Hey everyone, Simple setup in the model as follows: A Branch has many Employees with a cascade delete rule. An Employee has many Addresses with a cascade delete rule. When I delete a Branch, I would like EOF to automatically delete all of the as

Re: Does "cascade delete" drill down multiple teirs?

2009-03-17 Thread Chuck Hill
On Mar 17, 2009, at 3:31 PM, Dan Grec wrote: Hey everyone, Simple setup in the model as follows: A Branch has many Employees with a cascade delete rule. An Employee has many Addresses with a cascade delete rule. When I delete a Branch, I would like EOF to automatically delete all of the as

Re: .woo and display groups

2009-03-17 Thread Ricardo J. Parada
Hi David! Ok... so for example, how would you create the addressesDisplayGroup? I used to do this kind of stuff loong ago when I used to write EOF/ AppKit applications. But I was just reading the documentation and got a bit confusing, specially since I don't see any examples. On Mar 17,

Does "cascade delete" drill down multiple teirs?

2009-03-17 Thread Dan Grec
Hey everyone, Simple setup in the model as follows: A Branch has many Employees with a cascade delete rule. An Employee has many Addresses with a cascade delete rule. When I delete a Branch, I would like EOF to automatically delete all of the associated Employees (which it is doing) and then

Re: .woo and display groups

2009-03-17 Thread David Holt
On 17-Mar-09, at 3:11 PM, David Holt wrote: Hola Ricardo! On 17-Mar-09, at 2:10 PM, Ricardo J. Parada wrote: I noticed that the component editor lets you edit the .woo file. You can add display groups there and a detail display group. Then it has a Source view that lets you see the .w

Re: .woo and display groups

2009-03-17 Thread David Holt
Hola Ricardo! On 17-Mar-09, at 2:10 PM, Ricardo J. Parada wrote: I noticed that the component editor lets you edit the .woo file. You can add display groups there and a detail display group. Then it has a Source view that lets you see the .woo's contents in plist format. I never use

.woo and display groups

2009-03-17 Thread Ricardo J. Parada
I noticed that the component editor lets you edit the .woo file. You can add display groups there and a detail display group. Then it has a Source view that lets you see the .woo's contents in plist format. I never use that but I'm wondering if I'm missing anything. Who reads the .woo

Re: Zero dates "0000-00-00"

2009-03-17 Thread Gennady Kushnir
> If it's MySQL your jdbc connection url should probably have: > ?zeroDateTimeBehavior=convertToNull WOW! that worked! Thanks a lot! 2009/3/17 Lachlan Deck : > On 18/03/2009, at 4:48 AM, Gennady Kushnir wrote: > >> Hello list. >> Is there some known hint to get rid with exception raised when d

Re: Zero dates "0000-00-00"

2009-03-17 Thread Andrew Lindesay
Hello; For the reason that some date functions in MySQL return strings, I created a class which can be used as a "data type" in the modeller and which (from memory) handles this scenario if you are having to deal with timestamps-as-strings; LEEONSTimestampFromMySQLString This may

Re: Zero dates "0000-00-00"

2009-03-17 Thread Gennady Kushnir
Thank you, ChukThis sounds intriguing. Something deep in EOF... I will experiment with this, but I can't find the best way to get the EOAdaptorChannel to set a delegate for it. Possibly intercepting it at the moment of creation. In fact I thought that was a common problem interacting with third pa

Re: Zero dates "0000-00-00"

2009-03-17 Thread Lachlan Deck
On 18/03/2009, at 4:48 AM, Gennady Kushnir wrote: Hello list. Is there some known hint to get rid with exception raised when dealing with zero dates in SQL? I'm taking data from database maintained with a third party program. What type of database? When a date is undefined that program puts

Re: WOWebServicesClient constructor hangs entire app

2009-03-17 Thread Ramsey Gurley
On Mar 16, 2009, at 6:44 PM, Ramsey Gurley wrote: On Mar 16, 2009, at 5:56 PM, Mike Schrag wrote: -Djava.net.connectiontimeout=2 yes .. There are some other settings, too: -Dsun.net.client.defaultConnectTimeout=15000 -Dsun.net.client.defaultReadTimeout=15000 I don't know how these relate

Re: Zero dates "0000-00-00"

2009-03-17 Thread Chuck Hill
These are Java exceptions, not EOF exceptions. So this won't be easy... Look in EOAccess at the interface EOAdaptorChannel.Delegate. Specifically the adaptorChannelDidFetchRow method. You should be able to implement that, look for such values, and replace them with the null marker (or

Re: Zero dates "0000-00-00"

2009-03-17 Thread Gennady Kushnir
> What is the exception and stack trace? com.webobjects.jdbcadaptor.JDBCAdaptorException: Value '-00-00' can not be represented as java.sql.Date it shows 2 stacks... [2009-3-17 20:59:43 MSK] Value '-00-00' can not be represented as java.sql.Dateat com.mysql.jdbc.SQLError.createSQLExcept

Re: NDN:

2009-03-17 Thread David LeBer
On 17-Mar-09, at 1:54 PM, Gennady Kushnir wrote: I get this reply every time I post into the list. Is it normal? Normal? No. There is a hosed mailserver out there with an awol admin. Expected? Unfortunately yes. We all get them. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj

Re: Zero dates "0000-00-00"

2009-03-17 Thread Chuck Hill
On Mar 17, 2009, at 10:48 AM, Gennady Kushnir wrote: Hello list. Is there some known hint to get rid with exception raised when dealing with zero dates in SQL? I'm taking data from database maintained with a third party program. When a date is undefined that program puts "-00-00" into datab

Fwd: NDN:

2009-03-17 Thread Gennady Kushnir
I get this reply every time I post into the list. Is it normal? Gennady -- Forwarded message -- From: Date: 2009/3/17 Subject: NDN: To: Gennady Kushnir Sorry. Your message could not be delivered to: wodev,mail (The name was not found at the remote site. Check that the name ha

Zero dates "0000-00-00"

2009-03-17 Thread Gennady Kushnir
Hello list. Is there some known hint to get rid with exception raised when dealing with zero dates in SQL? I'm taking data from database maintained with a third party program. When a date is undefined that program puts "-00-00" into database which is acceptable for SQL but raises an exception i

Re: DB question

2009-03-17 Thread Miguel Arroz
Hi! Well, I guess that depends mostly on your resources usage and availability. But for 200 MB I would not move a finger. :) Anyway, check Frontbase docs for more info about vacuuming, I don't even know if they have that concept. If they do, check if it's possible to automate it. Post

Re: DB question

2009-03-17 Thread David Holt
Hi Jeff, You may want to take a look at the "optimize database" command for Frontbase as well. See page 115 of the users guide. David On 17-Mar-09, at 9:29 AM, Jeff Schmitz wrote: Thanks Miguel, Very informative. I'm using Frontbase. I cleaned out a lot of unneeded rows in several

Re: WoMonitor "Failed to contact ..."

2009-03-17 Thread Jeff Schmitz
On Monday, March 16, 2009, at 12:20PM, "Chuck Hill" wrote: > >On Mar 14, 2009, at 4:16 AM, Kieran Kelleher wrote: > >> On each individual WebObjects app server? > >Yes. This might be fixed now in Leopard, but the paranoia lingers >on. I have found that things work best when the host name in

Re: DB question

2009-03-17 Thread Jeff Schmitz
Thanks Miguel, Very informative. I'm using Frontbase. I cleaned out a lot of unneeded rows in several tables in hopes that it would speed by pre-fetching. Sounds like most of the extra info produced by this will remain on the disc. Is there a size of the database where you may want to "va

Re: Prevent 'NSUtilities.rawRowsForSQL()' from making changes in the database

2009-03-17 Thread Kieran Kelleher
Normally we use EOEditingContext and EOFetchSpecification to fetch objects or raw rows. EOUtilities.rawRowsForSQL is really only a "fallback" bare metal utility method when the common EOF stuff does not do the unusual thing you are trying to do. Even then there is other functionality to wor

Symantic Error 485 - Frontbase Adapter Error?

2009-03-17 Thread Drew Thoeni
I'm fetching a single object from Frontbase and the adapter is sending the binding as a string instead of an int. I'm using the WOnder Frontbase adapter 5.0.0.8987 and the recent build of WOLips (3.4.5694). I've confirmed the definition is correct in the EOModel and the FetchSpec seems co

Prevent 'NSUtilities.rawRowsForSQL()' from making changes in the database

2009-03-17 Thread Andri vonAllmen
'loha Folks, I'm searching for a possibility to prevent the 'NSUtilities.rawRowsForSQL()' method from making changes in the database. For me, it seems to be the wrong way to search for SQL Statements (like ALTER, CREATE, DROP, INSERT, UPDATE, etc.) that may change something before executing the me

Re: DB question

2009-03-17 Thread Miguel Arroz
Hi! Jeff, this depends on the DB engine you are using. On Postgresql, you have two sets of files. The base files, which contains the "stable" data, and the write-ahead logs (WALs). Every time you do an operation, whatever that is (including delete), the operation is written to the WALs

Re: DB question

2009-03-17 Thread David Avendasora
Hi Jeff, I suppose it depends upon the database, but it's possible the backup is also backing up the transaction logs. In which case until they are truncated your backup will never get smaller, only bigger. Dave On Mar 17, 2009, at 5:02 AM, Jeff Schmitz wrote: This may be a dumb question,

DB question

2009-03-17 Thread Jeff Schmitz
This may be a dumb question, but why after deleting a bunch of EOs is my database backup larger than before? Looking at the data in the database, the data corresponding to the EOs does seem to be gone now. Jeff ___ Do not post admin requests to the