Re: prevent the user to click again the same wo:hyperlink whilst page reloads?

2015-02-05 Thread Chuck Hill
Users are more certainly a general problem! :-) I am not aware of anything in WO or Wonder to prevent this. Usually processing is quick and re-clicking is of little consequence or easy to code around.. Just wait until you hit this with the AjaxModalDialog when they click on something in the

Re: [OT] .Net goes Open Source

2015-02-05 Thread Chuck Hill
I think he means there have not been a lot of new additions or work done on it lately. On 2015-02-05, 1:13 PM, Ken Anderson wrote: Nobody cares about WOnder anymore? You feeling OK Pascal? On Feb 5, 2015, at 4:11 PM, Pascal Robert prob...@macti.camailto:prob...@macti.ca wrote: I guess it

Re: [OT] .Net goes Open Source

2015-02-05 Thread Chuck Hill
@lists.apple.com [mailto:webobjects-dev-bounces+daniel.beatty=navy@lists.apple.com] On Behalf Of Pascal Robert Sent: Thursday, February 05, 2015 1:58 PM To: Chuck Hill Cc: webobjects-dev@lists.apple.commailto:webobjects-dev@lists.apple.com Subject: Re: [OT] .Net goes Open Source

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-05 Thread Chuck Hill
That does not look right. Everything should get awoken. Are you caching component references in instance variables or something crazy? Are you allying appendToResponse on a page that has not been awoken? Chuck On 2015-02-05, 7:58 AM, OC wrote: Hello there, looks like not even after all

Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist

2015-02-05 Thread Chuck Hill
I can think of a few off-the-wall reasons. 1. The EOF internal state somehow got scrambled. Good luck with that one! 2. Some other process (non-EOF) is connected to the database and had that row locked in a way that prevented it from being read 3. Some code changed the EODatabase

Re: ERXObjectStoreCoordinator can be locked twice?!?

2015-01-27 Thread Chuck Hill
I'd recommend gradual changes. Let's just move the log line and fix the ec creation for now. Chuck Hill Gevity Consulting Inc. Sent from my mobile device. On Jan 27, 2015, at 4:33 PM, OC o...@ocs.cz wrote: Chuck, On 28. 1. 2015, at 1:23, Chuck Hill ch...@gevityinc.com wrote

Re: ERXObjectStoreCoordinator can be locked twice?!?

2015-01-27 Thread Chuck Hill
This could just be a thread priority thing. When the first thread does the unlock, the second locks and proceeds and the println output to the log is delayed. Ive definitely see that with NSLog were the order of output from concurrent threads is sometimes out of sequence in the logs. That or

Re: ERXObjectStoreCoordinator can be locked twice?!?

