Re: NullPointerException in EODatabaseContext java
Re: NullPointerException in EODatabaseContext java
- Subject: Re: NullPointerException in EODatabaseContext java
- From: "Cheong Hee (Gmail)" <email@hidden>
- Date: Fri, 01 Jun 2012 19:05:35 +0800
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" <email@hidden>
To: "Cheong Hee (Gmail)" <email@hidden>
Cc: "Development WebObjects" <email@hidden>
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"
<email@hidden>
To: "Development WebObjects" <email@hidden>
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] <WorkerThread7> 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.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.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at
er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java:219)
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.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at
com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
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.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at
com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:149)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:102)
at
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:102)
at
com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at Session.invokeAction(Session.java:179)
at
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
at
er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:93)
at
er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1869)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
at
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
at Application.dispatchRequest(Application.java:742)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:619)
--------------------
Regards,
Raghu.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden