Re: Wonder/D2W NEUListpage running out of memory. Huh?

2008-06-03 Thread Guido Neitzer

On 03.06.2008, at 23:31, Johan Henselmans wrote:


I found that to get it working I also had to set
pageConfiguration = 'QueryFoo' => pageName = ERNEUListPage


That should be done by the rules in ERNeutralLook (which I don't use,  
so no idea right now).


which brings me to the next question: in the NEUListPage you can set  
the number of occurrences in the





via  the batchSize key in a NEUListPage.

batchSize seems to indicate something else in ERD2WListPage, which  
is the parent of ERNEUListpage.


So how do I set the items/page?


With a rule? That should just work! I don't use that ugly batch nav  
bar either ... I have my own templates and use the  
AjaxFlickrBatchNavigation.


cug

--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Wonder/D2W NEUListpage running out of memory. Huh?

2008-06-03 Thread Johan Henselmans


Op 3 jun 2008, om 17:37 heeft Guido Neitzer het volgende geschreven:


On 03.06.2008, at 07:32, Johan Henselmans wrote:

When I do a search on a record, it replies properly. But when I do  
not fill in any query, the application runs out of memory and quits.


Does:

pageConfiguration = 'Foo' => useBatchingDisplayGroup = true [100]

help?

cug

--
http://www.event-s.net




Thanks!

I found that to get it working I also had to set
pageConfiguration = 'QueryFoo' => pageName = ERNEUListPage

(I had set the default setting to NEUListPage)

which brings me to the next question: in the NEUListPage you can set  
the number of occurrences in the




pastedGraphic.pdf
Description: Adobe PDF document




via  the batchSize key in a NEUListPage.

batchSize seems to indicate something else in ERD2WListPage, which is  
the parent of ERNEUListpage.


So how do I set the items/page?

Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Parameterized NSArray in 5.3.3

2008-06-03 Thread Guido Neitzer

On 03.06.2008, at 13:38, Qi Yang wrote:


In the project I'm working on I need to use 5.3 because of some
compatibility problems, and I added both JavaWOExtensions and
ERExtensions frameworks in the build path, but can't seem to get rid  
of

the NSArray can't be parameterized error.

Is there any special way I need to set it up to make this work?


1. You really WANT that *beeep*?

2. Move ERExtensions in the load order before the WO Frameworks.

cug


--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: restricting qualifiers and join entities

2008-06-03 Thread Lachlan Deck

On 04/06/2008, at 1:19 PM, Lachlan Deck wrote:


On 04/06/2008, at 12:58 PM, Chuck Hill wrote:


On Jun 3, 2008, at 7:26 PM, Lachlan Deck wrote:


Hi there,

Say I have entities Foo and Bar (both of which have an attribute  
isDeleted) and a join FooBar and I create restricting qualifiers  
for Foo and Bar of (isDeleted IS NULL OR isDeleted = 0).


Foo.fooBars() still fetches all fooBars even if pointing to a Bar  
that cannot be instantiated due to the restricting qualifier.


So my question is: should EOF filter such joins automatically  
(i.e., should I file a bug) or is it just up to me to auto-apply  
these restricting qualifiers?


I would expect that to work for fetches.  In the past I have had a  
relationship to a subclass in a single table inheritance hierarchy,  
and I recall that only the correct instances were fetched.


Yeah, and I just checked again and I already have code that  
automatically creates a restricting qualifier for joins by migrating  
the restricting qualifiers from the related entities. So I end up  
with:


9837 INFO  [main] (er.extensions.ERXNSLogLog4jBridge, appendln, 38) -
willLoadEntity added restricting qualifier to:FooBar of  
((foo.isDeleted <> (java.lang.Boolean)'true') and (bar.isDeleted <>  
(java.lang.Boolean)'true'))


But if you're right, and EOF already uses this in its qualifier then I  
probably don't need to be doing that.


But maybe the problem is that of null results for these related  
entities where the qualifier applies.



I can't see why this should not work, I'd file a bug.


ok.

Have you checked the SQL and verified that they restricting  
qualifier is not getting generated?


Will have to check again. Thanks.


See logs below. The FooBar restricting qualifier is not being applied  
properly it seems.


Any ideas Pierre?


As an aside, Chuck, this should also answer your question re VI  
fetches (Subject Re: Inheritance)


On 08/05/2008, at 6:27 AM, Chuck Hill wrote:


On May 7, 2008, at 1:14 PM, Robert Walker wrote:

The only time vertical inheritance makes sense if when you always  
fetch against leaf nodes of the inheritance tree and only if the  
inheritance tree is very shallow. Take that to mean one level deep  
of inheritance with an abstract root entity that you never fetch  
against.


Anything more complex than that I would recommend single-table.

My 2 cents.


Vertical or horizontal?  With vertical this will still select on the  
root, won't it?




with regards,
--

Lachlan Deck

<<<
35238 DEBUG [WorkerThread15] (er.extensions.ERXNSLogLog4jBridge,  
appendln, 44) -
 evaluateExpression: $MySQLExpression: "SELECT blah blah FROM FooBar t0, Taggable T2, Foo  
T1 WHERE ((T2.isDeleted <> ? AND T2.isDeleted <> ?) AND t0.fooId = ?)  
AND T1.id = T2.id AND t0.fooId = T1.id ORDER BY whatever"  
withBindings: 1:true(isDeleted), 2:true(isDeleted), 3:145310(fooId)>


35242 DEBUG [WorkerThread15] (er.extensions.ERXNSLogLog4jBridge,  
appendln, 44) -

1 row(s) processed
>>>

<<<
35287 DEBUG [WorkerThread15] (er.extensions.ERXNSLogLog4jBridge,  
appendln, 44) -
 evaluateExpression: $MySQLExpression: "SELECT T1.x, T0.y, blah etc FROM Bar t0, Taggable  
T1 WHERE ((T1.entityType = ? AND T1.isDeleted <> ?) AND t0.id = ?) AND  
t0.id = T1.id ORDER BY whatever" withBindings: 1:"Bar"(entityType),  
2:true(isDeleted), 3:4818(id)>


35292 DEBUG [WorkerThread15] (er.extensions.ERXNSLogLog4jBridge,  
appendln, 44) -

0 row(s) processed
>>>

35325 ERROR [WorkerThread15] (willow.view.DynamicDirectAction,  
directActionName, 248) -
Failed to obtain key baz available for object:{values = {... lots of  
NSKeyValueCoding$Null values as not yet faulted...}; this =  
"(java.lang.Long)4818]>"; }


er.extensions.ERXDatabaseContextDelegate$ObjectNotAvailableException:  
No willow.model.Bar found with globalID: 
	at  
er 
.extensions 
.ERXDatabaseContextDelegate 
.databaseContextFailedToFetchObject(ERXDatabaseContextDelegate.java:234)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)

at java.lang.reflect.Method.invoke(Method.java:585)
	at  
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java: 
120)

