Re: adding multiple objects in a relationship
On 18/10/2008, at 5:30 PM, Johann Werner wrote: does EmployeeTurn represent your join table? If not look at Lachlans suggestion, if you answer this question with yes you will need an EmployeeTurn object for each combination of Employee and Turn. This would mean that you have to change your code: Unless it's a flattened Many-to-Many. with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: adding multiple objects in a relationship
Hi Gus, does EmployeeTurn represent your join table? If not look at Lachlans suggestion, if you answer this question with yes you will need an EmployeeTurn object for each combination of Employee and Turn. This would mean that you have to change your code: Am 18.10.2008 um 03:00 schrieb WebObjects: Hello, well after so much struggle, finally I have my app up and running, but there is a problem. for the people who knows what's my app all about, you will know that an Employee can have multiple Turn, now, Im doing the following: NSArray localSelectedItems = EOUtilities.localInstancesOfObjects(myEC, selectedItems()); for (Turn turn : localSelectedItems) { EmployeeTurn empxTurn = (EmployeeTurn) ERXEOControlUtilities.createAndInsertObject(myEC,"EmployeeTurn"); empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee, EmployeeTurn.EMPLOYEE_KEY); empxTurn.addObjectsToBothSidesOfRelationshipWithKey(turn, EmployeeTurn.TURN_KEY); } System.out.println(localSelectedItems); System.out.println("Did it!!"); myEC.saveChanges(); I select in the component the turns I want, I fetch them I display them I select them. so far so good. It does all the process but when i go and see the db to see what is inside I realize that the join table, called here empxTurn, has only the last object of the NSArray localSelectedItems. I tried doing this inside a for() clause and it has the same behavior. what am I doing wrong.??/ Gus PS Im happy there is no more migration problem!!! and no more NullPointerException using the AddObjecttoBothsidesOfRelatioship method. ___ 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/werner%40isd.uni-stuttgart.de This email sent to [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
Re: adding multiple objects in a relationship
On 18/10/2008, at 12:00 PM, WebObjects wrote: Hello, well after so much struggle, finally I have my app up and running, but there is a problem. for the people who knows what's my app all about, you will know that an Employee can have multiple Turn, now, Im doing the following: NSArray localSelectedItems = EOUtilities.localInstancesOfObjects(myEC, selectedItems()); EmployeeTurn empxTurn = (EmployeeTurn) ERXEOControlUtilities.createAndInsertObject(myEC,"EmployeeTurn"); empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee, EmployeeTurn.EMPLOYEE_KEY); empxTurn .addObjectsToBothSidesOfRelationshipWithKey(localSelectedItems, EmployeeTurn.TURN_KEY); Unless you've named this weirdly, TURN_KEY doesn't appear to be a toMany key. i.e., it's not a plural. Check your model that there is indeed a toMany relationship (and if accross a join that there's a reverse toMany). with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: do you want to blow your mind?
On 18/10/2008, at 5:10 AM, Mike Schrag wrote: Chuck and I just did, so I thought I'd share it ... jad WOSwitchComponent and walk through and explain to yourself why WOSwitchComponent doesn't show the same instance of a component for every session in your app, WOContext :-) particularly given that there will only be one instance of a WOSwitchComponent on a given parsed page (meaning that if there's a WOSwitchComponent for an element in your Main component, there will only be ONE INSTANCE of WOSwitchComponent servicing that slot on the page for all of your users). I'm not convinced of that .. yet. i.e., It's not a stateless component, but then again it's not a subclass of WOComponent but WODynamicElement. So okay ... back to me first answer :-) Prepare to get a much deeper understanding and appreciation of how WO works and how clever the original authors were. Definitely cool. I'll write this up in a blog post over the weekend, but I just think it's really cool. I'm actually a little bit giddy about understanding how all these particular pieces fit together now ... I definitely took a lot for granted, and several aspects of page state make a lot of sense now. with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
adding multiple objects in a relationship
Hello, well after so much struggle, finally I have my app up and running, but there is a problem. for the people who knows what's my app all about, you will know that an Employee can have multiple Turn, now, Im doing the following: NSArray localSelectedItems = EOUtilities.localInstancesOfObjects(myEC, selectedItems()); EmployeeTurn empxTurn = (EmployeeTurn) ERXEOControlUtilities.createAndInsertObject(myEC,"EmployeeTurn"); empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee, EmployeeTurn.EMPLOYEE_KEY); empxTurn .addObjectsToBothSidesOfRelationshipWithKey(localSelectedItems, EmployeeTurn.TURN_KEY); System.out.println(localSelectedItems); System.out.println("Did it!!"); myEC.saveChanges(); I select in the component the turns I want, I fetch them I display them I select them. so far so good. It does all the process but when i go and see the db to see what is inside I realize that the join table, called here empxTurn, has only the last object of the NSArray localSelectedItems. I tried doing this inside a for() clause and it has the same behavior. what am I doing wrong.??/ Gus PS Im happy there is no more migration problem!!! and no more NullPointerException using the AddObjecttoBothsidesOfRelatioship method. ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
On Oct 17, 2008, at 6:03 AM, David Avendasora wrote: Gus, Can you turn on EOAdaptor Debugging so you can see what the actual SQL being sent to the DB is? Do this by creating the following property in your Resources/Properties file: log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG The log you sent shows two conflicting things: Oct 16 18:32:57 ControlHorarios[1250] (ERXJDBCUtilities.java:588) INFO er.extensions.jdbc.ERXJDBCUtilities - Executing ALTER TABLE EMPLOYEETURN ADD CONSTRAINT EMPLOYEETURN_EMPLOYEE_ID_id_FK FOREIGN KEY (EMPLOYEE_ID) REFERENCES EMPLOYEE (id) and 2008-10-16 18:32:57 -0500: &ScheduleControl:SQL ERROR - [position 24, near 'ADD' in 'PLOYEETURN ADD CONSTRAINT'] alter table command expected but not found.{ NSColor = NSCalibratedRGBColorSpace 0 0 1 1; } You can see that the SQL the migration is trying to send to the table looks properly formed (I am not an OpenBase developer) but the error says that it isn't, so we need to see the actual SQL sent by the EOAdaptor. The SQL that is being sent appears to be proper SQL for an Oracle database (and probably some others), but not for OpenBase (the two RDBMS systems I am most familiar with). It appears that based on the log information, the SQL that the DB received is the same, although truncated. For OpenBase, the SQL to add a foreign key constraint would be similar to that of adding the column (this is based on if the ID column in the EMPLOYEE table is a longlong or integer, or NUMBER of zero decimal precision): ALTER TABLE EMPLOYEETURN ADD COLUMN EMPLOYEE_ID longlong index REFERENCES EMPLOYEE.id Note that although the column EMPLOYEE_ID may already exist in the EMPLOYEETURN table, re-adding it will not result in any loss of data in OpenBase. Are you using the OpenBase plugin? Best Regards, Darryl Snover ___ 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 [EMAIL PROTECTED]
Re: EOObjectNotAvailableException: prepareForSaveWithCoordinator
On 17/10/2008, at 7:03 PM, Stefan Klein wrote: That's my problem, theirs no other exception in the log files. The exception seems to occurs every leap year, so i can't reproduce it. Is there a way to catch the exception and get rid of the corrupt object and reload it? Well the question is: is it corrupt data or is it just that instance that's going weird over time? If the former - then that's more easily fixed. If the latter this is harder as you're playing a guessing game. Is it on a scheduled restart? We put in some code recently to keep an eye on new worker threads being created - as for us it's an early warning sign that things are tending towards an unstable state ... and it's time to refuse new sessions and start up another instance. So in your app constructor, for example: NSNotificationCenter.defaultCenter().addObserver( this, new NSSelector( "willDispatchRequest", ERXConstant.NotificationClassArray ), WOApplication.ApplicationWillDispatchRequestNotification, null ); Note: ERXConstant.NotificationClassArray == new Class[] { NSNotification.class } public void willDispatchRequest( NSNotification notification ) { if ( notification != null && notification.object() instanceof WORequest ) { WORequest request = ( WORequest )notification.object(); try { WODefaultAdaptor da = ( WODefaultAdaptor )adaptors().objectAtIndex( 0 ); String das = da.toString(); int n = das.indexOf( "nmbOfWorkerThreads=" ) + "nmbOfWorkerThreads=".length(); String nwt = das.substring( n, das.indexOf( " ", n ) ); this._currentWorkerThreadCount = Integer.valueOf( nwt ); n = das.indexOf( "nmbOfActiveThreads=" ) + "nmbOfActiveThreads=".length(); String awt = das.substring( n, das.indexOf( " ", n ) ); this._currentActiveThreadCount = Integer.valueOf( awt ); if ( this._currentActiveThreadCount > ERXProperties.intForKeyWithDefault( "ish.activeWorkerThreadWarning", 8 ) ) { StringBuilder b = new StringBuilder( "Exceeded active worker thread warning level:\n" ); b.append( notification.object().getClass().getName() + " => max = " + nwt + ", active = " + awt + "\n" ); b.append( "REQUEST: " + request.uri() ); LOG.error( b.toString(), new Exception() ); } } catch ( Exception e ) { LOG.error( "Exception looking for active worker threads", e ); } } } But this might not be your problem. Lachlan Deck schrieb: On 17/10/2008, at 6:51 AM, Stefan Klein wrote: i got the following exception: com.webobjects.eoaccess.EOObjectNotAvailableException: prepareForSaveWithCoordinator: Cannot save the object with globalID _EOIntegralKeyGlobalID[Benutzer (java.lang.Long)4559]. The row referenced by this globalID was missing from the database at the time a fetch was attempted. Either it was removed from the database after this application got a pointer to it, or there is a referential integrity problem with your database. To be notified when fetches fail, implement a delegate on EODatabaseContext that responds to databaseContextFailedToFetchObject(). at com .webobjects .eoaccess .EODatabaseContext .prepareForSaveWithCoordinator(EODatabaseContext.java:5831) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:409) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3187) But I know that the object for this id exist, cause that user logged in many times before in that instance. The instance was running for several days without any problem. After the exception occurs the first time, the user can't log in again in that instance. A login to the second instance did work. After stopping and starting the first instance all works fine. Does any one have a suggestion? Check the logs. Probably had some exceptions that went unnoticed. with regards, -- Lachlan Deck ___ 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/lachlan.deck%40gmail.com This email sent to [EMAIL PROTECTED] with regards, -- Lachlan Deck _
Re: WO 5.4 parser issues - help please
Thank you I will give this a try. ~Mersida --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 5:06 PM Just download http://webobjects.mdimension.com/wonder/Wonder-latest-Frameworks-54.tar.gz, put WOOGNL.framework in your build path, and put: ognl.helperFunctions=trueognl.inlineBindings=true in your Properties file (well, technically you don't need either of these JUST to use WOOGNL, but this provides for support for inline bindings and helper functions, which are both very nice). ms On Oct 17, 2008, at 3:11 PM, Mersida Kurti wrote: Hi Mike, Thanks, for ur response. Unfortunately, even if I cheat and get rid of that line something else will complain...I just tried, now it complains about bgcolor...what's next, right? so I'm looking at getting that WOOGNL, how would I switch from one parser to another, and where do I get this WOOGNL? We use Eclipse 3.3, Leopard, WO 5.4.3, is it possible to get WOOGNL with these specs? Thanks a lot, Mersida --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 2:11 PM That looks right ... you sure you're looking at the same page that the error is coming from? The quick fix is to jsut delete that line since it doesn't matter :), but that's sort of cheating. Incidentally, WOOGNL is totally independent of the rest of wonder, so you can choose to use it without bringing in any other dependencies. ms On Oct 17, 2008, at 1:27 PM, Mersida Kurti wrote: Hi, Thanks for your response. This is what I have, I thought this was well-formed html. We dont use Wonder, so I need to find a soln to this problem with this parser, I guess. I welcome any other suggestions. Thanks/ Blah --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 1:08 PM Like the error message says, you have a tag without a tag. WO 5.4's parser only parses well-formed component templates. Either switch to well-formed HTML or switch to WOOGNL from Wonder as your parser, which doesn't have this restriction. ms ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 [EMAIL PROTECTED]
Fixed Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Hello Mike, sorry for so much disturb, I have fixed it it was a problem with the relationship with my model.. I think Its alright now. Thanks for the help GUS GUS On Oct 17, 2008, at 5:35 PM, WebObjects wrote: this is the cause of the exception, sorry the last stacktrace was different , it was because it hand created one table... but this is the original java.sql.SQLException: Semantic error 118. TABLE - WORKDAY - has no matching UNIQUE or PRIMARY KEY constraint. it comes out just when trying to run for first time the app, without modifying anything in the migration class. im attaching again the stacktrace the original one that comes out after making the migration class. Gus. On Oct 17, 2008, at 4:05 PM, Mike Schrag wrote: I moved the foreign key generations to the bottom of the migration code,.. and the problem still persist. :S:S:S:S :(:(:(:(:( Are you sure it's the same exception? What exactly is the exception you're getting and what line of code does the line correspond to? ms ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
this is the cause of the exception, sorry the last stacktrace was different , it was because it hand created one table... but this is the originaljava.sql.SQLException: Semantic error 118. TABLE - WORKDAY - has no matching UNIQUE or PRIMARY KEY constraint.it comes out just when trying to run for first time the app, without modifying anything in the migration class.im attaching again the stacktrace the original one that comes out after making the migration class.{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf350 {\fonttbl\f0\fnil\fcharset0 Monaco;} {\colortbl;\red255\green255\blue255;\red0\green0\blue128;} \paperw11900\paperh16840\margl1440\margr1440\vieww20380\viewh13640\viewkind0 \deftab720 \pard\pardeftab720 \f0\fs22 \cf0 Oct 17 17:34:29 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Finished initialization after launch: ERXExtensions\ Oct 17 17:34:29 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Finished initialization after launch: Ajax\ Oct 17 17:34:29 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Finished initialization after launch: ERPrototypes\ Oct 17 17:34:29 ControlHorarios[1250] (\cf2 \ul \ulc2 Application.java:17\cf0 \ulnone ) INFO er.extensions.appserver.ERXApplication - Welcome to ControlHorarios !\ Oct 17 17:34:29 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXModelGroup.java:127\cf0 \ulnone ) WARN er.extensions.eof.ERXModelGroup - Clearing previous class descriptions\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXModelGroup.java:845\cf0 \ulnone ) WARN er.extensions.eof.ERXModelGroup - The EOModel 'erprototypes' has an empty connection dictionary.\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor._FrontBasePlugIn' for [EMAIL PROTECTED] Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor._FrontBasePlugIn' for [EMAIL PROTECTED] Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor._FrontBasePlugIn' for [EMAIL PROTECTED] Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - connecting with dictionary: \{password = ""; username = "gustavpicora"; URL = "jdbc:FrontBase://localhost/ScheduleControl"; \}\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - === Begin Internal Transaction\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - === Commit Internal Transaction\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - === Begin Internal Transaction\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor._FrontBasePlugIn' for [EMAIL PROTECTED] Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - fetching JDBC Info with [EMAIL PROTECTED] Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - connecting with dictionary: \{password = ""; username = "gustavpicora"; URL = "jdbc:FrontBase://localhost/ScheduleControl"; \}\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - connection disconnected.\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - fetching JDBC Info with [EMAIL PROTECTED] Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - connecting with dictionary: \{password = ""; username = "gustavpicora"; URL = "jdbc:FrontBase://localhost/ScheduleControl"; \}\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - evaluateExpression: \ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - === Commit Internal Transaction\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - === Begin Internal Transaction\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - evaluateExpression: \ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - fetch canceled\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - 1 row(s) processed\ Oct 17 17:34:30 ControlHorarios[1250] (\cf2 \ul \ulc2
Re: WO 5.4 parser issues - help please
Just download http://webobjects.mdimension.com/wonder/Wonder-latest-Frameworks-54.tar.gz , put WOOGNL.framework in your build path, and put: ognl.helperFunctions=true ognl.inlineBindings=true in your Properties file (well, technically you don't need either of these JUST to use WOOGNL, but this provides for support for inline bindings and helper functions, which are both very nice). ms On Oct 17, 2008, at 3:11 PM, Mersida Kurti wrote: Hi Mike, Thanks, for ur response. Unfortunately, even if I cheat and get rid of that line something else will complain...I just tried, now it complains about bgcolor...what's next, right? so I'm looking at getting that WOOGNL, how would I switch from one parser to another, and where do I get this WOOGNL? We use Eclipse 3.3, Leopard, WO 5.4.3, is it possible to get WOOGNL with these specs? Thanks a lot, Mersida --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 2:11 PM That looks right ... you sure you're looking at the same page that the error is coming from? The quick fix is to jsut delete that line since it doesn't matter :), but that's sort of cheating. Incidentally, WOOGNL is totally independent of the rest of wonder, so you can choose to use it without bringing in any other dependencies. ms On Oct 17, 2008, at 1:27 PM, Mersida Kurti wrote: Hi, Thanks for your response. This is what I have, I thought this was well-formed html. We dont use Wonder, so I need to find a soln to this problem with this parser, I guess. I welcome any other suggestions. Thanks/ Blah --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 1:08 PM Like the error message says, you have a tag without a tag. WO 5.4's parser only parses well-formed component templates. Either switch to well-formed HTML or switch to WOOGNL from Wonder as your parser, which doesn't have this restriction. ms ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
I moved the foreign key generations to the bottom of the migration code,.. and the problem still persist. :S:S:S:S :(:(:(:(:( Are you sure it's the same exception? What exactly is the exception you're getting and what line of code does the line correspond to? ms ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
The latest stable version of WOLips is still doing the fk creation with the tables. That's because the latest stable version of WOLips is months old :) ms ___ 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 [EMAIL PROTECTED]
Re: OpenBase (was:Webobjects-dev Digest, Vol 5, Issue 1018)
On Oct 17, 2008, at 4:16 PM, Josh Paul wrote: Very glad to see this! I've used OB on a number of projects and would truly love to see it "in sync" with Wonder. +1 :-) ___ 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 [EMAIL PROTECTED]
Re: OpenBase (was:Webobjects-dev Digest, Vol 5, Issue 1018)
Very glad to see this! I've used OB on a number of projects and would truly love to see it "in sync" with Wonder. +1 On Oct 17, 2008, at 11:58 AM, Scott Keith wrote: Hi Gus, We'd like to work with you to get this working for you in OpenBase. Can you contact me off list at [EMAIL PROTECTED] to discuss the problem in more depth? We're in the process of updating all of our APIs over the next month so this is a good time for us to update our WebObjects connectivity so that it works seamlessly with Wonder. Best regards, Scott Keith OpenBase Begin forwarded message: Yes im (was) using the OpenBase plugin. Im chanign to FrontBase now. Im just in a learning phase so I can change whatever I want. I hope in real-work app I will be able to handle the errors Gus ___ 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/joshpaul%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
The latest stable version of WOLips is still doing the fk creation with the tables. David On 17-Oct-08, at 12:45 PM, Mike Schrag wrote: Check your migration code ... If you're using a slightly older version of WOLips, it used to generate foreign keys along side the table creation. ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Hello Mike, I moved the foreign key generations to the bottom of the migration code,.. and the problem still persist. :S:S:S:S :(:(:(:(:( Gus On Oct 17, 2008, at 2:45 PM, Mike Schrag wrote: WOW my msitake... wait I saw something in the stack trace... REferences table tunr does not exist... I think somethings wrong with my model or my migration class. Check your migration code ... If you're using a slightly older version of WOLips, it used to generate foreign keys along side the table creation. The newer versions move all the foreign key creation to the bottom of the migration so it doesn't have to worry about getting the table creation in the right order. I suspect what's going on is that the tables in your migration are out of order relative to dependencies. ms ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
check the migration class, I made an upgrade of wolips last week I think, dunno how accurate its "slightly older" :P Gus ScheduleControl0.java Description: Binary data ' On Oct 17, 2008, at 2:45 PM, Mike Schrag wrote: WOW my msitake... wait I saw something in the stack trace... REferences table tunr does not exist... I think somethings wrong with my model or my migration class. Check your migration code ... If you're using a slightly older version of WOLips, it used to generate foreign keys along side the table creation. The newer versions move all the foreign key creation to the bottom of the migration so it doesn't have to worry about getting the table creation in the right order. I suspect what's going on is that the tables in your migration are out of order relative to dependencies. ms ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
WOW my msitake... wait I saw something in the stack trace... REferences table tunr does not exist... I think somethings wrong with my model or my migration class. Check your migration code ... If you're using a slightly older version of WOLips, it used to generate foreign keys along side the table creation. The newer versions move all the foreign key creation to the bottom of the migration so it doesn't have to worry about getting the table creation in the right order. I suspect what's going on is that the tables in your migration are out of order relative to dependencies. ms ___ 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 [EMAIL PROTECTED]
Re: WO 5.4 parser issues - help please
Hi Mike, Thanks, for ur response. Unfortunately, even if I cheat and get rid of that line something else will complain...I just tried, now it complains about bgcolor...what's next, right? so I'm looking at getting that WOOGNL, how would I switch from one parser to another, and where do I get this WOOGNL? We use Eclipse 3.3, Leopard, WO 5.4.3, is it possible to get WOOGNL with these specs? Thanks a lot, Mersida --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 2:11 PM That looks right ... you sure you're looking at the same page that the error is coming from? The quick fix is to jsut delete that line since it doesn't matter :), but that's sort of cheating. Incidentally, WOOGNL is totally independent of the rest of wonder, so you can choose to use it without bringing in any other dependencies. ms On Oct 17, 2008, at 1:27 PM, Mersida Kurti wrote: Hi, Thanks for your response. This is what I have, I thought this was well-formed html. We dont use Wonder, so I need to find a soln to this problem with this parser, I guess. I welcome any other suggestions. Thanks/ Blah --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 1:08 PM Like the error message says, you have a tag without a tag. WO 5.4's parser only parses well-formed component templates. Either switch to well-formed HTML or switch to WOOGNL from Wonder as your parser, which doesn't have this restriction. ms ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 [EMAIL PROTECTED]
Re: Webobjects-dev Digest, Vol 5, Issue 1018
Hi Gus, We'd like to work with you to get this working for you in OpenBase. Can you contact me off list at [EMAIL PROTECTED] to discuss the problem in more depth? We're in the process of updating all of our APIs over the next month so this is a good time for us to update our WebObjects connectivity so that it works seamlessly with Wonder. Best regards, Scott Keith OpenBase Begin forwarded message: Yes im (was) using the OpenBase plugin. Im chanign to FrontBase now. Im just in a learning phase so I can change whatever I want. I hope in real-work app I will be able to handle the errors Gus ___ 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 [EMAIL PROTECTED]
Re: Best way of making shopping cart & checkout
Hi Thomas, It all seems to make sense to me. Perhaps some things to think about: - If your running instances are stopped, will the unpaid orders be tidied away. Might you want to timestamp unpaid seats and poll for any stale ones every half hour or so to get rid of them - Even with successful payments, the POST back from PayPal / Protx may not get to you. In our experience PayPal is bad for this and with Protx it only happens occasionally. We use basic hand over / hand back type integration which it sounds like you are using also. This could create a problem as you really don't want to throw the seat bookings away if this happens! The POST can go to a direct action method with the session identified in the wosid parameter of that return url that you can pass. The paid seats for that session can then be updated before returning anything you like, such as a thank you page using pageWithName(). John On 17 Oct 2008, at 19:12, Thomas Worrall wrote: Hi. I'm making a shopping cart system for buying theatre tickets. Here's how I envision it working: what I need is for people to tell me where I've gone wrong :) I have an entity called SeatBooking, which are the things the user can buy. I have another called Order, with a many-to-one relationship to SeatBooking. I am planning to have an Order variable in the session, and whenever the user adds a seat to their cart I add the relationship between that seat and the Order that's in the session. I save the changes immediately, since when a seat is in someone else's cart, no-one else should be able to buy it. (There is a boolean attribute called "paid" as part of Order, so I know which orders have been completed -- thus saving incomplete orders in the db is not a problem.) When a session is destroyed, it also deletes its Order, if it has not been paid. Thus on session timeout the seats that were in someone's cart get released. For the actual payment process, I need to be able to use both Protx and Paypal (the latter is a stopgap until our Protx account is ready), but they both seem to work in a similar manner. I send the data (along with a unique ID) to their payment server, which redirects the user to their payment page. Their system will send a POST back to my app. I need to capture it, and if the authentication of the payment worked then I look up the order based on its unique ID, and set "paid" to true (also saving the auth code, just in case). I then need to supply via POST a URL for the payment gateway to redirect the user to. This should be a "Thank you" page type thing. So, some questions: 1. Does this design make some kind of sense? 2. How do I listen for POST requests? Sadly, they only send them on port 80. Should I make a Direct Action that listens for them? 3. This one's probably a newbie question, but how do I generate the URL to redirect the user to? It should be a component action that goes to a thankyou page. I know how to make a WOHyperlink that does that, but I don't know how to generate such a URL without putting it on a page. Thanks for all your help. Thomas ___ 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/john%40pollardweb.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Ok I downloaded it, installed it, and now Im having more errors.. Im attaching the whole stack trace. It seems it started to make the tables and all but then suddenly it says that there was a fatal error. Gus {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf350 {\fonttbl\f0\fnil\fcharset0 Monaco;} {\colortbl;\red255\green255\blue255;\red255\green0\blue0;\red0\green0\blue128;} \paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0 \deftab720 \pard\pardeftab720 \f0\fs22 \cf2 [2008-10-17 13:40:45 COT] Initialized : er.extensions.ERXExtensions\cf0 \ \cf2 You are referencing er.extensions.ERXPatternLayout but should use er.extensions.logging.ERXPatternLayout instead\cf0 \ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXLogger.java:211\cf0 \ulnone ) INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties.\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXLogger.java:213\cf0 \ulnone ) DEBUG org.apache.log4j.Logger - log4j.loggerFactory: null\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXLogger.java:214\cf0 \ulnone ) DEBUG org.apache.log4j.Logger - Factory: null\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Initialized : er.ajax.Ajax\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - Initialized : er.prototypes.ERPrototypes\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:43\cf0 \ulnone ) WARN NSLog - Principal class 'your.app.Application' not found in bundle ControlHorarios\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOMaxIOBufferSize=8196\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOWorkerThreadCountMin=16\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOSocketMonitorSleepTime=50\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WODirectConnectEnabled=true\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOIncludeCommentsInResponse=false\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOWorkerThreadCount=8\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOLaunchdEnabled=false\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOIDE=WOLips\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WODebuggingEnabled=true\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOListenQueueSize=128\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOMissingResourceSearchEnabled=true\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOApplicationClassName=controlHorarios.app.Application\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOSessionStoreClassName=WOServerSessionStore\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOContextClassName=WOContext\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOCachingEnabled=false\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOAcceptMalformedCookies=false\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - NSProjectSearchPath=(..,../..)\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOMonitorEnabled=false\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOAllowRapidTurnaround=true\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOGenerateWSDL=true\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOWorkerThreadCountMax=256\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOAllowsConcurrentRequestHandling=false\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOAdaptor=WODefaultAdaptor\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOSessionTimeOut=3600\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG NSLog - WOMaxSocketIdleTime=18\ Oct 17 13:40:47 N/A[N/A] (\cf3 \ul \ulc3 ERXNSLogLog4jBridge.java:46\cf0 \ulnone ) DEBUG
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
WOW my msitake... wait I saw something in the stack trace... REferences table tunr does not exist... I think somethings wrong with my model or my migration class. Gus Let me check On Oct 17, 2008, at 1:22 PM, Jon Nolan wrote: Gus, You have to reinstall the Wonder frameworks with a version no older than 2008-10-16. The fix Mike made Wednesday night solves this exact exception among others. Jon WebObjects wrote: Well changing to Frontbase, while running the app for first time, I got the following [2008-10-17 13:4:12 COT] er.extensions.migration.ERXMigrationFailedException: Failed to create lock table. Try executing: CREATE TABLE _dbupdater(lockowner VARCHAR(100), modelname VARCHAR(100) NOT NULL, updatelock INTEGER NOT NULL, version INTEGER NOT NULL); . at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java: 141) at er .extensions .migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java: 67) at er.extensions.migration.ERXMigrator $ERXMigrationAction.doPerform(ERXMigrator.java:381) at er.extensions.eof.ERXEOAccessUtilities $ChannelAction.perform(ERXEOAccessUtilities.java:1409) at er .extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java: 175) at er .extensions .appserver.ERXApplication.finishInitialization(ERXApplication.java: 898) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com .webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java: 122) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:588) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java: 532) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java: 546) at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229) at er.extensions.appserver.ERXApplication.run(ERXApplication.java:992) at com.webobjects.appserver.WOApplication.main(WOApplication.java:548) at er.extensions.appserver.ERXApplication.main(ERXApplication.java:535) at controlHorarios.app.Application.main(Application.java:12) Caused by: java.sql.SQLException: Syntax error 61. Expected Identifier not found. at com .frontbase .jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java: 162) at com .frontbase .jdbc.FBJErrorMetaData.getExceptionChain(FBJErrorMetaData.java: 194) at com.frontbase.jdbc.FBJStatement.checkMetaData(FBJStatement.java:472) at com.frontbase.jdbc.FBJStatement.executeUpdate(FBJStatement.java:262) at er .extensions .jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java: 590) at er .extensions .jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java: 556) at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java: 136) I was reading a prior post and it says about some incompatibility with the FB plugins, but couldn't make what you were trying to say, about a FrotBasePlugInPrincipal, is this problem Im having related to that one mentioned before? or its completly different, if so, then what im missing, probably some parameter in URL in the EOModel? "Gus ___ 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/jnolan%40webdynamicsinc.com This email sent to [EMAIL PROTECTED] ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Aha ok. Downloading now . Gus On Oct 17, 2008, at 1:22 PM, Jon Nolan wrote: Gus, You have to reinstall the Wonder frameworks with a version no older than 2008-10-16. The fix Mike made Wednesday night solves this exact exception among others. Jon WebObjects wrote: Well changing to Frontbase, while running the app for first time, I got the following [2008-10-17 13:4:12 COT] er.extensions.migration.ERXMigrationFailedException: Failed to create lock table. Try executing: CREATE TABLE _dbupdater(lockowner VARCHAR(100), modelname VARCHAR(100) NOT NULL, updatelock INTEGER NOT NULL, version INTEGER NOT NULL); . at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java: 141) at er .extensions .migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java: 67) at er.extensions.migration.ERXMigrator $ERXMigrationAction.doPerform(ERXMigrator.java:381) at er.extensions.eof.ERXEOAccessUtilities $ChannelAction.perform(ERXEOAccessUtilities.java:1409) at er .extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java: 175) at er .extensions .appserver.ERXApplication.finishInitialization(ERXApplication.java: 898) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com .webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java: 122) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:588) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java: 532) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java: 546) at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229) at er.extensions.appserver.ERXApplication.run(ERXApplication.java:992) at com.webobjects.appserver.WOApplication.main(WOApplication.java:548) at er.extensions.appserver.ERXApplication.main(ERXApplication.java:535) at controlHorarios.app.Application.main(Application.java:12) Caused by: java.sql.SQLException: Syntax error 61. Expected Identifier not found. at com .frontbase .jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java: 162) at com .frontbase .jdbc.FBJErrorMetaData.getExceptionChain(FBJErrorMetaData.java: 194) at com.frontbase.jdbc.FBJStatement.checkMetaData(FBJStatement.java:472) at com.frontbase.jdbc.FBJStatement.executeUpdate(FBJStatement.java:262) at er .extensions .jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java: 590) at er .extensions .jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java: 556) at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java: 136) I was reading a prior post and it says about some incompatibility with the FB plugins, but couldn't make what you were trying to say, about a FrotBasePlugInPrincipal, is this problem Im having related to that one mentioned before? or its completly different, if so, then what im missing, probably some parameter in URL in the EOModel? "Gus ___ 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/jnolan%40webdynamicsinc.com This email sent to [EMAIL PROTECTED] ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Hello Mike, I think Im using the FrontBasePlugIn form Wonder, but im seeingthat the JRE has another frontbaseplugin, (lowercase) in the WebObjetcs library I have checked the FrontBasePlugin. anyway here is the whole stacktrace. Thanks for the help Gus Oct 17 13:04:11 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Finished initialization after launch: ERXExtensions Oct 17 13:04:11 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Finished initialization after launch: Ajax Oct 17 13:04:11 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Finished initialization after launch: ERPrototypes Oct 17 13:04:11 ControlHorarios[1250] (Application.java:17) INFO er.extensions.appserver.ERXApplication - Welcome to ControlHorarios ! Oct 17 13:04:11 ControlHorarios[1250] (ERXModelGroup.java:125) WARN er.extensions.eof.ERXModelGroup - Clearing previous class descriptions Oct 17 13:04:11 ControlHorarios[1250] (ERXModelGroup.java:843) WARN er.extensions.eof.ERXModelGroup - The EOModel 'erprototypes' has an empty connection dictionary. Oct 17 13:04:11 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.FrontbasePlugIn' for [EMAIL PROTECTED] Oct 17 13:04:11 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.FrontbasePlugIn' for [EMAIL PROTECTED] Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.FrontbasePlugIn' for [EMAIL PROTECTED] Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - connecting with dictionary: {password = "deleted for log>"; username = "gustavpicora"; URL = "jdbc:FrontBase:// localhost/ScheduleControl"; } Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Begin Internal Transaction Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Commit Internal Transaction Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Begin Internal Transaction Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.FrontbasePlugIn' for [EMAIL PROTECTED] Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - fetching JDBC Info with [EMAIL PROTECTED] Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - connecting with dictionary: {password = "deleted for log>"; username = "gustavpicora"; URL = "jdbc:FrontBase:// localhost/ScheduleControl"; } Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - connection disconnected. Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - fetching JDBC Info with [EMAIL PROTECTED] Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - connecting with dictionary: {password = "deleted for log>"; username = "gustavpicora"; URL = "jdbc:FrontBase:// localhost/ScheduleControl"; } Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - evaluateExpression: "UPDATE "_dbupdater" SET "lockowner" = 'ControlHorarios--1', "updatelock" = 1 WHERE ("modelname" = 'ScheduleControl' AND ("updatelock" = 0 OR "lockowner" = 'ControlHorarios--1'))" withBindings: > Oct 17 13:04:12 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction Oct 17 13:04:12 ControlHorarios[1250] (ERXJDBCMigrationLock.java:135) WARN er.extensions.migration.ERXJDBCMigrationLock - Locking failed, but this might be OK if this is the first time you are running migrations. If things keep running, it probably worked fine. The original reason for the failure: Semantic error 116. Referenced TABLE - _dbupdater - does not exist.at com .frontbase .jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java:162) at com .frontbase .jdbc.FBJErrorMetaData.getExceptionChain(FBJErrorMetaData.java:194) at com.frontbase.jdbc.FBJStatement.checkMetaData(FBJStatement.java:472) at com.frontbase.jdbc.FBJStatement.executeUpdate(FBJStatement.java:262) at com .webobjects .jdbcadaptor .JDBCChannel ._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:270) at com .webobjects .jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337) at com .webobjects .jdbcadaptor .JDBCChannel.updateValuesInRowsDescribedByQualifier(JDBCChannel.java: 176) at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:90) at er .extensions .migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java:67) at er.extensions.migration.ERXMigrator $ERXMigrationAction.doPerform(ERXMigrator.java:381) at er.extensions.eof.ERXEOAccessUtilities $ChannelAction.
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Gus, You have to reinstall the Wonder frameworks with a version no older than 2008-10-16. The fix Mike made Wednesday night solves this exact exception among others. Jon WebObjects wrote: Well changing to Frontbase, while running the app for first time, I got the following [2008-10-17 13:4:12 COT] er.extensions.migration.ERXMigrationFailedException: Failed to create lock table. Try executing: CREATE TABLE _dbupdater(lockowner VARCHAR(100), modelname VARCHAR(100) NOT NULL, updatelock INTEGER NOT NULL, version INTEGER NOT NULL); . at er.extensions.migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:141) at er.extensions.migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java:67) at er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:381) at er.extensions.eof.ERXEOAccessUtilities$ChannelAction.perform(ERXEOAccessUtilities.java:1409) at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:175) at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:898) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546) at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229) at er.extensions.appserver.ERXApplication.run(ERXApplication.java:992) at com.webobjects.appserver.WOApplication.main(WOApplication.java:548) at er.extensions.appserver.ERXApplication.main(ERXApplication.java:535) at controlHorarios.app.Application.main(Application.java:12) Caused by: java.sql.SQLException: Syntax error 61. Expected Identifier not found. at com.frontbase.jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java:162) at com.frontbase.jdbc.FBJErrorMetaData.getExceptionChain(FBJErrorMetaData.java:194) at com.frontbase.jdbc.FBJStatement.checkMetaData(FBJStatement.java:472) at com.frontbase.jdbc.FBJStatement.executeUpdate(FBJStatement.java:262) at er.extensions.jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:590) at er.extensions.jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:556) at er.extensions.migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:136) I was reading a prior post and it says about some incompatibility with the FB plugins, but couldn't make what you were trying to say, about a FrotBasePlugInPrincipal, is this problem Im having related to that one mentioned before? or its completly different, if so, then what im missing, probably some parameter in URL in the EOModel? "Gus ___ 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/jnolan%40webdynamicsinc.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
I was reading a prior post and it says about some incompatibility with the FB plugins, but couldn't make what you were trying to say, about a FrotBasePlugInPrincipal, is this problem Im having related to that one mentioned before? or its completly different, if so, then what im missing, probably some parameter in URL in the EOModel? Update FrontBasePlugIn from the latest Wonder and see if this goes away. I suspect there's another error or warning somewhere earlier in your console output that is saying there's a prior problem. It could be the bug I had in refactoring the FB plugin recently, though you would have had to have updated in a window of one particular day to get that, but stranger things have happened. The problem here is the REAL frontbase plugin would have quoted "_dbupdater" in that create statement. That you're not getting quotes means you're not using our FrontBasePlugIn. ms ___ 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 [EMAIL PROTECTED]
Best way of making shopping cart & checkout
Hi. I'm making a shopping cart system for buying theatre tickets. Here's how I envision it working: what I need is for people to tell me where I've gone wrong :) I have an entity called SeatBooking, which are the things the user can buy. I have another called Order, with a many-to-one relationship to SeatBooking. I am planning to have an Order variable in the session, and whenever the user adds a seat to their cart I add the relationship between that seat and the Order that's in the session. I save the changes immediately, since when a seat is in someone else's cart, no-one else should be able to buy it. (There is a boolean attribute called "paid" as part of Order, so I know which orders have been completed -- thus saving incomplete orders in the db is not a problem.) When a session is destroyed, it also deletes its Order, if it has not been paid. Thus on session timeout the seats that were in someone's cart get released. For the actual payment process, I need to be able to use both Protx and Paypal (the latter is a stopgap until our Protx account is ready), but they both seem to work in a similar manner. I send the data (along with a unique ID) to their payment server, which redirects the user to their payment page. Their system will send a POST back to my app. I need to capture it, and if the authentication of the payment worked then I look up the order based on its unique ID, and set "paid" to true (also saving the auth code, just in case). I then need to supply via POST a URL for the payment gateway to redirect the user to. This should be a "Thank you" page type thing. So, some questions: 1. Does this design make some kind of sense? 2. How do I listen for POST requests? Sadly, they only send them on port 80. Should I make a Direct Action that listens for them? 3. This one's probably a newbie question, but how do I generate the URL to redirect the user to? It should be a component action that goes to a thankyou page. I know how to make a WOHyperlink that does that, but I don't know how to generate such a URL without putting it on a page. Thanks for all your help. Thomas ___ 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 [EMAIL PROTECTED]
Re: WO 5.4 parser issues - help please
That looks right ... you sure you're looking at the same page that the error is coming from? The quick fix is to jsut delete that line since it doesn't matter :), but that's sort of cheating. Incidentally, WOOGNL is totally independent of the rest of wonder, so you can choose to use it without bringing in any other dependencies. ms On Oct 17, 2008, at 1:27 PM, Mersida Kurti wrote: Hi, Thanks for your response. This is what I have, I thought this was well-formed html. We dont use Wonder, so I need to find a soln to this problem with this parser, I guess. I welcome any other suggestions. Thanks/ Blah --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 1:08 PM Like the error message says, you have a tag without a tag. WO 5.4's parser only parses well-formed component templates. Either switch to well-formed HTML or switch to WOOGNL from Wonder as your parser, which doesn't have this restriction. ms ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 [EMAIL PROTECTED]
Re: Eclipse stackoverflow WOLips Entity Modeler
Yes, I see 13 such error messages. Description ResourcePathLocationType A cycle was detected in the build path of project 'MPVClaimsComponents' MPVClaimsComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVContractComponents' MPVContractComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVCustomerComponents' MPVCustomerComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVDashboard' MPVDashboard Build path Build Path Problem A cycle was detected in the build path of project 'MPVMediatorClaimComponents' MPVMediatorClaimComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVMyOrganizationComponents' MPVMyOrganizationComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVPhynanceComponents' MPVPhynanceComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVPracticeComponents' MPVPracticeComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVReportComponents' MPVReportComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVUB' MPVUB Build path Build Path Problem A cycle was detected in the build path of project 'MPVUBActionItemComponents' MPVUBActionItemComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVUBClaimComponents' MPVUBClaimComponents Build path Build Path Problem A cycle was detected in the build path of project 'MPVUBContractComponents' MPVUBContractComponents Build path Build Path Problem JR On Oct 17, 2008, at 1:00 PM, Ricardo J. Parada wrote: Do you see anything in the Problems tab in Eclipse that says something about a cycle? If there is a cycle there should be something that reads "A cycle was detected in the build path of project 'Foo'. On Oct 17, 2008, at 1:49 PM, JR Ruggentaler wrote: Is there some way to tell which project or model is causing this, I have ~65 framework projects? JR On Oct 17, 2008, at 12:10 PM, Mike Schrag wrote: I am trying to rebuild my workspace and I am receiving the exception below: You have a circular reference in one of your projects. ms ___ 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/jr%40mpv.com This email sent to [EMAIL PROTECTED] ___ 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/rparada%40mac.com This email sent to [EMAIL PROTECTED] JR Ruggentaler Senior Software Developer Medical Present Value, Inc [EMAIL PROTECTED] Office 512.439.0206 Mobile 512.431.6849 ___ 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 [EMAIL PROTECTED]
do you want to blow your mind?
Chuck and I just did, so I thought I'd share it ... jad WOSwitchComponent and walk through and explain to yourself why WOSwitchComponent doesn't show the same instance of a component for every session in your app, particularly given that there will only be one instance of a WOSwitchComponent on a given parsed page (meaning that if there's a WOSwitchComponent for an element in your Main component, there will only be ONE INSTANCE of WOSwitchComponent servicing that slot on the page for all of your users). Prepare to get a much deeper understanding and appreciation of how WO works and how clever the original authors were. I'll write this up in a blog post over the weekend, but I just think it's really cool. I'm actually a little bit giddy about understanding how all these particular pieces fit together now ... I definitely took a lot for granted, and several aspects of page state make a lot of sense now. ms ___ 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 [EMAIL PROTECTED]
er.extensions.migration.ERXMigrationFailedException: Using Migrations and FrontBase
Well changing to Frontbase, while running the app for first time, I got the following [2008-10-17 13:4:12 COT] er.extensions.migration.ERXMigrationFailedException: Failed to create lock table. Try executing: CREATE TABLE _dbupdater(lockowner VARCHAR(100), modelname VARCHAR(100) NOT NULL, updatelock INTEGER NOT NULL, version INTEGER NOT NULL); . at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:141) at er .extensions .migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java:67) at er.extensions.migration.ERXMigrator $ERXMigrationAction.doPerform(ERXMigrator.java:381) at er.extensions.eof.ERXEOAccessUtilities $ChannelAction.perform(ERXEOAccessUtilities.java:1409) at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java: 175) at er .extensions .appserver.ERXApplication.finishInitialization(ERXApplication.java:898) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java: 122) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:588) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java:532) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java:546) at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229) at er.extensions.appserver.ERXApplication.run(ERXApplication.java:992) at com.webobjects.appserver.WOApplication.main(WOApplication.java:548) at er.extensions.appserver.ERXApplication.main(ERXApplication.java:535) at controlHorarios.app.Application.main(Application.java:12) Caused by: java.sql.SQLException: Syntax error 61. Expected Identifier not found. at com .frontbase .jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java:162) at com .frontbase .jdbc.FBJErrorMetaData.getExceptionChain(FBJErrorMetaData.java:194) at com.frontbase.jdbc.FBJStatement.checkMetaData(FBJStatement.java:472) at com.frontbase.jdbc.FBJStatement.executeUpdate(FBJStatement.java:262) at er .extensions .jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:590) at er .extensions .jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:556) at er .extensions .migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:136) I was reading a prior post and it says about some incompatibility with the FB plugins, but couldn't make what you were trying to say, about a FrotBasePlugInPrincipal, is this problem Im having related to that one mentioned before? or its completly different, if so, then what im missing, probably some parameter in URL in the EOModel? "Gus ___ 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 [EMAIL PROTECTED]
Re: Eclipse stackoverflow WOLips Entity Modeler
Also you may want to make sure to group the errors in the Problems tab by severity (I think). On Oct 17, 2008, at 1:49 PM, JR Ruggentaler wrote: Is there some way to tell which project or model is causing this, I have ~65 framework projects? JR On Oct 17, 2008, at 12:10 PM, Mike Schrag wrote: I am trying to rebuild my workspace and I am receiving the exception below: You have a circular reference in one of your projects. ms ___ 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/jr%40mpv.com This email sent to [EMAIL PROTECTED] ___ 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/rparada %40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Eclipse stackoverflow WOLips Entity Modeler
Do you see anything in the Problems tab in Eclipse that says something about a cycle? If there is a cycle there should be something that reads "A cycle was detected in the build path of project 'Foo'. On Oct 17, 2008, at 1:49 PM, JR Ruggentaler wrote: Is there some way to tell which project or model is causing this, I have ~65 framework projects? JR On Oct 17, 2008, at 12:10 PM, Mike Schrag wrote: I am trying to rebuild my workspace and I am receiving the exception below: You have a circular reference in one of your projects. ms ___ 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/jr%40mpv.com This email sent to [EMAIL PROTECTED] ___ 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/rparada %40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Eclipse stackoverflow WOLips Entity Modeler
Is there some way to tell which project or model is causing this, I have ~65 framework projects? JR On Oct 17, 2008, at 12:10 PM, Mike Schrag wrote: I am trying to rebuild my workspace and I am receiving the exception below: You have a circular reference in one of your projects. ms ___ 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/jr%40mpv.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Having trouble with XcodeMigration
-- Original message -- From: Florijan Stamenkovic <[EMAIL PROTECTED]> > On Oct 17, 2008, at 11:55, Denise Howard wrote: > > > Yes I am 100% sure. I don't have multiple hard drive partitions. > > > Hm, bizarre... > > Pascal suggested a permissions problem, but I don't think that's it. > If the Java process tries to access resources that it does not have > privileges for a java.lang.SecurityException should be thrown. I figured it out. In my config.xml file, for applicationTemplatePath, I had a typo: "/Users/ dhoward/EclipseWorkspace" should've been "/Users/ dhoward/EclipseWorkspaces". Duh! Sorry to waste your time. Denise ___ 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 [EMAIL PROTECTED]
Re: WO 5.4 parser issues - help please
Hi, Thanks for your response. This is what I have, I thought this was well-formed html. We dont use Wonder, so I need to find a soln to this problem with this parser, I guess. I welcome any other suggestions. Thanks/ Blah --- On Fri, 10/17/08, Mike Schrag <[EMAIL PROTECTED]> wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: WO 5.4 parser issues - help please To: "WebObjects Dev" Date: Friday, October 17, 2008, 1:08 PM Like the error message says, you have a tag without a tag. WO 5.4's parser only parses well-formed component templates. Either switch to well-formed HTML or switch to WOOGNL from Wonder as your parser, which doesn't have this restriction. ms ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 [EMAIL PROTECTED]
Best way of making shopping cart & checkout
Hi. I'm making a shopping cart system for buying theatre tickets. Here's how I envision it working: what I need is for people to tell me where I've gone wrong :) I have an entity called SeatBooking, which are the things the user can buy. I have another called Order, with a many-to-one relationship to SeatBooking. I am planning to have an Order variable in the session, and whenever the user adds a seat to their cart I add the relationship between that seat and the Order that's in the session. I save the changes immediately, since when a seat is in someone else's cart, no-one else should be able to buy it. (There is a boolean attribute called "paid" as part of Order, so I know which orders have been completed -- thus saving incomplete orders in the db is not a problem.) When a session is destroyed, it also deletes its Order, if it has not been paid. Thus on session timeout the seats that were in someone's cart get released. For the actual payment process, I need to be able to use both Protx and Paypal (the latter is a stopgap until our Protx account is ready), but they both seem to work in a similar manner. I send the data (along with a unique ID) to their payment server, which redirects the user to their payment page. Their system will send a POST back to my app. I need to capture it, and if the authentication of the payment worked then I look up the order based on its unique ID, and set "paid" to true (also saving the auth code, just in case). I then need to supply via POST a URL for the payment gateway to redirect the user to. This should be a "Thank you" page type thing. So, some questions: 1. Does this design make some kind of sense? 2. How do I listen for POST requests? Sadly, they only send them on port 80. Should I make a Direct Action that listens for them? 3. This one's probably a newbie question, but how do I generate the URL to redirect the user to? It should be a component action that goes to a thankyou page. I know how to make a WOHyperlink that does that, but I don't know how to generate such a URL without putting it on a page. Thanks for all your help. Thomas ___ 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 [EMAIL PROTECTED]
Re: Eclipse stackoverflow WOLips Entity Modeler
I am trying to rebuild my workspace and I am receiving the exception below: You have a circular reference in one of your projects. ms ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
Yes im (was) using the OpenBase plugin. Im chanign to FrontBase now. Im just in a learning phase so I can change whatever I want. I hope in real-work app I will be able to handle the errors Gus On Oct 17, 2008, at 12:03 PM, Darryl Snover wrote: On Oct 17, 2008, at 6:03 AM, David Avendasora wrote: Gus, Can you turn on EOAdaptor Debugging so you can see what the actual SQL being sent to the DB is? Do this by creating the following property in your Resources/Properties file: log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG The log you sent shows two conflicting things: Oct 16 18:32:57 ControlHorarios[1250] (ERXJDBCUtilities.java:588) INFO er.extensions.jdbc.ERXJDBCUtilities - Executing ALTER TABLE EMPLOYEETURN ADD CONSTRAINT EMPLOYEETURN_EMPLOYEE_ID_id_FK FOREIGN KEY (EMPLOYEE_ID) REFERENCES EMPLOYEE (id) and 2008-10-16 18:32:57 -0500: &ScheduleControl:SQL ERROR - [position 24, near 'ADD' in 'PLOYEETURN ADD CONSTRAINT'] alter table command expected but not found.{ NSColor = NSCalibratedRGBColorSpace 0 0 1 1; } You can see that the SQL the migration is trying to send to the table looks properly formed (I am not an OpenBase developer) but the error says that it isn't, so we need to see the actual SQL sent by the EOAdaptor. The SQL that is being sent appears to be proper SQL for an Oracle database (and probably some others), but not for OpenBase (the two RDBMS systems I am most familiar with). It appears that based on the log information, the SQL that the DB received is the same, although truncated. For OpenBase, the SQL to add a foreign key constraint would be similar to that of adding the column (this is based on if the ID column in the EMPLOYEE table is a longlong or integer, or NUMBER of zero decimal precision): ALTER TABLE EMPLOYEETURN ADD COLUMN EMPLOYEE_ID longlong index REFERENCES EMPLOYEE.id Note that although the column EMPLOYEE_ID may already exist in the EMPLOYEETURN table, re-adding it will not result in any loss of data in OpenBase. Are you using the OpenBase plugin? Best Regards, Darryl Snover ___ 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 [EMAIL PROTECTED]
Re: WO 5.4 parser issues - help please
Like the error message says, you have a tag without a tag. WO 5.4's parser only parses well-formed component templates. Either switch to well-formed HTML or switch to WOOGNL from Wonder as your parser, which doesn't have this restriction. ms ___ 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 [EMAIL PROTECTED]
Re: Having trouble with XcodeMigration
On Oct 17, 2008, at 11:55, Denise Howard wrote: Yes I am 100% sure. I don't have multiple hard drive partitions. Hm, bizarre... Pascal suggested a permissions problem, but I don't think that's it. If the Java process tries to access resources that it does not have privileges for a java.lang.SecurityException should be thrown. Maybe you could try making a simple Java test app that launches a file chooser. Then find the same folder, select it, and log out the selected file. See what the path is, and how it compares to "/Users/ dhoward/EclipseWorkspace/WOApplicationTemplate/Components". Also, try invoking exists() on that File reference, see what happens. 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 [EMAIL PROTECTED]
Eclipse stackoverflow WOLips Entity Modeler
I am trying to rebuild my workspace and I am receiving the exception below: Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 WOLips version 3.4.5503 !SESSION 2008-10-17 11:39:14.650 --- eclipse.buildId=M20080911-1700 java.version=1.5.0_16 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US Framework arguments: -keyring /Users/jr/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws carbon -arch x86 -keyring / Users/jr/.eclipse_keyring -consoleLog -showlocation !ENTRY org.eclipse.ui 4 4 2008-10-17 11:39:44.471 !MESSAGE Bad extension specification !ENTRY org.objectstyle.wolips.variables 4 0 2008-10-17 11:39:44.480 !MESSAGE startup class must implement org.eclipse.ui.IStartup !ENTRY org.eclipse.core.jobs 4 2 2008-10-17 11:41:19.081 !MESSAGE An internal error occurred during: "Building workspace". !STACK 0 java.lang.StackOverflowError at java.util.HashMap.get(HashMap.java:343) at java.util.Collections$SynchronizedMap.get(Collections.java:1979) at org .eclipse .core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java: 161) at org .eclipse.core.internal.resources.Workspace.newResource(Workspace.java: 1638) at org .eclipse.core.internal.resources.Container.getChildren(Container.java: 103) at org .eclipse .core.internal.resources.WorkspaceRoot.getProjects(WorkspaceRoot.java: 195) at org .eclipse .core.internal.resources.Project.getReferencingProjects(Project.java: 447) at org .objectstyle .wolips .wodclipse .core .util.EOModelGroupCache.clearCacheForProject(EOModelGroupCache.java:46) at org .objectstyle .wolips .wodclipse .core .util.EOModelGroupCache.clearCacheForProject(EOModelGroupCache.java:47) at org .objectstyle .wolips .wodclipse .core .util.EOModelGroupCache.clearCacheForProject(EOModelGroupCache.java:47) at org .objectstyle .wolips .wodclipse .core .util.EOModelGroupCache.clearCacheForProject(EOModelGroupCache.java:47) at Any ideas on what is causing this and how I can fix it? JR ___ 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 [EMAIL PROTECTED]
WO 5.4 parser issues - help please
Hello, I'm using WO 5.4.3 and I'm getting some parser issues with my meta tags. I read a previous message that talked about this, but its not clear to me of what the solution regarding this is. After 1 year, anyone found a way to get over this problem? Thanks a lot!! ~Mersida - WOMLDefaultErrorHandler.fatalError(org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "".) 35516 [WorkerThread1] INFO er.extensions.ERXNSLogLog4jBridge - WOMLDefaultErrorHandler.fatalError(org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "".) - : Exception occurred while handling request: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: TextFileExportPage: 5:4: The element type "meta" must be terminated by the matching end-tag "". 35516 [WorkerThread1] INFO er.extensions.ERXNSLogLog4jBridge - : Exception occurred while handling request: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: TextFileExportPage: 5:4: The element type "meta" must be terminated by the matching end-tag "". [2008-10-17 12:48:4 EDT] com.webobjects.appserver.parser.woml.WOMLTemplateParserException: TextFileExportPage: 5:4: The element type "meta" must be terminated by the matching end-tag "". at com.webobjects.appserver.parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:347) at com.webobjects.appserver.parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653) at com.webobjects.appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40) at com.webobjects.appserver.parser.WOComponentTemplateParser.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) at com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:364) at com.webobjects.appserver.WOComponent.template(WOComponent.java:499) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1112) at edu.psu.ots.soar_framework.common.components.TextFileExportPage.appendToResponse(TextFileExportPage.java:37) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385) at com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369) at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613) Caused by: org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "". at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.webobjects.appserver.parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:339) ... 18 more __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
ok ok ok... no scold needed :P Gus On Oct 17, 2008, at 10:56 AM, Mike Schrag wrote: Not that Mike is infallible +1 ms ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
Not that Mike is infallible +1 ms ___ 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 [EMAIL PROTECTED]
Re: Having trouble with XcodeMigration
On Oct 17, 2008, at 7:15 AM, Florijan Stamenkovic wrote: On Oct 16, 2008, at 23:13, [EMAIL PROTECTED] wrote: I'm finally taking the plunge to leave Xcode behind and migrate our frameworks and applications to Eclipse. I've installed WOLips, and I've carefully followed the instructions for Pascal Robert's XcodeMigration tool (great visual tutorial instructions, btw). However, when I get to the point of running the tool, the following results: Starting the importation process... java.lang.IllegalArgumentException: /Users/dhoward/ EclipseWorkspace/WOApplicationTemplate/Components does not exist at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java: 886) at ca.os.migrations.XCodeToEclipse.cleanupTemplates (XCodeToEclipse.java:174) at ca.os.migrations.XCodeToEclipse.main(XCodeToEclipse.java:76) However, this "Components" directory does exist in that location and even has two items in it, Main.api and Main.wo. What am I doing wrong and how do I make it work? Are you 100% sure of this? Do you have multiple hard drive partitions? Could it be possible that the code above assumes the wrong partition? How does the XcodeMigration process obtain that file reference? I checked out the source of Apache's FileUtils, and it is very straightforward, I don't see how it could screw up: /** * Cleans a directory without deleting it. * * @param directory directory to clean * @throws IOException in case cleaning is unsuccessful */ public static void cleanDirectory(File directory) throws IOException { if (!directory.exists()) { String message = directory + " does not exist"; throw new IllegalArgumentException(message); } Yes I am 100% sure. I don't have multiple hard drive partitions. Denise ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
On Oct 17, 2008, at 11:14 AM, Mike Schrag wrote: So suggestion is to change to Mysql? :O. I use FrontBase and Postgresql. They work. I don't know what went down with your FrontBase setup, but it's my primary database, so I can assure you that it works. I can't say this strongly enough: If you have control over what DB, Frameworks, Development and Deployment platforms you use, use whatever Mike uses. Your WO-Life will be so much more simple, you'll get more support on the lists and you can be reasonably confident that if you are running into problems, it is something you are doing wrong. Not that Mike is infallible, but he tends to fix his mistakes very quickly. :-) 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
Ok I will give it a try, fortunately what I have in the db wasn't too much. like 9 records in a table so I think I can migrate it. Oh I remember that was a pain in the ass to try to execute the SQL that EOModeler generated, it was saying something about the connections. I will try again and see what's the error. This "just works" too, so there's something wrong with your config. But if you're using migrations, you shouldn't be executing SQL from entity modeler anyway. ms ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
So suggestion is to change to Mysql? :O. I use FrontBase and Postgresql. They work. I don't know what went down with your FrontBase setup, but it's my primary database, so I can assure you that it works. ms ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
I go this.. before the whole exceptions stack 7 09:56:35 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - evaluateExpression: _dbupdater SET lockowner = NULL, updatelock = ? WHERE modelname = ?" withBindings: 1:0(updateLock), 2:"ScheduleControl"(modelName)> Oct 17 09:56:35 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Commit Internal Transaction Oct 17 09:56:35 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Begin Internal Transaction Oct 17 09:56:35 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction Oct 17 09:56:35 ControlHorarios[1250] (ERXNSLogLog4jBridge.java:43) WARN NSLog - A fatal exception occurred: Migration failed. I have no idea if anyone has ever run migrations on OpenBase, but my guess is that this is failing because of the bizarre implementation of the 5.3 schema sync API's in 5.4. Most likely what is happening here is that migrations is calling the 5.3 API which is implemented as calling the generic 5.4 plugin schema sync instead of the OpenBase schema sync API's. Chalk this up to the schema sync classes basically completely insane in WO 5.4. ms So suggestion is to change to Mysql? :O. Chalk this up to the schema sync classes basically completely insane in WO 5.4. Am I supposed to do something here? Gus On Oct 17, 2008, at 6:36 AM, Mike Schrag wrote: Hello, I made a debug and it seems that the problem its occurring when adding the foreign key. :/:/: I have no idea if anyone has ever run migrations on OpenBase, but my guess is that this is failing because of the bizarre implementation of the 5.3 schema sync API's in 5.4. Most likely what is happening here is that migrations is calling the 5.3 API which is implemented as calling the generic 5.4 plugin schema sync instead of the OpenBase schema sync API's. Chalk this up to the schema sync classes basically completely insane in WO 5.4. ms ___ 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/webobjectspicora%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Having trouble with XcodeMigration
Le 08-10-17 à 10:15, Florijan Stamenkovic a écrit : On Oct 16, 2008, at 23:13, [EMAIL PROTECTED] wrote: I'm finally taking the plunge to leave Xcode behind and migrate our frameworks and applications to Eclipse. I've installed WOLips, and I've carefully followed the instructions for Pascal Robert's XcodeMigration tool (great visual tutorial instructions, btw). However, when I get to the point of running the tool, the following results: Starting the importation process... java.lang.IllegalArgumentException: /Users/dhoward/EclipseWorkspace/ WOApplicationTemplate/Components does not exist at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java: 886) at ca .os.migrations.XCodeToEclipse.cleanupTemplates(XCodeToEclipse.java: 174) at ca.os.migrations.XCodeToEclipse.main(XCodeToEclipse.java:76) However, this "Components" directory does exist in that location and even has two items in it, Main.api and Main.wo. What am I doing wrong and how do I make it work? Are you 100% sure of this? Do you have multiple hard drive partitions? Could it be possible that the code above assumes the wrong partition? How does the XcodeMigration process obtain that file reference? I checked out the source of Apache's FileUtils, and it is very straightforward, I don't see how it could screw up: I also have a hard time of thinking something can break this. It can be a permission problem, but beside that I have no idea. This stuff is called so that any files from the templates in Sources and Components are removed to make sure they don't get in conflict with the migrated project. If you remove the Main.* stuff manually from the templates, you can remove this call in XcodeMigration code. /** * Cleans a directory without deleting it. * * @param directory directory to clean * @throws IOException in case cleaning is unsuccessful */ public static void cleanDirectory(File directory) throws IOException { if (!directory.exists()) { String message = directory + " does not exist"; throw new IllegalArgumentException(message); } ... HTH, 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/probert%40macti.ca This email sent to [EMAIL PROTECTED] --- Pascal Robert http://www.macti.ca http://www.linkedin.com/in/macti Skype: MacTICanada AIM/iChat : MacTICanada ___ 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 [EMAIL PROTECTED]
Re: Having trouble with XcodeMigration
On Oct 16, 2008, at 23:13, [EMAIL PROTECTED] wrote: I'm finally taking the plunge to leave Xcode behind and migrate our frameworks and applications to Eclipse. I've installed WOLips, and I've carefully followed the instructions for Pascal Robert's XcodeMigration tool (great visual tutorial instructions, btw). However, when I get to the point of running the tool, the following results: Starting the importation process... java.lang.IllegalArgumentException: /Users/dhoward/EclipseWorkspace/ WOApplicationTemplate/Components does not exist at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:886) at ca.os.migrations.XCodeToEclipse.cleanupTemplates (XCodeToEclipse.java:174) at ca.os.migrations.XCodeToEclipse.main(XCodeToEclipse.java:76) However, this "Components" directory does exist in that location and even has two items in it, Main.api and Main.wo. What am I doing wrong and how do I make it work? Are you 100% sure of this? Do you have multiple hard drive partitions? Could it be possible that the code above assumes the wrong partition? How does the XcodeMigration process obtain that file reference? I checked out the source of Apache's FileUtils, and it is very straightforward, I don't see how it could screw up: /** * Cleans a directory without deleting it. * * @param directory directory to clean * @throws IOException in case cleaning is unsuccessful */ public static void cleanDirectory(File directory) throws IOException { if (!directory.exists()) { String message = directory + " does not exist"; throw new IllegalArgumentException(message); } ... HTH, 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 [EMAIL PROTECTED]
Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful
Am 17.10.2008 um 06:47 schrieb Lachlan Deck: It's also worth verifying that your tzdata is up to date. We were bitten by this earlier in the year. http://support.apple.com/kb/TA24629?viewlocale=en_US http://support.apple.com/kb/TA24594?viewlocale=en_US etc Hi Lachnan, Time zone data seems to be OK here. But thanks for the hint. Timo ___ 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 [EMAIL PROTECTED]
Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful
Am 16.10.2008 um 21:15 schrieb Ralf Schuchardt: you might also try the joda-time library. It has functions for using the "natural" meaning of intervals like "1 month". Hi Ralf, I've already found a workaround for my specific problem, but this library might make handling date & time in java a lot more painless in general. I'll take a look into it. Thanks a lot for the hint! Timo ___ 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 [EMAIL PROTECTED]
Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful
Am 17.10.2008 um 12:55 schrieb Timo Hoepfner: I think I should report a bug... Bug ID# 6299476 Timo ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
Hello, I made a debug and it seems that the problem its occurring when adding the foreign key. :/:/: I have no idea if anyone has ever run migrations on OpenBase, but my guess is that this is failing because of the bizarre implementation of the 5.3 schema sync API's in 5.4. Most likely what is happening here is that migrations is calling the 5.3 API which is implemented as calling the generic 5.4 plugin schema sync instead of the OpenBase schema sync API's. Chalk this up to the schema sync classes basically completely insane in WO 5.4. ms ___ 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 [EMAIL PROTECTED]
Re: eogenerate ant task?
here is the ant task i use to generate the eo classes: You can take this basic approach but use the standalone velocity eogenerator instead: http://webobjects.mdimension.com/wolips/veogen.jar it's an executable jar. ms ___ 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 [EMAIL PROTECTED]
Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful
Hi, Daylight Saving TIme? DST would explain a one hour difference, but not loosing two complete days (March 2008 for Berlin). Try NSTimestamp start = new NSTimestamp(year, month, 1, 12, 0, 0, timezone); Does that give the right days? Yes, it does. I think something like the following is happening: -At some point timestampByAddingGregorianUnits needs to determine the number of days of the month(s) -To do so, it tries to determine the month of the timestamp the method is called on -While determining the month, it is using the wrong time zone (GMT?) -As a result it uses the wrong month for timestamps where the month differs in the two time zones involved. If so, you might do better by creating a new timestamp and subtracting a second. e.g. NSTimestamp end = new NSTimestamp(year, month + 1, 1, 0, 0, 0, timezone)stampByAddingGregorianUnits(0, 0, 0, 0, 0, -1); It's even a bit easier: end = new NSTimestamp(year, month + 1, 1, 0, 0, -1, timezone); With this approach, I always get the result I want. I think I should report a bug... Thanks for the help, Timo ___ 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 [EMAIL PROTECTED]
Re: Migrations and OpenBase
Gus, Can you turn on EOAdaptor Debugging so you can see what the actual SQL being sent to the DB is? Do this by creating the following property in your Resources/Properties file: log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG The log you sent shows two conflicting things: Oct 16 18:32:57 ControlHorarios[1250] (ERXJDBCUtilities.java:588) INFO er.extensions.jdbc.ERXJDBCUtilities - Executing ALTER TABLE EMPLOYEETURN ADD CONSTRAINT EMPLOYEETURN_EMPLOYEE_ID_id_FK FOREIGN KEY (EMPLOYEE_ID) REFERENCES EMPLOYEE (id) and 2008-10-16 18:32:57 -0500: &ScheduleControl:SQL ERROR - [position 24, near 'ADD' in 'PLOYEETURN ADD CONSTRAINT'] alter table command expected but not found.{ NSColor = NSCalibratedRGBColorSpace 0 0 1 1; } You can see that the SQL the migration is trying to send to the table looks properly formed (I am not an OpenBase developer) but the error says that it isn't, so we need to see the actual SQL sent by the EOAdaptor. 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 [EMAIL PROTECTED]
Re: EO Caching with global id 'fetching'
On Oct 16, 2008, at 11:21 AM, Mike Schrag wrote: Take a look at EOEditingContext.setRetainsRegisteredObjects(...) And also EOEditingContext.setRunOutOfMemoryPlease(..) ;) Ahh, I see. Not a problem for the current app I am developing. I'm assuming that the hard references will be in editing context itself not the root object store, so once the page falls out of the page cache or the session is terminated, the cache can/should clear. Please correct me if I'm wrong. Thanks -- Jonathan ms ___ 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/jricker%40vt.edu This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: eogenerate ant task?
In the Eclipse Preferences you can set EOGenerator to run every time the project is built by the incremental builder - which means that every time you save the EOModel it will get generated. Eclipse -> Preferences... -> WOLips -> Build -> Auto EOGenerate on Build Dave On Oct 16, 2008, at 9:15 PM, Ash Mishra wrote: Hi all, I'm wondering if there is an Ant task for WOLips's eogenerator that can be included in the build.xml of a project? I'm using wolips 3.3 and Eclipse 3.3.1. Right now I have a .eogen file, which I manually can run in Eclipse to generate my entity classes. Is there a way to automate this as a target in build.xml? thanks Ash ___ 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/webobjects%40avendasora.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: EOObjectNotAvailableException: prepareForSaveWithCoordinator
That's my problem, theirs no other exception in the log files. The exception seems to occurs every leap year, so i can't reproduce it. Is there a way to catch the exception and get rid of the corrupt object and reload it? Stefan Lachlan Deck schrieb: On 17/10/2008, at 6:51 AM, Stefan Klein wrote: i got the following exception: com.webobjects.eoaccess.EOObjectNotAvailableException: prepareForSaveWithCoordinator: Cannot save the object with globalID _EOIntegralKeyGlobalID[Benutzer (java.lang.Long)4559]. The row referenced by this globalID was missing from the database at the time a fetch was attempted. Either it was removed from the database after this application got a pointer to it, or there is a referential integrity problem with your database. To be notified when fetches fail, implement a delegate on EODatabaseContext that responds to databaseContextFailedToFetchObject(). at com.webobjects.eoaccess.EODatabaseContext.prepareForSaveWithCoordinator(EODatabaseContext.java:5831) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:409) at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3187) But I know that the object for this id exist, cause that user logged in many times before in that instance. The instance was running for several days without any problem. After the exception occurs the first time, the user can't log in again in that instance. A login to the second instance did work. After stopping and starting the first instance all works fine. Does any one have a suggestion? Check the logs. Probably had some exceptions that went unnoticed. with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: eogenerate ant task?
Hi Ash, here is the ant task i use to generate the eo classes: value="./Resources/hortigate.eomodeld"/> value="de.sde.hortigate.bo.common.HortigateObject"/> value="de.sde.hortigate.bo"/> value="./Sources/de/sde/hortigate/bo"/> value="./Resources/laender.eomodeld"/> value="${wo.wolocalroot}/Developer/Executables" /> Stefan Ash Mishra schrieb: Hi all, I'm wondering if there is an Ant task for WOLips's eogenerator that can be included in the build.xml of a project? I'm using wolips 3.3 and Eclipse 3.3.1. Right now I have a .eogen file, which I manually can run in Eclipse to generate my entity classes. Is there a way to automate this as a target in build.xml? thanks Ash ___ 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 [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]