16:04:02.130 [pool-1-thread-3 - /web/json?js] DEBUG org.eclipse.jetty.server.Server - REQUEST /web/json on AsyncHttpConnection@2d69b054,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-5,l=9,c=0},r=1
java.lang.StackOverflowError
at java.util.LinkedHashMap.access$000(LinkedHashMap.java:147)
at java.util.LinkedHashMap$Entry.recordAccess(LinkedHashMap.java:350)
at java.util.LinkedHashMap.get(LinkedHashMap.java:300)
at java.io.ExpiringCache.entryFor(ExpiringCache.java:102)
at java.io.ExpiringCache.get(ExpiringCache.java:77)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)
at java.io.File.getCanonicalPath(File.java:589)
at java.io.FilePermission$1.run(FilePermission.java:221)
at java.io.FilePermission$1.run(FilePermission.java:209)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:209)
at java.io.FilePermission.<init>(FilePermission.java:285)
at sun.net.www.protocol.file.FileURLConnection.getPermission(FileURLConnection.java:227)
at sun.net.www.protocol.jar.JarFileFactory.getPermission(JarFileFactory.java:153)
at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(JarFileFactory.java:123)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80)
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
at java.net.URL.openStream(URL.java:1035)
at com.sun.xml.ws.util.ServiceFinder.parse(ServiceFinder.java:310)
at com.sun.xml.ws.util.ServiceFinder.access$200(ServiceFinder.java:145)
at com.sun.xml.ws.util.ServiceFinder$LazyIterator.hasNext(ServiceFinder.java:365)
at com.sun.xml.ws.util.ServiceFinder.toArray(ServiceFinder.java:229)
at com.jaxws.json.codec.doc.JSONHttpMetadataPublisher.handleMetadataRequest(JSONHttpMetadataPublisher.java:55)
at com.sun.xml.ws.transport.http.HttpAdapter.handleGet(HttpAdapter.java:270)
at com.sun.xml.ws.transport.http.HttpAdapter.invokeAsync(HttpAdapter.java:465)
at com.sun.xml.ws.transport.http.HttpAdapter.invokeAsync(HttpAdapter.java:460)
at com.jaxws.json.codec.doc.JSONHttpMetadataPublisher.handleMetadataRequest(JSONHttpMetadataPublisher.java:69)
16:05:15.109 [pool-1-thread-3 - /web/json] DEBUG org.eclipse.jetty.server.Server - REQUEST /web/json on AsyncHttpConnection@213fdeca,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=2,l=8,c=21},r=3
июл 02, 2012 4:05:15 PM com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle
SEVERE: com.sun.net.httpserver.Headers cannot be cast to com.sun.xml.ws.transport.Headers
java.lang.ClassCastException: com.sun.net.httpserver.Headers cannot be cast to com.sun.xml.ws.transport.Headers
at com.jaxws.json.codec.JSONCodec.decode(JSONCodec.java:482)
at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:336)
at com.sun.xml.ws.transport.http.HttpAdapter.access$400(HttpAdapter.java:96)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:591)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:259)
at com.sun.xml.ws.transport.http.server.WSHttpHandler.handleExchange(WSHttpHandler.java:110)
at com.sun.xml.ws.transport.http.server.WSHttpHandler.handle(WSHttpHandler.java:95)
at org.eclipse.jetty.http.spi.HttpSpiContextHandler.doScope(HttpSpiContextHandler.java:81)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:347)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:451)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:931)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:870)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:238)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:615)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
16:05:15.125 [pool-1-thread-3 - /web/json] DEBUG org.eclipse.jetty.server.Server - RESPONSE /web/json 500
Which json client your trying to use? (Jquery, yahoo ui or other)
1) When I'm calling http://localhost:8080/web/json?js , I'm obtaining the following stacktrace:
For first issue (java.lang.StackOverflowError) from meta data producer. I am trying to reproduce it, but I can't reproduce it. Can you give more information on,1) Java version?
2) Metro(jax-ws) version your using?
You simply try doing post insteed of get. You can do it quickly in end point document by pressing ">>" button.