Re: Test that fail randomly with wounit

2013-06-18 Thread Pascal Robert

Le 2013-06-18 à 20:41, Samuel Pelletier  a écrit :

> Hi Chuck,
> 
> I think your last comment was correct: 
> 
>>> I think that means a model is being used that is not yet in an EOModelGroup.
> 
> I added the model name to the new MockEditingContext() call and no more fail 
> to date when I run only this test class. If I run the complete project tests, 
> I still have intermittent fail at the same place even after adding the model 
> name to all the MockEditingContext constructors. I hate intermittent 
> problems! 
> 
> Maybe Henrique Prange understand the situation. If the model name is 
> mandatory to ensure it's loading before the test run, I suggest to enforce at 
> least one name in the constructor of the MockEditingContext.

And lucky you, he will be at WOWODC :-)

> Samuel
> 
> 
> Le 2013-06-18 à 18:10, Chuck Hill  a écrit :
> 
>> Hi Samuel,
>> 
>> JUnit can/will run tests in a different order each time.  So if your tests 
>> depend on something else having happened (EOF getting fully initialized, 
>> some other test running first) you will see random failures like this.  I 
>> think it an/will run tests in multiple threads too (I use both JUnit and 
>> TestNG and sometimes mix up their features :-) so concurrency can also cause 
>> problems like this.
>> 
>> 
>> On 2013-06-18, at 2:13 PM, Samuel Pelletier wrote:
>> 
>>> Hi,
>>> 
>>> I have a test that succeed sometime and fail other times. If I run the 
>>> jUnit source that contain this test, it fail sometime in the 
>>> loadPermission() method. I have no idea where to look at. It is even more 
>>> strange that sometime, I can have 6 successful tests and after 4 failed in 
>>> a row.
>>> 
>>> These test are inside a framework project. When I run the tests, I have 
>>> these lines on the console but they do not seems to cause problem with the 
>>> about 100 others tests in the project.
>>> 
>>> - The EOModel 'erprototypes' has an empty connection dictionary.
>>> - The EOModel 'erprototypes' has an empty connection dictionary.
>> 
>> Those are likely to be OK.
>> 
>>> - The EOModel 'KAAccessControl' has an empty connection dictionary.
>>> - The EOModel 'KAAccessControl' has an empty connection dictionary.
>> 
>> I am guessing you need that model for the permissions testing.  This is 
>> likely a problem.
>> 
>> 
>>> - The model 'KAAccessControl' (path: 
>>> file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld)
>>>  cannot be added to model group >> "file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld"),
>>>  ("erprototypes", 
>>> "file:/Users/sam/work/WonderSource/Frameworks/Core/ERPrototypes/Resources/erprototypes.eomodeld"))>
>>>  because it already contains a model with that name.
>>> 
>>> Any idea?
>> 
>> Do you have multiple EOF stacks (multiple EOObjectStoreCoordinators)?  You 
>> could be using default* methods that only work with the default stack.  Is 
>> there a stack trace for that last one to show where duplication model 
>> loading is having?
>> 
>> 
>>> 
>>> Samuel
>>> 
>>> RolesFileLoader load a plist file to create and update objects in the 
>>> database.
>>> 
>>> Here is a my test source with a single test:
>>> 
>>> @Rule public MockEditingContext ec = new MockEditingContext();
>>> 
>>> @Before
>>> public void loadPermissions() {
>>> ERXProperties.setStringForKey("SampleRolesFile", 
>>> RolesFileLoader.rolesFileNamePropertyKey);
>>> RolesFileLoader.loadRolesFile(ec);
>>> }
>>> 
>>> @Test
>>> public void testReloadPermissions() {
>>> ERXProperties.setStringForKey("SampleRolesFile", 
>>> RolesFileLoader.rolesFileNamePropertyKey);
>>> RolesFileLoader.loadRolesFile(ec);
>>> }
>>> 
>>> The error stack:
>>> 
>>> com.webobjects.foundation.NSForwardException 
>>> [java.lang.reflect.InvocationTargetException] 
>>> null:java.lang.reflect.InvocationTargetException
>>> …
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at 
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>> at 
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at 
>>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
>>> ... 32 more
>>> Caused by: java.lang.NullPointerException
>>> at 
>>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
>> 
>> I think that means a model is being used that is not yet in an EOModelGroup.
>> 
>> 
>> Chuck
>> 
>>> at 
>>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>>> at 
>>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:290)
>>> at com.webobjects.eoaccess.EOAttribute.(EOAttribute.j

Re: Test that fail randomly with wounit

2013-06-18 Thread Samuel Pelletier
Hi Chuck,

I think your last comment was correct: 

>> I think that means a model is being used that is not yet in an EOModelGroup.

I added the model name to the new MockEditingContext() call and no more fail to 
date when I run only this test class. If I run the complete project tests, I 
still have intermittent fail at the same place even after adding the model name 
to all the MockEditingContext constructors. I hate intermittent problems! 

Maybe Henrique Prange understand the situation. If the model name is mandatory 
to ensure it's loading before the test run, I suggest to enforce at least one 
name in the constructor of the MockEditingContext.

Samuel


Le 2013-06-18 à 18:10, Chuck Hill  a écrit :

> Hi Samuel,
> 
> JUnit can/will run tests in a different order each time.  So if your tests 
> depend on something else having happened (EOF getting fully initialized, some 
> other test running first) you will see random failures like this.  I think it 
> an/will run tests in multiple threads too (I use both JUnit and TestNG and 
> sometimes mix up their features :-) so concurrency can also cause problems 
> like this.
> 
> 
> On 2013-06-18, at 2:13 PM, Samuel Pelletier wrote:
> 
>> Hi,
>> 
>> I have a test that succeed sometime and fail other times. If I run the jUnit 
>> source that contain this test, it fail sometime in the loadPermission() 
>> method. I have no idea where to look at. It is even more strange that 
>> sometime, I can have 6 successful tests and after 4 failed in a row.
>> 
>> These test are inside a framework project. When I run the tests, I have 
>> these lines on the console but they do not seems to cause problem with the 
>> about 100 others tests in the project.
>> 
>> - The EOModel 'erprototypes' has an empty connection dictionary.
>> - The EOModel 'erprototypes' has an empty connection dictionary.
> 
> Those are likely to be OK.
> 
>> - The EOModel 'KAAccessControl' has an empty connection dictionary.
>> - The EOModel 'KAAccessControl' has an empty connection dictionary.
> 
> I am guessing you need that model for the permissions testing.  This is 
> likely a problem.
> 
> 
>> - The model 'KAAccessControl' (path: 
>> file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld)
>>  cannot be added to model group > "file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld"),
>>  ("erprototypes", 
>> "file:/Users/sam/work/WonderSource/Frameworks/Core/ERPrototypes/Resources/erprototypes.eomodeld"))>
>>  because it already contains a model with that name.
>> 
>> Any idea?
> 
> Do you have multiple EOF stacks (multiple EOObjectStoreCoordinators)?  You 
> could be using default* methods that only work with the default stack.  Is 
> there a stack trace for that last one to show where duplication model loading 
> is having?
> 
> 
>> 
>> Samuel
>> 
>> RolesFileLoader load a plist file to create and update objects in the 
>> database.
>> 
>> Here is a my test source with a single test:
>> 
>>  @Rule public MockEditingContext ec = new MockEditingContext();
>>  
>>  @Before
>>  public void loadPermissions() {
>>  ERXProperties.setStringForKey("SampleRolesFile", 
>> RolesFileLoader.rolesFileNamePropertyKey);
>>  RolesFileLoader.loadRolesFile(ec);
>>  }
>> 
>>  @Test
>>  public void testReloadPermissions() {
>>  ERXProperties.setStringForKey("SampleRolesFile", 
>> RolesFileLoader.rolesFileNamePropertyKey);
>>  RolesFileLoader.loadRolesFile(ec);
>>  }
>> 
>> The error stack:
>> 
>> com.webobjects.foundation.NSForwardException 
>> [java.lang.reflect.InvocationTargetException] 
>> null:java.lang.reflect.InvocationTargetException
>>  …
>> Caused by: java.lang.reflect.InvocationTargetException
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>  at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>  at 
>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
>>  ... 32 more
>> Caused by: java.lang.NullPointerException
>>  at 
>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
> 
> I think that means a model is being used that is not yet in an EOModelGroup.
> 
> 
> Chuck
> 
>>  at 
>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>>  at 
>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:290)
>>  at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>>  at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>>  at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
>>  at com.webobjects.eoaccess.EOEntity.classProperties(

Re: Test that fail randomly with wounit

2013-06-18 Thread Samuel Pelletier
Hi Chuck,

> Hi Samuel,
> 
> JUnit can/will run tests in a different order each time.  So if your tests 
> depend on something else having happened (EOF getting fully initialized, some 
> other test running first) you will see random failures like this.  I think it 
> an/will run tests in multiple threads too (I use both JUnit and TestNG and 
> sometimes mix up their features :-) so concurrency can also cause problems 
> like this.

I was wondering a multiple test side effect and build a single test class to 
verify and the situation is still there (I put the complete class except import 
and static final declarations in my previous message).

I suspect some concurrency problem but where is the concurrency with a single 
test running? Even the debugger see only one thread.

>> 
>> I have a test that succeed sometime and fail other times. If I run the jUnit 
>> source that contain this test, it fail sometime in the loadPermission() 
>> method. I have no idea where to look at. It is even more strange that 
>> sometime, I can have 6 successful tests and after 4 failed in a row.
>> 
>> These test are inside a framework project. When I run the tests, I have 
>> these lines on the console but they do not seems to cause problem with the 
>> about 100 others tests in the project.
>> 
>> - The EOModel 'erprototypes' has an empty connection dictionary.
>> - The EOModel 'erprototypes' has an empty connection dictionary.
> 
> Those are likely to be OK.
> 
>> - The EOModel 'KAAccessControl' has an empty connection dictionary.
>> - The EOModel 'KAAccessControl' has an empty connection dictionary.
> 
> I am guessing you need that model for the permissions testing.  This is 
> likely a problem.
> 
>> - The model 'KAAccessControl' (path: 
>> file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld)
>>  cannot be added to model group > "file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld"),
>>  ("erprototypes", 
>> "file:/Users/sam/work/WonderSource/Frameworks/Core/ERPrototypes/Resources/erprototypes.eomodeld"))>
>>  because it already contains a model with that name.
>> 
>> Any idea?
> 
> Do you have multiple EOF stacks (multiple EOObjectStoreCoordinators)?  You 
> could be using default* methods that only work with the default stack.  Is 
> there a stack trace for that last one to show where duplication model loading 
> is having?