at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:225)
at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:170)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext._fireFault(EODatabaseContext.java:4384)
	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(_EOMutableK

Re: restricting qualifiers and join entities

2008-06-03 Thread Lachlan Deck

On 04/06/2008, at 12:58 PM, Chuck Hill wrote:


On Jun 3, 2008, at 7:26 PM, Lachlan Deck wrote:


Hi there,

Say I have entities Foo and Bar (both of which have an attribute  
isDeleted) and a join FooBar and I create restricting qualifiers  
for Foo and Bar of (isDeleted IS NULL OR isDeleted = 0).


Foo.fooBars() still fetches all fooBars even if pointing to a Bar  
that cannot be instantiated due to the restricting qualifier.


So my question is: should EOF filter such joins automatically  
(i.e., should I file a bug) or is it just up to me to auto-apply  
these restricting qualifiers?


I would expect that to work for fetches.  In the past I have had a  
relationship to a subclass in a single table inheritance hierarchy,  
and I recall that only the correct instances were fetched.


Yeah, and I just checked again and I already have code that  
automatically creates a restricting qualifier for joins by migrating  
the restricting qualifiers from the related entities. So I end up with:


9837 INFO  [main] (er.extensions.ERXNSLogLog4jBridge, appendln, 38) -
willLoadEntity added restricting qualifier to:FooBar of  
((foo.isDeleted <> (java.lang.Boolean)'true') and (bar.isDeleted <>  
(java.lang.Boolean)'true'))


But maybe the problem is that of null results for these related  
entities where the qualifier applies.



 I can't see why this should not work, I'd file a bug.


ok.

Have you checked the SQL and verified that they restricting  
qualifier is not getting generated?


Will have to check again. Thanks.

with regards,
--

Lachlan Deck
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: restricting qualifiers and join entities

2008-06-03 Thread Chuck Hill


On Jun 3, 2008, at 7:26 PM, Lachlan Deck wrote:


Hi there,

Say I have entities Foo and Bar (both of which have an attribute  
isDeleted) and a join FooBar and I create restricting qualifiers for  
Foo and Bar of (isDeleted IS NULL OR isDeleted = 0).


Foo.fooBars() still fetches all fooBars even if pointing to a Bar  
that cannot be instantiated due to the restricting qualifier.


So my question is: should EOF filter such joins automatically (i.e.,  
should I file a bug) or is it just up to me to auto-apply these  
restricting qualifiers?



I would expect that to work for fetches.  In the past I have had a  
relationship to a subclass in a single table inheritance hierarchy,  
and I recall that only the correct instances were fetched.  I can't  
see why this should not work, I'd file a bug.


Have you checked the SQL and verified that they restricting qualifier  
is not getting generated?


Chuck


--

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 [EMAIL PROTECTED]


restricting qualifiers and join entities

2008-06-03 Thread Lachlan Deck

Hi there,

Say I have entities Foo and Bar (both of which have an attribute  
isDeleted) and a join FooBar and I create restricting qualifiers for  
Foo and Bar of (isDeleted IS NULL OR isDeleted = 0).


Foo.fooBars() still fetches all fooBars even if pointing to a Bar that  
cannot be instantiated due to the restricting qualifier.


So my question is: should EOF filter such joins automatically (i.e.,  
should I file a bug) or is it just up to me to auto-apply these  
restricting qualifiers?


with regards,
--

Lachlan Deck

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Backtracking and Safari

2008-06-03 Thread Chuck Hill

Hi,

Safari, at least as of version 3.1.1 (5525.20) does not seem to  
respect the headers that control local page caching.  The Safari FAQ  
claims to show how to do this:

http://developer.apple.com/internet/safari/faq.html#anchor5

Returning
last-modified = ("Wed, 04-Jun-2008 00:10:53 GMT");
cache-control = ("no-store, no-cache, must-revalidate, max-age=0, post- 
check=0, pre-check=0");

expires = ("Mon, 26 Jul 1997 05:00:00 GMT");
date = ("Wed, 04-Jun-2008 00:10:53 GMT");
pragma = ("no-cache");

still results in Safari using the local cache instead of making a trip  
back to the server.  The Web Inspector in Safari show that it is  
getting these headers, but it seems to ignore them. I have reported  
this to Apple.


Obviously, this has rather serious implications for those of use  
deploying dynamic web applications.  The back button is hard enough to  
deal with when the browser works correctly!


Any suggestions for work arounds gratefully attempted.

Chuck

--

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 [EMAIL PROTECTED]


Parameterized NSArray in 5.3.3

2008-06-03 Thread Qi Yang
Hi all,

I set up WO5.3.3 on OS X 10.4.11 with Eclipse and Wolips. I've read
about the trouble with NSArray cannot be parameterized error, seems that
WO5.3 doesn't support it and that I need to add ERExtension framework
from project wonder. 

In the project I'm working on I need to use 5.3 because of some
compatibility problems, and I added both JavaWOExtensions and
ERExtensions frameworks in the build path, but can't seem to get rid of
the NSArray can't be parameterized error.

Is there any special way I need to set it up to make this work?

-- 
Qi Yang

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread Chuck Hill

Ouch!  OK, OK, I'll go!


On Jun 3, 2008, at 12:52 PM, David Avendasora wrote:


Tap.

On Jun 3, 2008, at 3:45 PM, Chuck Hill wrote:


Well... if you twist my arm and push me really hard, maybe.





--  

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 [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread David Avendasora
The community gathering is on THURSday, not Tuesday. But I think I  
speak for most (especially Chuck) that if you want to have a beer on  
Tuesday and discuss WO, I'll be there.


Dave

On Jun 3, 2008, at 3:21 PM, Joe Little wrote:


Wow, so Tuesday really is WebObjects day. There is only 3:30-4:30 left
to fill. I haven't seen feedback sessions posted, so the WO stuff may
be here and gone as soon as the beer runs out on Tuesday :)


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread David Avendasora

And by "poison" you mean "enlighten".

On Jun 3, 2008, at 3:37 PM, Joe Little wrote:


Maybe that is Apple's plan -- get us loonies out of
the way to not poison that session :)


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread David Avendasora

Tap.

On Jun 3, 2008, at 3:45 PM, Chuck Hill wrote:


Well... if you twist my arm and push me really hard, maybe.


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects + iPhone SDK

2008-06-03 Thread Joe Parks
Huh.
I guess I was googling with the wrong params. I searched on "webobjects
xcode 3.1", with no results. Searching on "webobjects xcode 3" provides an
informative list.

Thanks for the help.
-joe

On Tue, Jun 3, 2008 at 3:37 PM, Alexander Spohr <[EMAIL PROTECTED]> wrote:

> XCode is deprecated for WO.
> You need to use Eclipse and WOLips.
>
>atze
>
>
> Am 03.06.2008 um 21:30 schrieb Joe Parks:
>
>
> Is anyone doing development with both WebObjects and the iPhone SDK? After
>> installing the SDK beta, I can no longer create a WebObjects project in
>> XCode.
>> Is there a trick to "re-enable" WO development? I selected the checkbox
>> for "WebObjects" during the SDK beta installation, but that doesn't seem to
>> have functioned as expected.
>>
>> Thanks,
>> -joe
>>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WebObjects Community Gathering

2008-06-03 Thread Chuck Hill


On Jun 3, 2008, at 12:37 PM, Joe Little wrote:


Oops. You are right. Well, there is the WO lab Thursday morning, and
this gathering is right before the WWDC Bash.

Oh well, I guess we can't make it to the Creating Ruby on Rails for
iPhone session. Maybe that is Apple's plan -- get us loonies out of
the way to not poison that session :)


We can Flash Mob it!



On Tue, Jun 3, 2008 at 12:34 PM, David Avendasora
<[EMAIL PROTECTED]> wrote:
The community gathering is on THURSday, not Tuesday. But I think I  
speak for
most (especially Chuck) that if you want to have a beer on Tuesday  
and

discuss WO, I'll be there.



Well... if you twist my arm and push me really hard, maybe.





Dave

On Jun 3, 2008, at 3:21 PM, Joe Little wrote:

Wow, so Tuesday really is WebObjects day. There is only 3:30-4:30  
left
to fill. I haven't seen feedback sessions posted, so the WO stuff  
may

be here and gone as soon as the beer runs out on Tuesday :)




___
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 [EMAIL PROTECTED]



--

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 [EMAIL PROTECTED]


Re: WebObjects + iPhone SDK

2008-06-03 Thread David Avendasora
There is _no_ WO development tools or project templates in WO 5.4/ 
Xcode 3. Installing the iPhone SDK would have updated you to that.


You can run Xcode 2.x and WO 5.3.3 (The last version of WO/Xcode to  
have the WO dev tools) in parallel on the same computer, but it  
requires downloading a new version of Xcode 2.x specifically designed  
to run in parallel with Xcode 3. There are also installers out there  
that will install WO 5.3.3


But since Apple-supplied tools are deprecated and Apple now recommends  
(and uses internally) Eclipse/WOLips for WO development, now's the  
time to transition! Do it and don't look back.


Dave

On Jun 3, 2008, at 3:30 PM, Joe Parks wrote:

Is anyone doing development with both WebObjects and the iPhone SDK?  
After installing the SDK beta, I can no longer create a WebObjects  
project in XCode.
Is there a trick to "re-enable" WO development? I selected the  
checkbox for "WebObjects" during the SDK beta installation, but that  
doesn't seem to have functioned as expected.


Thanks,
-joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread Joe Little
Oops. You are right. Well, there is the WO lab Thursday morning, and
this gathering is right before the WWDC Bash.

Oh well, I guess we can't make it to the Creating Ruby on Rails for
iPhone session. Maybe that is Apple's plan -- get us loonies out of
the way to not poison that session :)

On Tue, Jun 3, 2008 at 12:34 PM, David Avendasora
<[EMAIL PROTECTED]> wrote:
> The community gathering is on THURSday, not Tuesday. But I think I speak for
> most (especially Chuck) that if you want to have a beer on Tuesday and
> discuss WO, I'll be there.
>
> Dave
>
> On Jun 3, 2008, at 3:21 PM, Joe Little wrote:
>
>> Wow, so Tuesday really is WebObjects day. There is only 3:30-4:30 left
>> to fill. I haven't seen feedback sessions posted, so the WO stuff may
>> be here and gone as soon as the beer runs out on Tuesday :)
>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects + iPhone SDK

2008-06-03 Thread Alexander Spohr

XCode is deprecated for WO.
You need to use Eclipse and WOLips.

atze


Am 03.06.2008 um 21:30 schrieb Joe Parks:

Is anyone doing development with both WebObjects and the iPhone SDK?  
After installing the SDK beta, I can no longer create a WebObjects  
project in XCode.
Is there a trick to "re-enable" WO development? I selected the  
checkbox for "WebObjects" during the SDK beta installation, but that  
doesn't seem to have functioned as expected.


Thanks,
-joe

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects + iPhone SDK

2008-06-03 Thread Pascal Robert


Le 08-06-03 à 15:30, Joe Parks a écrit :

Is anyone doing development with both WebObjects and the iPhone SDK?  
After installing the SDK beta, I can no longer create a WebObjects  
project in XCode.
Is there a trick to "re-enable" WO development? I selected the  
checkbox for "WebObjects" during the SDK beta installation, but that  
doesn't seem to have functioned as expected.




I guess you also moved from 10.4 to 10.5?

---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


WebObjects + iPhone SDK

2008-06-03 Thread Joe Parks
Is anyone doing development with both WebObjects and the iPhone SDK? After
installing the SDK beta, I can no longer create a WebObjects project in
XCode.
Is there a trick to "re-enable" WO development? I selected the checkbox
for "WebObjects" during the SDK beta installation, but that doesn't seem to
have functioned as expected.

Thanks,
-joe
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WebObjects Community Gathering

2008-06-03 Thread Joe Little
On Tue, Jun 3, 2008 at 12:04 PM, Alan Ward <[EMAIL PROTECTED]> wrote:
>
> On Jun 3, 2008, at 12:59 PM, Chuck Hill wrote:
>
>>
>> On Jun 3, 2008, at 9:27 AM, Mr. Pierre Frisch wrote:
>>
>>> To all,
>>>
>>> This year Apple is happy to host, like last year, a WebObjects Community
>>> Gathering during WWDC. This will be on Thursday June 12 from 4:30 to 6:30 pm
>>> in the "The Science and Medicine Connection" room.
>>>
>>> I hope to see you all there. Have a good conference.
>>
>> Thanks Pierre!  Do you have any idea what we will have access to in terms
>> of displays or projection equipment?

Wow, so Tuesday really is WebObjects day. There is only 3:30-4:30 left
to fill. I haven't seen feedback sessions posted, so the WO stuff may
be here and gone as soon as the beer runs out on Tuesday :)

>> Thanks,
>> Chuck
>>
>>
>> --
>>
>> 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/award%40apple.com
>>
>> This email sent to [EMAIL PROTECTED]
>
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread Alan Ward


On Jun 3, 2008, at 12:59 PM, Chuck Hill wrote:



On Jun 3, 2008, at 9:27 AM, Mr. Pierre Frisch wrote:


To all,

This year Apple is happy to host, like last year, a WebObjects  
Community Gathering during WWDC. This will be on Thursday June 12  
from 4:30 to 6:30 pm in the "The Science and Medicine Connection"  
room.


I hope to see you all there. Have a good conference.


Thanks Pierre!  Do you have any idea what we will have access to in  
terms of displays or projection equipment?


and more importantly beer ;-)

Alan



Thanks,
Chuck


--

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/award% 
40apple.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread Chuck Hill


On Jun 3, 2008, at 9:27 AM, Mr. Pierre Frisch wrote:


To all,

This year Apple is happy to host, like last year, a WebObjects  
Community Gathering during WWDC. This will be on Thursday June 12  
from 4:30 to 6:30 pm in the "The Science and Medicine Connection"  
room.


I hope to see you all there. Have a good conference.


Thanks Pierre!  Do you have any idea what we will have access to in  
terms of displays or projection equipment?


Thanks,
Chuck


--

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 [EMAIL PROTECTED]


Re: Capturing Monitor, WOTaskd and launch logs on Leopard

2008-06-03 Thread Chuck Hill

My Boy Scout Good Deed For the Day:

http://wiki.objectstyle.org/confluence/display/WO/Debugging+wotaskd+and+JavaMonitor

I think you can just sign up for an ID at 
http://issues.objectstyle.org/jira/secure/Dashboard.jspa
and use that to edit the Wiki.

Chuck


On Jun 3, 2008, at 9:22 AM, Mark Ritchie wrote:


On 3-Jun-08, at 10:25 AM, Florijan Stamenkovic wrote:

Argh, should have thought of just going to the wiki :)


And I should learn how to make additions to the wiki however in the  
mean time, I'll post it here:


I find it very useful to capture the Monitor and WOTaskd logs by  
adding something like the following to the plist in /Library/ 
LaunchDaemons.  (Note that the /Library/WebObjects/Logs should  
already be owned by appserver so there are no permissions troubles  
with writing the logs here.)


   StandardOutPath
   /Library/WebObjects/Logs/womonitor.log
   StandardErrorPath
   /Library/WebObjects/Logs/womonitor.log

For the record, I also modify SpawnOfWotaskd.sh and have it capture  
logs to the same folder.  Very useful if your application won't  
launch when you click the 'go' button in Monitor.  Something like  
this:


#!/bin/sh
# Modified by Mark Ritchie in Mar 2008
# - We now keep a log of any troubles while launching an application.

#$@ 1>/dev/null 2>&1 &
LOG=/Library/WebObjects/Logs/SpawnOfWotaskd.log
echo "" >>${LOG}
echo "date: `date`" >>${LOG}
echo "args: $@" >>${LOG}
$@ 1>>${LOG} 2>&1 &

This script lives in /System/Library/WebObjects/JavaApplications/ 
wotaskd.woa/Contents/Resources and gets over written each time you  
install an updated copy of WebObjects.  This has hit me in the last  
couple of weeks when I installed a beta for some other  
development. ;-)  Thankfully, I had a backup.


See you at WOWODC!
M.
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada



___
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 [EMAIL PROTECTED]



--

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 [EMAIL PROTECTED]


Re: WebObjects Community Gathering

2008-06-03 Thread Mark Ritchie

On 3-Jun-08, at 12:27 PM, Mr. Pierre Frisch wrote:
This year Apple is happy to host, like last year, a WebObjects  
Community Gathering during WWDC. This will be on Thursday June 12  
from 4:30 to 6:30 pm in the "The Science and Medicine Connection"  
room.


Oh Excellent!
Thanks for putting that together!
See you then!
Mark
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

WebObjects Community Gathering

2008-06-03 Thread Mr. Pierre Frisch

To all,

This year Apple is happy to host, like last year, a WebObjects  
Community Gathering during WWDC. This will be on Thursday June 12 from  
4:30 to 6:30 pm in the "The Science and Medicine Connection" room.


I hope to see you all there. Have a good conference.

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Capturing Monitor, WOTaskd and launch logs on Leopard

2008-06-03 Thread Mark Ritchie

On 3-Jun-08, at 10:25 AM, Florijan Stamenkovic wrote:

Argh, should have thought of just going to the wiki :)


And I should learn how to make additions to the wiki however in the  
mean time, I'll post it here:


I find it very useful to capture the Monitor and WOTaskd logs by  
adding something like the following to the plist in /Library/ 
LaunchDaemons.  (Note that the /Library/WebObjects/Logs should already  
be owned by appserver so there are no permissions troubles with  
writing the logs here.)


StandardOutPath
/Library/WebObjects/Logs/womonitor.log
StandardErrorPath
/Library/WebObjects/Logs/womonitor.log

For the record, I also modify SpawnOfWotaskd.sh and have it capture  
logs to the same folder.  Very useful if your application won't launch  
when you click the 'go' button in Monitor.  Something like this:


#!/bin/sh
# Modified by Mark Ritchie in Mar 2008
# - We now keep a log of any troubles while launching an application.

#$@ 1>/dev/null 2>&1 &
LOG=/Library/WebObjects/Logs/SpawnOfWotaskd.log
echo "" >>${LOG}
echo "date: `date`" >>${LOG}
echo "args: $@" >>${LOG}
$@ 1>>${LOG} 2>&1 &

This script lives in /System/Library/WebObjects/JavaApplications/ 
wotaskd.woa/Contents/Resources and gets over written each time you  
install an updated copy of WebObjects.  This has hit me in the last  
couple of weeks when I installed a beta for some other  
development. ;-)  Thankfully, I had a backup.


See you at WOWODC!
M.
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Wonder/D2W NEUListpage running out of memory. Huh?

2008-06-03 Thread Anjo Krank

pageConf="Foo" => fetchLimit = 5

Cheers, Anjo

Am 03.06.2008 um 16:32 schrieb Johan Henselmans:


I have a database with a table filled with about 1 records.

When I do a search on a record, it replies properly. But when I do  
not fill in any query, the application runs out of memory and quits.


Does anybody know why that is? Do I have to reduce the set somehow?


jun 03 15:44:34 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:44)  
DEBUG NSLog  -  === Begin Internal Transaction
jun 03 15:44:34 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:44)  
DEBUG NSLog  -  evaluateExpression:  
t0.bankbookdet_id, t0.certificatePrinted, t0.confirmation_sent,  
t0.reservation_id, t0.testPassedDate, t0.training_id, t0.usertested,  
t0.vouchercreated, t0.voucherid, t0.vouchernumber FROM voucher t0">
jun 03 15:44:41 canonbeheerext[60006] (?:?) DEBUG NSLog  - fetch  
canceled
jun 03 15:44:44 canonbeheerext[60006] (?:?) DEBUG NSLog  - 68831  
row(s) processed
jun 03 15:44:48 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:41)  
WARN  NSLog  -  
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.OutOfMemoryError] Java heap space
[2008-06-03 15:44:48 CEST]   
com.webobjects.foundation.NSForwardException for  
java.lang.OutOfMemoryError: Java heap space

at java.lang.Throwable.getOurStackTrace(Throwable.java:590)
at java.lang.Throwable.printStackTrace(Throwable.java:511)
at org.apache.log4j.spi.LocationInfo.(LocationInfo.java:105)
	at  
org 
.apache 
.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent.java:191)
	at org.apache.log4j.helpers.PatternParser 
$LocationPatternConverter.convert(PatternParser.java:483)
	at  
org 
.apache.log4j.helpers.PatternConverter.format(PatternConverter.java: 
64)

at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java: 
230)
	at  
org 
.apache 
.log4j 
.helpers 
.AppenderAttachableImpl 
.appendLoopOnAppenders(AppenderAttachableImpl.java:65)

at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.debug(Category.java:257)
	at  
er.extensions.ERXNSLogLog4jBridge.appendln(ERXNSLogLog4jBridge.java: 
44)
	at  
com 
.webobjects 
.eoaccess 
.EOAdaptorContext.transactionDidCommit(EOAdaptorContext.java:486)
	at  
com 
.webobjects 
.jdbcadaptor.JDBCContext.commitTransaction(JDBCContext.java:422)
	at  
com.webobjects.jdbcadaptor.JDBCChannel._endFetch(JDBCChannel.java:375)
	at  
com.webobjects.jdbcadaptor.JDBCChannel.cancelFetch(JDBCChannel.java: 
472)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel._cancelInternalFetch(EODatabaseChannel.java:706)
	at  
com 
.webobjects 
.eoaccess.EODatabaseChannel.cancelFetch(EODatabaseChannel.java:556)
	at  
com 
.webobjects 
.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:436)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 
3221)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.java:3346)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
.objectsWithFetchSpecification(EOEditingContext.java:4114)

at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:1090)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:633)
	at  
com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java: 
2191)
	at  
com 
.webobjects.directtoweb.D2WListPage.setDataSource(D2WListPage.java: 
196)
	at  
com 
.webobjects.directtoweb.D2WQueryPage.queryAction(D2WQueryPage.java: 
183)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

jun 03 15:44:48 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:41)  
WARN  NSLog  - Ran out of memory, killing this instance
jun 03 15:44:48 canonbeheerext[60006] (ERXApplication.java:1384)  
ERROR er.extensions.ERXApplication  - Ran out of memory, killing  
this instance






Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/krank%40logicunited.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lis