2015-01-27 Thread Chuck Hill
Are you using this? /** * This class implements EOF stack pooling including EOF stack synchronizing. * It provides a special ERXEC.Factory in order to work without any changes in existing * applications. The number of EOObjectStoreCoordinators can be set with the * system Property

Re: ERXObjectStoreCoordinator can be locked twice?!?

2015-01-27 Thread Chuck Hill
On 2015-01-27, 3:28 PM, Ramsey Gurley wrote: On Jan 27, 2015, at 4:19 PM, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Are you using this? /** * This class implements EOF stack pooling including EOF stack synchronizing. * It provides a special ERXEC.Factory in order

Re: AjaxModalContainer

2015-01-27 Thread Chuck Hill
Hi Michael, Those errors don't help much. They suggest that one or more JavaScript files is not getting loaded. Look in your page source, you should see lines like this: script

Re: AjaxModalContainer

2015-01-23 Thread Chuck Hill
Those errors suggest that the supporting *.js files are not getting loaded in the browser. Are you running in Direct Connect or through a web server? Check the URLs in the page source. Chuck On 2015-01-23, 5:17 AM, Miguel Angerer wrote: Hello I planed to use one of the Ajax Examples in

Re: locking with more coordinators causes an exception?

2015-01-23 Thread Chuck Hill
Short answer: no, you should not be locking the object. I've never seen anyone take out a database lock like this. More below. On 2015-01-23, 6:32 AM, OC wrote: Hello there, in the same new log, I've bumped into another problem. My application uses WOAllowsConcurrentRequestHandling = true

Re: temporary invisible object in database?!?

2015-01-23 Thread Chuck Hill
I doubt that lockObject() code in EOF has been run in... maybe forever. It is highly possible that it is causing EOF to get confused and resulting in the errors below. Get rid of the lockObject() calls and see if the problem below goes away. Chuck On 2015-01-23, 7:01 AM, OC wrote: Hello

Re: weird direct action behaviour -- am getting mangled URL sometimes

2015-01-23 Thread Chuck Hill
You know, you really have excellent skills in finding very weird problems! :-) I can't think of where these would come from, other than a poorly written client. Are you using Ajax on the page? Is this something JS is doing? Chuck On 2015-01-23, 6:05 AM, OC wrote: Hello there, just

Re: locking with more coordinators causes an exception?

2015-01-23 Thread Chuck Hill
Hi, On 2015-01-23, 3:20 PM, OC wrote: Chuck, On 24. 1. 2015, at 0:09, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Short answer: no, you should not be locking the object. I've never seen anyone take out a database lock like this. OK, I'll try, thanks

Re: Wrong caching headers in browser

2015-01-23 Thread Chuck Hill
First guess would be your mod_expires configuration in Apache. Apache can, and will, override the headers that the app sends. http://httpd.apache.org/docs/2.2/mod/mod_expires.html Chuck On 2015-01-23, 5:21 PM, OC wrote: Hello there, in my image URL direct action, I set up caching headers in

Re: Wrong caching headers in browser

2015-01-23 Thread Chuck Hill
Curl looks right. This is what I am seeing in Safari: [cid:781F4D0B-0AD1-45AB-A2FB-35F1CC0DF717] On 2015-01-23, 6:00 PM, OC wrote: Chuck, On 24. 1. 2015, at 2:53, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: I know that I have had this happen to me before with resources

Re: Wrong caching headers in browser

2015-01-23 Thread Chuck Hill
that whatever version I was using a few years ago. Could there be some other proxy between your browser and the server? Chuck On 2015-01-23, 5:48 PM, OC wrote: P.S. On 24. 1. 2015, at 2:32, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: First guess would be your mod_expires

Re: wiki.wocommunity.org down

2015-01-21 Thread Chuck Hill
It works from Canada, must be the NSA onto you. :-) On 2015-01-21, 9:00 AM, Theodore Petrosky wrote: Markus, I just tried the learningthewonders.com site, and I can not get through. Safari can't find the server! Do you think this is a conspiracy? On 1/21/15 10:56 AM, Markus Ruggiero wrote:

Re: NPE in storedValueForKey?!?

2015-01-21 Thread Chuck Hill
I am pretty sure that Hugi is right here. On 2015-01-21, 6:04 AM, Hugi Thordarson wrote: Are you sure your object is in an editing context? Cheers, - hugi // Hugi Thordarson // http://www.loftfar.is/ // s. 895-6688 On 21. jan. 2015, at 14:01, OC o...@ocs.czmailto:o...@ocs.cz wrote: Hello

Re: wiki.wocommunity.org down

2015-01-21 Thread Chuck Hill
12:04 PM, Chuck Hill wrote: It works from Canada, must be the NSA onto you. :-) On 2015-01-21, 9:00 AM, Theodore Petrosky wrote: Markus, I just tried the learningthewonders.com site, and I can not get through. Safari can't find the server! Do you think this is a conspiracy? On 1/21/15 10:56

Re: need a popup button with categories

2015-01-21 Thread Chuck Hill
Go to the Open Type dialog in Eclipse (Option-shift-T) and type *Popup It should show ERXOptGroupPopupButton or something to that effect. Chuck On 2015-01-21, 12:22 PM, Theodore Petrosky wrote: before I start going to town, is there a popupbutton that already exists that allows for

Re: NPE in storedValueForKey?!?

2015-01-21 Thread Chuck Hill
I've got either a DBRecord or its related DBAuction with null EC due to some strange bug, but darn, it's weird :-O Thanks a lot, OC On 21. 1. 2015, at 18:26, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: I am pretty sure that Hugi is right here. On 2015-01-21, 6:04 AM, Hugi

Re: NPE in storedValueForKey?!?

2015-01-21 Thread Chuck Hill
(for it was newly created, which makes sense), and... a non-null EC. That all said, of course it is still possible I've got either a DBRecord or its related DBAuction with null EC due to some strange bug, but darn, it's weird :-O Thanks a lot, OC On 21. 1. 2015, at 18:26, Chuck Hill ch

Re: WOWODC 2015

2015-01-20 Thread Chuck Hill
Having a larger pond to fish in helps. :-) On 2015-01-20, 8:01 AM, Klaus Berkling wrote: On Jan 20, 2015, at 7:31 AM, Pascal Robert prob...@macti.camailto:prob...@macti.ca wrote: So far, only one organization in the US answered the annual survey, so I guess all North America dudes either

Re: multi-instance: orphaned fault

2015-01-20 Thread Chuck Hill
On 2015-01-20, 2:02 PM, OC wrote: Chuck, On 20. 1. 2015, at 20:19, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: I can’t think of a good solution either. This will happen without the synchronizer too, if a different instance deletes it. What would you want to happen

Re: Model/DB synchronization (was: Migrations (was: ERXSQLHelper))

2015-01-20 Thread Chuck Hill
On 2015-01-20, 3:51 AM, OC wrote: Chuck, On 14. 1. 2015, at 1:12, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Yes, modifying the database seems a little dangerous here. Why should it be? Just concerns around locking, multiple instances, and multiple versions. You seem

Re: wiki.wocommunity.org down

2015-01-20 Thread Chuck Hill
There was an unfortunate migration disaster. Pascal is waiting for guidance from the vendor. I am not aware of an alternative, other than https://archive.org/web/ which is a bit out of date. Chuck On 2015-01-20, 11:10 AM, Jeffrey Simpson wrote: When I go to the wiki.wocommunity.org I get

Re: multi-instance: orphaned fault

2015-01-20 Thread Chuck Hill
I can't think of a good solution either. This will happen without the synchronizer too, if a different instance deletes it. What would you want to happen? Chuck On 2015-01-20, 6:31 AM, OC wrote: Hello there, I've just bumped into a new problem. Unless I am doing something wrong, it does

Re: Aggregating ValidationExceptions in validateForSave()

2015-01-14 Thread Chuck Hill
IIRC, it should work like the first example, but it is possible that some code is creating the thrown exception incorrectly. The last code example is probably safe. Chuck On 2015-01-13, 9:36 PM, Paul Hoadley wrote: Hello, Just digging up a 12 year old thread on a different list here...

Re: Model/DB synchronization (was: Migrations (was: ERXSQLHelper))

2015-01-13 Thread Chuck Hill
Yes, modifying the database seems a little dangerous here. Take a look at our Virtual Tables framework: http://www.global-village.net/chill/gvc_frameworks Chuck On 2015-01-13, 3:55 PM, Ramsey Gurley wrote: On Jan 13, 2015, at 8:26 AM, OC o...@ocs.czmailto:o...@ocs.cz wrote: Well the gist is

Re: ERXSQLHelper

2015-01-12 Thread Chuck Hill
On 2015-01-12, 3:31 PM, OC wrote: Tim, On 12. 1. 2015, at 23:59, Timothy Worman li...@thetimmy.commailto:li...@thetimmy.com wrote: I don’t know how far you’ve dug - but just in case I’ll throw this out. One of the keys to how all this works is ERXSQLHelper sqlHelper =

Re: solved: EOCustomObject.storedValueForKey?!?

2015-01-11 Thread Chuck Hill
It should find it. Where / how did you add it? How are you telling that it was not added? Chuck On 2015-01-11, 10:37 PM, OC wrote: Probably found the culprit. I have added the appropriate attribute programmatically to the entity; and it seems that it was NOT added -- and therefore

Re: Practical WebObjects book ???

2015-01-09 Thread Chuck Hill
the pdf version. must be great to have those royalties rolling it! Authors usually only gets 10% of the revenue... On Jan 8, 2015, at 4:33 PM, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Perfect! Maybe we can open by having him sing one of Dempsey's songs? On 2015-01-08

Re: Long response page to hide page component generation time

2015-01-08 Thread Chuck Hill
The one problem you will run into is that the session and related ECs are not locked. You could refactor the page to take the user etc from other thread locals, pass them in and use localInstance EOs in an EC unique to the background thread. If you do that and don't touch session stuff in the

Re: Practical WebObjects book ???

2015-01-08 Thread Chuck Hill
There is an official PDF: http://www.apress.com/9781590592960 On 2015-01-08, 1:14 PM, Theodore Petrosky wrote: Was there (is there) a pdf version of this book. I have two copies (office and home), but they are too fragile to carry in my bag. If there were a PDF on the other hand. has

Re: Practical WebObjects book ???

2015-01-08 Thread Chuck Hill
: If you get Chuck to do it, I'll contribute! On Jan 8, 2015, at 4:21 PM, Lon Varscsak lon.varsc...@gmail.commailto:lon.varsc...@gmail.com wrote: How many beers will it take to get a book on tape version? -Lon On Thu, Jan 8, 2015 at 2:16 PM, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com

Re: ERXCopyable's Nullify in modelCopyRelationship()

2015-01-07 Thread Chuck Hill
Makes sense to me. David has worked on this most recently, he may have had a specific use case in mind for the null. Chuck On 2015-01-07, 9:54 AM, Ricardo Parada wrote: Hi David A., Chuck or anybody knowledgable about ERXCopyable, Since I started using Wonder I noticed that when an EO is

RE: FATAL Unlocking thread is not locking thread

2014-12-11 Thread Chuck Hill
a part here? Chuck From: OC o...@ocs.cz Sent: December 11, 2014 1:54:23 PM To: Chuck Hill Cc: webobjects-dev@lists.apple.com Subject: Re: FATAL Unlocking thread is not locking thread On 11. 12. 2014, at 14:37, OC o...@ocs.cz wrote: it was again caused

RE: FATAL Unlocking thread is not locking thread

2014-12-09 Thread Chuck Hill
It sounds like some code in a previous request locked the OSC and threw without an unlock in a finally block. Or an OutOfMemory exception prevented the unlock. How modern is your Wonder version? It could be a bug in Wonder. Unrelated, but for the sake of completeness, the calls to lock()

RE: Static objects in EC (was: multi-instance sync woes)

2014-12-07 Thread Chuck Hill
From: OC o...@ocs.cz Sent: December 7, 2014 5:55:02 PM To: Chuck Hill Cc: webobjects-dev@lists.apple.com Subject: Re: Static objects in EC (was: multi-instance sync woes) And back to the static objects... On 27. 11. 2014, at 18:35, OC o...@ocs.cz wrote: On 26. 11. 2014, at 0:57, Chuck Hill ch

Re: NSTimestamp

2014-12-02 Thread Chuck Hill
NSTimestampFormatter. Ignore the deprecation. Chuck Hill Gevity Consulting Inc. Sent from my mobile device. On Dec 2, 2014, at 5:49 PM, Thomas LATTER latter...@gmail.com wrote: Hi, what is the simplest way these days to convert a string or Date to NSTimestamp ? I can't seem to use

Re: Objects disappeared (was: Static objects in EC (was: multi-instance sync woes))

2014-12-02 Thread Chuck Hill
On Dec 2, 2014, at 12:02 PM, OC o...@ocs.cz wrote: Chuck, thanks a lot, but don't please let my problems spoil your vacation :) On 2. 12. 2014, at 4:11, Chuck Hill ch...@gevityinc.com wrote: The list of objects to get certain operation (e.g. Insert, delete,etc) is stored

RE: Objects disappeared (was: Static objects in EC (was: multi-instance sync woes))

2014-12-01 Thread Chuck Hill
they got into the Deleted list. That seems very odd but might be possible. I am on vacation and so basing this just on memory. Chuck From: OC o...@ocs.cz Sent: November 29, 2014 1:28:08 PM To: Chuck Hill Cc: webobjects-dev@lists.apple.com Subject: Objects

Re: multi-instance sync woes

2014-11-25 Thread Chuck Hill
ago -- but perhaps I'm just dumb and blind, or my google-fu is terribly lacking, but whatever I do, I can't find a good solution? Will be really grateful for any advice, OC Chuck Chuck Hill, BSc Senior Managing Partner Information Technology Services – Development Gevity Consulting, Inc. E: ch

Re: Now to suppress excess logs at: multi-instance sync woes

2014-11-25 Thread Chuck Hill
long time. Is there a way to suppress this log? Not only it clutters the log files, but it's long enough to make the application perceptibly slower. Thanks a lot, OC On 25. 11. 2014, at 19:11, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: (b) concurrent inserts This problem

Re: multi-instance sync woes

2014-11-25 Thread Chuck Hill
On 2014-11-25, 10:38 AM, OC wrote: Chuck, thanks a very big lot! On 25. 11. 2014, at 19:11, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: There are no simple solutions. You need to be aware of where this can happen in your app and code for it. A thorough refactoring

Re: SQL Server plugin framework

2014-11-25 Thread Chuck Hill
On 2014-11-25, 1:12 PM, Ress, David A wrote: Good afternoon, My current question is a development issue: I am using SQL Server and I cannot seem to find its plugin framework within the latest Wonder builds listed at https://github.com/wocommunity/wonder. Could someone please tell me where I

Re: multi-instance sync woes

2014-11-25 Thread Chuck Hill
Hi, On 2014-11-25, 2:15 PM, OC wrote: Chuck, === ... code as above ... if (ocs_is_primary_key_constraint(exception) adaptorOp.adaptorOperator()==EODatabaseOperation.AdaptorInsertOperator) { NSArray pka=entity.primaryKeyAttributes() EOQualifier

Re: Now to suppress excess logs at: multi-instance sync woes

2014-11-25 Thread Chuck Hill
On 2014-11-25, 2:03 PM, OC wrote: Chuck, On 25. 11. 2014, at 21:45, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: That comes from Wonder, that message is logged from either ERXEOAccessUtilities or ERXTolerantSaver. It is trying to process the thrown exception

Re: multi-instance sync woes

2014-11-25 Thread Chuck Hill
On 2014-11-25, 3:02 PM, OC wrote: Chuck, On 25. 11. 2014, at 23:32, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Interesting. I think your setting of the PK is confusing EOF as it identifies objects with a combination of Entity and PK. So you have one EO in memory

Re: Static objects in EC (was: multi-instance sync woes)

2014-11-25 Thread Chuck Hill
On 2014-11-25, 3:22 PM, OC wrote: Oh, by the way... On 26. 11. 2014, at 0:03, OC o...@ocs.czmailto:o...@ocs.cz wrote: It is an ancient and rather convoluted code whose purpose was more-or-less to simulate a shared editing context, which -- can't recall clearly now -- either was buggy then, or

Re: Copy EO. Practical Utilities?

2014-11-18 Thread Chuck Hill
Yes, that is a typo On 2014-11-18, 9:55 AM, James Cicenia wrote: Looked at the ERXCopyable... implemented the copy method with some simplifications and help from Practical WebObjects book. PS: There is a typo in the code on page 244 If (original != null) // wrong if(relatedObject!=null)

Re: Own and Propagate

2014-11-17 Thread Chuck Hill
Are you creating a Config in your code? EOF will create it for you. If you create it in code, you end up with two, one of which is disconnected. Chuck On 2014-11-17, 11:00 AM, James Cicenia wrote: I am trying to use the own and propagate attributes on my model. I have a relationship

Re: Own and Propagate

2014-11-17 Thread Chuck Hill
save without touching the owned relationship app.editingContext().saveChanges(); And I get the SQL error about no appID being set. I have appID set as mandatory in the config table. On Nov 17, 2014, at 1:08 PM, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Are you creating

Re: D2W propertyKey question

2014-11-14 Thread Chuck Hill
Key vs KeyPath? On 2014-11-14, 1:41 PM, James Cicenia wrote: I have an App object. I have a method in App: public AppConfigIOS iosAppConfig(){ //lazily create an instance of AppConfigIOS } how come I get an error in my rule for tabSectionContents with: iosAppConfig.certPassword It

Re: WO Crashs while trying to set a boolean property used in a wo:if

2014-11-13 Thread Chuck Hill
This is part of binding synchronization: at com.webobjects.appserver.WOComponent._doPushValuesUp(WOComponent.java:558) at com.webobjects.appserver.WOComponent.pushValuesToParent(WOComponent.java:535) You can either implement the setter or turn off automatic synchronization. Chuck On

Re: WO Crashs while trying to set a boolean property used in a wo:if

2014-11-13 Thread Chuck Hill
-synchronizing or non-stateless-synchronizing. But it seems to be a 2x2 matrix. C.U.CW -- The three great virtues of a programmer are Laziness, Impatience and Hubris. (Randal Schwartz) On 13.11.2014, at 21:27, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: This is part of binding

Re: Component caching?

2014-11-10 Thread Chuck Hill
a basic debugging version and use that instead to see what is going on. Thanks, Mark On 7 Nov 2014, at 21:28, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Could it be this? public boolean isPageRefreshOnBacktrackEnabled() Returns whether caching of pages is disabled

Re: Component caching?

2014-11-07 Thread Chuck Hill
Could it be this? public boolean isPageRefreshOnBacktrackEnabled() Returns whether caching of pages is disabled in the client. If it is, the client does not restore request pages from its cache but re-creates them from scratch by resending the URL to the server. This flag is set to true by

Re: Can't find Framework

2014-11-03 Thread Chuck Hill
Probably path or directory related. WOLips is installed? Running it as a WOApp not a Java app? What is the working directory? You don't have bundles turned on, do you? On 2014-11-03, 10:03 AM, James Cicenia wrote: I have a nice new laptop. Started back on a project I pulled from my repo.

Re: external width for attribute?

2014-10-27 Thread Chuck Hill
It is just eo.entity().attributeNamed(foo).width() On 2014-10-26, 8:51 PM, Klaus Berkling wrote: Is there a way to get the external width of an entity attribute as specified in the model? This might be a useful addition to the entity template/entity class generation if it's not otherwise

Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]

2014-10-26 Thread Chuck Hill
and wotaskd daemons running. Tom On Aug 12, 2014, at 11:04 PM, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: You don't need wotaskd (at the cost of instant reconfiguration) and you are not dependant on having mod_webobjects compiled for the Apache version and platform

Re: Eclipse Luna (4.4.1) and WOLips: so close

2014-10-21 Thread Chuck Hill
You were looking for WO work earlier... ;-) On 2014-10-21, 7:26 AM, Hugi Thordarson wrote: I wonder if we could pay someone that already knows how to develop WOLips to create a screencast (or good instructions on any other format) on how to get started working with developing it. Throw a man

Re: Eclipse Luna (4.4.1) and WOLips: so close

2014-10-21 Thread Chuck Hill
Hi Paul, Did you try these instructions? https://github.com/swklein/wolips/blob/master/README.md Chuck On 2014-10-21, 4:24 PM, Paul Hoadley wrote: Hi Samuel, On 22 Oct 2014, at 5:47 am, Samuel Pelletier sam...@samkar.commailto:sam...@samkar.com wrote: I wrote about this problem in the

Re: Eclipse Luna (4.4.1) and WOLips: so close

2014-10-20 Thread Chuck Hill
Does the Error Log view give a stack trace for the exception? On 2014-10-20, 6:07 PM, Paul Hoadley wrote: On 19 Oct 2014, at 9:05 am, Paul Hoadley pa...@logicsquad.netmailto:pa...@logicsquad.net wrote: On 19 Oct 2014, at 1:04 am, Gino Pacitti ginok...@mac.commailto:ginok...@mac.com wrote:

Re: Eclipse Luna (4.4.1) and WOLips: so close

2014-10-20 Thread Chuck Hill
2014, at 11:40 am, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: Does the Error Log view give a stack trace for the exception? I wondered where the log output was going. Err, short answer yes, something seems to be going to the Error Log view, but the longer answer

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-10-10 Thread Chuck Hill
of ERXEC.DefaultFactory and override _createEditingContext() in it, to return a ForgetfulEC Install my factory using ERXEC.setFactory() Anything else? Thanks John On 9 Oct 2014, at 17:27, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: First question, are you using JavaClient

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-10-09 Thread Chuck Hill
are about once every two months so will have to wait. On 11 Sep 2014, at 23:04, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: You are going to grow hair on your palms doing this but... willRead(); Object value = __dictionary().valueForKey(your attribute); Should, I

Re: Data model suggestions...

2014-10-06 Thread Chuck Hill
I think Flavio’s question was more of how to model this so that the configurations were not hard-coded in Java. I don’t have an immediate answer, but it is an interesting modelling problem. Chuck On 2014-10-06, 11:49 AM, Ramsey Gurley wrote: On Oct 6, 2014, at 11:16 AM, Flavio Donadio

Re: Data model suggestions...

2014-10-06 Thread Chuck Hill
Have you considered a business rules engine? Have a look at some of these http://java-source.net/open-source/rule-engines Would a rules engine solve your problem? Chuck On 2014-10-06, 1:57 PM, Flavio Donadio wrote: On 06/10/2014, at 16:51, Chuck Hill ch...@global-village.netmailto:ch

Re: Primary keys

2014-10-02 Thread Chuck Hill
On 2014-10-02, 10:45 AM, Mark Wardle wrote: Thanks Ted, that is interesting. Unfortunately, the existing primary key is used in joins from other tables so I think it will need to be a multi-step procedure. Take home message for me is never ever have primary keys with any kind of meaning,

Re: URGENT help needed: app simply stopped working (sort of)

2014-09-30 Thread Chuck Hill
On 2014-09-30, 1:49 AM, Markus Ruggiero wrote: On 29.09.2014, at 22:35, Mailinglists mailingli...@kataputt.commailto:mailingli...@kataputt.com wrote: Why should Apache be the culprit? Direct connect bypasses Apache. Connecting directly to port 2001 does not change a thing. And monitor as well

Re: URGENT help needed: app simply stopped working (sort of)

2014-09-29 Thread Chuck Hill
This sounds like what can happen if there is an exception very early in the R-R loop (maybe very late too). Are you getting a standard 200 response or a 500? Did the Java version change? You might need to start instrumenting and getting your app to use subclasses of WOWorkerThread and

Re: URGENT help needed: app simply stopped working (sort of)

2014-09-29 Thread Chuck Hill
But Marcus said, The same happens whether I connect through Apache or directly to port 2001.” — that should rule out Apache as the issue. And if it was Apache, I’d expect a 404 or 500 response. Chuck On 2014-09-29, 11:53 AM, Timothy Worman wrote: This. Apple’s update likely changed your

Re: URGENT help needed: app simply stopped working (sort of)

2014-09-29 Thread Chuck Hill
A couple of other thoughts: Monitor and wotaskd working suggest that the issue is not in WO itself or in Wonder. That you app is talking to monitor/wotaskd shows that it is accepting connections. So it is the standard direct or component action that is causing problems. That would lead me

Re: Shellshock and mod_webobjects

2014-09-25 Thread Chuck Hill
mod_webobjects does not runs scripts so you should be good. Chuck On 2014-09-25, 11:21 AM, Ramsey Gurley wrote: Does anyone know if the mod_webobjects module has similar issues to mod_cgi with regards to the Shellshock vulnerability? I’ve disabled mod_cgi as a precaution since WO seems to

Re: Shellshock and mod_webobjects

2014-09-25 Thread Chuck Hill
Better safe than hacked, I say! On 2014-09-25, 11:29 AM, Ramsey Gurley wrote: Thanks Chuck. I assumed this was the case, but it never hurts to ask :) On Sep 25, 2014, at 11:27 AM, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: mod_webobjects does not runs scripts so

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-09-12 Thread Chuck Hill
. These intermittents are about once every two months so will have to wait. On 11 Sep 2014, at 23:04, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: You are going to grow hair on your palms doing this but… willRead(); Object value = __dictionary().valueForKey(“your

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-09-12 Thread Chuck Hill
by clearProperties() in the same way. On 11 Sep 2014, at 22:54, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: That might not give you what you want. committedSnapshot is set when the object is first mutated. If you if the value is changed like: null - B - null Then this won’t

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-09-11 Thread Chuck Hill
That might not give you what you want. committedSnapshot is set when the object is first mutated. If you if the value is changed like: null - B - null Then this won’t log what is desired. Chuck On 2014-09-11, 12:28 PM, Theodore Petrosky wrote: I have used the @Override public void

Re: EOCustomObject valueForKey avoiding infinite recursion

2014-09-11 Thread Chuck Hill
You are going to grow hair on your palms doing this but… willRead(); Object value = __dictionary().valueForKey(“your attribute”); Should, I think, do what you want. Of course, it is package protected so you will need to use reflection to get access. And the result may be null if the object

Re: WOCompile/ant class loader issue

2014-09-04 Thread Chuck Hill
Hi Tim, Trying running ant with –verbose –debug That missing class is obviously part of Ant, so it should not be missing. Either it is finding something else on the class path (and running with –verbose –debug should let you see that), or some exception is getting caught and mis-reported.

Re: How to fetch an entity from an id ?

2014-08-20 Thread Chuck Hill
It is in EOUtilities static EOEnterpriseObject objectWithPrimaryKey(EOEditingContext ec, String entityName, NSDictionary pkDict) Fetches the Enterprise Object identified by the specified primary key dictionary. On 2014-08-20, 12:07 PM, Fred Opims wrote: Thank you John! I've used

Re: WOPort ?

2014-08-20 Thread Chuck Hill
-DWOPort=1234 or –WOPort 1234 On 2014-08-20, 7:09 PM, Theodore Petrosky wrote: Is there a way to set the port as a property? I googled and there were a few references to adding a line WOPort=51234. I’ve tried it but it doesn’t take. Is there a property for WOPort? Ted

Re: eclipse 4.4 server IP

2014-08-19 Thread Chuck Hill
Set –WOHost to localhost? On 2014-08-19, 8:01 AM, Theodore Petrosky wrote: yes, I saw that. however, in the past, I left that alone and I could use the local loopback address for me, and then the internal IP to people that i wanted to have looking at my progress. Then there is the issue of

Re: eclipse 4.4 server IP

2014-08-19 Thread Chuck Hill
to work. Any other ideas ?? OS X Mavericks eclipse 4.4 Ted On Aug 19, 2014, at 11:56 AM, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: Set –WOHost to localhost? On 2014-08-19, 8:01 AM, Theodore Petrosky wrote: yes, I saw that. however, in the past, I left that alone

Re: subclassing an Entity

2014-08-18 Thread Chuck Hill
What Ramsey said: your implementation is a Really Bad Idea (tm). This is a state not a sub-type. On 2014-08-18, 1:17 PM, Ramsey Gurley wrote: Sounds like you’re about to shoot yourself in the foot :) I really wouldn’t subclass here. If is_important can change, that’s a bad idea. It sounds

Re: Kill hung instances

2014-08-14 Thread Chuck Hill
It depends on how hung it is. If you scroll down to the bottom of the config page for an instance, there is a Force Quit button. But that relies on the app being responsive to admin requests. If there are no worker threads available, it won’t work. And and I don’t think it can kill the app

Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]

2014-08-12 Thread Chuck Hill
You don’t need wotaskd (at the cost of instant reconfiguration) and you are not dependant on having mod_webobjects compiled for the Apache version and platform that you are using. Chuck On 2014-08-12, 7:05 PM, Michael Kondratov wrote: What makes mod proxy better than apache adapter?

Re: Yosemite

2014-08-05 Thread Chuck Hill
I’d take a long, hard look at moving to mod_proxy and ending this dependance on third party Apache plugins. Unless your configuration changes frequently this seems like a better choice. Chuck On 2014-08-05, 9:08 AM, Mark Wardle wrote: Yosemite upgrades Apache from 2.2 and 2.4. I’ve tried

Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]

2014-08-05 Thread Chuck Hill
, it absolutely works. Chuck On 2014-08-05, 4:22 PM, Paul Hoadley wrote: Hi Chuck, On 6 Aug 2014, at 2:27 am, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: I’d take a long, hard look at moving to mod_proxy and ending this dependance on third party Apache plugins

Re: Sharing an EO model between applications... ?

2014-07-22 Thread Chuck Hill
-Problems http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Caching+and+Freshness Chuck -- Chuck Hill Executive Managing Partner, VP Development and Technical Services Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who

Re: EO*Qualifier implements equals() but not hashcode()

2014-07-18 Thread Chuck Hill
That is a favorite interview question. :-) On Jul 18, 2014, at 4:00 PM, Ramsey Gurley rgur...@smarthealth.com wrote: Just a note. ERXArrayUtilities.distinct doesn’t work on an array of EOOrQualifiers because the qualifier classes implement equals without implementing hashcode. sigh...

Re: Accessing a framework's resources in WOUnit tests

2014-07-14 Thread Chuck Hill
specifically in addition to that. Accessing any class of these frameworks from plain Java code works fine though. Maik Am 11.07.2014 um 19:46 schrieb Chuck Hill ch...@global-village.netmailto:ch...@global-village.net: Hi Maik, You mis-understood what I say. It uses the current working directory

Re: Accessing a framework's resources in WOUnit tests

2014-07-11 Thread Chuck Hill
/JavaXML.framework Using Framework NSBundle JavaEOProject on path file:/System/Library/Frameworks/JavaEOProject.framework Using Framework NSBundle JavaWOJSPServlet on path file:/System/Library/Frameworks/JavaWOJSPServlet.framework Maik Am 10.07.2014 um 19:31 schrieb Chuck Hill ch...@global

Re: Application directory path not found.

2014-07-10 Thread Chuck Hill
. What is the recommended toolset? Ted On Jul 9, 2014, at 5:16 PM, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote: Please keep all replies on the list. On 2014-07-09, 1:02 PM, Pawan Tiwari wrote: But the same project works on eclipse europa 3.3.2 version. Can I

Re: build directory path is not working

2014-07-10 Thread Chuck Hill
Please provide us full and total details of the launch configuration. Screenshots would be best. Chuck On 2014-07-10, 8:30 AM, Pawan Tiwari wrote: Hi, Now i have migrate from WebObjects 5.2.4 to WebObjects 5.4.3 using on Eclipse Indigo 3.7 ,when when we create a new woapplication

Re: Accessing a framework's resources in WOUnit tests

2014-07-10 Thread Chuck Hill
NSBundle uses the current working directory as a base to locate the bundles. That is one thing to check. For frameworks, I think this needs to be My.framework/Resources/Java Chuck On 2014-07-09, 11:49 PM, Musall Maik wrote: Hi, thanks for the suggestion. Turns out that none of my

Re: build directory path is not working

2014-07-10 Thread Chuck Hill
Please respond to the list, not me. What is on the Arguments and Classpath tabs? Chuck On 2014-07-10, 10:34 AM, Pawan Tiwari wrote: Hi, PFA for screenshot of WOLipse launch. an On Thu, Jul 10, 2014 at 10:52 PM, Chuck Hill ch...@global-village.netmailto:ch...@global-village.net wrote

<    1   2   3   4   5   6   7   8   9   10   >