Dangling reference across non-ClassProperty relation
I have a referential integrity problem in my model and I am at a loss as to how to debug this. To illustrate the problem in it's simplest form, I have made a model containing two entities: User and Ticket. User has a ticket foreign key (ticketFK) entity and a to-one relationship that maps User.ticketFK to a Tiket primary key (ticketID). Tickets may become invalid, then this happens they are deleted. This will typically happen in a separate editing context from the one containing the User. To avoid users referencing a Ticket that does not exist I make a relation from Ticket.ticketID to User.ticketFK and set the delete rule to 'nullify'. There is no need for the business code to reference the user through the ticket, so I do not mark the relation from Ticket to User as a class property. To test, I fetch a User and follow the relation to get the User's Ticket. Then I localize this Ticket in to a new editing context, delete the local Ticket and save the new editing context. I the database the ticket row is gone. The User object still refers to the ticket -this can't be helped, it is seeing cache. The problem is this: the User row in the database still has ticketFK set! It is pointing to a Ticket row that does not exist. Saving the Users editing context or termination the application does not change this. Does some one have any suggestions as to how I debug why the 'nullify' rule on the Ticket--User relation does not work? Here are some of my further observations on the problem: --- No User update SQL is sent to the database, only the delete for the Ticket row. I have tried changing the Ticket--User relation to a class property. Since the destination is not a primary key, WO now insists the relation be modeled as to-many. I also write the getter and setter for the Users on the Ticket. Now the above example works perfectly! The price I had to pay, is an additional getter and setter in the business API. I would very much like to avoid this since no business rule will ever need them and it is just cluttering up the API. I am beginning to suspect that the model defined delete rules are only triggered for relations that are also class properties. Can any one confirm this? If any one wants to see the test code described above, I'll send you the sample project. Kind regards, -Kasper Frederiksen ___ 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
MySQL + InnoDB no longer free?
http://www.mysql.com/products/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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: MySQL + InnoDB no longer free?
WOW. that sucks! Guess the Oracle machine is working! May be time to switch to Frontbase or Postgres. On Nov 4, 2010, at 9:34 AM, David LeBer wrote: http://www.mysql.com/products/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/pyu%40mac.com This email sent to p...@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: MySQL + InnoDB no longer free?
as far as i know, the community server is still free and supports innodb http://www.mysql.com/downloads/mysql/ simon On 4 November 2010 13:34, David LeBer dleber_wo...@codeferous.com wrote: http://www.mysql.com/products/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/simon%40potwells.co.uk This email sent to si...@potwells.co.uk ___ 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: MySQL + InnoDB no longer free?
On 2010-11-04, at 10:05 AM, Simon wrote: as far as i know, the community server is still free and supports innodb http://www.mysql.com/downloads/mysql/ Yeah, that was my question. If innodb is still included in the community edition, then nothing has changed, support fees from MySQL/Oracle have just gone up (big surprise). simon On 4 November 2010 13:34, David LeBer dleber_wo...@codeferous.com wrote: http://www.mysql.com/products/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/simon%40potwells.co.uk This email sent to si...@potwells.co.uk ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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: MySQL + InnoDB no longer free?
Or to the archrival SAP ;-) (MaxDB) Stefan Am 04.11.10 14:37, schrieb Paul D Yu: WOW. that sucks! Guess the Oracle machine is working! May be time to switch to Frontbase or Postgres. On Nov 4, 2010, at 9:34 AM, David LeBer wrote: http://www.mysql.com/products/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/pyu%40mac.com This email sent to p...@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/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.de ___ 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: MySQL + InnoDB no longer free?
On 2010-11-04, at 4:37 PM, Paul D Yu wrote: WOW. that sucks! Guess the Oracle machine is working! May be time to switch to Frontbase or Postgres. Guess what? Oracle acquires FrontBase for a Billion Dollars and then stop supporting MacOS? No JDK, No Database? What would we do? Farrukh ___ 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
d2wo is me
Okay, So, this is my sad face :( I have this project I've been working on and it's been going pretty well. Now I need to have some people in the company cram some data into the database for demo purposes. I thought great... D2W! So, I created a new wonder D2W project, added my model from my other project, configured the global db settings, and I get this... java.lang.IllegalStateException: : A stateless component can not have a stateful child (). Any ideas? I remember doing the same thing with a regular direct to web project and it working fine. Is there something else I need to do for a wonder d2w project? Thanks. -Mike ___ 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: MySQL + InnoDB no longer free?
Le 2010-11-04 à 10:43, Farrukh Ijaz a écrit : On 2010-11-04, at 4:37 PM, Paul D Yu wrote: WOW. that sucks! Guess the Oracle machine is working! May be time to switch to Frontbase or Postgres. Guess what? Oracle acquires FrontBase for a Billion Dollars and then stop supporting MacOS? No JDK, No Database? What would we do? We can finally raise sheeps in Portugal. ___ 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: d2wo is me
This happens normally if you use a Stateful component inside a Stateless component. Don't use AjaxModalDialog in any of the stateless component. Inspect your wonder tags and check which one is stateful. Farrukh Sent from my iPad On 2010-11-04, at 6:09 PM, Michael Gargano mgarg...@escholar.com wrote: Okay, So, this is my sad face :( I have this project I've been working on and it's been going pretty well. Now I need to have some people in the company cram some data into the database for demo purposes. I thought great... D2W! So, I created a new wonder D2W project, added my model from my other project, configured the global db settings, and I get this... java.lang.IllegalStateException: : A stateless component can not have a stateful child (). Any ideas? I remember doing the same thing with a regular direct to web project and it working fine. Is there something else I need to do for a wonder d2w project? Thanks. -Mike ___ 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/farrukh.ijaz%40fuegodigitalmedia.com This email sent to farrukh.i...@fuegodigitalmedia.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: d2wo is me
What d2w app template did you start with? From your description, I assume you did not add/edit any components in the new D2W app or set any rules. Is that the case? Ramsey On Nov 4, 2010, at 11:09 AM, Michael Gargano wrote: Okay, So, this is my sad face :( I have this project I've been working on and it's been going pretty well. Now I need to have some people in the company cram some data into the database for demo purposes. I thought great... D2W! So, I created a new wonder D2W project, added my model from my other project, configured the global db settings, and I get this... java.lang.IllegalStateException: : A stateless component can not have a stateful child (). Any ideas? I remember doing the same thing with a regular direct to web project and it working fine. Is there something else I need to do for a wonder d2w project? Thanks. -Mike ___ 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/ramsey%40xeotech.com This email sent to ram...@xeotech.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: d2wo is me
correct. i just added the model and ran it. (i believe the default for the wonder d2w template is the ermodernlook) -mike On Nov 4, 2010, at 11:42 AM, Ramsey Gurley wrote: What d2w app template did you start with? From your description, I assume you did not add/edit any components in the new D2W app or set any rules. Is that the case? Ramsey On Nov 4, 2010, at 11:09 AM, Michael Gargano wrote: Okay, So, this is my sad face :( I have this project I've been working on and it's been going pretty well. Now I need to have some people in the company cram some data into the database for demo purposes. I thought great... D2W! So, I created a new wonder D2W project, added my model from my other project, configured the global db settings, and I get this... java.lang.IllegalStateException: : A stateless component can not have a stateful child (). Any ideas? I remember doing the same thing with a regular direct to web project and it working fine. Is there something else I need to do for a wonder d2w project? Thanks. -Mike ___ 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/ramsey%40xeotech.com This email sent to ram...@xeotech.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: d2wo is me
On 2010-11-04, at 11:45 AM, Michael Gargano wrote: correct. i just added the model and ran it. (i believe the default for the wonder d2w template is the ermodernlook) I just created a new Wonder D2W Application and added the ERMoviesLogic framework, tweaked the properties and added it's required frameworks (taggable, attachements, h2). It runs fine. Are you getting anything else in your log? Or is that the sum total of the message? -mike On Nov 4, 2010, at 11:42 AM, Ramsey Gurley wrote: What d2w app template did you start with? From your description, I assume you did not add/edit any components in the new D2W app or set any rules. Is that the case? Ramsey On Nov 4, 2010, at 11:09 AM, Michael Gargano wrote: Okay, So, this is my sad face :( I have this project I've been working on and it's been going pretty well. Now I need to have some people in the company cram some data into the database for demo purposes. I thought great... D2W! So, I created a new wonder D2W project, added my model from my other project, configured the global db settings, and I get this... java.lang.IllegalStateException: : A stateless component can not have a stateful child (). Any ideas? I remember doing the same thing with a regular direct to web project and it working fine. Is there something else I need to do for a wonder d2w project? Thanks. -Mike ___ 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/ramsey%40xeotech.com This email sent to ram...@xeotech.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/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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: Dangling reference across non-ClassProperty relation
Hi Kaspar, On Nov 4, 2010, at 5:08 AM, Kasper Frederiksen wrote: I have a referential integrity problem in my model and I am at a loss as to how to debug this. To illustrate the problem in it's simplest form, I have made a model containing two entities: User and Ticket. User has a ticket foreign key (ticketFK) entity and a to-one relationship that maps User.ticketFK to a Tiket primary key (ticketID). Can you switch this? Have Ticket.userFK as the relationship join? That would result in a user.tickets() relationship in EOF. Tickets may become invalid, then this happens they are deleted. This will typically happen in a separate editing context from the one containing the User. To avoid users referencing a Ticket that does not exist I make a relation from Ticket.ticketID to User.ticketFK and set the delete rule to 'nullify'. There is no need for the business code to reference the user through the ticket, so I do not mark the relation from Ticket to User as a class property. To test, I fetch a User and follow the relation to get the User's Ticket. Then I localize this Ticket in to a new editing context, delete the local Ticket and save the new editing context. I the database the ticket row is gone. The User object still refers to the ticket -this can't be helped, it is seeing cache. The problem is this: the User row in the database still has ticketFK set! It is pointing to a Ticket row that does not exist. Saving the Users editing context or termination the application does not change this. Using the modeling above will still leave you with the User referring to the deleted ticket unless you have a delete rule from Ticket to User. However this won't be in the database and won't stick. Does some one have any suggestions as to how I debug why the 'nullify' rule on the Ticket--User relation does not work? Here are some of my further observations on the problem: --- No User update SQL is sent to the database, only the delete for the Ticket row. I have tried changing the Ticket--User relation to a class property. Since the destination is not a primary key, WO now insists the relation be modeled as to-many. I also write the getter and setter for the Users on the Ticket. Now the above example works perfectly! The price I had to pay, is an additional getter and setter in the business API. I would very much like to avoid this since no business rule will ever need them and it is just cluttering up the API. I think you can remove the methods, EOF will use KVC to get around not having them. I am beginning to suspect that the model defined delete rules are only triggered for relations that are also class properties. Can any one confirm this? I think this is the case now. I think it was not the case in earlier versions, but I am not sure. Chuck If any one wants to see the test code described above, I'll send you the sample project. Kind regards, -Kasper Frederiksen ___ 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/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ 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: d2wo is me
That's pretty much it plus the stack info. at com.webobjects.appserver.WOComponent._setSubcomponent(WOComponent.java:629) If I create a blank D2W project I get the login. When I create the project and add in my model this is what happens. This 'tweak'ing of the properties is where I may be going wrong though. I'm only changing the dbConnect properties. I don't know if I should be changing something else too. Thanks. -Mike On Nov 4, 2010, at 12:33 PM, David LeBer wrote: On 2010-11-04, at 11:45 AM, Michael Gargano wrote: correct. i just added the model and ran it. (i believe the default for the wonder d2w template is the ermodernlook) I just created a new Wonder D2W Application and added the ERMoviesLogic framework, tweaked the properties and added it's required frameworks (taggable, attachements, h2). It runs fine. Are you getting anything else in your log? Or is that the sum total of the message? -mike On Nov 4, 2010, at 11:42 AM, Ramsey Gurley wrote: What d2w app template did you start with? From your description, I assume you did not add/edit any components in the new D2W app or set any rules. Is that the case? Ramsey On Nov 4, 2010, at 11:09 AM, Michael Gargano wrote: Okay, So, this is my sad face :( I have this project I've been working on and it's been going pretty well. Now I need to have some people in the company cram some data into the database for demo purposes. I thought great... D2W! So, I created a new wonder D2W project, added my model from my other project, configured the global db settings, and I get this... java.lang.IllegalStateException: : A stateless component can not have a stateful child (). Any ideas? I remember doing the same thing with a regular direct to web project and it working fine. Is there something else I need to do for a wonder d2w project? Thanks. -Mike ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.commailto:ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.commailto:dleber_wo...@codeferous.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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: MySQL + InnoDB no longer free?
Just catching up on emails .. those are the supported editions or company Products (they sell Products). They hope you stumble onto that page if you are a new visitor and just pay out of your corporate wallet without realizing that the Community Server is the full all-features-included Free Open Source Software edition (+ includes the support it yourself feature) provided as a FREE download under GPL (see GPL note at the side of the page). So, stop panicking!! :-) http://www.mysql.com/downloads/ MySQL 5.1.51 from a a few days ago includes both InnoDB and the InnoDB Plugin, and both InnoDB options run fine on old PowerPC G5 XServe (build from source) and modern multi-core Linux server (RHEL RPMs_ Regards, Kieran On Nov 4, 2010, at 9:34 AM, David LeBer wrote: http://www.mysql.com/products/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/kelleherk%40gmail.com This email sent to kelleh...@gmail.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