Re: NullPointerException in EODatabaseContext java

2012-06-03 Thread Cheong Hee (Gmail)
I supposed that the component ec should be created within the component itself. 
 So that any invalid objects will not affect other ec.

  - Original Message - 
  From: Raghavender Bokka 
  To: Cheong Hee (Gmail) 
  Cc: Development WebObjects 
  Sent: Friday, June 01, 2012 7:16 PM
  Subject: Re: NullPointerException in EODatabaseContext java


  Hi Cheong Hee,


  I am using the localEditingContext() method of GenericComponent class which 
internally creates the ERXEC.newEditingContext().


  Please advise if this not the component-based ec.


  Regards,
  Raghu.


  On 01-Jun-2012, at 4:35 PM, Cheong Hee (Gmail) wrote:


Hi Raghu

May be you really need to look at how the object model design.  Usually, 
once the invalidate all objects, the ec will fetch again new objects and theirs 
object graph.  May be some code will be helpful.  Also, pls remember to have 
component-based ec.

Cheers

Cheong Hee

- Original Message - From: "Raghavender Bokka" 

To: "Cheong Hee (Gmail)" 
Cc: "Development WebObjects" 
Sent: Friday, June 01, 2012 2:17 PM
Subject: Re: NullPointerException in EODatabaseContext java


Hi Cheong Hee,

I tried invalidating the objects in ec, then we are able to view the 
details of this eo object, but the other similar objects in the wodisplaygroup 
list is behaving weirdly when they are selected.

Regards,
Raghu.

On 01-Jun-2012, at 11:41 AM, Cheong Hee (Gmail) wrote:


  i guessed one quick way is to invalidate the objects in ec and force it 
to refetch from db.



  - Original Message - From: "Raghavender Bokka" 


  To: "Development WebObjects" 

  Sent: Thursday, May 31, 2012 9:04 PM

  Subject: NullPointerException in EODatabaseContext java





Hi Team,



I have created an enterprise object with one-to-many relationship 
objects associating.  Then in the search page searched for these enterprise 
objects (that has WODisplayGroup), I am able to view the newly created object, 
but when I try to select that object to view the details it is generating the 
following exception.   If I restart the application then I am able to view the 
details of the newly created object without any error, or If we try accessing 
the newly created object after sometime (around half an hour later) then 
without error able to view the object details. Otherwise the enterprise object 
is getting null.



This enterprise object's super class has the database table, and this 
object does not has the database table, it points to the same database table of 
the super class.  And the to-many relationship is existing with this enterprise 
object (sub-class), not the super class.



Any help would be appreciated.




EXCEPTION--

[2012-5-31 8:25:4 EDT]  java.lang.NullPointerException

 at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)

 at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)

 at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)

 at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)

 at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)

 at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)

 at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)

 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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)

 at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)

 at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)

 at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)

 at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)

 at java.lang.String.valueOf(String.java:2826)

 at java.lang.StringBuilder.append(StringBuilder.java:115)

 at StoredTestListPage.printTestSession(StoredTestListPage.java:276)

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

 

Re: NullPointerException in EODatabaseContext java

2012-06-01 Thread Raghavender Bokka
Hi Cheong Hee,

I am using the localEditingContext() method of GenericComponent class which 
internally creates the ERXEC.newEditingContext().

Please advise if this not the component-based ec.

Regards,
Raghu.

On 01-Jun-2012, at 4:35 PM, Cheong Hee (Gmail) wrote:

> Hi Raghu
> 
> May be you really need to look at how the object model design.  Usually, once 
> the invalidate all objects, the ec will fetch again new objects and theirs 
> object graph.  May be some code will be helpful.  Also, pls remember to have 
> component-based ec.
> 
> Cheers
> 
> Cheong Hee
> 
> - Original Message - From: "Raghavender Bokka" 
> 
> To: "Cheong Hee (Gmail)" 
> Cc: "Development WebObjects" 
> Sent: Friday, June 01, 2012 2:17 PM
> Subject: Re: NullPointerException in EODatabaseContext java
> 
> 
> Hi Cheong Hee,
> 
> I tried invalidating the objects in ec, then we are able to view the details 
> of this eo object, but the other similar objects in the wodisplaygroup list 
> is behaving weirdly when they are selected.
> 
> Regards,
> Raghu.
> 
> On 01-Jun-2012, at 11:41 AM, Cheong Hee (Gmail) wrote:
> 
>> i guessed one quick way is to invalidate the objects in ec and force it to 
>> refetch from db.
>> 
>> - Original Message ----- From: "Raghavender Bokka" 
>> 
>> To: "Development WebObjects" 
>> Sent: Thursday, May 31, 2012 9:04 PM
>> Subject: NullPointerException in EODatabaseContext java
>> 
>> 
>>> Hi Team,
>>> 
>>> I have created an enterprise object with one-to-many relationship objects 
>>> associating.  Then in the search page searched for these enterprise objects 
>>> (that has WODisplayGroup), I am able to view the newly created object, but 
>>> when I try to select that object to view the details it is generating the 
>>> following exception.   If I restart the application then I am able to view 
>>> the details of the newly created object without any error, or If we try 
>>> accessing the newly created object after sometime (around half an hour 
>>> later) then without error able to view the object details. Otherwise the 
>>> enterprise object is getting null.
>>> 
>>> This enterprise object's super class has the database table, and this 
>>> object does not has the database table, it points to the same database 
>>> table of the super class.  And the to-many relationship is existing with 
>>> this enterprise object (sub-class), not the super class.
>>> 
>>> Any help would be appreciated.
>>> 
>>> EXCEPTION--
>>> [2012-5-31 8:25:4 EDT]  java.lang.NullPointerException
>>>  at 
>>> com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
>>>  at 
>>> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
>>>  at 
>>> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>>>  at 
>>> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>>>  at 
>>> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>>>  at 
>>> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>>>  at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
>>>  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 
>>> KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
>>>  at 
>>> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
>>>  at 
>>> com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
>>>  at 
>>> com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
>>>  at 
>>> com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)
>>>  at java.lang.String.valueOf(String.java:2826)
>>>  at java.la

Re: NullPointerException in EODatabaseContext java

2012-06-01 Thread Cheong Hee (Gmail)

Hi Raghu

May be you really need to look at how the object model design.  Usually, 
once the invalidate all objects, the ec will fetch again new objects and 
theirs object graph.  May be some code will be helpful.  Also, pls remember 
to have component-based ec.


Cheers

Cheong Hee

- Original Message - 
From: "Raghavender Bokka" 

To: "Cheong Hee (Gmail)" 
Cc: "Development WebObjects" 
Sent: Friday, June 01, 2012 2:17 PM
Subject: Re: NullPointerException in EODatabaseContext java


Hi Cheong Hee,

I tried invalidating the objects in ec, then we are able to view the details 
of this eo object, but the other similar objects in the wodisplaygroup list 
is behaving weirdly when they are selected.


Regards,
Raghu.

On 01-Jun-2012, at 11:41 AM, Cheong Hee (Gmail) wrote:

i guessed one quick way is to invalidate the objects in ec and force it to 
refetch from db.


- Original Message - From: "Raghavender Bokka" 


To: "Development WebObjects" 
Sent: Thursday, May 31, 2012 9:04 PM
Subject: NullPointerException in EODatabaseContext java



Hi Team,

I have created an enterprise object with one-to-many relationship objects 
associating.  Then in the search page searched for these enterprise 
objects (that has WODisplayGroup), I am able to view the newly created 
object, but when I try to select that object to view the details it is 
generating the following exception.   If I restart the application then I 
am able to view the details of the newly created object without any 
error, or If we try accessing the newly created object after sometime 
(around half an hour later) then without error able to view the object 
details. Otherwise the enterprise object is getting null.