I added dummy connection information in the model and the 2 empty connection 
dictionary warning for KAAccessControl disappeared but not the "… already 
contains a model with that name." warning. Those are printed during the 
MockEditingContext creation. I have no idea that explain why the warning are 
duplicated. 

I do not use multiple EOF stack and anyway in the context of running the test, 
everything is from the sole MockEditingContext defined in the test class.

The NPE is raised on the first EOUtilities.createAndInsertInstance() call 
sometime.

Samuel

> 
> 
>> 
>> Samuel
>> 
>> RolesFileLoader load a plist file to create and update objects in the 
>> database.
>> 
>> Here is a my test source with a single test:
>> 
>>  @Rule public MockEditingContext ec = new MockEditingContext();
>>  
>>  @Before
>>  public void loadPermissions() {
>>  ERXProperties.setStringForKey("SampleRolesFile", 
>> RolesFileLoader.rolesFileNamePropertyKey);
>>  RolesFileLoader.loadRolesFile(ec);
>>  }
>> 
>>  @Test
>>  public void testReloadPermissions() {
>>  ERXProperties.setStringForKey("SampleRolesFile", 
>> RolesFileLoader.rolesFileNamePropertyKey);
>>  RolesFileLoader.loadRolesFile(ec);
>>  }
>> 
>> The error stack:
>> 
>> com.webobjects.foundation.NSForwardException 
>> [java.lang.reflect.InvocationTargetException] 
>> null:java.lang.reflect.InvocationTargetException
>>  …
>> Caused by: java.lang.reflect.InvocationTargetException
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>  at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>  at 
>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
>>  ... 32 more
>> Caused by: java.lang.NullPointerException
>>  at 
>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
> 
> I think that means a model is being used that is not yet in an EOModelGroup.
> 
> 
> Chuck
> 
>>  at 
>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>>  at 
>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:290)
>>  at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>>  at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:81

