Error Deserializing EOGlobalID via Web Services
Error Deserializing EOGlobalID via Web Services
- Subject: Error Deserializing EOGlobalID via Web Services
- From: King Chung Huang <email@hidden>
- Date: Fri, 21 Nov 2003 13:15:28 -0700
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.