• 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: java client relationship bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java client relationship bug?


  • Subject: Re: java client relationship bug?
  • From: Robert Marsa <email@hidden>
  • Date: Fri, 25 Mar 2005 08:34:55 -0600



Robert,

Thanks for the reply.  It is good to know others have seen this as well.

From your response, it appears that there is a fix for this problem but I have to directly ask for it from Apple?

Thanks,

Robert


On Mar 24, 2005, at 18:50, Robert Walker wrote:

Robert,

Yes this is definitely a WebObjects bug. You will need to contact Apple support to get a patch that will fix this specific bug. I've also seen some other odd behavior with JavaClient in WO 5.2.3 related to date formatters attached to text boxes in NIB files. I stopped using the date formatter and take the string value and convert it to NSTimestamp in code. This also means that I have to manually update the UI.

On Mar 24, 2005, at 3:04 PM, Robert Marsa wrote:

Hi. I've been having problems with getting NullPointerException's in my direct to java client application. In trying to track them down, I created a very simple test application which exhibits the same behavior leading me to wonder if there is a bug in WebObjects.

Here is the setup:

I have two objects, Name and Number. Name has a primary key of nameID and a foreign key of numberID. Neither of these is a server or client property. Name has a String attribute "name" which is both a server and client property.

Number has a primary key of numberID which is neither a server nor client property and the Integer attribute "value" which is both a server and client property.

Name has a one-to-many relationship with Number which is named 'number' and links Name.numberID with Number.numberID. This relationship is visible on the client. It is set to be mandatory with a "no action" delete rule. All pretty standard.

I then create and build a standard direct-to-java client application. In the assistant I set Number to be an enumeration entity. I can then run the application and add Numbers to my hearts content. But if I create a new Name and save it, I get a NullPointerException on the client although everything works fine on the server. The stack trace is:

apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.NullPointerException
java.lang.NullPointerException
at com.webobjects.eodistribution.client.EODistributedObjectStore._fireDef erredFault(EODistributedObjectStore.java:1159)
at com.webobjects.eodistribution.client.EODistributionDeferredFaultHandle r.createFaultForDeferredFault(EODistributionDeferredFaultHandler.java: 20)
at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomO bject.java:1302)
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_Laz yGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java: 560)
at com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.jav a:1559)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyVa lueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementat ion.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject .java:1675)
at com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKe yPath(NSKeyValueCodingAdditions.java:149)
at com.webobjects.eointerface.EODisplayGroup.valueForObject(EODisplayGrou p.java:3371)
at com.webobjects.eointerface.EODisplayGroup.selectedObjectValueForKey(EO DisplayGroup.java:3397)
at com.webobjects.eointerface.EOAssociation.valueForAspect(EOAssociation. java:748)
at com.webobjects.eointerface.EOValueSelectionAssociation.subjectChanged( EOValueSelectionAssociation.java:336)
at com.webobjects.eocontrol.EODelayedObserverQueue.notifyObserversUpToPri ority(EODelayedObserverQueue.java:235)
at com.webobjects.eocontrol.EODelayedObserverQueue._processEndOfEventObse rvers(EODelayedObserverQueue.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:354)
at com.webobjects.foundation.NSSelector._safeInvokeSelector(NSSelector.ja va:108)
at com.webobjects.foundation.NSDelayedCallbackCenter$NSLightInvocation.in voke(NSDelayedCallbackCenter.java:242)
at com.webobjects.foundation.NSDelayedCallbackCenter._eventEnded(NSDelaye dCallbackCenter.java:208)
at com.webobjects.eointerface.swing.EOSwingUtilities$1.run(EOSwingUtiliti es.java:162)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThr ead.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea d.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)



If I quit and rerun the client, the Name shows up fine with the correct Number linked to it. But upon creation, it somehow sends the correct object to the server which gets saved, but when the user interface redraws, the relationship is returning null.


What is going on and how can I fix it?

Thanks,

Robert

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


--
Robert Walker
www.robertwalker1.com

"There are 10 kinds of people in the world. Those who think binary and those who don't."


_______________________________________________ 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
References: 
 >java client relationship bug? (From: Robert Marsa <email@hidden>)
 >Re: java client relationship bug? (From: Robert Walker <email@hidden>)

  • Prev by Date: Killer Application
  • Next by Date: Re: MySQL and Foreign Keys
  • Previous by thread: Re: java client relationship bug?
  • Next by thread: Why WOBuilder only displays EOModel attributes and not java properties
  • Index(es):
    • Date
    • Thread