You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Stocker, Walter" <Wa...@t-systems.com> on 2002/09/05 10:49:59 UTC

difficult problem with axis and ssl

Hello,

i've run into a difficult problem with axis and ssl. i hope someone has
the knowledge to help me out.

we're using a different ssl implementation (not jsse) and jdk 1.3.1. Since
Axis doesn't support the plugging of other ssl providers we're planning to
write a jsse wrapper around our ssl implementation. So i skimmed the source
code of HTTPSender.java from the axis source tree and implemented a class
SSLSocket, which implements the functions needed by the calls of the  
reflection api. But now, if i invoke a web service i get the following 
exception:

8001 [Thread-5] INFO client.Call  - Mapping Exception to AxisFault
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: java.lang.IllegalArgumentException: object is not an instance of d
eclaring class
 faultActor: null
 faultDetail:
        stackTrace: java.lang.IllegalArgumentException: object is not an instanc
e of declaring class
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.axis.transport.http.HTTPSender.getSecureSocket(HTTPSender.
java:269)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2027)
        at org.apache.axis.client.Call.invoke(Call.java:2016)
        at org.apache.axis.client.Call.invoke(Call.java:1786)
        at org.apache.axis.client.Call.invoke(Call.java:1711)
        at org.apache.axis.client.Call.invoke(Call.java:1251)
        at sam.SAMServiceSOAPBindingStub.login(SAMServiceSOAPBindingStub.java:29
1)
        at com.tsystems.si.mm.toi.service.SAM.login(SAM.java:166)
        at com.tsystems.si.mm.toi.service.TOIMMRegisterServlet.getAnid(TOIMMRegi
sterServlet.java:326)
        at com.tsystems.si.mm.toi.service.TOIMMRegisterServlet.doGet(TOIMMRegist
erServlet.java:115)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
        at org.apache.tomcat.core.Handler.invoke(Unknown Source)
        at org.apache.tomcat.core.Handler.service(Unknown Source)
        at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
        at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)

        at org.apache.tomcat.core.ContextManager.service(Unknown Source)
        at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Unknown Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
        at java.lang.Thread.run(Thread.java:484)

Has anyone suggestions whats going wrong?

BTW i'm using Axis beta3. Is there a release date for 1.0 already?

cu
                                                                     
 Dipl. Inform. (FH) Walter Stocker
 T-Systems International GmbH
 Software Developer
 System Integration
 Address: Memmelsdorfer Str. 209a, 96052 Bamberg
 Phone: +49 (09 51) 40 97 - 1 46
 Fax: +49 (09 51) 40 97 - 2 00
 E-Mail: mailto:Walter.Stocker@t-systems.com
 Internet: http://www.t-systems.com