Re: Wonder/D2W NEUListpage running out of memory. Huh?

2008-06-03 Thread Guido Neitzer

On 03.06.2008, at 07:32, Johan Henselmans wrote:

When I do a search on a record, it replies properly. But when I do  
not fill in any query, the application runs out of memory and quits.


Does:

pageConfiguration = 'Foo' => useBatchingDisplayGroup = true [100]

help?

cug

--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Null property exceptions

2008-06-03 Thread Johann Werner
By looking at your Entity Modeler screenshot again your relationship  
from Entry to EntryScore should have "id" as source attribute and not  
your entryScoreID (finally you want your PK to be propagated).  
Changing this you should not have any warnings when deleting  
entryScoreID.


jw

Am 03.06.2008 um 15:32 schrieb Jeff Schmitz:


When I try to delete the foreign key, I get a big error message:




If the relationship is setup as a "propagate primary key", why  
should the relationship be referencing it?


Then, when I select Delete Anyway, it deletes both the foreign key  
AND the relationship.   Now what?


Thanks,
Jeff


smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Eclipse and WebObjects

2008-06-03 Thread Don Lindsay

Thanks Mike,

Don
On Jun 3, 2008, at 10:16 AM, Mike Schrag wrote:

What is the lowest version of Eclipse that can be used with WOLips  
nightly?  I have a request to test the installer on FreeBSD, the  
latest version of eclipse that is available for FreeBSD is 3.2.2.

Unfortunately, nightly and stable both require 3.3.x.

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/pccdonl 
%40mac.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Wonder/D2W NEUListpage running out of memory. Huh?

2008-06-03 Thread Johan Henselmans

I have a database with a table filled with about 1 records.

When I do a search on a record, it replies properly. But when I do not  
fill in any query, the application runs out of memory and quits.


Does anybody know why that is? Do I have to reduce the set somehow?


jun 03 15:44:34 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:44)  
DEBUG NSLog  -  === Begin Internal Transaction
jun 03 15:44:34 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:44)  
DEBUG NSLog  -  evaluateExpression:  
t0.bankbookdet_id, t0.certificatePrinted, t0.confirmation_sent,  
t0.reservation_id, t0.testPassedDate, t0.training_id, t0.usertested,  
t0.vouchercreated, t0.voucherid, t0.vouchernumber FROM voucher t0">
jun 03 15:44:41 canonbeheerext[60006] (?:?) DEBUG NSLog  - fetch  
canceled
jun 03 15:44:44 canonbeheerext[60006] (?:?) DEBUG NSLog  - 68831  
row(s) processed
jun 03 15:44:48 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:41)  
WARN  NSLog  -  
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.OutOfMemoryError] Java heap space
[2008-06-03 15:44:48 CEST]   
com.webobjects.foundation.NSForwardException for  
java.lang.OutOfMemoryError: Java heap space

at java.lang.Throwable.getOurStackTrace(Throwable.java:590)
at java.lang.Throwable.printStackTrace(Throwable.java:511)
at org.apache.log4j.spi.LocationInfo.(LocationInfo.java:105)
	at  
org 
.apache 
.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent.java:191)
	at org.apache.log4j.helpers.PatternParser 
$LocationPatternConverter.convert(PatternParser.java:483)
	at  
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java: 
64)

at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java: 
230)
	at  
org 
.apache 
.log4j 
.helpers 
.AppenderAttachableImpl 
.appendLoopOnAppenders(AppenderAttachableImpl.java:65)

at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.debug(Category.java:257)
	at  
er.extensions.ERXNSLogLog4jBridge.appendln(ERXNSLogLog4jBridge.java:44)
	at  
com 
.webobjects 
.eoaccess.EOAdaptorContext.transactionDidCommit(EOAdaptorContext.java: 
486)
	at  
com 
.webobjects.jdbcadaptor.JDBCContext.commitTransaction(JDBCContext.java: 
422)
	at com.webobjects.jdbcadaptor.JDBCChannel._endFetch(JDBCChannel.java: 
375)
	at  
com.webobjects.jdbcadaptor.JDBCChannel.cancelFetch(JDBCChannel.java:472)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel._cancelInternalFetch(EODatabaseChannel.java:706)
	at  
com 
.webobjects 
.eoaccess.EODatabaseChannel.cancelFetch(EODatabaseChannel.java:556)
	at  
com 
.webobjects 
.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:436)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 
3221)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.java:3346)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 
4114)

at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:1090)
	at  
com 
.webobjects 
.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java: 
633)
	at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java: 
2191)
	at  
com.webobjects.directtoweb.D2WListPage.setDataSource(D2WListPage.java: 
196)
	at  
com.webobjects.directtoweb.D2WQueryPage.queryAction(D2WQueryPage.java: 
183)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

jun 03 15:44:48 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:41)  
WARN  NSLog  - Ran out of memory, killing this instance
jun 03 15:44:48 canonbeheerext[60006] (ERXApplication.java:1384) ERROR  
er.extensions.ERXApplication  - Ran out of memory, killing this instance






Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: [OT] Developing iPhone applications using Ruby on Rails and Eclipse, Part 1: Serving content for iPhones

2008-06-03 Thread Mike Schrag
Developing iPhone applications using Ruby on Rails and Eclipse, Part 1: Serving content for iPhonesWell, another battlefield for WebObjects? Mike? ;-)ms ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

[SOLVED] Re: wotaskd on Leopard

2008-06-03 Thread Florijan Stamenkovic

Argh, should have thought of just going to the wiki :)

Thanks,
F

On Jun 03, 2008, at 10:08, Pascal Robert wrote:


The (launchd) startup script is not included, you can get it here :

	http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting 
+Started



Hi all,


Sorry if this is an already answered question, but I just  
installed Leopard, to try to switch before WOWODC, and don't have  
the time to properly search...


My problem is that wotaskd is not running, after updating to  
10.5.2 and WO5.4. In fact there is *nothing* in the /System/ 
Library/StartupItems/ folder. Nothing at all. WTF???  
Interestingly, when I first did the Tig - Leop upgrade of the  
drive in question, the 5.3 wotaskd was running, my guess is that  
this was trashed by the OS/WO update.


Btw, I did see David LeBer's blog post about wrong permissions on  
"/Library/WebObjects/Configuration/" folder, changed those to give  
the app server write permissions, but that's not the cause of my  
problem.


F




---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


[OT] Developing iPhone applications using Ruby on Rails and Eclipse, Part 1: Serving content for iPhones

2008-06-03 Thread Francis Labrie
Developing iPhone applications using Ruby on Rails and Eclipse, Part  
1: Serving content for iPhones



Well, another battlefield for WebObjects? Mike? ;-)

--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Eclipse and WebObjects

2008-06-03 Thread Mike Schrag
What is the lowest version of Eclipse that can be used with WOLips  
nightly?  I have a request to test the installer on FreeBSD, the  
latest version of eclipse that is available for FreeBSD is 3.2.2.

Unfortunately, nightly and stable both require 3.3.x.

ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: wotaskd on Leopard

2008-06-03 Thread Pascal Robert

The (launchd) startup script is not included, you can get it here :

http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started


Hi all,


Sorry if this is an already answered question, but I just installed  
Leopard, to try to switch before WOWODC, and don't have the time to  
properly search...


