• 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: Error Deserializing EOGlobalID via Web Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error Deserializing EOGlobalID via Web Services


  • Subject: Re: Error Deserializing EOGlobalID via Web Services
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 21 Nov 2003 12:54:57 -0800

It might be that you can't do this with a EOTemporaryGlobalID.  Those
aren't real global IDs, just a process specific placeholder for a real
global ID that *may* get generated later.


Chuck

At 01:15 PM 21/11/2003 -0700, King Chung Huang wrote:
>Hi,
>
>I'm trying to return a EOGlobalID (specifically, EOTemporaryGlobalID)
>from a method provided via WebObjects's Web Services. However, I'm
>getting an "IllegalArgumentException" and I'm not sure why this is so.
>I've reduced the problem to a very simple scenario. WOApp 1 calls a
>no-argument web service method on WOApp 2, which returns a EOGlobalID.
>Anyone have any ideas on what's causing the exception? Here's the stack
>trace:
>
>- IllegalArgumentException:
>java.lang.IllegalArgumentException
>	at
>sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorI
>mpl.java:63)
>	at java.lang.reflect.Field.set(Field.java:519)
>	at org.apache.axis.encoding.FieldTarget.set(FieldTarget.java:97)
>	at
>org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl
>.java:260)
>	at
>org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja
>va:502)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
>zationContextImpl.java:942)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
>206)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
>ava:684)
>	at
>org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.
>java:370)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
>lizationContextImpl.java:906)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
>200)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
>ava:684)
>	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>	at org.apache.axis.client.Call.invoke(Call.java:1871)
>	at org.apache.axis.client.Call.invoke(Call.java:1777)
>	at org.apache.axis.client.Call.invoke(Call.java:1315)
>	at
>com.webobjects.webservices.client.WOWebServiceClient.invoke(WOWebService
>Client.java:486)
>	at
>ca.ucalgary.commons.repository.digitalleaf.CXCore.invoke(CXCore.java:
>284)
>	at
>ca.ucalgary.commons.repository.digitalleaf.CXUserServicesLeaf._generateG
>lobalWorkspaceID(CXUserServicesLeaf.java:66)
>	at
>ca.ucalgary.commons.repository.foundation.CXWorkspace.<init>(CXWorkspace
>.java:32)
>	at
>ca.ucalgary.commons.repository.digitalleaf.CXDigitalLeaf$DigitalLeafWork
>er.sessionDidCreate(CXDigitalLeaf.java:104)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>a:39)
>	at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>Impl.java:25)
>	at java.lang.reflect.Method.invoke(Method.java:324)
>	at
>com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:
>120)
>	at
>com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNot
>ificationCenter.java:598)
>	at
>com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
>cationCenter.java:542)
>	at
>com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
>cationCenter.java:556)
>	at
>com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApp
>lication.java:1765)
>	at
>com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
>hPreparedApplication(WOComponentRequestHandler.java:309)
>	at
>com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
>st(WOComponentRequestHandler.java:358)
>	at
>com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
>t(WOComponentRequestHandler.java:435)
>	at
>com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav
>a:1308)
>	at
>com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.
>java:173)
>	at
>com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java
>:254)
>	at java.lang.Thread.run(Thread.java:554)
>- Exception:
>java.lang.IllegalArgumentException
>	at org.apache.axis.encoding.FieldTarget.set(FieldTarget.java:105)
>	at
>org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl
>.java:260)
>	at
>org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja
>va:502)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
>zationContextImpl.java:942)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
>206)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
>ava:684)
>	at
>org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.
>java:370)
>	at
>org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
>lizationContextImpl.java:906)
>	at
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
>200)
>	at
>org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
>ava:684)
>	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>	at org.apache.axis.client.Call.invoke(Call.java:1871)
>	at org.apache.axis.client.Call.invoke(Call.java:1777)
>	at org.apache.axis.client.Call.invoke(Call.java:1315)
>	at
>com.webobjects.webservices.client.WOWebServiceClient.invoke(WOWebService
>Client.java:486)
>	at
>ca.ucalgary.commons.repository.digitalleaf.CXCore.invoke(CXCore.java:
>284)
>	at
>ca.ucalgary.commons.repository.digitalleaf.CXUserServicesLeaf._generateG
>lobalWorkspaceID(CXUserServicesLeaf.java:66)
>	at
>ca.ucalgary.commons.repository.foundation.CXWorkspace.<init>(CXWorkspace
>.java:32)
>	at
>ca.ucalgary.commons.repository.digitalleaf.CXDigitalLeaf$DigitalLeafWork
>er.sessionDidCreate(CXDigitalLeaf.java:104)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>a:39)
>	at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>Impl.java:25)
>	at java.lang.reflect.Method.invoke(Method.java:324)
>	at
>com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:
>120)
>	at
>com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNot
>ificationCenter.java:598)
>	at
>com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
>cationCenter.java:542)
>	at
>com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
>cationCenter.java:556)
>	at
>com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApp
>lication.java:1765)
>	at
>com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
>hPreparedApplication(WOComponentRequestHandler.java:309)
>	at
>com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
>st(WOComponentRequestHandler.java:358)
>	at
>com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
>t(WOComponentRequestHandler.java:435)
>	at
>com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav
>a:1308)
>	at
>com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.
>java:173)
>	at
>com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java
>:254)
>	at java.lang.Thread.run(Thread.java:554)
>
>Thanks,
>
>King Chung Huang
>Learning Commons
>University of Calgary
>_______________________________________________
>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.
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
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: 
 >Error Deserializing EOGlobalID via Web Services (From: King Chung Huang <email@hidden>)

  • Prev by Date: Error Deserializing EOGlobalID via Web Services
  • Next by Date: Re: Session locks up and will not die - maybe a MySQL bug
  • Previous by thread: Error Deserializing EOGlobalID via Web Services
  • Next by thread: Re: Session locks up and will not die - maybe a MySQL bug
  • Index(es):
    • Date
    • Thread