To be clear, URLStreamHandler throws the exception because
URLHandlersStreamHandlerProxy doesn't override the
openConnection(proxy,url). This makes sense, since that method was added
in JDK 1.5 and OSGi doesn't use 1.5 API.
We will have to look into how we can address this in Felix. I have
created this issue to track it at Felix:
https://issues.apache.org/jira/browse/FELIX-1060
If you want to create an issue at GF to track it as well, feel free.
-> richard
On 4/27/09 7:08 PM, Bhakti Mehta wrote:
> Sahoo/Richard.
> I am running into the following exception when I try to invoke a
> webservice either via WebServiceRef or tester servlet.
> In the debugger I see
> org.apache.felix.framework.URLHandlersStreamHandlerProxy throwning the
> UOE for not implementing the openConnection(proxy,url)
>
> Should I file a bug for this ?
>
> To reproduce
> 1.install glassfish.zip
> 2.deploy the war
> 3.Run the tester http://localhost:8080/basicv3-109app/HiService?tester
> 4.Invoke the method
> Please let me know
>
> Thanks,
> Bhakti
>
> javax.servlet.ServletException:
> java.lang.reflect.InvocationTargetException at
> org.glassfish.webservices.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:326)
> at
> org.glassfish.webservices.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:102)
> at
> org.glassfish.webservices.JAXWSServlet.doPost(JAXWSServlet.java:128)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1461)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:293)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:187)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:656)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:351)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:249)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:196)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:740)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:631)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:900)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:162)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:637) Caused by:
> java.lang.reflect.InvocationTargetException at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> org.glassfish.webservices.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:297)
> ... 28 more Caused by: com.sun.xml.ws.client.ClientTransportException:
> HTTP transport error: java.lang.UnsupportedOperationException: Method
> not implemented. at
> com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:132)
> at
> com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:153)
> at
> com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)
> at
> com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:117)
> at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629) at
> com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588) at
> com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573) at
> com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470) at
> com.sun.xml.ws.client.Stub.process(Stub.java:235) at
> com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:147) at
> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
> at
> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
> at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:130) at
> $Proxy160.sayHi(Unknown Source) ... 33 more Caused by:
> java.lang.UnsupportedOperationException: Method not implemented. at
> java.net.URLStreamHandler.openConnection(URLStreamHandler.java:80) at
> java.net.URL.openConnection(URL.java:992) at
> com.sun.xml.ws.api.EndpointAddress.openConnection(EndpointAddress.java:211)
> at
> com.sun.xml.ws.transport.http.client.HttpClientTransport.createHttpConnection(HttpClientTransport.java:239)
> at
> com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:116)
> ... 46 more