My problem is that wotaskd is not running, after updating to 10.5.2  
and WO5.4. In fact there is *nothing* in the /System/Library/ 
StartupItems/ folder. Nothing at all. WTF??? Interestingly, when I  
first did the Tig - Leop upgrade of the drive in question, the 5.3  
wotaskd was running, my guess is that this was trashed by the OS/WO  
update.


Btw, I did see David LeBer's blog post about wrong permissions on "/ 
Library/WebObjects/Configuration/" folder, changed those to give the  
app server write permissions, but that's not the cause of my problem.


F




---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


wotaskd on Leopard

2008-06-03 Thread Florijan Stamenkovic

Hi all,


Sorry if this is an already answered question, but I just installed  
Leopard, to try to switch before WOWODC, and don't have the time to  
properly search...


My problem is that wotaskd is not running, after updating to 10.5.2  
and WO5.4. In fact there is *nothing* in the /System/Library/ 
StartupItems/ folder. Nothing at all. WTF??? Interestingly, when I  
first did the Tig - Leop upgrade of the drive in question, the 5.3  
wotaskd was running, my guess is that this was trashed by the OS/WO  
update.


Btw, I did see David LeBer's blog post about wrong permissions on "/ 
Library/WebObjects/Configuration/" folder, changed those to give the  
app server write permissions, but that's not the cause of my problem.


F
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Eclipse and WebObjects

2008-06-03 Thread Don Lindsay

Hello;

What is the lowest version of Eclipse that can be used with WOLips  
nightly?  I have a request to test the installer on FreeBSD, the  
latest version of eclipse that is available for FreeBSD is 3.2.2.


Thanks,

Don
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Null property exceptions

2008-06-03 Thread Alexander Spohr

Jeff,

a 1:1 always connects the pk of both tables. Otherwise it is 1:n and  
should be modeled that way.


You have modeled a 1:n and set the propagation in the wrong direction  
(assuming that the other side has a to-many relationship :)


If you want to delete the entryScoreID you have to correct your  
relationship.


atze



Am 03.06.2008 um 15:40 schrieb Jeff Schmitz:


HI Alexander,
  So, to "propagate primary key" between two entities that have a  
"one to one" relationship, how would need to specify that?  As noted  
in my recent message, I set "propagate" on the relationship in the  
relationship editor, but the foreign key remains in Entry with no  
seeming way to delete it.


thanks,
Jeff

On Jun 3, 2008, at 4:18 AM, Alexander Spohr wrote:


Jeff,

you don’t want to propagate anything here.
entryScoreID is not a primary-key but a foreign-key, so you can not  
propagate it.


Owns Destination is wrong as well. You designed your relationships  
backwards (read: wrong).
And you’ll need to set all other relationships as well before you  
saveChanges, as none of the fks allow NULL.


atze


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?




On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

entry.entryScore().setNumSecs(0);
entry.entryScore().setNumThirds(0);
entry.entryScore().setNumWins(0);
entry.entryScore().setPlace(0);
entry.entryScore().setPoints(0);
entry.entryScore().setPotential(0);
ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
"propagates primary key" and "owns destination" options for this  
relationship, but I'm not sure what it is.  It's interesting  
that the below INSERT passes in a NULL value for the  
entryScoreID.  If it automatically creates its own entryScore  
object, shouldn't it be sending in the ID of that object instead  
of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK  
a class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO "t_entry"("c_still_alive_first", "c_games",  
"c_still_alive_third", "spare_int", "userID", "id", "c_name",  
"c_picks_confirmed", "spare_bool", "c_last_save", "c_groups",  
"entryScoreID", "poolID", "entryAdminID",  
"c_still_alive_second", "spare_str", "c_password",  
"c_tie_breaker") VALUES ('false', 15, 'false', 0, 101,  
101, 'DEFAULT', 'true', 'false', TIMESTAMP '2008-06-02  
21:32:13.802', 4, NULL, 101, NULL, 'false', '', 'pw', 0)"  
withBindings: >:
Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\"entryScoreID\" IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have "owns  
destination" checked? If yes then by creating an Entry object  
EOF does create an EntryScore object for you automatically. So  
when you save changes that object is still in the editing  
context but no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then,  
in turn, I add an EntryScore obejct to the entry object.  Note  
that the entryScore relationship in Entry (the one causing the  
problems) is set to "propagate primary key".  I have tried  
making it both mandatory and optional with the same results.   
Any ideas what may be causing this?


Here's the basic code:

EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false,  
new Integer(0), "", false, false, false, new Integer(0), pool,  
user);
EntryScore es = EntryScore.createEntryScore(ec, 0, 0, 0, 0, 0,  
0);

entry.setEntryScore(es);
ec.saveChanges();

exception (on the SaveChanges line):

Jun 01 21:19:54 netBrackets[64375] (ERXNSLogLog4

Re: Null property exceptions

2008-06-03 Thread Jeff Schmitz

HI Alexander,
   So, to "propagate primary key" between two entities that have a  
"one to one" relationship, how would need to specify that?  As noted  
in my recent message, I set "propagate" on the relationship in the  
relationship editor, but the foreign key remains in Entry with no  
seeming way to delete it.


thanks,
Jeff

On Jun 3, 2008, at 4:18 AM, Alexander Spohr wrote:


Jeff,

you don’t want to propagate anything here.
entryScoreID is not a primary-key but a foreign-key, so you can not  
propagate it.


Owns Destination is wrong as well. You designed your relationships  
backwards (read: wrong).
And you’ll need to set all other relationships as well before you  
saveChanges, as none of the fks allow NULL.


atze


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?




On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

entry.entryScore().setNumSecs(0);
entry.entryScore().setNumThirds(0);
entry.entryScore().setNumWins(0);
entry.entryScore().setPlace(0);
entry.entryScore().setPoints(0);
entry.entryScore().setPotential(0);
ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
"propagates primary key" and "owns destination" options for this  
relationship, but I'm not sure what it is.  It's interesting that  
the below INSERT passes in a NULL value for the entryScoreID.  If  
it automatically creates its own entryScore object, shouldn't it  
be sending in the ID of that object instead of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK a  
class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO "t_entry"("c_still_alive_first", "c_games",  
"c_still_alive_third", "spare_int", "userID", "id", "c_name",  
"c_picks_confirmed", "spare_bool", "c_last_save", "c_groups",  
"entryScoreID", "poolID", "entryAdminID", "c_still_alive_second",  
"spare_str", "c_password", "c_tie_breaker") VALUES ('false', 15,  
'false', 0, 101, 101, 'DEFAULT', 'true', 'false',  
TIMESTAMP '2008-06-02 21:32:13.802', 4, NULL, 101, NULL,  
'false', '', 'pw', 0)" withBindings: >:
 Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\"entryScoreID\" IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have "owns  
destination" checked? If yes then by creating an Entry object  
EOF does create an EntryScore object for you automatically. So  
when you save changes that object is still in the editing  
context but no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then, in  
turn, I add an EntryScore obejct to the entry object.  Note  
that the entryScore relationship in Entry (the one causing the  
problems) is set to "propagate primary key".  I have tried  
making it both mandatory and optional with the same results.   
Any ideas what may be causing this?


Here's the basic code:

EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);
EntryScore es = EntryScore.createEntryScore(ec, 0, 0, 0, 0, 0,  
0);