Re: Test that fail randomly with wounit

2013-06-18 Thread Chuck Hill
Hi Samuel,

JUnit can/will run tests in a different order each time.  So if your tests 
depend on something else having happened (EOF getting fully initialized, some 
other test running first) you will see random failures like this.  I think it 
an/will run tests in multiple threads too (I use both JUnit and TestNG and 
sometimes mix up their features :-) so concurrency can also cause problems like 
this.


On 2013-06-18, at 2:13 PM, Samuel Pelletier wrote:

> Hi,
> 
> I have a test that succeed sometime and fail other times. If I run the jUnit 
> source that contain this test, it fail sometime in the loadPermission() 
> method. I have no idea where to look at. It is even more strange that 
> sometime, I can have 6 successful tests and after 4 failed in a row.
> 
> These test are inside a framework project. When I run the tests, I have these 
> lines on the console but they do not seems to cause problem with the about 
> 100 others tests in the project.
> 
> - The EOModel 'erprototypes' has an empty connection dictionary.
> - The EOModel 'erprototypes' has an empty connection dictionary.

Those are likely to be OK.

> - The EOModel 'KAAccessControl' has an empty connection dictionary.
> - The EOModel 'KAAccessControl' has an empty connection dictionary.

I am guessing you need that model for the permissions testing.  This is likely 
a problem.


> - The model 'KAAccessControl' (path: 
> file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld)
>  cannot be added to model group  "file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld"),
>  ("erprototypes", 
> "file:/Users/sam/work/WonderSource/Frameworks/Core/ERPrototypes/Resources/erprototypes.eomodeld"))>
>  because it already contains a model with that name.
> 
> Any idea?

Do you have multiple EOF stacks (multiple EOObjectStoreCoordinators)?  You 
could be using default* methods that only work with the default stack.  Is 
there a stack trace for that last one to show where duplication model loading 
is having?


> 
> Samuel
> 
> RolesFileLoader load a plist file to create and update objects in the 
> database.
> 
> Here is a my test source with a single test:
> 
>   @Rule public MockEditingContext ec = new MockEditingContext();
>   
>   @Before
>   public void loadPermissions() {
>   ERXProperties.setStringForKey("SampleRolesFile", 
> RolesFileLoader.rolesFileNamePropertyKey);
>   RolesFileLoader.loadRolesFile(ec);
>   }
> 
>   @Test
>   public void testReloadPermissions() {
>   ERXProperties.setStringForKey("SampleRolesFile", 
> RolesFileLoader.rolesFileNamePropertyKey);
>   RolesFileLoader.loadRolesFile(ec);
>   }
> 
> The error stack:
> 
> com.webobjects.foundation.NSForwardException 
> [java.lang.reflect.InvocationTargetException] 
> null:java.lang.reflect.InvocationTargetException
>   …
> Caused by: java.lang.reflect.InvocationTargetException
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>   at 
> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
>   ... 32 more
> Caused by: java.lang.NullPointerException
>   at 
> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)

I think that means a model is being used that is not yet in an EOModelGroup.


Chuck

>   at 
> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>   at 
> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:290)
>   at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>   at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>   at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
>   at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098)
>   at 
> com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321)
>   at 
> com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667)
>   at 
> com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88)
>   at 
> com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:111)
>   at 
> com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:100)
>   at 
> com.webobjects.eocontrol.EOGenericRecord.(EOGenericRecord.java:73)
>   at er.extensions.eof.ERXGenericRecord.(ERXGenericRecord.java:106)
>   at 
> com.kaviju.accesscontrol.model.base._KAAccessList.(_KAAccessList.java:15)
>   at 
> com.kaviju.accesscontrol.mode

Test that fail randomly with wounit

2013-06-18 Thread Samuel Pelletier
Hi,

I have a test that succeed sometime and fail other times. If I run the jUnit 
source that contain this test, it fail sometime in the loadPermission() method. 
I have no idea where to look at. It is even more strange that sometime, I can 
have 6 successful tests and after 4 failed in a row.

These test are inside a framework project. When I run the tests, I have these 
lines on the console but they do not seems to cause problem with the about 100 
others tests in the project.

- The EOModel 'erprototypes' has an empty connection dictionary.
- The EOModel 'erprototypes' has an empty connection dictionary.
- The EOModel 'KAAccessControl' has an empty connection dictionary.
- The EOModel 'KAAccessControl' has an empty connection dictionary.
- The model 'KAAccessControl' (path: 
file:/Users/sam/work/KavijuWO/KAAccessControl/Resources/KAAccessControl.eomodeld)
 cannot be added to model group 
 because it already contains a model with that name.

Any idea?

Samuel

RolesFileLoader load a plist file to create and update objects in the database.

Here is a my test source with a single test:

@Rule public MockEditingContext ec = new MockEditingContext();

@Before
public void loadPermissions() {
ERXProperties.setStringForKey("SampleRolesFile", 
RolesFileLoader.rolesFileNamePropertyKey);
RolesFileLoader.loadRolesFile(ec);
}

@Test
public void testReloadPermissions() {
ERXProperties.setStringForKey("SampleRolesFile", 
RolesFileLoader.rolesFileNamePropertyKey);
RolesFileLoader.loadRolesFile(ec);
}

The error stack:

com.webobjects.foundation.NSForwardException 
[java.lang.reflect.InvocationTargetException] 
null:java.lang.reflect.InvocationTargetException
…
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
... 32 more
Caused by: java.lang.NullPointerException
at 
com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
at 
com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
at 
com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:290)
at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098)
at 
com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321)
at 
com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667)
at 
com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88)
at 
com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:111)
at 
com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:100)
at 
com.webobjects.eocontrol.EOGenericRecord.(EOGenericRecord.java:73)
at er.extensions.eof.ERXGenericRecord.(ERXGenericRecord.java:106)
at 
com.kaviju.accesscontrol.model.base._KAAccessList.(_KAAccessList.java:15)
at 
com.kaviju.accesscontrol.model.KAAccessList.(KAAccessList.java:8)
... 37 more

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

auditKeys and such

2013-06-18 Thread Theodore Petrosky
I an using ERCoreBusinessLogic in my d2w app. It seems to be working except on 
my to-many relationship batch size.

