giving a custom size to a td form a WOTable
Hello, I have a situation. I have a NSArray as following : {label1:value1:label2:value2 :.}, now I have a WOTable with maxColums, so I will have something like: label1 | value1 label2| value2 ... ... how can I change the size of just the first td of each tr ? in other words, the column that contains the labels and the values column separately?, If I set the cellWidth it will change both and I don't want that behavior. Before I had 2 WOTables next to each other one with the labels and the other one with the values, but if I wanted to select some value and label at the same time I can not because it will start sellecting first the contents of one table and the go to the other one... i dunno if I made myself clear.. any clues? Thx Gustavo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to execute SQL generated by Entity Modeler
I have recently started to try to use WOLips after using WebObjects with Xcode in the past. I used Entity Modeler to create a simple table and generated the following: === CREATE TABLE DataType (id int NOT NULL, Name varchar(255) NOT NULL); /* The 'Create Primary Key Support' option is unavailable. */; ALTER TABLE DataType ADD PRIMARY KEY (id); === However, when I tried to execute the SQL I keep getting errors. Failed to generate SQL. SQL ERROR - [position 12, near 'DATATYPE' in 'EATE TABLE DataType (id] create error: table name not found. I am using Eclipse 3.4.2, the java vm is 1.5.0_16-133 and WOLips installed. WebObjects 5.4.1 The machine is running Mac OS X Leopard 10.5.7 and the database is OpenBase Manager version 11 Can anyone tell me if I am using the wrong workflow, should I not use Entity Modeler to generate SQL! regards Clive Roberts ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Prototype mutableArray savechanges error
Hi, When setting a ERXMutableArray to a ERXGenericRecord, I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] WorkerThread5 com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java: 4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java:76) 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:597) Thanks Frank Stock ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to execute SQL generated by Entity Modeler
Is DataType a reserved word in OpenBase? Try using isql to run this SQL. Does that work? Chuck On May 27, 2009, at 8:22 AM, Clive Roberts wrote: I have recently started to try to use WOLips after using WebObjects with Xcode in the past. I used Entity Modeler to create a simple table and generated the following: === CREATE TABLE DataType (id int NOT NULL, Name varchar(255) NOT NULL); /* The 'Create Primary Key Support' option is unavailable. */; ALTER TABLE DataType ADD PRIMARY KEY (id); === However, when I tried to execute the SQL I keep getting errors. Failed to generate SQL. SQL ERROR - [position 12, near 'DATATYPE' in 'EATE TABLE DataType (id] create error: table name not found. I am using Eclipse 3.4.2, the java vm is 1.5.0_16-133 and WOLips installed. WebObjects 5.4.1 The machine is running Mac OS X Leopard 10.5.7 and the database is OpenBase Manager version 11 Can anyone tell me if I am using the wrong workflow, should I not use Entity Modeler to generate SQL! regards Clive Roberts ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by setting a ERXMutableArray to a ERXGenericRecord? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] WorkerThread5 com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java: 6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java:76) 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:597) Thanks Frank Stock ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: lock operation locked more than one row issue!
On May 27, 2009, at 12:16 PM, Ryan Klems wrote: I'm coming in to this thread a little late, and I don't have the previous emails, but looking at the quoted parts from chuck's email... I see that its doing pessimistic locking, and you aren't expecting it to do that. One thing that I have run into in the past is when you have something specified in the model, that isn't mapped in the jdbc type info. For example, we had this exact scenario due to the model specifying varchar, and the type info not having a varchar, only a varchar2. Yes! That is what I was circling around with Are you using any data types in this table that you don't use elsewhere?. Thanks for reminding me of the exact cause. Since it didn't know what the column was, it didn't know how to optimistically lock it, so it fell back to pessimistic locking. I actually added some code to WO (I think its in 5.5 and an unreleased 5.4), which will log a warning when this occurs, since it was such a PITA to track down when it happened to me (specifically it will warn from JDBCAdaptor.isValidQualifierType). I'd be happy to have it as an out and out thrown exception as this won't ever work, will it? Is there ever a useful / sane reason for it to fall back to pessimistic locking in this case? Is this also what handles CLOB/BLOB updates for something like FrontBase where they have to be done in a separate statement? You might try running in the debugger and breaking on JDBCAdaptor.isValidQualifierType, see if its returning false (which would force it to fall back to pessimistic locking), and examine what the typeName is... you might find that its just ever so slightly wrong. Chuck On May 27, 2009, at 11:54 AM, Chuck Hill wrote: Hi Fred, On May 27, 2009, at 11:29 AM, Fred Wells wrote: OK, so after trying several different drivers and all throw some type of locking error either lock failed to retrieve any rows or lock operation locked more than one row. It is not the driver. Really, it is not. It is the SQL that EOF is generating. It is generating the WRONG SQL. That is the problem that you need to solve. The error you are seeing is just a symptom of the problem. You need to fix the problem. Right now I'm just looking for any more ideas as to where look for a possible cause on this. The EOModel files seem to be fine I'd be pretty suspicious that they are not. Are you using any data types in this table that you don't use elsewhere? CLOBs? BLOBs? I can't find anythign out of the ordinary I'm not sure where else to look or if there are any parameters that can be changed to alter how locking is handled. It is either in the model definition or in your code. Or, I suppose, both. You may be hitting a bug in EOF, but it is your model or code that is exposing it. Chuck Frederick Wells MarketForward, a Publicis Groupe Company 427 South LaSalle St. Chicago, Il 60605 312.220.3056 -Chuck Hill ch...@global-village.net wrote: - To: Guido Neitzer guido.neit...@gmail.com From: Chuck Hill ch...@global-village.net Date: 05/26/2009 07:18PM cc: Development WebObjects webobjects-dev@lists.apple.com, Fred Wells fred.we...@marketforward.com Subject: Re: lock operation locked more than one row issue! On May 26, 2009, at 5:13 PM, Guido Neitzer wrote: On May 26, 2009, at 1:37 PM, Chuck Hill wrote: I am not sure what you have done then. The problem is not that it is selecting multiple rows. The problem is that it is trying to lock rows: SELECT ... FROM TemplateTask t0 WITH (UPDLOCK, ROWLOCK) EOF should not be doing that, that is optimistic^H^H^H^H^H^H^H^ pessimistic locking. Something has confused EOF which causes it to do this (it is a bug). Do you have to tell the plugin that explicitly? Never used MS SQL. No, you don't. It is bad, but not that bad. ;-) Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They
Re: Prototype mutableArray savechanges error
Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey(ordernummers); } public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( updating ordernummers from + ordernummers() + to + value); } takeStoredValueForKey(value, ordernummers); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by setting a ERXMutableArray to a ERXGenericRecord? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] WorkerThread5 com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java: 6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java: 76) 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:597) Thanks Frank Stock ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:26 PM, Frank Stock wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey(ordernummers); } Is ordernummers an attribute or a to-many relationship? If it is a to- many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. Chuck public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( updating ordernummers from + ordernummers() + to + value); } takeStoredValueForKey(value, ordernummers); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by setting a ERXMutableArray to a ERXGenericRecord? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] WorkerThread5 com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess .EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent .uitprintenPacklijst(VerzendingComponent.java:76) 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:597) Thanks Frank Stock ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin
Re: Prototype mutableArray savechanges error
Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey(ordernummers); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. having a mutable value isn't bad, though -- it's MUTATING that's bad, right? as long as he's doing a mutableClone of it every time he makes a change and calls setOrdernummers each time, it should be fine ... super tedious, but i would expect fine 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 arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
I don't get it Chuck. If I go in the Entity modeler then I can slect in Prototype - mutableArray, my external type is BLOB and the value class is ERXMutableArray. What has that to do with a to-many relationship? I only do this as an easy way to save some numbers. Frank Op 27-mei-09, om 21:29 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:26 PM, Frank Stock wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey(ordernummers); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. Chuck public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( updating ordernummers from + ordernummers() + to + value); } takeStoredValueForKey(value, ordernummers); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by setting a ERXMutableArray to a ERXGenericRecord? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] WorkerThread5 com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess .EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent .uitprintenPacklijst(VerzendingComponent.java:76) 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:597) Thanks Frank Stock ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:32 PM, Mike Schrag wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey(ordernummers); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. having a mutable value isn't bad, though -- it's MUTATING that's bad, right? as long as he's doing a mutableClone of it every time he makes a change and calls setOrdernummers each time, it should be fine ... super tedious, but i would expect fine Yes. But I have never seen someone not start mutating it. :-) Possible, but not practical. :-P Maybe the template should enforce that? public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { takeStoredValueForKey(value.immutableClone(), ordernummers); } Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:36 PM, Frank Stock wrote: I don't get it Chuck. If I go in the Entity modeler then I can slect in Prototype - mutableArray, my external type is BLOB and the value class is ERXMutableArray. What has that to do with a to-many relationship? I only do this as an easy way to save some numbers. Just because you CAN select it does not make it safe to use. Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. None of this explains the StackOverflow. I think you have two problems. 1: Using a mutable attribute. 2: Something causing the stackoverflow. They are probably not connected. Chuck Frank Op 27-mei-09, om 21:29 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:26 PM, Frank Stock wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey(ordernummers); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. Chuck public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( updating ordernummers from + ordernummers() + to + value); } takeStoredValueForKey(value, ordernummers); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by setting a ERXMutableArray to a ERXGenericRecord? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] WorkerThread5 com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess .EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent .uitprintenPacklijst(VerzendingComponent.java:76) 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:597) Thanks Frank Stock ___ Do not post admin
Re: Prototype mutableArray savechanges error
Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: lock operation locked more than one row issue!
What ERPrototypes are you using? There is no set of MSSQLServer Prototypes, and the JDBC define java.lang.Integer attributes (id, intNumber, intBoolean, etc) as having an external type of INTEGER, which is not what SQL Server calls an Integer data type. It uses 'int'. Maybe that's it? Dave On May 27, 2009, at 3:18 PM, Fred Wells wrote: Here is one of my plist: { attributes = ( { allowsNull = Y; columnName = duration; name = duration; prototypeName = intNumber; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = durationIsDays; name = durationIsDays; prototypeName = charFlag; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = N; name = id; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = idForTemplate; name = idForTemplate; prototypeName = intNumber; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = instruction; name = instruction; prototypeName = varchar255; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = isActive; name = isActive; prototypeName = charFlag; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = isFirstTask; name = isFirstTask; prototypeName = charFlag; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = isLastTask; name = isLastTask; prototypeName = charFlag; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = name; name = name; prototypeName = varchar100; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = N; columnName = phaseID; name = phaseID; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = taskID; name = taskID; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = taskID1; name = taskID1; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = taskID2; name = taskID2; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = N; columnName = taskTypeID; name = taskTypeID; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = threshold; name = threshold; prototypeName = intNumber; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = thresholdIsDays; name = thresholdIsDays; prototypeName = charFlag; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = workflowTemplateID; name = workflowTemplateID; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = N; columnName = workgroupID; name = workgroupID; prototypeName = id; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = xCoordinate; name = xCoordinate; prototypeName = intNumber; userInfo = {_EntityModeler = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = yCoordinate; name = yCoordinate; prototypeName = intNumber; userInfo = {_EntityModeler = {generateSource = NO; }; }; } ); attributesUsedForLocking = ( duration, durationIsDays, id, idForTemplate, instruction, isActive, isFirstTask, isLastTask,
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:49 PM, Anjo Krank wrote: Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? You scolded me last time I said to not use mutable attributes and grumbled about the mutable prototype in Wonder being dangerous. Some non-sense like: But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. What is the point of making a mutable attribute if you can't use it as a mutable value? It just positively BEGS to be misused. This whole thread is evidence of that. There is no additional complication that I can see in using an immutable array: public void addBar(Bar bar) { setFoo(foo().mutableClone().addObject(bar)); } public void addBar(Bar bar) { setFoo(foo().arrayByAddingObject(bar)); } But you had some reason for wanting it to be a mutable instance. Some performance concern perhaps? Chuck No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
why don't we kill ERXMutableArray and just make ERXArray that you construct with another NSArray... make mutableClone on it just return NSMutableArray, so you can't mess up. ms On May 27, 2009, at 4:42 PM, Chuck Hill wrote: On May 27, 2009, at 12:49 PM, Anjo Krank wrote: Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? You scolded me last time I said to not use mutable attributes and grumbled about the mutable prototype in Wonder being dangerous. Some non-sense like: But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. What is the point of making a mutable attribute if you can't use it as a mutable value? It just positively BEGS to be misused. This whole thread is evidence of that. There is no additional complication that I can see in using an immutable array: public void addBar(Bar bar) { setFoo(foo().mutableClone().addObject(bar)); } public void addBar(Bar bar) { setFoo(foo().arrayByAddingObject(bar)); } But you had some reason for wanting it to be a mutable instance. Some performance concern perhaps? Chuck No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 2:00 PM, Mike Schrag wrote: why don't we kill ERXMutableArray and just make ERXArray that you construct with another NSArray... make mutableClone on it just return NSMutableArray, so you can't mess up. Not quite following that, but I did notice this in the ERXMutableArray docs: it is best if you use only List-methods when * extending List-methods and NSArray methods in other cases. Otherwise you will * most likely get into stack overflows. Which might explain Frank's original problem. Chuck On May 27, 2009, at 4:42 PM, Chuck Hill wrote: On May 27, 2009, at 12:49 PM, Anjo Krank wrote: Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? You scolded me last time I said to not use mutable attributes and grumbled about the mutable prototype in Wonder being dangerous. Some non-sense like: But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. What is the point of making a mutable attribute if you can't use it as a mutable value? It just positively BEGS to be misused. This whole thread is evidence of that. There is no additional complication that I can see in using an immutable array: public void addBar(Bar bar) { setFoo(foo().mutableClone().addObject(bar)); } public void addBar(Bar bar) { setFoo(foo().arrayByAddingObject(bar)); } But you had some reason for wanting it to be a mutable instance. Some performance concern perhaps? Chuck No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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/mschrag%40mdimension.com This email sent to msch...@mdimension.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/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
Am 27.05.2009 um 23:00 schrieb Mike Schrag: why don't we kill ERXMutableArray and just make ERXArray that you construct with another NSArray... make mutableClone on it just return NSMutableArray, so you can't mess up. The only reason ERXMutableArray exists is that is can be used as an attribute (previously it was also the only List implementation present, which is mutable and thus must inherit NSMutableArray) which is done by the normal EOAttribute serialization. If one could change this to use an actual factory, we wouldn't have that problem and it could be deleted (give or take a deprecation or two). I'm not really for changing it to ERXArray in the meantime... Cheers, Anjo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
I'm not really for changing it to ERXArray in the meantime... As it turns out i don't ACTUALLY care about this class, so this works out quite nicely ... 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 arch...@mail-archive.com
Classpath somehow different between develop and deploy?
I am having troubles, and I would like to share it with you, my fellow WA'ers (Webobjects Anonymous). I am sure without your support I will have serious relapses... I have to use some third party jars that are used to make a connection to a secure website, which is taken care of by an SSL connection with a certificate which is stored in a java keystore. (the java keychains that you can create with keytool). The class that uses this keystore knows which one to use it via a file called config.properties. The jar class that uses this data assumes the data is all available somewhere in the classpath: it is searching for this specific information via ClassLoader loader = Thread.currentThread().getContextClassLoader(); Enumeration p = loader.getResources(keystoreFile); as I found out via JD-GUI (great app!). I thought it might be a good idea to store the the keystores and the config file in Resources. I have added that file to the Resources too. Then I added the Resources folder as a class folder to the Library path of the application, so that it is available in the Java Build Path. In Development Everything works, the keystores get loaded, the connection is made and the whole world rejoices. Then I install the Application, and somehow it does not work any more. I tried to find out if the classpath that contained the configuration and the keystores were loaded, but I did not get any messages whatsoever about the classpath: This is the code I tried to find out the classpath: == ClassLoader classLoader = ClassLoader.getSystemClassLoader(); Util.log.info(\nClassPath Follows\n); URL[] urls = ((URLClassLoader) classLoader).getURLs(); for (int i = 0; i urls.length; i++) { Util.log.info(urls[i].toString() + \n); } == and this is the output. == ClassPath Follows May 27 23:13:38 WOIdealTestApp[2002] DEBUG IdealConnector - file:/ Library/WebObjects/Applications/WOIdealTestApp.woa/WOBootstrap.jar == WOLips 3.4.5800 Eclipse 3.5RC2. WebObject 5.4.3 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
Am 27.05.2009 um 23:49 schrieb Mike Schrag: I'm not really for changing it to ERXArray in the meantime... As it turns out i don't ACTUALLY care about this class, so this works out quite nicely ... Likewise :) And I understood that Chuck wanted to do something about this pressing matter... Cheers, Anjo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 3:12 PM, Anjo Krank wrote: Am 27.05.2009 um 23:49 schrieb Mike Schrag: I'm not really for changing it to ERXArray in the meantime... As it turns out i don't ACTUALLY care about this class, so this works out quite nicely ... Likewise :) And I understood that Chuck wanted to do something about this pressing matter... Cheers, Anjo It was the man trap / mutable prototype in ERPrototypes that I was grumbling about. Shall I delete it? :-P Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: lock operation locked more than one row issue! -- SOLVED
Two things, for some reason I thought that checking 'Generate source' in the Table view also was for the columns as well, not so. Also I'm not sure where the prototypes are from but the ones that just show up in Entity Modeler have some issues specifically with the number prototypes. Anyway after clearing those out and getting the data types to show up correctly everything is on. thanks everybody.-fwFrederick WellsMarketForward, a Publicis Groupe Company427 South LaSalle St.Chicago, Il 60605312.220.3056-David Avendasora webobje...@avendasora.com wrote: -To: Fred Wells fred.we...@marketforward.comFrom: David Avendasora webobje...@avendasora.comDate: 05/27/2009 03:33PMcc: Development WebObjects webobjects-dev@lists.apple.comSubject: Re: lock operation locked more than one row issue!What ERPrototypes are you using? There is no set of MSSQLServer Prototypes, and the JDBC define java.lang.Integer attributes (id, intNumber, intBoolean, etc) as having an external type of INTEGER, which is not what SQL Server calls an Integer data type. It uses 'int'. Maybe that's it?Dave On May 27, 2009, at 3:18 PM, Fred Wells wrote: Here is one of my plist:{ attributes = ( { allowsNull = Y; columnName = duration; name = duration; prototypeName = intNumber; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = durationIsDays; name = durationIsDays; prototypeName = charFlag; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = N; name = id; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = idForTemplate; name = idForTemplate; prototypeName = intNumber; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = instruction; name = instruction; prototypeName = varchar255; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = isActive; name = isActive; prototypeName = charFlag; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = isFirstTask; name = isFirstTask; prototypeName = charFlag; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = isLastTask; name = isLastTask; prototypeName = charFlag; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = name; name = name; prototypeName = varchar100; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = N; columnName = phaseID; name = phaseID; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = taskID; name = taskID; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = taskID1; name = taskID1; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = taskID2; name = taskID2; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = N; columnName = taskTypeID; name = taskTypeID; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = threshold; name = threshold; prototypeName = intNumber; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = thresholdIsDays; name = thresholdIsDays; prototypeName = charFlag; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = workflowTemplateID; name = workflowTemplateID; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = N; columnName = workgroupID; name = workgroupID; prototypeName = id; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = xCoordinate; name = xCoordinate; prototypeName = intNumber; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; }, { allowsNull = Y; columnName = yCoordinate; name = yCoordinate; prototypeName = intNumber; userInfo = {"_EntityModeler" = {generateSource = NO; }; }; } ); attributesUsedForLocking = ( duration, durationIsDays, id, idForTemplate, instruction, isActive, isFirstTask, isLastTask, name, phaseID, taskID, taskID1, taskID2, taskTypeID, threshold, thresholdIsDays, workflowTemplateID, workgroupID, xCoordinate, yCoordinate ); className = "com.marketforward.mundo.data.TemplateTask"; classProperties = ( destinationApprovalTasks, destinationRejectTasks, destinationTasks, duration, durationIsDays, idForTemplate, instruction, isActive, isFirstTask, isLastTask, name, phase, sourceApprovalTask, sourceRejectTask, sourceTask, taskType, threshold, thresholdIsDays, workflowTemplate, workgroup, xCoordinate, yCoordinate ); externalName = TemplateTask; fetchSpecificationDictionary = {}; name
Re: Classpath somehow different between develop and deploy? Solved?
On 28 mei 2009, at 00:10, Johan Henselmans wrote: I am having troubles, and I would like to share it with you, my fellow WA'ers (Webobjects Anonymous). I am sure without your support I will have serious relapses... It always helps to describe what your problem is. After I had described what the problem was I head a serious look at MacOSXServerClasspath.txt in the App.woa/Contents/MacOS folder. It noticed that the folder Resources was not available as class path, but APPROOT/Resources/Java/ was indeed. So I took the liberty of adding APPROOT/Resources/ to MacOSXServerClassPath.txt. That solved it, my resources were found, but that meant I would have to add this line every time I redeployed. (Remember the old java credo, Write Once Deploy Often?) Another way I found was to add a folder Java to the Resources folder in the Eclipse Projects, and moved the config files and the keystores from the Resources into the Resources/Java folder. During the deployment ant-task the stuff is now copied into APPROOT/ Resources/Java/, and so the java class finds the resources in its classpath. I am a bit worried about this solution, as it seems that the application jar is also added at the same location during deployment. Will one folder overwrite the other, so in future times this will lead to a partial install? Any chance that this will happen? How do other people add resources that a Java class assumes is somewhere available in a folder describe by the classpath? I have to use some third party jars that are used to make a connection to a secure website, which is taken care of by an SSL connection with a certificate which is stored in a java keystore. (the java keychains that you can create with keytool). The class that uses this keystore knows which one to use it via a file called config.properties. The jar class that uses this data assumes the data is all available somewhere in the classpath: it is searching for this specific information via ClassLoader loader = Thread.currentThread().getContextClassLoader(); Enumeration p = loader.getResources(keystoreFile); as I found out via JD-GUI (great app!). I thought it might be a good idea to store the the keystores and the config file in Resources. I have added that file to the Resources too. Then I added the Resources folder as a class folder to the Library path of the application, so that it is available in the Java Build Path. In Development Everything works, the keystores get loaded, the connection is made and the whole world rejoices. Then I install the Application, and somehow it does not work any more. I tried to find out if the classpath that contained the configuration and the keystores were loaded, but I did not get any messages whatsoever about the classpath: This is the code I tried to find out the classpath: == ClassLoader classLoader = ClassLoader.getSystemClassLoader(); Util.log.info(\nClassPath Follows\n); URL[] urls = ((URLClassLoader) classLoader).getURLs(); for (int i = 0; i urls.length; i++) { Util.log.info(urls[i].toString() + \n); } == and this is the output. == ClassPath Follows May 27 23:13:38 WOIdealTestApp[2002] DEBUG IdealConnector - file:/ Library/WebObjects/Applications/WOIdealTestApp.woa/WOBootstrap.jar == WOLips 3.4.5800 Eclipse 3.5RC2. WebObject 5.4.3 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ 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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Classpath somehow different between develop and deploy? Solved?
On May 27, 2009, at 4:35 PM, Johan Henselmans wrote: On 28 mei 2009, at 00:10, Johan Henselmans wrote: I am having troubles, and I would like to share it with you, my fellow WA'ers (Webobjects Anonymous). I am sure without your support I will have serious relapses... It always helps to describe what your problem is. After I had described what the problem was I head a serious look at MacOSXServerClasspath.txt in the App.woa/Contents/MacOS folder. It noticed that the folder Resources was not available as class path, but APPROOT/Resources/Java/ was indeed. So I took the liberty of adding APPROOT/Resources/ to MacOSXServerClassPath.txt. That solved it, my resources were found, but that meant I would have to add this line every time I redeployed. (Remember the old java credo, Write Once Deploy Often?) Another way I found was to add a folder Java to the Resources folder in the Eclipse Projects, and moved the config files and the keystores from the Resources into the Resources/Java folder. During the deployment ant-task the stuff is now copied into APPROOT/ Resources/Java/, and so the java class finds the resources in its classpath. I am a bit worried about this solution, as it seems that the application jar is also added at the same location during deployment. Will one folder overwrite the other, so in future times this will lead to a partial install? Any chance that this will happen? How do other people add resources that a Java class assumes is somewhere available in a folder describe by the classpath? Put them under Sources, I think. Chuck I have to use some third party jars that are used to make a connection to a secure website, which is taken care of by an SSL connection with a certificate which is stored in a java keystore. (the java keychains that you can create with keytool). The class that uses this keystore knows which one to use it via a file called config.properties. The jar class that uses this data assumes the data is all available somewhere in the classpath: it is searching for this specific information via ClassLoader loader = Thread.currentThread().getContextClassLoader(); Enumeration p = loader.getResources(keystoreFile); as I found out via JD-GUI (great app!). I thought it might be a good idea to store the the keystores and the config file in Resources. I have added that file to the Resources too. Then I added the Resources folder as a class folder to the Library path of the application, so that it is available in the Java Build Path. In Development Everything works, the keystores get loaded, the connection is made and the whole world rejoices. Then I install the Application, and somehow it does not work any more. I tried to find out if the classpath that contained the configuration and the keystores were loaded, but I did not get any messages whatsoever about the classpath: This is the code I tried to find out the classpath: == ClassLoader classLoader = ClassLoader.getSystemClassLoader(); Util.log.info(\nClassPath Follows\n); URL[] urls = ((URLClassLoader) classLoader).getURLs(); for (int i = 0; i urls.length; i++) { Util.log.info(urls[i].toString() + \n); } == and this is the output. == ClassPath Follows May 27 23:13:38 WOIdealTestApp[2002] DEBUG IdealConnector - file:/ Library/WebObjects/Applications/WOIdealTestApp.woa/WOBootstrap.jar == WOLips 3.4.5800 Eclipse 3.5RC2. WebObject 5.4.3 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ 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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing
Query - Path to WebServerResources
Hello, We have just re-deployed to our current development server, and the application is now resolving URL's to the Web Server (i.e. WebServerResources) differently. We are getting URLs like /app.woa/WebServerResources/... when we expect (and have previously got) .../app.woa/Contents/WebServerResources/... so it is no longer expecting a Contents directory (so now our images etc... do not resolve - they do if we copy the whole WebServerResources folder directly under the WOA folder) E.g. we have a logo defined in the WOD as: logo: WOImage { filename = images/logo.gif; width = 183; height = 56; } On the page this resolves as: http:// http://%3courURL%3e/WebObjects/%3courAPP%3e.woa/WebServerResources/images/l ogo.gif ourURL/WebObjects/ourAPP.woa/WebServerResources/images/logo.gif when we expect (and previously got): http:// http://%20%3courURL%3e/WebObjects/%3courAPP%3e.woa/Contents/WebServerResour ces/images/logo.gif ourURL/WebObjects/ourAPP.woa/Contents/WebServerResources/images/logo.gif Can someone shed some light on this - particularly how is the URL determined? Thanks, Peter Thompson ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Stable Installer Update (5744)
Note: Updates to the turnkey installer are happening much more frequently now as our semi-automated build system is in place. Updates are not set on a predetermined basis, but will be released according to frequency of core wolips updates. Along with the new stable version of WOLips (3.4.5744), a new mac turnkey installer is available (Leopard required), and consists of the following items: Eclipse 3.4.2 (Ganymede) WOLips 3.4.5744 (new stable) EOGenerator Templates Standalone Entity Modeler Wonder Frameworks, JAR Frameworks, Docs, RuleModeler FrontBase Database, Management Applications, Startup Item, JDBC Extension, and EOMBundle Launchd Scripts for JavaMonitor + wotaskd All items are the latest release, as of this evening about 10:22 PM More links: http://idisk.mac.com/jeremymatthews-Public/Eclipse+WOLips.zip?disposition=download+6674 Redundant link: http://sisuworks.com/files/Eclipse+WOLips.zip Since I no longer develop in WO on a routine basis, it'd be great if I got feedback on bugs or potential improvements. Thanks, jeremy ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com