entry.setEntryScore(es);
ec.saveChanges();

exception (on the SaveChanges line):

Jun 01 21:19:54 netBrackets[64375] (ERXNSLogLog4jBridge.java: 
41) WARN  NSLog  -  
:  
Exception occurred while handling request:
; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( ; propertyKey:  
numThirds; type: NullPropertyException; additionalExceptions:  
(  )>,
; propertyKey:  
numWins; type: NullPropertyException; additionalExceptions:  
(  )>,
; propertyKey:  
place; type: NullPropertyException; 

Re: Null property exceptions

2008-06-03 Thread Jeff Schmitz

When I try to delete the foreign key, I get a big error message:

<>



If the relationship is setup as a "propagate primary key", why should  
the relationship be referencing it?


Then, when I select Delete Anyway, it deletes both the foreign key AND  
the relationship.   Now what?


Thanks,
Jeff



On Jun 3, 2008, at 12:01 AM, Johann Werner wrote:

Why do you have the attribute "entryScoreID" in the Entry entity? If  
you make a to-one relationship Entry->EntryScore and propagate the  
PK you only need an FK attribute in EntryScore that gets set to the  
PK of Entry by EOF.
In your exception it is complaining about the entryScoreID from  
Entry _not_ from EntryScore.


jw


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?




On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

entry.entryScore().setNumSecs(0);
entry.entryScore().setNumThirds(0);
entry.entryScore().setNumWins(0);
entry.entryScore().setPlace(0);
entry.entryScore().setPoints(0);
entry.entryScore().setPotential(0);
ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
"propagates primary key" and "owns destination" options for this  
relationship, but I'm not sure what it is.  It's interesting that  
the below INSERT passes in a NULL value for the entryScoreID.  If  
it automatically creates its own entryScore object, shouldn't it  
be sending in the ID of that object instead of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK a  
class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO "t_entry"("c_still_alive_first", "c_games",  
"c_still_alive_third", "spare_int", "userID", "id", "c_name",  
"c_picks_confirmed", "spare_bool", "c_last_save", "c_groups",  
"entryScoreID", "poolID", "entryAdminID", "c_still_alive_second",  
"spare_str", "c_password", "c_tie_breaker") VALUES ('false', 15,  
'false', 0, 101, 101, 'DEFAULT', 'true', 'false',  
TIMESTAMP '2008-06-02 21:32:13.802', 4, NULL, 101, NULL,  
'false', '', 'pw', 0)" withBindings: >:
 Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\"entryScoreID\" IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have "owns  
destination" checked? If yes then by creating an Entry object  
EOF does create an EntryScore object for you automatically. So  
when you save changes that object is still in the editing  
context but no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then, in  
turn, I add an EntryScore obejct to the entry object.  Note  
that the entryScore relationship in Entry (the one causing the  
problems) is set to "propagate primary key".  I have tried  
making it both mandatory and optional with the same results.   
Any ideas what may be causing this?


Here's the basic code:

EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);
EntryScore es = EntryScore.createEntryScore(ec, 0, 0, 0, 0, 0,  
0);

entry.setEntryScore(es);
ec.saveChanges();

exception (on the SaveChanges line):

Jun 01 21:19:54 netBrackets[64375] (ERXNSLogLog4jBridge.java: 
41) WARN  NSLog  -  
:  
Exception occurred while handling request:
; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( ; propertyKey:  
numThirds; type: NullPropertyException; additionalExceptions:  
(  )>,
; propertyKey:  
numWins; type: NullPropertyException; additionalExceptions:  
(  )>,
; propertyKey:  
place; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
points; type:

Re: Null property exceptions

2008-06-03 Thread Jeff Schmitz
Yes, I had wondered about that myself.  The foreign key is a product  
of the GUI as when you create a new relationship, there is no way  
(that  I could find) to specify initially that you want it to  
propagate the primary key, so its created initially whenever you  
create a new relationship.  Then, when you specify later to "propagate  
primary key" from the relationship editor, the foreign key remains, so  
I thought perhaps is kept there, but entryScoreID is always equated  
with its own ID in the implementation.  Should/could perhaps the GUI  
auto-delete the foreign key when "propagate primary key" is selected?   
Would at least help DB neophytes like myself.


Also, I really don't care to get back to Entry from EntryScore, and  
anyway, if an entry's key is being propagated to its related  
entryScore, shouldn't you be able to get back to the entry from the  
entryScore by just using entryScore's ID (since it's the associated  
entry's ID too)?


Anyway, I'll try removing the foreign key and see what happens.  I  
thought I had actually tried it before and got some other error, but  
I'll give it another shot.
And thanks for the GREAT discussion, I've already gotten answers to a  
lot of lingering questions I had in my head.



Jeff

On Jun 3, 2008, at 12:01 AM, Johann Werner wrote:

Why do you have the attribute "entryScoreID" in the Entry entity? If  
you make a to-one relationship Entry->EntryScore and propagate the  
PK you only need an FK attribute in EntryScore that gets set to the  
PK of Entry by EOF.
In your exception it is complaining about the entryScoreID from  
Entry _not_ from EntryScore.


jw


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?




On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

entry.entryScore().setNumSecs(0);
entry.entryScore().setNumThirds(0);
entry.entryScore().setNumWins(0);
entry.entryScore().setPlace(0);
entry.entryScore().setPoints(0);
entry.entryScore().setPotential(0);
ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
"propagates primary key" and "owns destination" options for this  
relationship, but I'm not sure what it is.  It's interesting that  
the below INSERT passes in a NULL value for the entryScoreID.  If  
it automatically creates its own entryScore object, shouldn't it  
be sending in the ID of that object instead of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK a  
class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO "t_entry"("c_still_alive_first", "c_games",  
"c_still_alive_third", "spare_int", "userID", "id", "c_name",  
"c_picks_confirmed", "spare_bool", "c_last_save", "c_groups",  
"entryScoreID", "poolID", "entryAdminID", "c_still_alive_second",  
"spare_str", "c_password", "c_tie_breaker") VALUES ('false', 15,  
'false', 0, 101, 101, 'DEFAULT', 'true', 'false',  
TIMESTAMP '2008-06-02 21:32:13.802', 4, NULL, 101, NULL,  
'false', '', 'pw', 0)" withBindings: >:
 Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\"entryScoreID\" IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have "owns  
destination" checked? If yes then by creating an Entry object  
EOF does create an EntryScore object for you automatically. So  
when you save changes that object is still in the editing  
context but no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then, in  
turn, I add an EntryScore obejct to the entry object.  Note  
that the entryScore relationship in Entry (the one causing the  
problems) is set to "propagate primary key".  I have tried  
making it both mandatory and optional

Re: Null property exceptions

2008-06-03 Thread Alexander Spohr

Jeff,

you don’t want to propagate anything here.
entryScoreID is not a primary-key but a foreign-key, so you can not  
propagate it.
Owns Destination is wrong as well. You designed your relationships  
backwards (read: wrong).
And you’ll need to set all other relationships as well before you  
saveChanges, as none of the fks allow NULL.


atze


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?




On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
 You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


 EOQualifier poolQual = Pool.NAME.eq(name);
 pool = Pool.fetchRequiredPool(ec, poolQual);
 entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

 entry.entryScore().setNumSecs(0);
 entry.entryScore().setNumThirds(0);
 entry.entryScore().setNumWins(0);
 entry.entryScore().setPlace(0);
 entry.entryScore().setPoints(0);
 entry.entryScore().setPotential(0);
 ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
"propagates primary key" and "owns destination" options for this  
relationship, but I'm not sure what it is.  It's interesting that  
the below INSERT passes in a NULL value for the entryScoreID.  If  
it automatically creates its own entryScore object, shouldn't it  
be sending in the ID of that object instead of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK a  
class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO "t_entry"("c_still_alive_first", "c_games",  
"c_still_alive_third", "spare_int", "userID", "id", "c_name",  
"c_picks_confirmed", "spare_bool", "c_last_save", "c_groups",  
"entryScoreID", "poolID", "entryAdminID", "c_still_alive_second",  
"spare_str", "c_password", "c_tie_breaker") VALUES ('false', 15,  
'false', 0, 101, 101, 'DEFAULT', 'true', 'false',  
TIMESTAMP '2008-06-02 21:32:13.802', 4, NULL, 101, NULL,  
'false', '', 'pw', 0)" withBindings: >:
  Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\"entryScoreID\" IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have "owns  
destination" checked? If yes then by creating an Entry object EOF  
does create an EntryScore object for you automatically. So when  
you save changes that object is still in the editing context but  
no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then, in  
turn, I add an EntryScore obejct to the entry object.  Note that  
the entryScore relationship in Entry (the one causing the  
problems) is set to "propagate primary key".  I have tried  
making it both mandatory and optional with the same results.   
Any ideas what may be causing this?


Here's the basic code:

EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

EntryScore es = EntryScore.createEntryScore(ec, 0, 0, 0, 0, 0, 0);
entry.setEntryScore(es);
ec.saveChanges();

exception (on the SaveChanges line):

Jun 01 21:19:54 netBrackets[64375] (ERXNSLogLog4jBridge.java:41)  
WARN  NSLog  -  
:  
Exception occurred while handling request:
; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( ; propertyKey:  
numThirds; type: NullPropertyException; additionalExceptions:  
(  )>,
; propertyKey:  
numWins; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
place; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
points; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
potential; type: NullPropertyException; additionalExceptions:  
(  )> )>
[2008-6-2 3:19:54 CDT]   
; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( ; propertyKey:  
numThirds; type: NullPropertyException; additionalExce

Re: This is very strange for me - need help

2008-06-03 Thread Amedeo Mantica

I removed some flattened relationships and now works fine
Regards
Amedeo

On 30/mag/08, at 18:47, Alan Ward wrote:



My guess is that you are doing the insert twice in the same  
transaction.  The transaction is then rolled back and consequently you
can manually insert the same values with no violation of the  
uniqueness constraint.  Turn on EOAdaptorDebugEnabled and
watch the SQL that's generated to get a better idea of what's going  
on.


Alan

On May 30, 2008, at 10:38 AM, Amedeo Mantica wrote:


I got this error:


[2008-5-30 18:31:43 CEST]   
com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO INDBLocalizedString(it, de, id, en) VALUES  
(?, ?, ?, ?)" withBindings: 1:"write ITghgf"(it), 2:"write DE"(de),  
3:128(id), 4:"write EN"(en)>:
Next exception:SQL State:42000 -- error code: 0 -- msg: ERROR -  
Value for column 'id' is not unique.
SQL: INSERT INTO INDBLocalizedString(it, de, id, en) VALUES ('write  
ITghgf', 'write DE', 128, 'write EN')



I checked and rechecked, the value for column ID is UNIQUE!!!
also typing the SQL directly into database works!

Any suggestion?!!
Thanks
Amedeo
 ___
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/award%40apple.com

This email sent to [EMAIL PROTECTED]




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Fwd: Relationship across model boundaries failing

2008-06-03 Thread Juergen Lorenz Simon

Hi,

Interesting to see which turn the discussion took. I assume the answer  
to the problem is, that
in the current state it's not possible. I worked around the problem by  
now.


The problem arose from the need to maintain a couple of IDs in a  
central place (table) and
have several models use it. All I needed was relationships from the  
other models to the model
in question, via n:m tables, without back relationships. I'm still  
slightly puzzled that it won't work.


Thanks for the help, as always.

J.L.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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Null property exceptions

2008-06-03 Thread Johann Werner
Why do you have the attribute "entryScoreID" in the Entry entity? If  
you make a to-one relationship Entry->EntryScore and propagate the PK  
you only need an FK attribute in EntryScore that gets set to the PK of  
Entry by EOF.
In your exception it is complaining about the entryScoreID from Entry  
_not_ from EntryScore.


jw


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?




On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
 You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


 EOQualifier poolQual = Pool.NAME.eq(name);
 pool = Pool.fetchRequiredPool(ec, poolQual);
 entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

 entry.entryScore().setNumSecs(0);
 entry.entryScore().setNumThirds(0);
 entry.entryScore().setNumWins(0);
 entry.entryScore().setPlace(0);
 entry.entryScore().setPoints(0);
 entry.entryScore().setPotential(0);
 ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
"propagates primary key" and "owns destination" options for this  
relationship, but I'm not sure what it is.  It's interesting that  
the below INSERT passes in a NULL value for the entryScoreID.  If  
it automatically creates its own entryScore object, shouldn't it  
be sending in the ID of that object instead of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK a  
class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
"INSERT INTO "t_entry"("c_still_alive_first", "c_games",  
"c_still_alive_third", "spare_int", "userID", "id", "c_name",  
"c_picks_confirmed", "spare_bool", "c_last_save", "c_groups",  
"entryScoreID", "poolID", "entryAdminID", "c_still_alive_second",  
"spare_str", "c_password", "c_tie_breaker") VALUES ('false', 15,  
'false', 0, 101, 101, 'DEFAULT', 'true', 'false',  
TIMESTAMP '2008-06-02 21:32:13.802', 4, NULL, 101, NULL,  
'false', '', 'pw', 0)" withBindings: >:
  Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\"entryScoreID\" IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have "owns  
destination" checked? If yes then by creating an Entry object EOF  
does create an EntryScore object for you automatically. So when  
you save changes that object is still in the editing context but  
no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then, in  
turn, I add an EntryScore obejct to the entry object.  Note that  
the entryScore relationship in Entry (the one causing the  
problems) is set to "propagate primary key".  I have tried  
making it both mandatory and optional with the same results.   
Any ideas what may be causing this?


Here's the basic code:

EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, "DEFAULT", "pw", true, false, new  
Integer(0), "", false, false, false, new Integer(0), pool, user);

EntryScore es = EntryScore.createEntryScore(ec, 0, 0, 0, 0, 0, 0);
entry.setEntryScore(es);
ec.saveChanges();

exception (on the SaveChanges line):

Jun 01 21:19:54 netBrackets[64375] (ERXNSLogLog4jBridge.java:41)  
WARN  NSLog  -  
:  
Exception occurred while handling request:
; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( ; propertyKey:  
numThirds; type: NullPropertyException; additionalExceptions:  
(  )>,
; propertyKey:  
numWins; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
place; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
points; type: NullPropertyException; additionalExceptions: (  )>,
; propertyKey:  
potential; type: NullPropertyException; additionalExceptions:  
(  )> )>
[2008-6-2 3:19:54 CDT]   
; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( ; propertyKey:  
numThirds; type: NullPropertyException; additionalExceptions:  
(  )>,
; propert