Interesting when I change the value in the batch size, I see the update in the 
backend:

 4|batchSize.EditRelationshipEmbeddedPOCenterTenant|1|{
"_V" = {
"class" = "java.lang.Integer";
"value" = "51";
};

however the next time I show the page, the number defaults back to 5.

am I missing a binding somewhere?

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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: updating Wonder?

2013-06-18 Thread Jesse Tayler

good point!

including that argument on the .json writer performed as expected.

...continues through forest...




On Jun 18, 2013, at 3:19 PM, prob...@macti.ca wrote:

> On Tue, 18 Jun 2013 14:57:16 -0400
> Jesse Tayler  wrote:
>> if I’m getting:
>>  There is no writer for the format 'jsonp’.
> 
> If you are trying by adding .jsonp as the format, it won't work. It's a query 
> argument in the URL:
> 
>  ?callback=NameOfYourJavaScriptCallbackMethod
> 
>> after turning on the properties here:
>> http://wiki.wocommunity.org/display/documentation/ERRest+Framework#ERRestFramework-SameOriginpolicy
>> is this perhaps because my Wonder is not up to date?
>> I have a relatively recently created repository (6 mos.?), but I’m uncertain 
>> if I’m incrementally building or updating from GIT
>> http://wiki.wocommunity.org/display/documentation/Working+with+Wonder+source+in+Eclipse
>> anyone have advice on that?
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>> This email sent to prob...@macti.ca

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

This email sent to arch...@mail-archive.com

Re: updating Wonder?

2013-06-18 Thread probert

On Tue, 18 Jun 2013 14:57:16 -0400
 Jesse Tayler  wrote:

if I’m getting:

There is no writer for the format 'jsonp’.


If you are trying by adding .jsonp as the format, it won't work. It's 
a query argument in the URL:


  ?callback=NameOfYourJavaScriptCallbackMethod


after turning on the properties here:

http://wiki.wocommunity.org/display/documentation/ERRest+Framework#ERRestFramework-SameOriginpolicy

is this perhaps because my Wonder is not up to date?

I have a relatively recently created repository (6 mos.?), but I’m 
uncertain if I’m incrementally building or updating from GIT


http://wiki.wocommunity.org/display/documentation/Working+with+Wonder+source+in+Eclipse

anyone have advice on that?



___
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:
https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

This email sent to prob...@macti.ca


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

This email sent to arch...@mail-archive.com

Re: updating Wonder?

2013-06-18 Thread Theodore Petrosky
are you using git? I just issue the command:

git fetch upstream

in my repository and get updated.



--- On Tue, 6/18/13, Jesse Tayler  wrote:

> From: Jesse Tayler 
> Subject: updating Wonder?
> To: "webobjects-dev@lists.apple.com Development" 
> 
> Date: Tuesday, June 18, 2013, 2:57 PM
> if I’m getting:
> 
>     There is no writer for the format
> 'jsonp’.
> 
> after turning on the properties here:
> 
> http://wiki.wocommunity.org/display/documentation/ERRest+Framework#ERRestFramework-SameOriginpolicy
> 
> is this perhaps because my Wonder is not up to date?
> 
> I have a relatively recently created repository (6 mos.?),
> but I’m uncertain if I’m incrementally building or
> updating from GIT
> 
> http://wiki.wocommunity.org/display/documentation/Working+with+Wonder+source+in+Eclipse
> 
> anyone have advice on that?
> 
> 
> 
>  ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

updating Wonder?

2013-06-18 Thread Jesse Tayler
if I’m getting:

There is no writer for the format 'jsonp’.

after turning on the properties here:

http://wiki.wocommunity.org/display/documentation/ERRest+Framework#ERRestFramework-SameOriginpolicy

is this perhaps because my Wonder is not up to date?

I have a relatively recently created repository (6 mos.?), but I’m uncertain if 
I’m incrementally building or updating from GIT

http://wiki.wocommunity.org/display/documentation/Working+with+Wonder+source+in+Eclipse

anyone have advice on that?



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ERD2WDisplayStringWithLineBreaks and  

2013-06-18 Thread Theodore Petrosky
ok, I see that ERD2WDisplayStringWithLineBreaks is a wrapper around 
ERXStringWithLineBreaks. 

I am using this on my List page for a column that has text. but nothing I have 
tried gets rid of the   when the value is null

I have a rule:

150 : (pageConfiguration like '*Center' and propertyKey = 'centerMandatory') => 
escapeHTML = "false" [com.webobjects.directtoweb.BooleanAssignment]

that does nothing. I even tried:

155 : *true* => escapeHTML = "false" 
[com.webobjects.directtoweb.BooleanAssignment]

i see this in the logs when I turn on rule tracing:


fire :100 : ((pageConfiguration = 'ListPOCenter') and (propertyKey = 
'centerMandatory')) => componentName = ERD2WDisplayStringWithLineBreaks (100502)

fire :100 : ((pageConfiguration = 'ListPOCenter') and (propertyKey = 
'centerMandatory')) => componentName = ERD2WDisplayStringWithLineBreaks (100502)

I don't get it.

can someone shed some light?

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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ec.SaveChanges and relationship

2013-06-18 Thread Raymond NANEON
Models are on the same database. I have set relationship two entities in the 
same model and there is no problem but with another model it fails.

I use dbConnectServerGLOBAL, dbConnectUserGLOBAL, dbConnectPasswordGLOBAL for 
models and there is no connection problem.

Thanks Chuck

Le 18 juin 2013 à 18:05, Chuck Hill  a écrit :

> Are they in the same database?  If so, the connection information for the two 
> models must be absolutely identical.
> 
> Chuck
> 
> 
> On 2013-06-18, at 8:01 AM, Raymond NANEON wrote:
> 
>> Oupppsss, I forgot something, EOIndividuUlr and EOPersonnel are in 
>> differents models.
>> Envoyé depuis iCloud
>> 
>> Le 18 jun 2013 à 07:59, Raymond NANEON  a écrit :
>> 
>>> Here is the complete stacktrace : 
>>> 
>>> juin 18 16:56:00 PreProjets[8484] INFO  er.transaction.adaptor.Exceptions  
>>> - Database Exception occured: java.lang.NullPointerException
>>> java.lang.NullPointerException
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
>>>at 
>>> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>>>at 
>>> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>>>at 
>>> er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)
>>>at 
>>> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>>>at 
>>> er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
>>>at 
>>> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
>>>at 
>>> com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
>>>at 
>>> com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
>>>at 
>>> er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:357)
>>>at 
>>> com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
>>>at 
>>> er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:68)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
>>>at 
>>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
>>>at 
>>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
>>>at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1305)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)
>>>at 
>>> er.extensions.eof.ERXDatabaseContext.objectsForSourceGlobalID(ERXDatabaseContext.java:50)
>>>at 
>>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
>>>at 
>>> com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
>>>at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1265)
>>>at 
>>> com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)
>>>at 
>>> com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
>>>at 
>>> com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
>>>at 
>>> com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:99)
>>>at com.webobjects.foundation.NSArray.containsObject(NSArray.java:460)
>>>at 
>>> com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)
>>>at 
>>> er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1223)
>>>at 
>>> utt.rec.projet.server.metier.grhum._EOIndividuUlr.addToPersonnels(_EOIndividuUlr.java:895)
>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess

Re: ec.SaveChanges and relationship

2013-06-18 Thread Raymond NANEON
Yep Samuel in the stack it tries to fetch personnels in EOIndividuUlr but the 
problem "personnel".setIndividuRelationship(individu)  is a new entity so, 
there is no primary key ? 
I am not at my office, may be tomorrow for SQL expression.

Thanks

Le 18 juin 2013 à 18:30, Samuel Pelletier  a écrit :

> Strange, it seems EOF failed to create a global id for a result. I think the 
> stack indicate EOF is fetching toMany named "personnels" in the 
> "EOIndividuUlr" entity.
> 
> I would check the SQL issued by EOF on the console, you may find the row that 
> cause this, check for primary and foreign key problems.
> 
> Samuel
> 
> Le 2013-06-18 à 10:59, Raymond NANEON  a écrit :
> 
>> Here is the complete stacktrace : 
>> 
>> juin 18 16:56:00 PreProjets[8484] INFO  er.transaction.adaptor.Exceptions  - 
>> Database Exception occured: java.lang.NullPointerException
>> java.lang.NullPointerException
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
>> at 
>> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>> at 
>> er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)
>> at 
>> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>> at 
>> er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
>> at 
>> com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
>> at 
>> er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:357)
>> at 
>> com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
>> at 
>> com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
>> at 
>> er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:68)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
>> at 
>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
>> at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1305)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)
>> at 
>> er.extensions.eof.ERXDatabaseContext.objectsForSourceGlobalID(ERXDatabaseContext.java:50)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
>> at 
>> com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
>> at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1265)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)
>> at 
>> com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
>> at 
>> com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
>> at 
>> com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:99)
>> at com.webobjects.foundation.NSArray.containsObject(NSArray.java:460)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)
>> at 
>> er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1223)
>> at 
>> utt.rec.projet.server.metier.grhum._EOIndividuUlr.addToPersonnels(_EOIndividuUlr.java:895)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
>> sun.reflect.Delegati

Re: ec.SaveChanges and relationship

2013-06-18 Thread Samuel Pelletier
Strange, it seems EOF failed to create a global id for a result. I think the 
stack indicate EOF is fetching toMany named "personnels" in the "EOIndividuUlr" 
entity.

I would check the SQL issued by EOF on the console, you may find the row that 
cause this, check for primary and foreign key problems.

Samuel

Le 2013-06-18 à 10:59, Raymond NANEON  a écrit :

> Here is the complete stacktrace : 
> 
> juin 18 16:56:00 PreProjets[8484] INFO  er.transaction.adaptor.Exceptions  - 
> Database Exception occured: java.lang.NullPointerException
> java.lang.NullPointerException
> at 
> com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
> at 
> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
> at 
> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
> at 
> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
> at 
> er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)
> at 
> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
> at 
> er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
> at 
> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
> at 
> com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)
> at 
> com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
> at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
> at 
> com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
> at 
> er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:357)
> at 
> com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
> at 
> com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
> at 
> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
> at 
> er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:68)
> at 
> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
> at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
> at 
> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
> at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1305)
> at 
> com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)
> at 
> er.extensions.eof.ERXDatabaseContext.objectsForSourceGlobalID(ERXDatabaseContext.java:50)
> at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
> at 
> com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
> at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1265)
> at 
> com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)
> at 
> com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
> at 
> com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
> at 
> com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:99)
> at com.webobjects.foundation.NSArray.containsObject(NSArray.java:460)
> at 
> com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)
> at 
> er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1223)
> at 
> utt.rec.projet.server.metier.grhum._EOIndividuUlr.addToPersonnels(_EOIndividuUlr.java:895)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at 
> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
> at 
> com.webobjects.eocontrol.EOCustomObject.addObjectToPropertyWithKey(EOCustomObject.java:940)
> at 
> com.webobjects.eocontrol.EOCustomObject.addObjectToBothSidesOfRelationshi

Re: Rép : Re: ec.SaveChanges and relationship

2013-06-18 Thread Chuck Hill
Are they in the same database?  If so, the connection information for the two 
models must be absolutely identical.

Chuck


On 2013-06-18, at 8:01 AM, Raymond NANEON wrote:

> Oupppsss, I forgot something, EOIndividuUlr and EOPersonnel are in differents 
> models.
> Envoyé depuis iCloud
> 
> Le 18 jun 2013 à 07:59, Raymond NANEON  a écrit :
> 
>> Here is the complete stacktrace : 
>> 
>> juin 18 16:56:00 PreProjets[8484] INFO  er.transaction.adaptor.Exceptions  - 
>> Database Exception occured: java.lang.NullPointerException
>> java.lang.NullPointerException
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
>> at 
>> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>> at 
>> er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)
>> at 
>> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>> at 
>> er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
>> at 
>> com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
>> at 
>> er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:357)
>> at 
>> com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
>> at 
>> com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
>> at 
>> er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:68)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
>> at 
>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
>> at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1305)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)
>> at 
>> er.extensions.eof.ERXDatabaseContext.objectsForSourceGlobalID(ERXDatabaseContext.java:50)
>> at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
>> at 
>> com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
>> at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1265)
>> at 
>> com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)
>> at 
>> com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
>> at 
>> com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
>> at 
>> com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:99)
>> at com.webobjects.foundation.NSArray.containsObject(NSArray.java:460)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)
>> at 
>> er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1223)
>> at 
>> utt.rec.projet.server.metier.grhum._EOIndividuUlr.addToPersonnels(_EOIndividuUlr.java:895)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>> at 
>> com.webobjects.eocontrol.EOCustomObject.addObjectToPropertyWithKey(EOCustomObject.java:940)
>> at 
>> com.we

Re: Webobjects-dev Digest, Vol 10, Issue 389

2013-06-18 Thread Samuel Pelletier
Le 2013-06-17 à 15:51, Johnny Miller  a écrit :

> Thank you Samuel, that's very interesting.  On something like editing a pages 
> document or a spreadsheet - do you think the browser sends every change to 
> the server where the document's "state" is maintained?  Or do you think it 
> builds the document locally and periodically sends the changes to the server? 
>  I haven't tried it yet - do you know if you can work with the iCloud 
> versions of iWork offline?

The app send request for almost every keystroke (and I would design it like 
this to make sure the cloud is up to date) but these does not seems to slow the 
UI. The requests are very fast, Safari list <50ms processing time. I tried to 
switch off the network with an open document and I received a warning but on 
network restoration, the app confirmed the changes where saved. This is the 
behaviour I expected. I did not tried to close the document editing window to 
check for persistent storage of these transactions but I do not expect it to 
work, I would qualify this as very hard, almost impossible to do right. Even 
handling network loss for a long period is probably not supported, especially 
if the document was edited somewhere else by the iCloud or standalone app.


> As a side note (OK complete tangent) I've been thinking a lot about Project 
> Wonder's Ajax framework and your comment kind of reminds me about an idea I 
> had for creating an ajax element component.  The ajax element would work like 
> the ajax slider where every change (even keystroke) sends a async request to 
> the server to update the bound object with the new value.  Then the ajax 
> element could broadcast a custom event to the other objects in the browser 
> that it's value has changed.  Other ajax elements like ajax update containers 
> could subscribe for that event and when they receive it initiate their own 
> request to the server to see if their value has changed.  This way Wonder 
> could imitate the bidirectional communication that you see in other 
> frameworks i.e. http://montagejs.org/docs/data-binding.html

My personal opinion on web app developpement is biased by the kind of app I 
tend to build where the data integrity is mandatory. I think it is better to 
use one way or the other but not both at the same time. The Wonder Ajax stuff 
works very well and allows to add smoothness to a web UI but keep all the logic 
on the server side. It is more familiar for us and limit the change to the view 
of the app. More complex Ajax stuff can be used but always as a UI widget. For 
internal app with controlled networks, I think it works quite well, the latency 
can be optimized with dedicated link or QoS. For large scale public apps, the 
user experience may vary a lot because network condition are not stable and 
this may create a support problem.

Sproutcore, Cappuccino, GWT and other javascript app frameworks are a very 
different beast, they are meant to build complete app that run in a browser and 
all require a server side for data storage and retrieval. The easy way is to 
open CRUD rest on all entities and put all the logic on the javascript app with 
all the security risks involved. None of these offer a real integration with a 
rich server side like Wonder. You need to build your server side app and design 
a protocol usually based on Rest. If you need the logic on the server side, you 
need to write and maintain it for client and server. The upside is these allows 
to create app with a very native like functionality without the network latency 
problem (all requests are async) but with a high price, probably at least 2-3 
times the efforts for complex apps.

Anyway, like everything, there is no universal solution, only compromises. The 
targeted users, their number and the complexity of the app may dictate 
difference solutions. It is even possible to build a public app with less 
functions using a javascript app framework with a Wonder Rest backend that is 
managed by a Wonder Ajax or MOTools based UI by users from controlled networks.

Samuel


> 
> Sorry to go off on a tangent like that but it's been what I've been thinking 
> about this weekend and I haven't had anybody to discuss it with ;)
> 
> Best,
> 
> Johnny
> 
> 
> On Jun 17, 2013, at 4:34 AM, Samuel Pelletier  wrote:
> 
>> The are many javascript libraries in the source, the credits part list 
>> Jison, Sizzle, BinaryAjax, Javascript EXIF Reader, Prototype, jQuery, 
>> Sproutcore and yui.
>> 
>> For the server part, the Ajax url are not like WO urls. For such a large 
>> scale and very specialized deployment they probably have something very 
>> optimized for fast response with async server side processing of the 
>> validation and save to persistent storage. This way, you can batch many 
>> small transactions into a single IO intensive process. Almost every 
>> keystrokes create a request like google apps.
>> 
>> Samuel
>> 
>> Le 2013-06-16 à 15:25, Johnny Miller  a écrit :
>> 
>>> Sprout

Re: ec.SaveChanges and relationship

2013-06-18 Thread Samuel Pelletier
I would bet your objects are not from the same EOEditingContext. You can verify 
in the debugger of add a call to localInstanceIn(ec) before using it for your 
relationship.

Samuel

Le 2013-06-18 à 05:43, Musall Maik  a écrit :

> Hi Raymond,
> 
> I have come across those as well some time ago, and it turned out that I 
> didn't strictly obey all the EOF commandments back then.
> 
> http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-The+EOF+Commandments
> 
> If you don't follow those, EOF will fight back with all sorts of strange 
> effects, like those NullPointerExceptions, or missing snapshot exceptions and 
> the like. So I suggest you doublecheck those thoroughly.
> 
> Maik
> 
> 
> 
> Am 18.06.2013 um 09:44 schrieb Raymond NANEON :
> 
>> Hi List,
>> 
>> I have a big problem to save my data. When I set the relastionship 
>> entity1.setEntity2Relationship(entity2), I get a java NullPointerException 
>> at the method who set the relation :
>> 
>> addObjectToBothSidesOfRelationshipWithKey(entity2, _Enity1.ENTITY2_KEY); 
>> <-
>> 
>> When I try another way entity1.setEntity2(enity2) I get the same java 
>> NullPointerException when I want to save entity1.
>> 
>> juin 18 09:34:38 PreProjets[8484] ERROR 
>> er.extensions.appserver.ERXApplication  - 
>> NullPointerException
>>   at 
>> com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
>>  ... skipped 1 stack elements
>>   at 
>> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>>   at 
>> er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)
>>   at 
>> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>>   at 
>> er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>>  ... skipped 2 stack elements
>>   at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
>>  ... skipped 4 stack elements
>>   at 
>> com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
>>   at 
>> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
>>   at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)
>>   at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
>> 
>> Thanks for your help.
>> Envoyé depuis iCloud
>> ___
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
>> 
>> This email sent to m...@selbstdenker.ag
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
> 
> This email sent to sam...@samkar.com



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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Rép : Re: ec.SaveChanges and relationship