This enterprise object's super class has the database table, and this 
object does not has the database table, it points to the same database 
table of the super class.  And the to-many relationship is existing with 
this enterprise object (sub-class), not the super class.


Any help would be appreciated.

EXCEPTION--
[2012-5-31 8:25:4 EDT]  java.lang.NullPointerException
  at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
  at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
  at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
  at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
  at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
  at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)

  at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
  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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
  at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
  at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
  at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
  at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)

  at java.lang.String.valueOf(String.java:2826)
  at java.lang.StringBuilder.append(StringBuilder.java:115)
  at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
  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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
  at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
  at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
  at 
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
  at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
  at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
  at 
com.webobjects.appserver.WOComponent.valueForKeyPath(WO

Re: NullPointerException in EODatabaseContext java

2012-05-31 Thread Raghavender Bokka
Hi Cheong Hee,

I tried invalidating the objects in ec, then we are able to view the details of 
this eo object, but the other similar objects in the wodisplaygroup list is 
behaving weirdly when they are selected.  

Regards,
Raghu.

On 01-Jun-2012, at 11:41 AM, Cheong Hee (Gmail) wrote:

> i guessed one quick way is to invalidate the objects in ec and force it to 
> refetch from db.
> 
> - Original Message - From: "Raghavender Bokka" 
> 
> To: "Development WebObjects" 
> Sent: Thursday, May 31, 2012 9:04 PM
> Subject: NullPointerException in EODatabaseContext java
> 
> 
>> Hi Team,
>> 
>> I have created an enterprise object with one-to-many relationship objects 
>> associating.  Then in the search page searched for these enterprise objects 
>> (that has WODisplayGroup), I am able to view the newly created object, but 
>> when I try to select that object to view the details it is generating the 
>> following exception.   If I restart the application then I am able to view 
>> the details of the newly created object without any error, or If we try 
>> accessing the newly created object after sometime (around half an hour 
>> later) then without error able to view the object details. Otherwise the 
>> enterprise object is getting null.
>> 
>> This enterprise object's super class has the database table, and this object 
>> does not has the database table, it points to the same database table of the 
>> super class.  And the to-many relationship is existing with this enterprise 
>> object (sub-class), not the super class.
>> 
>> Any help would be appreciated.
>> 
>> EXCEPTION--
>> [2012-5-31 8:25:4 EDT]  java.lang.NullPointerException
>>   at 
>> com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
>>   at 
>> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
>>   at 
>> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>>   at 
>> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>>   at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
>>   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 
>> KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
>>   at 
>> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
>>   at 
>> com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)
>>   at java.lang.String.valueOf(String.java:2826)
>>   at java.lang.StringBuilder.append(StringBuilder.java:115)
>>   at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
>>   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 
>> KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
>>   at 
>> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
>>   at 
>> com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
>>   at 
>> com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
>>   at 
>> com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
>>   at 
>> com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImp

Re: NullPointerException in EODatabaseContext java

2012-05-31 Thread Cheong Hee (Gmail)
i guessed one quick way is to invalidate the objects in ec and force it to 
refetch from db.


- Original Message - 
From: "Raghavender Bokka" 

To: "Development WebObjects" 
Sent: Thursday, May 31, 2012 9:04 PM
Subject: NullPointerException in EODatabaseContext java



Hi Team,

I have created an enterprise object with one-to-many relationship objects 
associating.  Then in the search page searched for these enterprise 
objects (that has WODisplayGroup), I am able to view the newly created 
object, but when I try to select that object to view the details it is 
generating the following exception.   If I restart the application then I 
am able to view the details of the newly created object without any error, 
or If we try accessing the newly created object after sometime (around 
half an hour later) then without error able to view the object details. 
Otherwise the enterprise object is getting null.


This enterprise object's super class has the database table, and this 
object does not has the database table, it points to the same database 
table of the super class.  And the to-many relationship is existing with 
this enterprise object (sub-class), not the super class.


Any help would be appreciated.

EXCEPTION--
[2012-5-31 8:25:4 EDT]  java.lang.NullPointerException
   at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
   at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
   at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
   at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
   at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
   at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)

   at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
   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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
   at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
   at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
   at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)

   at java.lang.String.valueOf(String.java:2826)
   at java.lang.StringBuilder.append(StringBuilder.java:115)
   at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
   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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
   at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
   at 
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
   at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
   at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
   at 
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
   at 
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
   at 
com.webobjects.appserver._private.WOHyperlink.invokeAction(WOHyperlink.java:98)
   at 
er.extensions.components._private.ERXHyperlink.invokeAction(ERXHyperlink.java:66)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
   at 
er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamic

Re: NullPointerException in EODatabaseContext java

2012-05-31 Thread Chuck Hill
Something is wrong with your model or how you are creating this new object.  
Are you setting the relationship both ways?


On 2012-05-31, at 6:04 AM, Raghavender Bokka wrote:

> Hi Team,
> 
> I have created an enterprise object with one-to-many relationship objects 
> associating.  Then in the search page searched for these enterprise objects 
> (that has WODisplayGroup), I am able to view the newly created object, but 
> when I try to select that object to view the details it is generating the 
> following exception.   If I restart the application then I am able to view 
> the details of the newly created object without any error, or If we try 
> accessing the newly created object after sometime (around half an hour later) 
> then without error able to view the object details.  Otherwise the enterprise 
> object is getting null.
> 
> This enterprise object's super class has the database table, and this object 
> does not has the database table, it points to the same database table of the 
> super class.  And the to-many relationship is existing with this enterprise 
> object (sub-class), not the super class.
> 
> Any help would be appreciated.
> 
> EXCEPTION--
> [2012-5-31 8:25:4 EDT]  java.lang.NullPointerException
>at 
> com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
>at 
> com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
>at 
> com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
>at 
> com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
>at 
> com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
>at 
> com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
>at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
>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 
> KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
>at 
> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
>at 
> com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
>at 
> com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
>at 
> com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)
>at java.lang.String.valueOf(String.java:2826)
>at java.lang.StringBuilder.append(StringBuilder.java:115)
>at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
>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 
> KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
>at 
> com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
>at 
> com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
>at 
> com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
>at 
> com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
>at 
> com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
>at 
> com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
>at 
> com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
>at 
> com.webobjects.appserver._private.WOHyperlink.invokeAction(WOHyperlink.java:98)
>at 
> er.extensions.components._private.ERXHyperlink.invokeAction(ERXHyperlink.java:66)
>at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>at 
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
>at 
> er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496)
>at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>at 
> com.webobjects.appserver._

NullPointerException in EODatabaseContext java

2012-05-31 Thread Raghavender Bokka
Hi Team,

I have created an enterprise object with one-to-many relationship objects 
associating.  Then in the search page searched for these enterprise objects 
(that has WODisplayGroup), I am able to view the newly created object, but when 
I try to select that object to view the details it is generating the following 
exception.   If I restart the application then I am able to view the details of 
the newly created object without any error, or If we try accessing the newly 
created object after sometime (around half an hour later) then without error 
able to view the object details.  Otherwise the enterprise object is getting 
null.

This enterprise object's super class has the database table, and this object 
does not has the database table, it points to the same database table of the 
super class.  And the to-many relationship is existing with this enterprise 
object (sub-class), not the super class.

Any help would be appreciated.

EXCEPTION--
[2012-5-31 8:25:4 EDT]  java.lang.NullPointerException
at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at 
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at 
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at 
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at 
com.webobjects.appserver._private.WOHyperlink.invokeAction(WOHyperlink.java:98)
at 
er.extensions.components._private.ERXHyperlink.invokeAction(ERXHyperlink.java:66)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:86)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynam