• 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
"Attempt to insert null" message/Java Client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Attempt to insert null" message/Java Client


  • Subject: "Attempt to insert null" message/Java Client
  • From: Nick Pilch <email@hidden>
  • Date: Fri, 13 Dec 2002 09:21:23 -0800

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$_RemoteMethodReceiver.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.java:108)
at com.webobjects.eodistribution.common._EOServerInvocation.doInvokeWithTarget(_EOServerInvocation.java:140)
at com.webobjects.eodistribution.EODistributionContext._processClientRequest(EODistributionContext.java:488)
at com.webobjects.eodistribution.EODistributionContext.responseToClientMessage(EODistributionContext.java:577)
at com.webobjects.eodistribution.WOJavaClientApplet.handleClientRequest(WOJavaClientApplet.java:964)
at java.lang.reflect.Method.invoke(Native Method)
at com.webobjects.foundation.NSKeyValueCoding$1.methodValue(NSKeyValueCoding.java:684)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1160)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1544)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1605)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
at com.webobjects.appserver._private.WOGenericElement.invokeAction(WOGenericElement.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGenericContainer.java:23)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:55)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:113)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.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._dispatchWithPreparedPage(WOComponentRequestHandler.java:196)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: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.java: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.

  • Follow-Ups:
    • Re: "Attempt to insert null" message/Java Client
      • From: Max Muller <email@hidden>
  • Prev by Date: Deploying on W2000?
  • Next by Date: WebObjects user group London
  • Previous by thread: Deploying on W2000?
  • Next by thread: Re: "Attempt to insert null" message/Java Client
  • Index(es):
    • Date
    • Thread