• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Attempt to insert null" message/Java Client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Attempt to insert null" message/Java Client


  • Subject: Re: "Attempt to insert null" message/Java Client
  • From: Max Muller <email@hidden>
  • Date: Sat, 14 Dec 2002 14:11:22 -0800

Hi Nick,
This is actually a new bug with nested editing contexts. It crops up when you have a newly created object in an ec and then you fault the object into a child editing context. Instead of getting the object you get null, which causes issues. The work around is to disable the EOSharedEditingContext.


Regards,
	Max

On Friday, December 13, 2002, at 09:21 AM, Nick Pilch wrote:

Some EOEditingContext.saveChanges() operations made from my Java Client app result in a server exception "java.lang.IllegalArgumentException : Attempt to insert null into an com.webobjects.foundation.NSMutableArray". This exception appears to be coming from WebObjects code and not any of my custom code on the server (the entire stack trace is included below).

It also appears to happen at the end of the operation when everything has been saved to the database successfully. If I restart my Java Client app, all is well.

This particular problem has been bugging me for many months. It happened in WO 4.51, and it happens in WO 5.1 and 5.2. I have an easily reproducible case in WO 5.x.

Has anyone ever come across this in Java Client? My next test will be to move the client code to the server to see what happens, although I am sure that I won't get the same exception, if any, since the code path will not be through the EODistribution stuff.

****************************************************************

[2002-12-13 09:11:52 PST] <WorkerThread6> java.lang.IllegalArgumentException: Attempt to insert null into an com.webobjects.foundation.NSMutableArray.
at com.webobjects.foundation.NSMutableArray.addObject(NSMutableArray.java: 211)
at com.webobjects.eodistribution.EODistributionContext$_RemoteMethodReceiv er.clientSideRequestGetNotifications(EODistributionContext.java:974)
at java.lang.reflect.Method.invoke(Native Method)
at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:354)
at com.webobjects.foundation.NSSelector._safeInvokeSelector(NSSelector.jav a:108)
at com.webobjects.eodistribution.common._EOServerInvocation.doInvokeWithTa rget(_EOServerInvocation.java:140)
at com.webobjects.eodistribution.EODistributionContext._processClientReque st(EODistributionContext.java:488)
at com.webobjects.eodistribution.EODistributionContext.responseToClientMes sage(EODistributionContext.java:577)
at com.webobjects.eodistribution.WOJavaClientApplet.handleClientRequest(WO JavaClientApplet.java:964)
at java.lang.reflect.Method.invoke(Native Method)
at com.webobjects.foundation.NSKeyValueCoding$1.methodValue(NSKeyValueCodi ng.java:684)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject (NSKeyValueCoding.java:1160)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueF orKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1544)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyVal ueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementati on.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1 605)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponen t(WOKeyValueAssociation.java:46)
at com.webobjects.appserver._private.WOGenericElement.invokeAction(WOGener icElement.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(W ODynamicGroup.java:101)
at com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGen ericContainer.java:23)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(W ODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamic Group.java:110)
at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditio nal.java:55)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(W ODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamic Group.java:110)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOC omponentReference.java:113)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(W ODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamic Group.java:110)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1136)
at Session.invokeAction(Session.java:495)
at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 1313)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi thPreparedPage(WOComponentRequestHandler.java:196)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi thPreparedSession(WOComponentRequestHandler.java:287)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi thPreparedApplication(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequ est(WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleReque st(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.ja va:1244)
at Application.dispatchRequest(Application.java:133)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread .java:167)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.jav a:248)
at java.lang.Thread.run(Thread.java:491)


--

Nick Pilch / email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >"Attempt to insert null" message/Java Client (From: Nick Pilch <email@hidden>)

  • Prev by Date: Re: WO5.2 and Dec 2002 Mac OS X Developer Tools
  • Next by Date: PB2.1, encoding and System.out.println from WO5.2
  • Previous by thread: "Attempt to insert null" message/Java Client
  • Next by thread: WebObjects user group London
  • Index(es):
    • Date
    • Thread