You cannot send socket references across the network. Sockets - like
other resources like DB and JMS connections, are not serializable.
The serialization mechanism is described here [1].
Michele
[1] http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/
serialTOC.html
On 19 Nov 2007, at 23:04, tina-- wrote:
hello!!
Can you please help me? I am facing a problem while calling
(invoking) a web
service with a socket as its parameter. The exception is:
org.apache.axiom.om.OMException: java.lang.RuntimeException:
java.lang.IllegalAccessException: Class
org.apache.axis2.databinding.utils.BeanUtil can not access a member
of class
java.net.SocketInputStream with modifiers "public final"
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:239)
at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:
318)
at
org.apache.axiom.om.impl.llom.OMElementImpl.build
(OMElementImpl.java:614)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach
(OMElementImpl.java:583)
at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
(OMNodeImpl.java:117)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild
(OMElementImpl.java:239)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild
(OMElementImpl.java:195)
at
org.apache.axis2.client.ServiceClient.fillSOAPEnvelope
(ServiceClient.java:689)
at
org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:525)
at
org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:508)
at
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking
(RPCServiceClient.java:101)
at tcp2.LicenseServiceClient.deamon(LicenseServiceClient.java:36)
at tcp2.LicenseDeamonHandler.run(LicenseDeamonHandler.java:30)
Caused by: java.lang.RuntimeException:
java.lang.IllegalAccessException:
Class org.apache.axis2.databinding.utils.BeanUtil can not access a
member of
class java.net.SocketInputStream with modifiers "public final"
at
org.apache.axis2.databinding.utils.BeanUtil.getPullParser
(BeanUtil.java:246)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.proce
ssProperties(ADBXMLStreamReaderImpl.java:988)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(
ADBXMLStreamReaderImpl.java:854)
at
org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.next
(WrappingXMLStreamReader.java:48)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(
ADBXMLStreamReaderImpl.java:857)
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:71)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:153)
... 12 more
Caused by: java.lang.IllegalAccessException: Class
org.apache.axis2.databinding.utils.BeanUtil can not access a member
of class
java.net.SocketInputStream with modifiers "public final"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.reflect.Method.invoke(Method.java:588)
at
org.apache.axis2.databinding.utils.BeanUtil.getPullParser
(BeanUtil.java:224)
... 18 more
I don't get this thing with "public and final" .
Thank you very much!!
--
View this message in context: http://www.nabble.com/problem-with-
axis-and-sockets-tf4840115.html#a13847572
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]