2013-06-18 Thread Raymond NANEON
Oupppsss, I forgot something, EOIndividuUlr and EOPersonnel are in differents models.Envoyé depuis iCloudLe 18 jun 2013 à 07:59, Raymond NANEON  a écrit :Here is the complete stacktrace : juin 18 16:56:00 PreProjets[8484] INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: java.lang.NullPointerExceptionjava.lang.NullPointerException    at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)    at com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)    at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)    at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)    at er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)    at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)    at er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)    at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)    at com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)    at com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)    at com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)    at er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:357)    at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)    at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)    at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)    at er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:68)    at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)    at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)    at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1305)    at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)    at er.extensions.eof.ERXDatabaseContext.objectsForSourceGlobalID(ERXDatabaseContext.java:50)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)    at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)    at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1265)    at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)    at com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)    at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)    at com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:99)    at com.webobjects.foundation.NSArray.containsObject(NSArray.java:460)    at com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)    at er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1223)    at utt.rec.projet.server.metier.grhum._EOIndividuUlr.addToPersonnels(_EOIndividuUlr.java:895)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)    at com.webobjects.eocontrol.EOCustomObject.addObjectToPropertyWithKey(EOCustomObject.java:940)    at com.webobjects.eocontrol.EOCustomObject.addObjectToBothSidesOfRelationshipWithKey(EOCustomObject.java:1055)    at er.extensions.eof.ERXGenericRecord.addObjectToBothSidesOfRelationshipWithKey(ERXGenericRecord.java:582)    at utt.rec.projet.server.metier.admrec._EOPersonnel.setIndividuRelationship(_EOPersonnel.java:128)    at utt.rec.projet.server.components.controler.NextProjectCtrl.ajoutPerson(NextProjectCtrl.java:796)    at utt.rec.projet.server.components.controler.NextProjectCtrl.updatePers(NextProjectCtrl.java:672)  

Rép : Re: ec.SaveChanges and relationship

2013-06-18 Thread Raymond NANEON
Here is the complete stacktrace : juin 18 16:56:00 PreProjets[8484] INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: java.lang.NullPointerExceptionjava.lang.NullPointerException    at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)    at com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)    at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)    at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)    at er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)    at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)    at er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)    at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)    at com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4814)    at com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)    at com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)    at er.extensions.ERXExtensions$KeyValueQualifierSQLGenerationSupport.schemaBasedQualifierWithRootEntity(ERXExtensions.java:357)    at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)    at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)    at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)    at er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:68)    at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)    at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)    at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1305)    at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)    at er.extensions.eof.ERXDatabaseContext.objectsForSourceGlobalID(ERXDatabaseContext.java:50)    at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)    at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)    at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1265)    at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)    at com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)    at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)    at com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:99)    at com.webobjects.foundation.NSArray.containsObject(NSArray.java:460)    at com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)    at er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1223)    at utt.rec.projet.server.metier.grhum._EOIndividuUlr.addToPersonnels(_EOIndividuUlr.java:895)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)    at com.webobjects.eocontrol.EOCustomObject.addObjectToPropertyWithKey(EOCustomObject.java:940)    at com.webobjects.eocontrol.EOCustomObject.addObjectToBothSidesOfRelationshipWithKey(EOCustomObject.java:1055)    at er.extensions.eof.ERXGenericRecord.addObjectToBothSidesOfRelationshipWithKey(ERXGenericRecord.java:582)    at utt.rec.projet.server.metier.admrec._EOPersonnel.setIndividuRelationship(_EOPersonnel.java:128)    at utt.rec.projet.server.components.controler.NextProjectCtrl.ajoutPerson(NextProjectCtrl.java:796)    at utt.rec.projet.server.components.controler.NextProjectCtrl.updatePers(NextProjectCtrl.java:672)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at

AUTO: Witold Lustanski is out of the office (returning Fri 06/28/2013)

2013-06-18 Thread Witold Lustanski


I am out of the office from Tue 06/18/2013 until Fri 06/28/2013.

If you have urgent request, please create Remedy ticket.


Note: This is an automated response to your message  "Webobjects-dev
Digest, Vol 10, Issue 397" sent on 6/18/2013 6:44:07 AM.

This is the only notification you will receive while this person is away. ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Rép : Re: ec.SaveChanges and relationship

2013-06-18 Thread Raymond NANEON
Hi Maik,I have read and followed all EOF Commandements but I can't fix the issue.an idea?thanksEnvoyé depuis iCloudLe 18 jun 2013 à 02:43, Musall Maik  a écrit :Hi Raymond,I have come across those as well some time ago, and it turned out that I didn't strictly obey all the EOF commandments back then.http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-The+EOF+Commandments If you don't follow those, EOF will fight back with all sorts of strange effects, like those NullPointerExceptions, or missing snapshot exceptions and the like. So I suggest you doublecheck those thoroughly.MaikAm 18.06.2013 um 09:44 schrieb Raymond NANEON :Hi List,I have a big problem to save my data. When I set the relastionship entity1.setEntity2Relationship(entity2), I get a java NullPointerException at the method who set the relation :addObjectToBothSidesOfRelationshipWithKey(entity2, _Enity1.ENTITY2_KEY); <-When I try another way entity1.setEntity2(enity2) I get the same java NullPointerException when I want to save entity1.juin 18 09:34:38 PreProjets[8484] ERROR er.extensions.appserver.ERXApplication  - NullPointerException  at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356) ... skipped 1 stack elements  at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)  at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)  at er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)  at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)  at er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)  at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634) ... skipped 2 stack elements  at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326) ... skipped 4 stack elements  at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)  at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)  at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)  at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)Thanks for your help.Envoyé depuis iCloud___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:https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.agThis email sent to m...@selbstdenker.ag___ 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: https://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com  This email sent to rnan...@me.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ec.SaveChanges and relationship

2013-06-18 Thread Musall Maik
Hi Raymond,

I have come across those as well some time ago, and it turned out that I didn't 
strictly obey all the EOF commandments back then.

http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-The+EOF+Commandments

If you don't follow those, EOF will fight back with all sorts of strange 
effects, like those NullPointerExceptions, or missing snapshot exceptions and 
the like. So I suggest you doublecheck those thoroughly.

Maik



Am 18.06.2013 um 09:44 schrieb Raymond NANEON :

> Hi List,
> 
> I have a big problem to save my data. When I set the relastionship 
> entity1.setEntity2Relationship(entity2), I get a java NullPointerException at 
> the method who set the relation :
> 
> addObjectToBothSidesOfRelationshipWithKey(entity2, _Enity1.ENTITY2_KEY); 
> <-
> 
> When I try another way entity1.setEntity2(enity2) I get the same java 
> NullPointerException when I want to save entity1.
> 
> juin 18 09:34:38 PreProjets[8484] ERROR 
> er.extensions.appserver.ERXApplication  - 
> NullPointerException
>   at 
> com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
>  ... skipped 1 stack elements
>   at 
> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>   at 
> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>   at 
> er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)
>   at 
> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>   at 
> er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)
>   at 
> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>  ... skipped 2 stack elements
>   at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326)
>  ... skipped 4 stack elements
>   at 
> com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
>   at 
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
>   at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)
>   at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
> 
> Thanks for your help.
> Envoyé depuis iCloud
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
> 
> This email sent to m...@selbstdenker.ag

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: JEE Juno Eclipse (with axis2)+ WOLips

2013-06-18 Thread John Pollard
I have now found the 3.7 (Indigo) JEE version of Eclipse: 
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-macosx-cocoa-x86_64.tar.gz
So will go with that and stick with the stable wolips 3.7
Thanks, John

On 18 Jun 2013, at 10:09, John Pollard  wrote:

> I am having a look at Axis2 for SOAP web services which I need to use to 
> connect to a third party web service. I found that I need the JEE version of 
> Eclipse (Juno) rather than the Classic 3.7 version for the axis2 plugins to 
> work. Will I be able to use wolips / project wonder in the JEE Juno Eclipse 
> and if so, which wolips update site should I use for the best chance of 
> success?
> Many thanks, John


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

JEE Juno Eclipse (with axis2)+ WOLips

2013-06-18 Thread John Pollard
I am having a look at Axis2 for SOAP web services which I need to use to 
connect to a third party web service. I found that I need the JEE version of 
Eclipse (Juno) rather than the Classic 3.7 version for the axis2 plugins to 
work. Will I be able to use wolips / project wonder in the JEE Juno Eclipse and 
if so, which wolips update site should I use for the best chance of success?
Many thanks, John
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ssl from iOS error? OT?

2013-06-18 Thread Þór Sigurðsson
Before you spend big bucks on an SSL certificate just for testing purposes, 
issue yourself a free (and just as good) certificate at 
StartSSL.com (note their server-side certificate chain 
requirements - they have a pretty decent help page on that).

On 17.6.2013, at 12:25, James Cicenia wrote:

Yes... I was thinking that would be the solution. I will go ahead and try that.

Thanks


On Jun 16, 2013, at 2:46 PM, Asa Hardcastle 
mailto:j...@zenn.net>> wrote:

We had trouble with ssl from IOS to a node.js server. The problem was resolved 
by purchasing an ssl certificate rather than using a self signed cert.

Later,

Asa

On Jun 15, 2013, at 4:41 PM, George Domurot 
mailto:masterm...@knuckleheads.net>> wrote:

If you're testing on an older iPod, make sure the time is accurate on the 
device.


On Jun 15, 2013, at 1:09 PM, James Cicenia 
mailto:ja...@jimijon.com>> wrote:

I am trying this out with direct connect. I thought I followed the instruction 
to create the new certificate.

I have to check more.


On Jun 15, 2013, at 3:07 PM, Bogdan Zlatanov 
mailto:bogdan.zlata...@gmail.com>> wrote:

You could also try running the server app with javax.net.debug=all

On 15 Jun 2013, at 21:59, Pascal Robert wrote:


Le 2013-06-15 à 15:56, James Cicenia 
mailto:ja...@jimijon.com>> a écrit :

I am developing a push server.

I have created a bunch of rest calls, etc.,

When I test them via RESTClient in firefox they work.
However, when I test from my iOS client  I get the following error:

[2013-6-15 14:48:3 CDT]  javax.net.ssl.SSLHandshakeException: 
Remote host closed connection during handshake

Apache is involved or not? If yes, check Apache's logs.

I have tested the client on a competitors server and it works. So I think I can 
rule out the ios client.

Thoughts?

___
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:
https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

This email sent to prob...@macti.ca


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

This email sent to bogdan.zlata...@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:
https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net

This email sent to 
masterm...@knuckleheads.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:
https://lists.apple.com/mailman/options/webobjects-dev/a.talk%40zenn.net

This email sent to a.t...@zenn.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:
https://lists.apple.com/mailman/options/webobjects-dev/thors%40us.is

This email sent to th...@us.is




Fyrirvari á tölvupósti / e-mail disclaimer
http://us.is/fyrirvari

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ec.SaveChanges and relationship

2013-06-18 Thread Raymond NANEON
Hi List,I have a big problem to save my data. When I set the relastionship entity1.setEntity2Relationship(entity2), I get a java NullPointerException at the method who set the relation :addObjectToBothSidesOfRelationshipWithKey(entity2, _Enity1.ENTITY2_KEY); <-When I try another way entity1.setEntity2(enity2) I get the same java NullPointerException when I want to save entity1.juin 18 09:34:38 PreProjets[8484] ERROR er.extensions.appserver.ERXApplication  - NullPointerException  at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356) ... skipped 1 stack elements  at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)  at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)  at er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:378)  at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)  at er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:207)  at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634) ... skipped 2 stack elements  at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:326) ... skipped 4 stack elements  at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)  at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)  at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)  at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)Thanks for your help.Envoyé depuis iCloud ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com