builds failing in Eclipse 3.6
All: I could use some tips about how to troubleshoot ant build problems. I'm sure this has to do with the fact that I've updated to Eclipse 3.6. I'm running the cocoa 64-bit version. I haven't been able to build any apps this evening. I'm using the conventional method: right-click on build.xml Run As Ant Build I've never run into build problems failures like this so I've never had to look into something like this. I switched back to Eclipse 3.5 to build my apps. Tim Worman UCLA GSEIS ___ 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: Stuck on long response page... IE
is the ajax variety pretty much a drop in replacement for the old hat one ? what about locking issues ? ERXWOLongResponsePage does some funky stuff around ec locking - i guess with the ajax variety you're on your own ? simon On 18 May 2010 03:12, Kieran Kelleher kieran_li...@mac.com wrote: Instead of a traditional LongResponse page try using a GenericAjaxLongResponsePage page that has an AjaxProgress component on it to monitor the task and a 'finishedFunction' binding on that to execute the nextPage action when task is done. That's MOL what I do nowadays. HTH, Kieran On May 17, 2010, at 7:57 AM, Simon wrote: hi all - our apps use long response pages all over the shop, and we've had a few reports of users getting stuck on them. after mucho debugging we've discovered that wonderful IE (7+) has an option to disable meta refresh, and various reports on the intertubes that it's disabled by default in various versions. i normally get annoyed with IE browsers wanting to warn about every minor glitch on a page (HEY, just in case you're interested there is a js variable undefined on this page that you're never gonna use, but i thought i'd tell you about it anyway, just to get in the way and make your life a little less productive. ok?), but with this one IE does just the opposite: nothing at all. you hit the long response page and sit there... anyway, i've been googling around for solutions and turned up nothing. i guess the options are either to detect they have it turned off (which appears to be impossible), or use another form of refresh. anyone bumped into this one before ? any hints on solutions ? thanks, simon ___ 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/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: builds failing in Eclipse 3.6
I wasn't trying to be vague. I'm honestly not seeing much of anything in Eclipse. It starts to run, then says terminated almost immediately. There is nothing in the console. I'm sure it's something I should be able to solve which is why I tried to focus my question on how I can troubleshoot better. :-) Tim Worman UCLA GSEIS On May 18, 2010, at 12:58 AM, Mike Schrag wrote: build errors Read: I had a problem but I'm going to keep the details secret. Mu ha ha Sent from my iPhone On May 18, 2010, at 2:00 AM, Tim Worman li...@thetimmy.com wrote: All: I could use some tips about how to troubleshoot ant build problems. I'm sure this has to do with the fact that I've updated to Eclipse 3.6. I'm running the cocoa 64-bit version. I haven't been able to build any apps this evening. I'm using the conventional method: right-click on build.xml Run As Ant Build I've never run into build problems failures like this so I've never had to look into something like this. I switched back to Eclipse 3.5 to build my apps. Tim Worman UCLA GSEIS ___ 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%40pobox.com This email sent to msch...@pobox.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: builds failing in Eclipse 3.6
Hi Tim, I don't see this behavior with 3.6. When I do the same on a project I've never built this way before (I use Hudson - it's just too awesome) it does fail, but with error messages in the console saying it can't find ERExtensions because I don't have the compiled Wonder frameworks anywhere (see: I use Hudson). 1) Is the build.xml file a stock one or do you have modifications? 2) Can you paste the contents of your build.properties file here? 3) What are the contents of the Eclipse Menu - Preferences - WOLips - Build - WOLips Properties File setting? 4) If #3 isn't blank, what are the contents of that file? Dave I wasn't trying to be vague. I'm honestly not seeing much of anything in Eclipse. It starts to run, then says terminated almost immediately. There is nothing in the console. I'm sure it's something I should be able to solve which is why I tried to focus my question on how I can troubleshoot better. :-) Tim Worman UCLA GSEIS On May 18, 2010, at 12:58 AM, Mike Schrag wrote: build errors Read: I had a problem but I'm going to keep the details secret. Mu ha ha Sent from my iPhone On May 18, 2010, at 2:00 AM, Tim Worman li...@thetimmy.com wrote: All: I could use some tips about how to troubleshoot ant build problems. I'm sure this has to do with the fact that I've updated to Eclipse 3.6. I'm running the cocoa 64-bit version. I haven't been able to build any apps this evening. I'm using the conventional method: right-click on build.xml Run As Ant Build I've never run into build problems failures like this so I've never had to look into something like this. I switched back to Eclipse 3.5 to build my apps. Tim Worman UCLA GSEIS ___ 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%40pobox.com This email sent to msch...@pobox.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/webobjects%40avendasora.com This email sent to webobje...@avendasora.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
Content Assist
Starting to like WOLips.. but a few hints needed.. How do I get code assist working? I saw a movie called Tiny Ajax App and it showed key phrases being clicked on and types being entered for variable names and methods? Is there a template area that modifies the DOC DTD? Any useful links to documentation welcome... Gino ___ 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: Content Assist
On May 18, 2010, at 7:47 AM, Gino Pacitti wrote: Starting to like WOLips.. but a few hints needed.. How do I get code assist working? I saw a movie called Tiny Ajax App and it showed key phrases being clicked on and types being entered for variable names and methods? Is there a template area that modifies the DOC DTD? Any useful links to documentation welcome... If you did not change the defaults, content assists activates when typing a dot '.' or when you press ctrl-space Have a look at the preferences and filter by 'assist' HG ___ 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: Ajax uploader
Wonder - latest release - I use source. You can download binary builds here: http://wiki.objectstyle.org/confluence/display/WONDER/Easy+Binary+Download+and+Install I develop for java 1.5 compatability and deploy on java 1.5 and java 1.6 nowadays. -Kieran On May 18, 2010, at 1:56 AM, ute Hoffmann wrote: It is wonder 4, is it? Not Wonder 3? Thanks for the advice. I'm prepared to move to Java 1.5 (is it 1.5 or 1.6) and wonder4, if I get a file uploader with a progress bar all working... :-) Am 17.05.2010 um 12:20 schrieb Kieran Kelleher: Use the new AjaxFlexibleFileUpload. Just drop it on the page and bind the same few bindings that you did in the old days for WoFileUpload such as filePath, finalFileName, streamToFilePath, etc. Try it, it just works very nicely and does the upload in a separate iframe. On May 17, 2010, at 12:07 AM, ute Hoffmann wrote: Hi, a short question: is the wonder ajax file uploader non-blocking, can I open it in a popup and will it work non-blocking while the user does something different in the main window? Or do I need to use the non-blocking file uploader I found to archieve what I need. I plan to stream the files to disk, if that makes a difference. Is there a working sample how to implement the process-bar for the ajax file upload? The example stops where my questions start. Regards, Ute ___ 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/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Content Assist
Did you look at all the podcasts here? http://www.wocommunity.org/webobjects_screencasts.html Starting to like WOLips.. but a few hints needed.. How do I get code assist working? I saw a movie called Tiny Ajax App and it showed key phrases being clicked on and types being entered for variable names and methods? Is there a template area that modifies the DOC DTD? Any useful links to documentation welcome... Gino ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ 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: Stuck on long response page... IE
While I use autolocking ECs in R-R logic, I never use autolocking ECs in any of my background tasks, just manual-locking ECs and plain old ec.lock/try/finally/ec.unlock - so always on my own there ;-) I only pass EOGlobalIDs to background tasks - so I don't have locking issues. I create all tasks as simple Callables (if I want to return a result) or Runnables (no result) and I use the java.util.concurrent Executor stuff for thread execution. HTH, Kieran On May 18, 2010, at 2:53 AM, Simon wrote: is the ajax variety pretty much a drop in replacement for the old hat one ? what about locking issues ? ERXWOLongResponsePage does some funky stuff around ec locking - i guess with the ajax variety you're on your own ? simon On 18 May 2010 03:12, Kieran Kelleher kieran_li...@mac.com wrote: Instead of a traditional LongResponse page try using a GenericAjaxLongResponsePage page that has an AjaxProgress component on it to monitor the task and a 'finishedFunction' binding on that to execute the nextPage action when task is done. That's MOL what I do nowadays. HTH, Kieran On May 17, 2010, at 7:57 AM, Simon wrote: hi all - our apps use long response pages all over the shop, and we've had a few reports of users getting stuck on them. after mucho debugging we've discovered that wonderful IE (7+) has an option to disable meta refresh, and various reports on the intertubes that it's disabled by default in various versions. i normally get annoyed with IE browsers wanting to warn about every minor glitch on a page (HEY, just in case you're interested there is a js variable undefined on this page that you're never gonna use, but i thought i'd tell you about it anyway, just to get in the way and make your life a little less productive. ok?), but with this one IE does just the opposite: nothing at all. you hit the long response page and sit there... anyway, i've been googling around for solutions and turned up nothing. i guess the options are either to detect they have it turned off (which appears to be impossible), or use another form of refresh. anyone bumped into this one before ? any hints on solutions ? thanks, simon ___ 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/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ?? about opportunistic locking...
Hi! I see the point of your solution (doing whatever has to be done as soon as possible), but like Mike, I believe it has many problems: 1) Your delegate works for situations where different attributes of the same object are modified by different threads. You merge the changes made by the first thread into the second thread EC, and when you finally save, you have the object with all the changes applied. But what about the situation where both threads changed the same attribute? On the example I sent you some days ago, the attribute is a sort-of counter, so the final value depends on the initial one. If you ignore the changes made by other threads, you will be corrupting your logic. You need to be notified in the most catastrophic way possible that you WILL corrupt data if you save. Of course, you could write a specific delegate for that, but... 2) ... as said, your delegate can not throw an exception in the correct thread, which would be the best way to tell you to stop whatever you are doing and start all over again. So I add my voice to Mike's and I ask again, how can you make the second thread be notified of the problem? :) 3) You *still* have to deal with inter-instances OL exceptions, and write code for that. Why write two pieces of code in different places to do the same thing? :) 4) All this depends a lot on what you are trying to do. In Survs, for instance, there are some situations where we read a lot of objects, process them, and save them. This has to be done with all the possible guarantees that no other thread or instance is modifying the same values. The logic is so complex that I simply don't care about dealing gracefully with this. If it fails, I throw it all away and try to do everything again. So, I still would need that exception, or any other mechanism that prevented me from saving (and, by consequence, corrupting) my data. 5) Even if the delegate has some way of throwing the exception in the correct thread, you would have to be ready to catch that exception during the whole EC's existence and not only during the saving. That would lead to more complex code and error handling. And, BTW, another detail for the most curious readers... Application.Application: C1 1274149686265 Application.Application: C2 1274149686265 If this attribute was an integer or long (with the timestamp, for instance) and not a string, in this specific situation, the second commit would not produce any SQL statement. Why? :) Yours Miguel Arroz On 2010/05/18, at 03:33, Mark Ritchie wrote: Hey Mike! On 17/May/2010, at 4:24 PM, Mike Schrag wrote: so here's your challenge ... make this fail with an optimistic lock exception when EC2 saves (which is what would happen if EC1 was in another instance): But that's the point... When an EO in your application changes, you are notified via the delegate! You don't have to wait until you try to saveChanges and get the exception. I agree with what others have posted recently on this topic, getting notified of a collision at the earliest point is much preferred! As to the rest of it, I think that you're making it way too complicated... My delegate works just fine at caching the changes and applying them later: MarksDelegate.java This is what I've used in the past (since ObjC days) and I don't know of a case where it fails. M. P.S. My run log looks like this (after the 100 objects are created): May 17 19:28:06 UseTheDelegate[49584] DEBUG NSLog - evaluateExpression: com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: SELECT t0.id, RTRIM(t0.name) FROM Company t0 withBindings: May 17 19:28:06 UseTheDelegate[49584] DEBUG NSLog - 100 row(s) processed May 17 19:28:06 UseTheDelegate[49584] DEBUG NSLog - === Commit Internal Transaction Application.Application: ec0 = er.extensions.eof.er...@7fd88db7 Application.Application: ec1 = er.extensions.eof.er...@524c71d2 Application.Application: ec2 = er.extensions.eof.er...@49198ff2 Application.Application: Company 98 Application.Application: Company 98 Application.Application: Company 98 C1 updated, not saved. Application.Application: Company 98 Application.Application: C1 1274149686265 Application.Application: Company 98 C2 updated, not saved. Application.Application: Company 98 Application.Application: C1 1274149686265 Application.Application: C2 1274149686265 May 17 19:28:06 UseTheDelegate[49584] DEBUG NSLog - === Begin Internal Transaction May 17 19:28:06 UseTheDelegate[49584] DEBUG NSLog - evaluateExpression: com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: UPDATE Company SET name = ? WHERE (id = ? AND name = ?) withBindings: 1:C1 1274149686265(name), 2:89(id), 3:Company 98(name) May 17 19:28:06 UseTheDelegate[49584] DEBUG NSLog - === Commit Internal Transaction MarksDelegate.editingContext: er.extensions.eof.er...@49198ff2 shouldMergeChangesForObject: eo =
Re: Webobjects-dev Digest, Vol 7, Issue 304
, 18 May 2010 07:53:54 +0100 From: Simon si...@potwells.co.uk Subject: Re: Stuck on long response page... IE To: Kieran Kelleher kieran_li...@mac.com Cc: WebObjects Development webobjects-dev@lists.apple.com Message-ID: aanlktilombs-ubrlfwmc7fymbabcuixqaroakfgtp...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 is the ajax variety pretty much a drop in replacement for the old hat one ? what about locking issues ? ERXWOLongResponsePage does some funky stuff around ec locking - i guess with the ajax variety you're on your own ? simon On 18 May 2010 03:12, Kieran Kelleher kieran_li...@mac.com wrote: Instead of a traditional LongResponse page try using a GenericAjaxLongResponsePage page that has an AjaxProgress component on it to monitor the task and a 'finishedFunction' binding on that to execute the nextPage action when task is done. That's MOL what I do nowadays. HTH, Kieran On May 17, 2010, at 7:57 AM, Simon wrote: hi all - our apps use long response pages all over the shop, and we've had a few reports of users getting stuck on them. after mucho debugging we've discovered that wonderful IE (7+) has an option to disable meta refresh, and various reports on the intertubes that it's disabled by default in various versions. i normally get annoyed with IE browsers wanting to warn about every minor glitch on a page (HEY, just in case you're interested there is a js variable undefined on this page that you're never gonna use, but i thought i'd tell you about it anyway, just to get in the way and make your life a little less productive. ok?), but with this one IE does just the opposite: nothing at all. you hit the long response page and sit there... anyway, i've been googling around for solutions and turned up nothing. i guess the options are either to detect they have it turned off (which appears to be impossible), or use another form of refresh. anyone bumped into this one before ? any hints on solutions ? thanks, simon ___ 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/kieran_lists%40mac.com This email sent to kieran_li...@mac.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20100518/087447d2/ attachment.html -- Message: 10 Date: Tue, 18 May 2010 01:10:30 -0700 From: Tim Worman li...@thetimmy.com Subject: Re: builds failing in Eclipse 3.6 To: Mike Schrag msch...@gmail.com Cc: WebObjects Development webobjects-dev@lists.apple.com Message-ID: 071e9d1f-f130-4bb6-8334-e35bbd447...@thetimmy.com Content-Type: text/plain; charset=us-ascii I wasn't trying to be vague. I'm honestly not seeing much of anything in Eclipse. It starts to run, then says terminated almost immediately. There is nothing in the console. I'm sure it's something I should be able to solve which is why I tried to focus my question on how I can troubleshoot better. :-) Tim Worman UCLA GSEIS On May 18, 2010, at 12:58 AM, Mike Schrag wrote: build errors Read: I had a problem but I'm going to keep the details secret. Mu ha ha Sent from my iPhone On May 18, 2010, at 2:00 AM, Tim Worman li...@thetimmy.com wrote: All: I could use some tips about how to troubleshoot ant build problems. I'm sure this has to do with the fact that I've updated to Eclipse 3.6. I'm running the cocoa 64-bit version. I haven't been able to build any apps this evening. I'm using the conventional method: right-click on build.xml Run As Ant Build I've never run into build problems failures like this so I've never had to look into something like this. I switched back to Eclipse 3.5 to build my apps. Tim Worman UCLA GSEIS ___ 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%40pobox.com This email sent to msch...@pobox.com -- Message: 11 Date: Tue, 18 May 2010 04:37:02 -0600 (MDT) From: webobje...@avendasora.com Subject: Re: builds failing in Eclipse 3.6 To: Tim Worman li...@thetimmy.com Cc: WebObjects Development webobjects-dev@lists.apple.com, Mike Schrag msch...@gmail.com Message-ID: 46474.173.73.102.187.1274179022.squir...@webmail.modwest.com Content-Type: text/plain;charset=utf-8 Hi Tim, I don't see this behavior with 3.6. When I do the same on a project I've never built this way before (I use Hudson - it's just too awesome) it does fail, but with error messages in the console saying
Re: ?? about opportunistic locking...
Sent from my iPhone As far as I can tell, this API seems to be one that must have come from the desktop version of EOF where you're always in-process to your changes. Those API's are all dead to me. Yes, of course this design is from 'real' EOF! ObjC EOF and AppKit on NeXTSTEP/OPENSTEP! ;-) Dead or not, it's the history which forms what we have today. No no I mean api's that presume that you're living in a single instance are dead to me. Clearly i'm a fan of the apis of our ancenstors :) This is what I've used in the past (since ObjC days) and I don't know of a case where it fails. This depends on your definition of fail. I agree that for the way you're using it it works. For the ACTUAL complaint I have, it seems insufficient. I'm also not sure you even run in the right thread to throw that exception. This responds to ObjectsChangedInStore, which probably means it runs in EC1's thread? Or does it queue up and run in EC2's thread when in performRecentChanges or something? Regardless, I suspect to make inter-instance and intra-instance behavior match, you're going to have to do a lot more work ... hence my gripe. Those two cases need to be different! If anything, the inter-instance case is broken in that it doesn't properly notify EC's in other running instances that objects they are interested in have become invalid! However, until we have EC's properly hooked into the psychic-friends network, I don't see how that's going to happen. This is my point though. That problem is close to unsolvable, which means the correct approach from a consistency standpoint would be for same-instance to work like multi-instance. If you can get an optimistic lock on ec2.saveChanges out of this technique, I'll be a fan of it (because then we can just wire this into Wonder on all EC's and have this problem fixed or at least an opt-in feature), but I'm still not convinced yet. But that's just it, I don't want to have ec2.saveChanges() fail. By the time that ec2 is back to running, it's EO's have been updated and it's good to save! No they're merged via some magical merge policy that doesn't involve the user which hid the fact that a locked attribute is being overwritten, negating the entire point of an optimistic locking system as a means of data protection. The delegate gives the application developer the control to handle this case in way specific to their application implementation. Something that I could not divine a general solution too! I see this exactly backwards from you. Optimistic lock failure is this to me. You can catch it and do everything you're describing here (see tolerant ec in wonder) but you can't implement a proper optimistic locking system with the delegate (ok ... It's probably possible ... But clearly non-obvious). Why even have lock attributes if you let a different ec stomp on them. And I still come back to the issue of presenting this conflict to the user, which is most likely what actually has to happen to make this work properly. To do that with the delegate you'd have to do a bunch of tedious work for what should be a relatively rate situation. And you still have to write all your optimistic locking code because it can still happen. So still you're left with two implementations if what is, for all intents and purposes, the exact same problem manifesting in two different api's. And yes, by the by, I'm pretty sure that you're correct that when the delegate is called, it's within the thread of the EC which posted the notification and thus throwing any exception would never make it to the handler of another EC. Nor should it! ;-) Bah humbug! Now, having said all that, I would be open to the idea of making this easier to understand for new developers however that must not come at the cost of sacrificing the notification that objects have changed from what you thought they were. M. I have an easy way to make it easier for new developers to understand. Simply make optimistic locking the single way to handle merge conflicts, and add support for core data's merge policy API to provide a default merge policy in the event that you don't want to deal with it per-ec. I'm not in favor of removing that API btw ... I just don't think it adequately addresses the issues I have. I have also decided, after much thought, that even though you are wrong, we can still remain friends. Even with your wrongness. It's a burden I shall have to carry with me ;) What in the world possessed me to take this thread on with the iPhone keyboard? Apologies for crazy words that may appear above. 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
Re: ?? about opportunistic locking...
Hi! On 2010/05/18, at 14:07, Miguel Arroz wrote: And, BTW, another detail for the most curious readers... Application.Application: C1 1274149686265 Application.Application: C2 1274149686265 If this attribute was an integer or long (with the timestamp, for instance) and not a string, in this specific situation, the second commit would not produce any SQL statement. Why? :) Fix: it doesn't matter if it's a string, it only matters if those two values are equal(). Here, they aren't (C1 and C2 are part of the value). But if they did... Never post before tea. Yours Miguel Arroz smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ?? about opportunistic locking...
On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ?? about opportunistic locking...
On May 18, 2010, at 10:20 AM, David Avendasora wrote: On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. Dave Dave, where have you been? Tea is the new hotness ya know... (^_~) http://www.wired.com/epicenter/2009/04/tech-millionair/ Ramsey ___ 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: ?? about opportunistic locking...
On 2010-05-18, at 11:09 AM, Ramsey Gurley wrote: On May 18, 2010, at 10:20 AM, David Avendasora wrote: On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. Dave Dave, where have you been? Tea is the new hotness ya know... (^_~) http://www.wired.com/epicenter/2009/04/tech-millionair/ Better: http://www.davidstea.com/ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ?? about opportunistic locking...
On May 18, 2010, at 11:09 AM, Ramsey Gurley wrote: On May 18, 2010, at 10:20 AM, David Avendasora wrote: On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. Dave Dave, where have you been? Tea is the new hotness ya know... (^_~) I struggled long and hard not to change it to Scotch. Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
-Xmx launch parameter
Hi, I'm trying to increase the memory allocation for my application but my app won't start beyond -Xmx 2048 (8 gigs on 10.5 OS X server, WO 5.4.3). I've tried adding launch parameters in Eclipse and JavaMonitor. I can't find a reference to this value in the .woa, what else do I need to modify? Any ideas? Thanks, Gordon Gordon Belray Systems and Interface Designer Information Technology Services University of Toronto Libraries gordon.bel...@utoronto.ca 416-946-8617 w 416-427-7007 m ___ 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: -Xmx launch parameter
This? http://lists.apple.com/archives/webobjects-deploy/2008/Jan/msg00020.html On May 18, 2010, at 10:47 AM, Gordon Belray wrote: Hi, I'm trying to increase the memory allocation for my application but my app won't start beyond -Xmx 2048 (8 gigs on 10.5 OS X server, WO 5.4.3). I've tried adding launch parameters in Eclipse and JavaMonitor. I can't find a reference to this value in the .woa, what else do I need to modify? Any ideas? Thanks, Gordon Gordon Belray Systems and Interface Designer Information Technology Services University of Toronto Libraries gordon.bel...@utoronto.ca 416-946-8617 w 416-427-7007 m ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: ?? about opportunistic locking...
On 18/May/2010, at 9:29 AM, David Avendasora wrote: Dave, where have you been? Tea is the new hotness ya know... (^_~) I struggled long and hard not to change it to Scotch. No point in struggling... Go with it! ;-) M. ___ 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: ?? about opportunistic locking...
On May 18, 2010, at 7:20 AM, David Avendasora wrote: On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. I dunno. I have switched almost exclusively to green tea now. Me! Taiwanese tea by preference. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: ?? about opportunistic locking...
On May 18, 2010, at 8:14 AM, David LeBer wrote: Dave, where have you been? Tea is the new hotness ya know... (^_~) http://www.wired.com/epicenter/2009/04/tech-millionair/ Better: http://www.davidstea.com/ It is a plague of Davids, I swear! -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: ?? about opportunistic locking...
On 2010-05-18, at 11:07 AM, Chuck Hill wrote: On May 18, 2010, at 8:14 AM, David LeBer wrote: Dave, where have you been? Tea is the new hotness ya know... (^_~) http://www.wired.com/epicenter/2009/04/tech-millionair/ Better: http://www.davidstea.com/ It is a plague of Davids, I swear! I resemble that remark! David p.s. Try this, it is in season now: http://en.wikipedia.org/wiki/Sencha -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JProfiler / WOLips integration
Hi, I have played around and tried to use JProfile 6 with WOLips for a few hours, but now it looks like it Works. I am using : OSX 10.6.3 Maclipse 3.5.1 WOLips 6049 JProfiler 6.0.3 At first after trying JProfiler 6.0.3, I got also the Error Message and nothing won't work. An internal error occurred during: Launching MyApp. com.jprofiler.integrations.eclipse.internal.ProfilingSession.createProfilingSession(Lorg/eclipse/debug/core/model/ILaunchConfigurationDelegate;Lorg/eclipse/debug/core/ILaunchConfiguration;)Lcom/jprofiler/integrations/eclipse/internal/ProfilingSession; Going back to JProfile 5 and everything was OK. Now the working solution looks like to install from JProfile 5 the Eclipse IDE to dropIns Folder (com.jprofiler.integrations.eclipse) but set in Eclipse the JProfiler executable to JProfiler 6. Now JProfiler 6 boots up and works. I have only played 40 minutes yet, but it looks fine for now. Ken Ishimoto On 2009/12/16, at 18:19, Giles Palmer wrote: Hi Trying to set up JProfiler with WOLips. I have done the following... 1) installed JProfiler 6.0.2, selected eclipse 3.4 during the ide integration step 2) installed wolips JProfiler plugin-in (just updated WOLips etc from nightly) Eclipse is 3.4.1 WOLips is version 3.4.6015 and the JProfiler Launching plug-in is listed. Done an Eclipse -clean launch but there is no Profile as=WebObjects Application. If I create a new Profile configuration based on Profiled WOApplication (JProfiler) then launch this I get the following error from Eclipse... An internal error occurred during: Launching MyApp. com.jprofiler.integrations.eclipse.internal.ProfilingSession.createProfilingSession(Lorg/eclipse/debug/core/model/ILaunchConfigurationDelegate;Lorg/eclipse/debug/core/ILaunchConfiguration;)Lcom/jprofiler/integrations/eclipse/internal/ProfilingSession; Any ideas? Has anyone got JProfiler 6 working with WOLIps? Thanks Giles ___ 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/ken%40ksroom.com This email sent to k...@ksroom.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
Uploading files larger than 2.1 GB fails
Hi All, We have been working on cracking the 2.1GB limit for file uploads using WebObjects, and no matter what approach we use, we are hitting an exception like this: DiskTool DEBUG NSLog (46 appendln) - com.webobjects.appserver._private.WOHttpIO Unable to parse content-length header: '2182961242'. DiskTool WARN NSLog (43 appendln) - WOWorkerThread id=7 socket=Socket[addr=/0:0:0:0:0:0:0:1%0,port=49397,localport=55566] Exception while creating request: java.lang.IllegalArgumentException: er.extensions.appserver.ERXRequest: Can not initialize a WORequest with a null method.; dropping connection [2010-5-18 12:55:50 EDT] WorkerThread7 java.lang.IllegalArgumentException: er.extensions.appserver.ERXRequest: Can not initialize a WORequest with a null method. at com.webobjects.appserver.WORequest.init(WORequest.java:242) at er.extensions.appserver.ERXRequest.init(ERXRequest.java:61) at er.extensions.appserver.ERXApplication._createRequest(ERXApplication.java:1298) at com.zenn.id.IDApplication._createRequest(IDApplication.java:50001) at com.steeplechase.disktool.Application._createRequest(Application.java:50001) at er.extensions.appserver.ERXApplication.createRequest(ERXApplication.java:1268) at com.zenn.id.IDApplication.createRequest(IDApplication.java:50001) at com.steeplechase.disktool.Application.createRequest(Application.java:50001) at com.webobjects.appserver._private.WOHttpIO.readRequestFromSocket(WOHttpIO.java:380) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:88) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:637) After decompiling WOHttpIO it appears that the contentLength is still an integer in the WO 5.4.3 version of WOHttpIO. These exceptions appear to happen on the second call to WOHttpIO.readRequestFromSocket where a WORequest is initialized. With files smaller than 2.1 GB everything works fine, anything larger, and we get an immediate exception message. readRequestFromSocket is generally called a second time after the file upload finishes. We have experienced this behavior when using both WOFileUpload and AjaxFlexibleFileUpload, using the following bindings: bufferSize = $bufferSize streamToFilePath = $streamToFilePath mimeType = $mimeType filePath = $filePath finalFilePath = $finalFilePath We have experienced the same problem when using the StreamActionRequestHandler ( wis ) and getting to the contentStream directly. This is ideally how we would like to handle large files in order to keep the memory requirements as low as possible. Every one of our approaches works beautifully, unless we try to upload gigantic files. Is anyone else uploading anything larger than 2.1 GB using a WebObjects application? Thanks a lot in advance for any pointers or advice! Uli PS: we've tested with an April build of Project Wonder and the latest available Hudson build 85 and experienced the same issue with WO 5.3.3. ___ 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: ?? about opportunistic locking...
On May 18, 2010, at 2:06 PM, Chuck Hill wrote: On May 18, 2010, at 7:20 AM, David Avendasora wrote: On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. I dunno. I have switched almost exclusively to green tea now. Me! Taiwanese tea by preference. Chuck Let me guess... this one? http://www.heresjonny.com/taiwan/Shrimping%20Dong%20Qu-0.jpg (^_~)d Ramsey ___ 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: ?? about opportunistic locking...
On May 18, 2010, at 1:26 PM, Ramsey Gurley wrote: On May 18, 2010, at 2:06 PM, Chuck Hill wrote: On May 18, 2010, at 7:20 AM, David Avendasora wrote: On May 18, 2010, at 10:16 AM, Miguel Arroz wrote: Never post before coffee. There. Fixed it for you. I dunno. I have switched almost exclusively to green tea now. Me! Taiwanese tea by preference. Chuck Let me guess... this one? http://www.heresjonny.com/taiwan/Shrimping%20Dong%20Qu-0.jpg Now there is innovation for you! -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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
Invalidating Objects
Hello; As part of a built-in change notification facility, I am using EOObjectStoreCoordinator.invalidateObjectsWithGlobalIDs(..) with the relevant OSC locked. All use of other editing contexts are locked and unlocked correctly. Occasionally I seem to end up with disappearing snapshots where all the values of the snapshot go to NULL -- I can only imagine this would be linked to my use of 'invalidate..'. Other new editing contexts then see the NULLed-out EO and the EO does not seem to re-fault in that instance. When that corrupted EO is used in some sort of qualifier, EOF will treat the primary-key qualifier as looking for NULL. Any ideas where to look or has anybody else had this problem and has any pointers? cheers. ___ Andrew Lindesay www.silvereye.co.nz ___ 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: Get rid of warning in binding value e.g. @sum.totalCost
Make sense, thanks. Probably the first trial was using the backslashes. Sometimes I thought forward slashes and back slashes are really a joke to the users. At one time it is interchangeable, whilst at other moment it is forbidden. grumble / - Original Message - From: Dawn Lockhart dlockh...@k12.com To: chn...@gmail.com Cc: webobjects-dev@lists.apple.com Sent: Tuesday, May 18, 2010 9:19 PM Subject: Re: Webobjects-dev Digest, Vol 7, Issue 304 You have forward slashes instead of backslashes. Try: //VALID ___ 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