Announcement Announcement Module
Collapse
No announcement yet.
AOP and invocation target Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AOP and invocation target

    Hello,

    I have a web service client trying to access an external service where the wsdl is located on a server using ssl. The soap-action itself is not defined as https.

    When I run my test I get an exception saying unsupported protocol: https'. The stacktrace shows that the exception is thrown in weblogic.net.http.HttpClient.openServer(). How can I get Spring to invoke for instance weblogics HttpsClient? Or is there another way to do this, have I missed the real problem?

    Any clues as to what I am doing wrong would be much appreciated...

    The stack trace is as follows:

    org.springframework.remoting.RemoteAccessException : Could not access remote service at [null]; nested exception is javax.xml.ws.WebServiceException: java.net.ProtocolException: Unsupported protocol: https'
    at org.springframework.remoting.jaxws.JaxWsPortClient Interceptor.doInvoke(JaxWsPortClientInterceptor.ja va:504)
    at org.springframework.remoting.jaxws.JaxWsPortClient Interceptor.invoke(JaxWsPortClientInterceptor.java :481)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy207.getCaseListAgencySystemExternalBasic(Unk nown Source)
    at no.brreg.integration.altinn.serviceimpl.CaseListSe rviceImpl.getCaseListByCaseId(CaseListServiceImpl. java:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:309)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:183)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :150)
    at org.springframework.remoting.support.RemoteInvocat ionTraceInterceptor.invoke(RemoteInvocationTraceIn terceptor.java:77)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy208.getCaseListByCaseId(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.remoting.support.RemoteInvocat ion.invoke(RemoteInvocation.java:205)
    at org.springframework.remoting.support.DefaultRemote InvocationExecutor.invoke(DefaultRemoteInvocationE xecutor.java:38)
    at org.springframework.remoting.support.RemoteInvocat ionBasedExporter.invoke(RemoteInvocationBasedExpor ter.java:78)
    at org.springframework.remoting.support.RemoteInvocat ionBasedExporter.invokeAndCreateResult(RemoteInvoc ationBasedExporter.java:114)
    at org.springframework.remoting.httpinvoker.HttpInvok erServiceExporter.handleRequest(HttpInvokerService Exporter.java:73)
    at org.springframework.web.servlet.mvc.HttpRequestHan dlerAdapter.handle(HttpRequestHandlerAdapter.java: 50)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:790)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:719)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:644)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:561)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:821)
    at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:300)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:184)
    at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.doIt(WebAppServletContext.jav a:3686)
    at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3650)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread. java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java :173)
    at org.springframework.remoting.support.RemoteInvocat ionUtils.fillInClientStackTraceIfPossible(RemoteIn vocationUtils.java:47)
    at org.springframework.remoting.support.RemoteInvocat ionResult.recreate(RemoteInvocationResult.java:115 )
    at org.springframework.remoting.support.RemoteInvocat ionBasedAccessor.recreateRemoteInvocationResult(Re moteInvocationBasedAccessor.java:85)
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.invoke(HttpInvokerClientInterc eptor.java:148)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy0.getCaseListByCaseId(Unknown Source)
    at no.brreg.integration.altinn.client.HttpClient.main (HttpClient.java:26)
    Caused by: javax.xml.ws.WebServiceException: java.net.ProtocolException: Unsupported protocol: https'
    at com.sun.xml.ws.transport.http.client.HttpClientTra nsport.readResponseCodeAndMessage(HttpClientTransp ort.java:218)
    at com.sun.xml.ws.transport.http.client.HttpTransport Pipe.process(HttpTransportPipe.java:183)
    at com.sun.xml.ws.transport.http.client.HttpTransport Pipe.processRequest(HttpTransportPipe.java:111)
    at com.sun.xml.ws.transport.DeferredTransportPipe.pro cessRequest(DeferredTransportPipe.java:96)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:6 04)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:56 3)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548 )
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:4 45)
    at com.sun.xml.ws.client.Stub.process(Stub.java:259)
    at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStu b.java:152)
    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke (SyncMethodHandler.java:115)
    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke (SyncMethodHandler.java:95)
    at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.j ava:135)
    at $Proxy205.getCaseListAgencySystemExternalBasic(Unk nown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.wsee.jaxws.spi.ClientInstance$ClientInsta nceInvocationHandler.invoke(ClientInstance.java:36 3)
    at $Proxy206.getCaseListAgencySystemExternalBasic(Unk nown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.remoting.jaxws.JaxWsPortClient Interceptor.doInvoke(JaxWsPortClientInterceptor.ja va:520)
    at org.springframework.remoting.jaxws.JaxWsPortClient Interceptor.doInvoke(JaxWsPortClientInterceptor.ja va:494)
    ... 53 more
    Caused by: java.net.ProtocolException: Unsupported protocol: https'
    at weblogic.net.http.HttpClient.openServer(HttpClient .java:378)
    at weblogic.net.http.HttpClient.New(HttpClient.java:2 46)
    at weblogic.net.http.HttpURLConnection.connect(HttpUR LConnection.java:176)
    at weblogic.net.http.HttpURLConnection.followRedirect (HttpURLConnection.java:646)
    at weblogic.net.http.HttpURLConnection.getInputStream (HttpURLConnection.java:427)
    at weblogic.net.http.SOAPHttpURLConnection.getInputSt ream(SOAPHttpURLConnection.java:37)
    at weblogic.net.http.HttpURLConnection.getResponseCod e(HttpURLConnection.java:952)
    at com.sun.xml.ws.transport.http.client.HttpClientTra nsport.readResponseCodeAndMessage(HttpClientTransp ort.java:215)
    at com.sun.xml.ws.transport.http.client.HttpTransport Pipe.process(HttpTransportPipe.java:184)
    ... 77 more
Working...
X