Re: [WOWODC] Student discount
how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... 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: Passing a wrapper component to a page-level component
Hello Paul; Did you end up taking a look through the LEWOStuff page/navigation architecture in the end? No need to use it directly, but you may potentially get some design ideas. It sounds like some of what you are trying I have already worked through. I keep a stack structure of page states off the session (instead of using the context's info dictionary) and these are called navigation destinations or ND-s for short. NDs are KVC-compliant and act a bit like a dictionary to store state in. Having said this, for sanity, I *always* access this data through a structured component controller and *never* directly from the ND. The ND's are also able to express the component name to swap over in the WOSwitchComponent like you mention you are doing. The NDs are conveniently able to be formed into a tree to provide a data structure for menus and exist in a stack off the session which forms the breadcrumbs for historical navigation. The architecture does have a couple of things that one ought to watch, but it works very well in practise. cheers. So I rolled my own solution. EditFooPage has a WOSwitchComponent as its outermost element. The app-specific LAF class is passed to EditFooPage after construction so that it knows what to substitute for the WOSwitchComponent. Key-value pairs are stored in context().userInfo() to simulate the bindings intended for LAF. The keys are in a namespace specific to the app-specific LAF, which knows to look for them and change its behaviour accordingly. Of course, context() disappears at the end of the transaction, so if LAF finds key-values in userInfo(), it also caches them locally for reuse if required. It works, but I feel dirty. Critiques welcome. ___ Andrew Lindesay www.lindesay.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: Passing a wrapper component to a page-level component
Hi Andrew, On 07/05/2009, at 4:44 PM, Andrew Lindesay wrote: Did you end up taking a look through the LEWOStuff page/navigation architecture in the end? Yeah, I did, and I have watched your WOWODC presentation before, though I haven't had a chance to watch it again recently. No need to use it directly, but you may potentially get some design ideas. I do like the design. However, it's the practical details that are killing me at the moment. It sounds like some of what you are trying I have already worked through. I keep a stack structure of page states off the session (instead of using the context's info dictionary) Maybe this would be a better place for me to store it. The ND's are also able to express the component name to swap over in the WOSwitchComponent like you mention you are doing. At the moment, this is pretty much all I want to do. I have it working via my home-brew solution. I'm still working through Ramsey's D2W suggestion. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ ___ 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: Making the EOModel to work with LDAP
Hello. I have read the chapter again, and saw the example once more. but the model it's not set up to use LDAP. As I see, it has an Entity called LDAPAuthenticatedUser which inherit from abstractUser, but the whole EOModel it's set up to work with FrontBase. Now, I see in the implementation of the LDAPAuthenticatedUser, and as I said, it has coded the DN and url of the LDAP inside the custom .java class, not the _LDAPAuthenticatedUser .java. I have been searching on internet, and saw many post of people saying that I can't set up a many-to-many relationship for a LDAP model. So I don't get it on how to do the model, which attributes should I put for each entity. I understand how the Object graph it's build when using a SQL db, and how to fetch is done, I re-read the EnterpirseObject programming guide again :P. but no LDAP example. Authenticated as the book shows is done, but now to fetch the data, what should I do?. I fetch some data using the search(...) method of the DirContext class, and seting up a filter, but then Im not using any EOModel at all. Thanks Gustavo On May 6, 2009, at 7:43 PM, David Avendasora wrote: Hey Gustavo, Do you have Practical WebObjects, Right? Chapter 4 goes into a lot of detail on how to build authentication into a WO application including how to setup the model, and it demonstrates how to setup LDAP-based authentication. I would start with that. If you still run into problems there will likely be more people that can help you because you will have a solid foundation already. Dave On May 6, 2009, at 10:59 AM, Gustavo Adolfo Pizano wrote: Hello, I searched on google, and found some stuff, but it seems that the people already had the model some how build, so thats why Im asking again, forgive me if Im bothering somebody with this topic, :P. Also I found an eexample of a EOModel that connects to a LDAP server via JNDI but hte link is broken :(. Well, now that I understood better, and took a decision on how to build this app, now I came with the question on building the EOModel so it will work eith the LDAP server. I have set up some Entities and some attributes in it. but then my boss who is the one in charge of the LDAP server, (and BTW he is the one who is giving me the clues on how to make the searches and all), showed me that I can get certain attributes only, and not the whole entity. For instance. I have in the LDAP something like cn=Contacts,o=xws cn=Feriva,cn=Contacts,o=xws cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws contactType=FaxWork,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws contactType=Home,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws so : XWS Contacts ---Feriva -4422-Feriva s.r.o --FaxWork --HOme. well something like that.. so I set up the adaptor of the DB config to JNDI; authentication -- simple. and the url username and password. but then how do I create the model, because this is different than a SQL server, this one(LDAP) its a tree like schema. thanks in advance. Gustavo PD If you need more info about the attributes each entity has in the LDAP let me know. ___ 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
Re: Making the EOModel to work with LDAP
Hello all again. Im reading package summary of the jndiadaptor from apple's documentation. there it says that each entity must have a relativeDistinguesdName which holds the value of the relative distinguished name and serves as the primary key. Right after this, it says By default, reverse engenieer sets the relativeDistinguishedName attribute to be neither a class property nor and attribute that participates in locking first, if I have the LDAP server running with its own schema, how can I do reverse engineering of it?. Now something else. where is the Custom Formating inspecotr in EOModeler, due that this is a method they suggest to create the rdn, but its kind complicated, I don't get it. there is another method, that is to set the rdn as a class property so I can read it, and then I can genereate the new rdn. Cheers Gustavo On May 7, 2009, at 9:53 AM, Gustavo Adolfo Pizano wrote: Hello. I have read the chapter again, and saw the example once more. but the model it's not set up to use LDAP. As I see, it has an Entity called LDAPAuthenticatedUser which inherit from abstractUser, but the whole EOModel it's set up to work with FrontBase. Now, I see in the implementation of the LDAPAuthenticatedUser, and as I said, it has coded the DN and url of the LDAP inside the custom .java class, not the _LDAPAuthenticatedUser .java. I have been searching on internet, and saw many post of people saying that I can't set up a many-to-many relationship for a LDAP model. So I don't get it on how to do the model, which attributes should I put for each entity. I understand how the Object graph it's build when using a SQL db, and how to fetch is done, I re-read the EnterpirseObject programming guide again :P. but no LDAP example. Authenticated as the book shows is done, but now to fetch the data, what should I do?. I fetch some data using the search(...) method of the DirContext class, and seting up a filter, but then Im not using any EOModel at all. Thanks Gustavo On May 6, 2009, at 7:43 PM, David Avendasora wrote: Hey Gustavo, Do you have Practical WebObjects, Right? Chapter 4 goes into a lot of detail on how to build authentication into a WO application including how to setup the model, and it demonstrates how to setup LDAP-based authentication. I would start with that. If you still run into problems there will likely be more people that can help you because you will have a solid foundation already. Dave On May 6, 2009, at 10:59 AM, Gustavo Adolfo Pizano wrote: Hello, I searched on google, and found some stuff, but it seems that the people already had the model some how build, so thats why Im asking again, forgive me if Im bothering somebody with this topic, :P. Also I found an eexample of a EOModel that connects to a LDAP server via JNDI but hte link is broken :(. Well, now that I understood better, and took a decision on how to build this app, now I came with the question on building the EOModel so it will work eith the LDAP server. I have set up some Entities and some attributes in it. but then my boss who is the one in charge of the LDAP server, (and BTW he is the one who is giving me the clues on how to make the searches and all), showed me that I can get certain attributes only, and not the whole entity. For instance. I have in the LDAP something like cn=Contacts,o=xws cn=Feriva,cn=Contacts,o=xws cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws contactType=FaxWork,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws contactType=Home,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws so : XWS Contacts ---Feriva -4422-Feriva s.r.o --FaxWork --HOme. well something like that.. so I set up the adaptor of the DB config to JNDI; authentication -- simple. and the url username and password. but then how do I create the model, because this is different than a SQL server, this one(LDAP) its a tree like schema. thanks in advance. Gustavo PD If you need more info about the attributes each entity has in the LDAP let me know. ___ 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
Re: Making the EOModel to work with LDAP
HEHEH I found the reverse engineer link in EOModeler. :P. I have a relief now.! I will keep you informed of my progress. G On May 7, 2009, at 10:24 AM, Gustavo Adolfo Pizano wrote: Hello all again. Im reading package summary of the jndiadaptor from apple's documentation. there it says that each entity must have a relativeDistinguesdName which holds the value of the relative distinguished name and serves as the primary key. Right after this, it says By default, reverse engenieer sets the relativeDistinguishedName attribute to be neither a class property nor and attribute that participates in locking first, if I have the LDAP server running with its own schema, how can I do reverse engineering of it?. Now something else. where is the Custom Formating inspecotr in EOModeler, due that this is a method they suggest to create the rdn, but its kind complicated, I don't get it. there is another method, that is to set the rdn as a class property so I can read it, and then I can genereate the new rdn. Cheers Gustavo On May 7, 2009, at 9:53 AM, Gustavo Adolfo Pizano wrote: Hello. I have read the chapter again, and saw the example once more. but the model it's not set up to use LDAP. As I see, it has an Entity called LDAPAuthenticatedUser which inherit from abstractUser, but the whole EOModel it's set up to work with FrontBase. Now, I see in the implementation of the LDAPAuthenticatedUser, and as I said, it has coded the DN and url of the LDAP inside the custom .java class, not the _LDAPAuthenticatedUser .java. I have been searching on internet, and saw many post of people saying that I can't set up a many-to-many relationship for a LDAP model. So I don't get it on how to do the model, which attributes should I put for each entity. I understand how the Object graph it's build when using a SQL db, and how to fetch is done, I re-read the EnterpirseObject programming guide again :P. but no LDAP example. Authenticated as the book shows is done, but now to fetch the data, what should I do?. I fetch some data using the search(...) method of the DirContext class, and seting up a filter, but then Im not using any EOModel at all. Thanks Gustavo On May 6, 2009, at 7:43 PM, David Avendasora wrote: Hey Gustavo, Do you have Practical WebObjects, Right? Chapter 4 goes into a lot of detail on how to build authentication into a WO application including how to setup the model, and it demonstrates how to setup LDAP-based authentication. I would start with that. If you still run into problems there will likely be more people that can help you because you will have a solid foundation already. Dave On May 6, 2009, at 10:59 AM, Gustavo Adolfo Pizano wrote: Hello, I searched on google, and found some stuff, but it seems that the people already had the model some how build, so thats why Im asking again, forgive me if Im bothering somebody with this topic, :P. Also I found an eexample of a EOModel that connects to a LDAP server via JNDI but hte link is broken :(. Well, now that I understood better, and took a decision on how to build this app, now I came with the question on building the EOModel so it will work eith the LDAP server. I have set up some Entities and some attributes in it. but then my boss who is the one in charge of the LDAP server, (and BTW he is the one who is giving me the clues on how to make the searches and all), showed me that I can get certain attributes only, and not the whole entity. For instance. I have in the LDAP something like cn=Contacts,o=xws cn=Feriva,cn=Contacts,o=xws cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws contactType=FaxWork,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws contactType=Home,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws so : XWS Contacts ---Feriva -4422-Feriva s.r.o --FaxWork --HOme. well something like that.. so I set up the adaptor of the DB config to JNDI; authentication -- simple. and the url username and password. but then how do I create the model, because this is different than a SQL server, this one(LDAP) its a tree like schema. thanks in advance. Gustavo PD If you need more info about the attributes each entity has in the LDAP let me know. ___ 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
Re: Passing a wrapper component to a page-level component
On 07/05/2009, at 1:50 PM, Ramsey Lee Gurley wrote: It sounds like you're trying to use the WOContext like a d2wContext... I think if you do something like this in a D2WComponent named 'MyD2WComponentWrapper' wo:WOSwitchComponent componentName=$pageWrapperNamewo:EditFooPage // wo:WOSwitchComponent and set up a rule like 100: task = 'edit' and entity.name = 'Foo' = pageName = MyD2WComponentWrapper and generate the page in your app by using D2W.editPageForEntityNamed ... then I think it should work and you should be able to pass bindings to your wrapper via the d2wContext using the rule system. As I've mentioned earlier, I've never tried this without using a real D2WPage. Perhaps you tried this already and ran into something else? Thanks---the information above was the extra kick along I needed. This seems to work, and is obviously slightly neater and more conventional than my home-brew approach. Because I have control over the external frameworks, I've changed EditFooPage directly to extend D2WPage, implement EditPageInterface, and switch in the supplied page wrapper itself. So where you've got MyD2WComponentWrapper above, I use EditFooPage itself. I can then pass key-value pairs to the LAF via d2wContext, and LAF will look for them if d2wContext is available, in much the same way as the code you recommended looking at in ERD2WHead. Thanks again, Ramsey. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ ___ 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
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object] when fetching
Hello, I reverse engineered the LDAP schema to EOModel, now I have to follwoing an entity XWSContactsGroup, a XWSContact, and a XWSContactElement. I made the following relationships, whiteout flattering, XWSContactsGroup XWSContact XWSContactElement. now, I want to fetch a specific XWSContacGroup dowing the follwoing XWSContactsGroup cg = XWSContactsGroup.fetchRequiredXWSContactsGroup(ec, cn,Contacts); and this is the result com.webobjects.jndiadaptor.JNDIAdaptorException: Cannot search ((objectClass=xwsContactsGroup)(cn=Contacts)): javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name ''http://10.1.1.111:61353/cgi-bin/WebObjects/LDAPAuthentication.woa/wo/H69tIVOkstmoWD5LOB6Jf0/0.1.1# Im not LDAP expert, but my boss kinda told me that the sign shouldn't be there, but I don't have control over that generation,... so... I guess there should be another to make the fetch. Any ideas? Thanks Gus ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
can't create WOComponent
I created a new WOComponent then deleted it. (right click = select Delete). I want to create a new WOComponent with the same name but I get an error: A component by that name already exists. Do I need to clean out some cache somewhere that is holding onto this name? Ted ___ 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: No snapshot for gid _EOIntegralKeyGlobalID
Hi Pierre! Glad to see you active on the lists again! See my responses below: On May 7, 2009, at 12:39 PM, Mr. Pierre Frisch wrote: Dave, Which version of WO? WO 5.3.3 DO you use shared editing context? No. Is there any chance that the Editing Context is not locked when the faults fires? Yes. After 5 years of doing WO (mostly D2JC), this is one of the first places I've started using ECs other than the default EC, so I'm sure I'm abusing it. I'm just not sure where to look to fix it. Pierre -- Pierre Frisch pie...@apple.com On May 5, 2009, at 13:52, David Avendasora wrote: I've been getting this error seemingly randomly. I can't reproduce it locally, it just happens a couple times a day and the stack trace shows up in my inbox. I'm assuming that I must be somehow creating an object in one EC and then trying to use it in another, but I can't seem to find it. Is there anything else that can cause this error? Thanks, Dave Job DEFAULT.Sync Lot Codes threw an unhandled Exception: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[ManufacturedPart (java.lang.Long)206866] at com .webobjects .eoaccess.EODatabaseContext.initializeObject(EODatabaseContext.java: 3731) at com .webobjects .eocontrol .EOObjectStoreCoordinator .initializeObject(EOObjectStoreCoordinator.java:646) at com .webobjects .eocontrol.EOEditingContext.initializeObject(EOEditingContext.java: 3805) at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1047) at com .webobjects .eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java:4301) at com .webobjects .eoaccess .EOAccessFaultHandler .completeInitializationOfObject(EOAccessFaultHandler.java:85) at com .webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java: 1189) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer $ _GenericRecordBinding .valueInObject(_EOMutableKnownKeyDictionary.java:519) at com .webobjects .eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1736) at com .bestmaid .bakeryManagement .server.lotCodeTracking._LotCode.lotCodeValue(_LotCode.java:96) at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor $1.methodValue(NSKeyValueCoding.java:684) at com.webobjects.foundation.NSKeyValueCoding $_MethodBinding.valueInObject(NSKeyValueCoding.java:1160) at com .webobjects .eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1559) at com.webobjects.foundation.NSKeyValueCoding $Utility.valueForKey(NSKeyValueCoding.java:498) at com.webobjects.foundation.NSKeyValueCodingAdditions $ DefaultImplementation .valueForKeyPath(NSKeyValueCodingAdditions.java:212) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com .webobjects .eocontrol .EOKeyValueQualifier.evaluateWithObject(EOKeyValueQualifier.java:131) at com .webobjects .eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96) at com .webobjects .eocontrol.EOQualifier.filteredArrayWithQualifier(EOQualifier.java: 635) at com.bestmaid.bakeryManagement.server.part._Part.lotCodes(_Part.java: 618) at com.bestmaid.bakeryManagement.server.part._Part.lotCodes(_Part.java: 588) at com .bestmaid .bakeryManagement .server .integration .ExternalInventoryTransactionLotCode .synchronize(ExternalInventoryTransactionLotCode.java:136) at com .bestmaid .bakeryManagement .server .integration .ExternalInventoryTransaction .synchronize(ExternalInventoryTransaction.java:91) at com .bestmaid .bakeryManagement .scheduledjobs .jobs.SynchronizeLotCodes.execute(SynchronizeLotCodes.java:31) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool $WorkerThread.run(SimpleThreadPool.java:525) ___ 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/pierre%40apple.com This email sent to pie...@apple.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: can't create WOComponent
Hi Ted, When you create a Component, it also creates a .java file to go with it in your Sources directory. You must manually delete that file if you delete the Component. The New WebObjects Component window sees that file and assumes you haven't deleted the component. It should just say that there is a .java file with that name instead of a Component. Good news is that it is a simple fix. Dave On May 7, 2009, at 12:43 PM, Theodore Petrosky wrote: I created a new WOComponent then deleted it. (right click = select Delete). I want to create a new WOComponent with the same name but I get an error: A component by that name already exists. Do I need to clean out some cache somewhere that is holding onto this name? Ted ___ 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
Re: No snapshot for gid _EOIntegralKeyGlobalID
Hi Tonny, Take a look at databaseContextFailedToFetchObject in ERXDatabaseContextDelegate in Wonder. Chuck On May 7, 2009, at 8:44 AM, Tonny Staunsbrink wrote: Slightly of topic, but I have a framework which cannot provoke this error. If i create a fault with a primary key which does not exist, I just have an object with null for every value. What can I have done to disable this exception? Cheers Tonny On Tue, May 5, 2009 at 10:52 PM, David Avendasora webobje...@avendasora.com wrote: I've been getting this error seemingly randomly. I can't reproduce it locally, it just happens a couple times a day and the stack trace shows up in my inbox. I'm assuming that I must be somehow creating an object in one EC and then trying to use it in another, but I can't seem to find it. Is there anything else that can cause this error? Thanks, Dave Job DEFAULT.Sync Lot Codes threw an unhandled Exception: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[ManufacturedPart (java.lang.Long)206866] at com .webobjects .eoaccess.EODatabaseContext.initializeObject(EODatabaseContext.java: 3731) at com .webobjects .eocontrol .EOObjectStoreCoordinator .initializeObject(EOObjectStoreCoordinator.java:646) at com .webobjects .eocontrol.EOEditingContext.initializeObject(EOEditingContext.java: 3805) at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1047) at com .webobjects .eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java:4301) at com .webobjects .eoaccess .EOAccessFaultHandler .completeInitializationOfObject(EOAccessFaultHandler.java:85) at com.webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java: 1189) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer $ _GenericRecordBinding .valueInObject(_EOMutableKnownKeyDictionary.java:519) at com .webobjects .eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1736) at com .bestmaid .bakeryManagement .server.lotCodeTracking._LotCode.lotCodeValue(_LotCode.java:96) at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor $1.methodValue(NSKeyValueCoding.java:684) at com.webobjects.foundation.NSKeyValueCoding $_MethodBinding.valueInObject(NSKeyValueCoding.java:1160) at com .webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java: 1559) at com.webobjects.foundation.NSKeyValueCoding $Utility.valueForKey(NSKeyValueCoding.java:498) at com.webobjects.foundation.NSKeyValueCodingAdditions $ DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 212) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com .webobjects .eocontrol .EOKeyValueQualifier.evaluateWithObject(EOKeyValueQualifier.java:131) at com .webobjects .eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96) at com .webobjects .eocontrol.EOQualifier.filteredArrayWithQualifier(EOQualifier.java: 635) at com.bestmaid.bakeryManagement.server.part._Part.lotCodes(_Part.java: 618) at com.bestmaid.bakeryManagement.server.part._Part.lotCodes(_Part.java: 588) at com .bestmaid .bakeryManagement .server .integration .ExternalInventoryTransactionLotCode .synchronize(ExternalInventoryTransactionLotCode.java:136) at com .bestmaid .bakeryManagement .server .integration .ExternalInventoryTransaction .synchronize(ExternalInventoryTransaction.java:91) at com .bestmaid .bakeryManagement .scheduledjobs .jobs.SynchronizeLotCodes.execute(SynchronizeLotCodes.java:31) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool $WorkerThread.run(SimpleThreadPool.java:525) ___ 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/mezz.dk%40gmail.com This email sent to mezz...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP
Re: No snapshot for gid _EOIntegralKeyGlobalID
Just glancing at the stack trace there a few things that I would look for. You are using EC in threads? This is usually hard to get right as you need to have the EC lock before you fire any faults and you don't want to create deadlocks between threads. How many thread to you have that access the DB? Could you have one DB connexion per thread? In this case I would create one EOF stack per thread and lock the stack when processing starts and unlock it at the end, this is by far the easiest model. Do you transfer EO from one thread to the other? Pierre -- Pierre Frisch pie...@apple.com On May 7, 2009, at 9:47, David Avendasora wrote: Hi Pierre! Glad to see you active on the lists again! See my responses below: On May 7, 2009, at 12:39 PM, Mr. Pierre Frisch wrote: Dave, Which version of WO? WO 5.3.3 DO you use shared editing context? No. Is there any chance that the Editing Context is not locked when the faults fires? Yes. After 5 years of doing WO (mostly D2JC), this is one of the first places I've started using ECs other than the default EC, so I'm sure I'm abusing it. I'm just not sure where to look to fix it. Pierre -- Pierre Frisch pie...@apple.com On May 5, 2009, at 13:52, David Avendasora wrote: I've been getting this error seemingly randomly. I can't reproduce it locally, it just happens a couple times a day and the stack trace shows up in my inbox. I'm assuming that I must be somehow creating an object in one EC and then trying to use it in another, but I can't seem to find it. Is there anything else that can cause this error? Thanks, Dave Job DEFAULT.Sync Lot Codes threw an unhandled Exception: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[ManufacturedPart (java.lang.Long)206866] at com .webobjects .eoaccess .EODatabaseContext.initializeObject(EODatabaseContext.java:3731) at com .webobjects .eocontrol .EOObjectStoreCoordinator .initializeObject(EOObjectStoreCoordinator.java:646) at com .webobjects .eocontrol.EOEditingContext.initializeObject(EOEditingContext.java: 3805) at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1047) at com .webobjects .eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java:4301) at com .webobjects .eoaccess .EOAccessFaultHandler .completeInitializationOfObject(EOAccessFaultHandler.java:85) at com .webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java: 1189) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer $ _GenericRecordBinding .valueInObject(_EOMutableKnownKeyDictionary.java:519) at com .webobjects .eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java: 1736) at com .bestmaid .bakeryManagement .server.lotCodeTracking._LotCode.lotCodeValue(_LotCode.java:96) at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor $1.methodValue(NSKeyValueCoding.java:684) at com.webobjects.foundation.NSKeyValueCoding $_MethodBinding.valueInObject(NSKeyValueCoding.java:1160) at com .webobjects .eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1559) at com.webobjects.foundation.NSKeyValueCoding $Utility.valueForKey(NSKeyValueCoding.java:498) at com.webobjects.foundation.NSKeyValueCodingAdditions $ DefaultImplementation .valueForKeyPath(NSKeyValueCodingAdditions.java:212) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com .webobjects .eocontrol .EOKeyValueQualifier.evaluateWithObject(EOKeyValueQualifier.java: 131) at com .webobjects .eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96) at com .webobjects .eocontrol.EOQualifier.filteredArrayWithQualifier(EOQualifier.java: 635) at com .bestmaid.bakeryManagement.server.part._Part.lotCodes(_Part.java: 618) at com .bestmaid.bakeryManagement.server.part._Part.lotCodes(_Part.java: 588) at com .bestmaid .bakeryManagement .server .integration .ExternalInventoryTransactionLotCode .synchronize(ExternalInventoryTransactionLotCode.java:136) at com .bestmaid .bakeryManagement .server .integration .ExternalInventoryTransaction .synchronize(ExternalInventoryTransaction.java:91) at com .bestmaid .bakeryManagement .scheduledjobs .jobs.SynchronizeLotCodes.execute(SynchronizeLotCodes.java:31) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool $WorkerThread.run(SimpleThreadPool.java:525) ___ Do not post admin requests to the list. They will be ignored.
Re: WOSessionStore deadlock
That does not tell us much. Didn't you implement a fix for exceptions thrown while generating the response? Chuck On Apr 29, 2009, at 2:26 PM, Kieran Kelleher wrote: Funny ... I got my first session deadlock in a long while just a few minutes ago... had to kill the instance. Stack trace here: http://67.78.26.66:81/~kieran/misc/deadlock-5183.txt WO 5.3.3 BTW On Apr 29, 2009, at 1:05 PM, Guido Neitzer wrote: On Apr 29, 2009, at 9:58 AM, Chuck Hill wrote: I have 3 threads like this, all waiting on the same monitor: WorkerThread15 prio=5 tid=0x08995400 nid=0x8995600 in Object.wait() [0xbf0dd000..0xbf0ddb80] at java.lang.Object.wait(Native Method) - waiting on 0x34000548 (a com.webobjects.appserver.WOSessionStore$TimeoutEntry) at java.lang.Object.wait(Object.java:474) at com .webobjects .appserver .WOSessionStore.checkOutSessionWithID(WOSessionStore.java:207) - locked 0x34000548 (a com.webobjects.appserver.WOSessionStore $TimeoutEntry) at com .webobjects .appserver.WOApplication.restoreSessionWithID(WOApplication.java: 1546) at er .extensions .appserver .ERXApplication.restoreSessionWithID(ERXApplication.java:2028) ... I noticed Wonder has something to detect session store deadlocks, but it works only when concurrent requests are off, and we have that feature turned on. What can be causing a session to be checked out, but not checked in again? Bad coding? :-P I can think of only four causes: 1. Exception thrown from sleep(). 2. Exception thrown from terminate() (not 100% sure of that) 3. Exception thrown from WODirectAction.performAction() (though I am pretty sure this was fixed in WO 5.3) It wasn't. At least not for everything. cug Thread t...@57091: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame) - com .webobjects .appserver.WOSessionStore.checkOutSessionWithID(java.lang.String, com.webobjects.appserver.WORequest) @bci=48, line=207 (Interpreted frame) - com .webobjects .appserver.WOApplication.restoreSessionWithID(java.lang.String, com.webobjects.appserver.WOContext) @bci=9, line=1546 (Interpreted frame) - er .extensions .appserver.ERXApplication.restoreSessionWithID(java.lang.String, com.webobjects.appserver.WOContext) @bci=83, line=2060 (Interpreted frame) - com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication (com.webobjects.appserver.WOApplication, com.webobjects.appserver.WOContext, com.webobjects.foundation.NSDictionary) @bci=57, line=314 (Interpreted frame) - com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(com.webobjects.appserver.WORequest) @bci=109, line=358 (Interpreted frame) - com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(com.webobjects.appserver.WORequest) @bci=46, line=435 (Interpreted frame) - com .webobjects .appserver .WOApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=41, line=1306 (Interpreted frame) - er .extensions .appserver .ERXApplication .dispatchRequestImmediately(com.webobjects.appserver.WORequest) @bci=74, line=1769 (Interpreted frame) - er .extensions .appserver .ERXApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=13, line=1734 (Interpreted frame) - wk .webobjects .appserver .WKApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=2, line=95 (Interpreted frame) - com.webobjects.appserver._private.WOWorkerThread.runOnce() @bci=729, line=173 (Interpreted frame) - com.webobjects.appserver._private.WOWorkerThread.run() @bci=129, line=254 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame) etc. -- 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
Virtual host deployment question
Hello, So I have everything working on my deployment server. Two independent pairs of wotaskd and womonitor along with separate siteconfig.xml files. Everything seems to be working properly . My last bit of configuration needs to restrict access of a WO app to just one virtual domain. For example www.a.com/cgi-bin/WebObjects/A.woa www.b.com/cgi-bin/WebObjects/B.woa . Right now I can access both WO apps from either domain. Is there a straightforward way of implementing this restriction? I have already attempted it by moving the WebObjectsConfig http://localhost:1085 10 directive within the virtual host configuration file and limiting which wotaskd it can see. This did not work. If anyone has any time tested solution for this I would be grateful. Thanks Mitch ___ 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: Virtual host deployment question
On May 7, 2009, at 10:46 AM, Mitchel Roider wrote: Hello, So I have everything working on my deployment server. Two independent pairs of wotaskd and womonitor along with separate siteconfig.xml files. Everything seems to be working properly . My last bit of configuration needs to restrict access of a WO app to just one virtual domain. For example www.a.com/cgi-bin/WebObjects/A.woa www.b.com/cgi-bin/WebObjects/B.woa . Right now I can access both WO apps from either domain. Is there a straightforward way of implementing this restriction? I have already attempted it by moving the WebObjectsConfig http://localhost:1085 10 directive within the virtual host configuration file and limiting which wotaskd it can see. This did not work. If anyone has any time tested solution for this I would be grateful. Apache rewrite rules with re-directs. 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: No snapshot for gid _EOIntegralKeyGlobalID
On May 7, 2009, at 1:37 PM, Mr. Pierre Frisch wrote: Just glancing at the stack trace there a few things that I would look for. You are using EC in threads? Yeah. I'm using Quartz (http://www.opensymphony.com/quartz/) to do some automated processing. Normally the jobs run at different times, but it is possible for them to run simultaneously each using its own thread. This is usually hard to get right as you need to have the EC lock before you fire any faults and you don't want to create deadlocks between threads. How many thread to you have that access the DB? Quartz right now is configured with 5 threads in the thread pool (it's the default) but in practical terms there shouldn't be more than 2 active and working at any one time, and that should only happen occasionally. I only get the error occasionally, so it seems likely that this could be causing the problem. Could you have one DB connexion per thread? Are you suggesting that I should, or wondering if that is the current situation? RIght now, I believe both threads would be using the same DB connection. I'm certainly not setting up anything differently than the standard (default) WO app setup. In this case I would create one EOF stack per thread and lock the stack when processing starts and unlock it at the end, Okay. That makes sense. I would assume that Wonder's ERXObjectStoreCoordinatorPool is the best way to do this? this is by far the easiest model. Even easier: I'm going to just configure Quartz to use one thread. I think this way each job will just need to wait until the previous job is finished before starting. I'll see how that works first, then move onto multiple EOF stacks only if I really need them. Do you transfer EO from one thread to the other? Nope! Thanks again! Dave Pierre -- Pierre Frisch pie...@apple.com On May 7, 2009, at 9:47, David Avendasora wrote: Hi Pierre! Glad to see you active on the lists again! See my responses below: On May 7, 2009, at 12:39 PM, Mr. Pierre Frisch wrote: Dave, Which version of WO? WO 5.3.3 DO you use shared editing context? No. Is there any chance that the Editing Context is not locked when the faults fires? Yes. After 5 years of doing WO (mostly D2JC), this is one of the first places I've started using ECs other than the default EC, so I'm sure I'm abusing it. I'm just not sure where to look to fix it. Pierre -- Pierre Frisch pie...@apple.com On May 5, 2009, at 13:52, David Avendasora wrote: I've been getting this error seemingly randomly. I can't reproduce it locally, it just happens a couple times a day and the stack trace shows up in my inbox. I'm assuming that I must be somehow creating an object in one EC and then trying to use it in another, but I can't seem to find it. Is there anything else that can cause this error? Thanks, Dave Job DEFAULT.Sync Lot Codes threw an unhandled Exception: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[ManufacturedPart (java.lang.Long)206866] at com .webobjects .eoaccess .EODatabaseContext.initializeObject(EODatabaseContext.java:3731) at com .webobjects .eocontrol .EOObjectStoreCoordinator .initializeObject(EOObjectStoreCoordinator.java:646) at com .webobjects .eocontrol .EOEditingContext.initializeObject(EOEditingContext.java:3805) at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1047) at com .webobjects .eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java:4301) at com .webobjects .eoaccess .EOAccessFaultHandler .completeInitializationOfObject(EOAccessFaultHandler.java:85) at com .webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java: 1189) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer $ _GenericRecordBinding .valueInObject(_EOMutableKnownKeyDictionary.java:519) at com .webobjects .eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java: 1736) at com .bestmaid .bakeryManagement .server.lotCodeTracking._LotCode.lotCodeValue(_LotCode.java:96) at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor $1.methodValue(NSKeyValueCoding.java:684) at com.webobjects.foundation.NSKeyValueCoding $_MethodBinding.valueInObject(NSKeyValueCoding.java:1160) at com .webobjects .eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1559) at com.webobjects.foundation.NSKeyValueCoding $Utility.valueForKey(NSKeyValueCoding.java:498) at com.webobjects.foundation.NSKeyValueCodingAdditions $ DefaultImplementation .valueForKeyPath(NSKeyValueCodingAdditions.java:212) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at
Re: Virtual host deployment question
On May 7, 2009, at 10:51 AM, Chuck Hill wrote: On May 7, 2009, at 10:46 AM, Mitchel Roider wrote: Hello, So I have everything working on my deployment server. Two independent pairs of wotaskd and womonitor along with separate siteconfig.xml files. Everything seems to be working properly . My last bit of configuration needs to restrict access of a WO app to just one virtual domain. For example www.a.com/cgi-bin/WebObjects/A.woa www.b.com/cgi-bin/WebObjects/B.woa . Right now I can access both WO apps from either domain. Is there a straightforward way of implementing this restriction? I have already attempted it by moving the WebObjectsConfig http://localhost:1085 10 directive within the virtual host configuration file and limiting which wotaskd it can see. This did not work. If anyone has any time tested solution for this I would be grateful. Apache rewrite rules with re-directs. Chuck Rewrite cheat sheet: http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet ___ 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: [WOWODC] Student discount
how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. - hugi // Hugi Thordarson // http://hugi.karlmenn.is/ ___ 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: [WOWODC] Student discount
On May 7, 2009, at 12:55 PM, Hugi Thordarson wrote: how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. I don't know what you are doing over there, but you are doing it wrong. The US collapsed their banking system and now their currency is worth more than ours. I can only assume that is because our system was prudent and stable. That means yours should be worth more than gold! Chuck and really not getting global finance -- 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: [WOWODC] Student discount
how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. I don't know what you are doing over there, but you are doing it wrong. The US collapsed their banking system and now their currency is worth more than ours. I can only assume that is because our system was prudent and stable. That means yours should be worth more than gold! Chuck and really not getting global finance I'll say - global finance eludes me as well. The regular Icelandic citizen believed the national banking system to be prudent and stable as well - but then the entire facade collapsed in less than a day. Fortunately we have a revolution brewing, so hopefully I'll be drinking the blood of the bankers that bankrupted us in a couple of months. I'll send pics :-). On a completely unrelated note, Icelandic WO talent comes really cheap (in non-icelandic currency) these days. Grab it while you can ;-). - hugi ___ 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: [WOWODC] Student discount
On 7-May-09, at 4:20 PM, Hugi Thordarson wrote: how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. I don't know what you are doing over there, but you are doing it wrong. The US collapsed their banking system and now their currency is worth more than ours. I can only assume that is because our system was prudent and stable. That means yours should be worth more than gold! Chuck and really not getting global finance I'll say - global finance eludes me as well. The regular Icelandic citizen believed the national banking system to be prudent and stable as well - but then the entire facade collapsed in less than a day. Fortunately we have a revolution brewing, so hopefully I'll be drinking the blood of the bankers that bankrupted us in a couple of months. I'll send pics :-). Ah Hugi, you and your whacky Icelandic delicacies. On a completely unrelated note, Icelandic WO talent comes really cheap (in non-icelandic currency) these days. Grab it while you can ;-). - hugi ;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: [WOWODC] Student discount
On May 7, 2009, at 1:31 PM, David LeBer wrote: On 7-May-09, at 4:20 PM, Hugi Thordarson wrote: I'll say - global finance eludes me as well. The regular Icelandic citizen believed the national banking system to be prudent and stable as well - but then the entire facade collapsed in less than a day. Fortunately we have a revolution brewing, so hopefully I'll be drinking the blood of the bankers that bankrupted us in a couple of months. I'll send pics :-). Ah Hugi, you and your whacky Icelandic delicacies. Must be a Viking thing. -- 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: Virtual host deployment question
I also made a modification to the WebObjects adaptor for Apache 2.2 that allows you to specify which apps you are allowed to hit from a domain. Email me if you are interested in the source code. Frank On May 7, 2009, at 2:30 PM, Tim Worman wrote: On May 7, 2009, at 10:51 AM, Chuck Hill wrote: On May 7, 2009, at 10:46 AM, Mitchel Roider wrote: Hello, So I have everything working on my deployment server. Two independent pairs of wotaskd and womonitor along with separate siteconfig.xml files. Everything seems to be working properly . My last bit of configuration needs to restrict access of a WO app to just one virtual domain. For example www.a.com/cgi-bin/WebObjects/A.woa www.b.com/cgi-bin/WebObjects/B.woa . Right now I can access both WO apps from either domain. Is there a straightforward way of implementing this restriction? I have already attempted it by moving the WebObjectsConfig http://localhost:1085 10 directive within the virtual host configuration file and limiting which wotaskd it can see. This did not work. If anyone has any time tested solution for this I would be grateful. Apache rewrite rules with re-directs. Chuck Rewrite cheat sheet: http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet ___ 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/frank.cobia%40f2technology.com This email sent to frank.co...@f2technology.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: [WOWODC] Student discount
how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. I don't know what you are doing over there, but you are doing it wrong. The US collapsed their banking system and now their currency is worth more than ours. I can only assume that is because our system was prudent and stable. That means yours should be worth more than gold! Chuck and really not getting global finance I'll say - global finance eludes me as well. The regular Icelandic citizen believed the national banking system to be prudent and stable as well - but then the entire facade collapsed in less than a day. Fortunately we have a revolution brewing, so hopefully I'll be drinking the blood of the bankers that bankrupted us in a couple of months. I'll send pics :-). Ah Hugi, you and your whacky Icelandic delicacies. LOL... Well. - blood of bankers - in fact I believe this one might catch on (and be the first Icelandic delicacy to gain international acceptance) in the current economic climate :-). - hugi ___ 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: [WOWODC] Student discount
On May 7, 2009, at 1:38 PM, Hugi Thordarson wrote: how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. I don't know what you are doing over there, but you are doing it wrong. The US collapsed their banking system and now their currency is worth more than ours. I can only assume that is because our system was prudent and stable. That means yours should be worth more than gold! Chuck and really not getting global finance I'll say - global finance eludes me as well. The regular Icelandic citizen believed the national banking system to be prudent and stable as well - but then the entire facade collapsed in less than a day. Fortunately we have a revolution brewing, so hopefully I'll be drinking the blood of the bankers that bankrupted us in a couple of months. I'll send pics :-). Ah Hugi, you and your whacky Icelandic delicacies. LOL... Well. - blood of bankers - in fact I believe this one might catch on (and be the first Icelandic delicacy to gain international acceptance) in the current economic climate :-). I dare say that it may well become more popular than the Fetid Loin of Shark in Gravel. -- 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: No snapshot for gid _EOIntegralKeyGlobalID
On 08/05/2009, at 4:13 AM, David Avendasora wrote: On May 7, 2009, at 1:37 PM, Mr. Pierre Frisch wrote: Just glancing at the stack trace there a few things that I would look for. You are using EC in threads? Yeah. I'm using Quartz (http://www.opensymphony.com/quartz/) to do some automated processing. Normally the jobs run at different times, but it is possible for them to run simultaneously each using its own thread. This is usually hard to get right as you need to have the EC lock before you fire any faults and you don't want to create deadlocks between threads. How many thread to you have that access the DB? Quartz right now is configured with 5 threads in the thread pool (it's the default) but in practical terms there shouldn't be more than 2 active and working at any one time, and that should only happen occasionally. I only get the error occasionally, so it seems likely that this could be causing the problem. Also remember that ERXEC only auto-locks for request/response loops. You are responsible for manually locking in background threads. i.e., you _must_ public void run() { ec.lock(); try { // process } finally { ec.unlock(); } } Could you have one DB connexion per thread? Are you suggesting that I should, or wondering if that is the current situation? RIght now, I believe both threads would be using the same DB connection. I'm certainly not setting up anything differently than the standard (default) WO app setup. In this case I would create one EOF stack per thread and lock the stack when processing starts and unlock it at the end, Okay. That makes sense. I would assume that Wonder's ERXObjectStoreCoordinatorPool is the best way to do this? this is by far the easiest model. Even easier: I'm going to just configure Quartz to use one thread. I think this way each job will just need to wait until the previous job is finished before starting. I'll see how that works first, then move onto multiple EOF stacks only if I really need them. Do you transfer EO from one thread to the other? Nope! Thanks again! Dave Pierre -- Pierre Frisch pie...@apple.com On May 7, 2009, at 9:47, David Avendasora wrote: Hi Pierre! Glad to see you active on the lists again! See my responses below: On May 7, 2009, at 12:39 PM, Mr. Pierre Frisch wrote: Dave, Which version of WO? WO 5.3.3 DO you use shared editing context? No. Is there any chance that the Editing Context is not locked when the faults fires? Yes. After 5 years of doing WO (mostly D2JC), this is one of the first places I've started using ECs other than the default EC, so I'm sure I'm abusing it. I'm just not sure where to look to fix it. Pierre -- Pierre Frisch pie...@apple.com On May 5, 2009, at 13:52, David Avendasora wrote: I've been getting this error seemingly randomly. I can't reproduce it locally, it just happens a couple times a day and the stack trace shows up in my inbox. I'm assuming that I must be somehow creating an object in one EC and then trying to use it in another, but I can't seem to find it. Is there anything else that can cause this error? Thanks, Dave Job DEFAULT.Sync Lot Codes threw an unhandled Exception: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[ManufacturedPart (java.lang.Long)206866] at com .webobjects .eoaccess .EODatabaseContext.initializeObject(EODatabaseContext.java:3731) at com .webobjects .eocontrol .EOObjectStoreCoordinator .initializeObject(EOObjectStoreCoordinator.java:646) at com .webobjects .eocontrol .EOEditingContext.initializeObject(EOEditingContext.java:3805) at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1047) at com .webobjects .eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java: 4301) at com .webobjects .eoaccess .EOAccessFaultHandler .completeInitializationOfObject(EOAccessFaultHandler.java:85) at com .webobjects .eocontrol.EOCustomObject.willRead(EOCustomObject.java:1189) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer $ _GenericRecordBinding .valueInObject(_EOMutableKnownKeyDictionary.java:519) at com .webobjects .eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java: 1736) at com .bestmaid .bakeryManagement .server.lotCodeTracking._LotCode.lotCodeValue(_LotCode.java:96) at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor $1.methodValue(NSKeyValueCoding.java:684) at com.webobjects.foundation.NSKeyValueCoding $_MethodBinding.valueInObject(NSKeyValueCoding.java:1160) at com .webobjects
Re: [WOWODC] Student discount
how about a discount for europeans ? :-) Why would you want one? The way the dollar is going, you can buy your ticket for a the rice of a cup of coffee in europe... Well then, how about a discount for us bankrupt Icelanders? I'd have to sell my apartment to visit WOWODC this year mumble grumble freaking bankers mumble mumble subprime mortgage market idiocy grumble mumble mumble. I don't know what you are doing over there, but you are doing it wrong. The US collapsed their banking system and now their currency is worth more than ours. I can only assume that is because our system was prudent and stable. That means yours should be worth more than gold! Chuck and really not getting global finance I'll say - global finance eludes me as well. The regular Icelandic citizen believed the national banking system to be prudent and stable as well - but then the entire facade collapsed in less than a day. Fortunately we have a revolution brewing, so hopefully I'll be drinking the blood of the bankers that bankrupted us in a couple of months. I'll send pics :-). Ah Hugi, you and your whacky Icelandic delicacies. LOL... Well. - blood of bankers - in fact I believe this one might catch on (and be the first Icelandic delicacy to gain international acceptance) in the current economic climate :-). I dare say that it may well become more popular than the Fetid Loin of Shark in Gravel. Yumm, you're making me hungry. ___ 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: WOSessionStore deadlock
Chuck, I sent that message on April 29th!!! (over a week ago!) .. this problem is old news The mailing list is pretty slow these days must be bogged down with pre-WWDC chatter :-) Kieran On May 7, 2009, at 1:40 PM, Chuck Hill wrote: That does not tell us much. Didn't you implement a fix for exceptions thrown while generating the response? Chuck On Apr 29, 2009, at 2:26 PM, Kieran Kelleher wrote: Funny ... I got my first session deadlock in a long while just a few minutes ago... had to kill the instance. Stack trace here: http://67.78.26.66:81/~kieran/misc/deadlock-5183.txt WO 5.3.3 BTW On Apr 29, 2009, at 1:05 PM, Guido Neitzer wrote: On Apr 29, 2009, at 9:58 AM, Chuck Hill wrote: I have 3 threads like this, all waiting on the same monitor: WorkerThread15 prio=5 tid=0x08995400 nid=0x8995600 in Object.wait() [0xbf0dd000..0xbf0ddb80] at java.lang.Object.wait(Native Method) - waiting on 0x34000548 (a com.webobjects.appserver.WOSessionStore$TimeoutEntry) at java.lang.Object.wait(Object.java:474) at com .webobjects .appserver .WOSessionStore.checkOutSessionWithID(WOSessionStore.java:207) - locked 0x34000548 (a com.webobjects.appserver.WOSessionStore $TimeoutEntry) at com .webobjects .appserver.WOApplication.restoreSessionWithID(WOApplication.java: 1546) at er .extensions .appserver .ERXApplication.restoreSessionWithID(ERXApplication.java:2028) ... I noticed Wonder has something to detect session store deadlocks, but it works only when concurrent requests are off, and we have that feature turned on. What can be causing a session to be checked out, but not checked in again? Bad coding? :-P I can think of only four causes: 1. Exception thrown from sleep(). 2. Exception thrown from terminate() (not 100% sure of that) 3. Exception thrown from WODirectAction.performAction() (though I am pretty sure this was fixed in WO 5.3) It wasn't. At least not for everything. cug Thread t...@57091: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame) - com .webobjects .appserver.WOSessionStore.checkOutSessionWithID(java.lang.String, com.webobjects.appserver.WORequest) @bci=48, line=207 (Interpreted frame) - com .webobjects .appserver.WOApplication.restoreSessionWithID(java.lang.String, com.webobjects.appserver.WOContext) @bci=9, line=1546 (Interpreted frame) - er .extensions .appserver.ERXApplication.restoreSessionWithID(java.lang.String, com.webobjects.appserver.WOContext) @bci=83, line=2060 (Interpreted frame) - com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication (com.webobjects.appserver.WOApplication, com.webobjects.appserver.WOContext, com.webobjects.foundation.NSDictionary) @bci=57, line=314 (Interpreted frame) - com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(com.webobjects.appserver.WORequest) @bci=109, line=358 (Interpreted frame) - com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(com.webobjects.appserver.WORequest) @bci=46, line=435 (Interpreted frame) - com .webobjects .appserver .WOApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=41, line=1306 (Interpreted frame) - er .extensions .appserver .ERXApplication .dispatchRequestImmediately(com.webobjects.appserver.WORequest) @bci=74, line=1769 (Interpreted frame) - er .extensions .appserver .ERXApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=13, line=1734 (Interpreted frame) - wk .webobjects .appserver .WKApplication.dispatchRequest(com.webobjects.appserver.WORequest) @bci=2, line=95 (Interpreted frame) - com.webobjects.appserver._private.WOWorkerThread.runOnce() @bci=729, line=173 (Interpreted frame) - com.webobjects.appserver._private.WOWorkerThread.run() @bci=129, line=254 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame) etc. -- 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: can't create WOComponent
thanks for everyone's help. nice to see a simple solution Ted --- On Thu, 5/7/09, David Avendasora webobje...@avendasora.com wrote: From: David Avendasora webobje...@avendasora.com Subject: Re: can't create WOComponent To: Theodore Petrosky tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Date: Thursday, May 7, 2009, 12:53 PM Hi Ted, When you create a Component, it also creates a .java file to go with it in your Sources directory. You must manually delete that file if you delete the Component. The New WebObjects Component window sees that file and assumes you haven't deleted the component. It should just say that there is a .java file with that name instead of a Component. Good news is that it is a simple fix. Dave On May 7, 2009, at 12:43 PM, Theodore Petrosky wrote: I created a new WOComponent then deleted it. (right click = select Delete). I want to create a new WOComponent with the same name but I get an error: A component by that name already exists. Do I need to clean out some cache somewhere that is holding onto this name? Ted ___ 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
Many to Many with an ordered join table
Hi I'm sure I have a commonly seen issue: I have a many to many relationship between tables SOURCE and DEST. This is implemented by a third table GLUE which contains the PKs of SOURCE and DEST as well as an integer property (order) that describes the order of DESTs with respect to SOURCE. I'd like to flatten the relationship such that I can call a method like: source.dests() - NSArray Dest where the array is ordered by source.glue.order(). I've written a simple method that grabs source.glue(), sorts it on glue.order() and then iterates to extract dest, but I'm sure this issue has been solved many, many times before in a cleaner and more elegant manner. On a separate subject thanks to all for a very interesting and informative group. I've been lurking for some time and have been enjoying the various conversations. Cheers, Charles ___ 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