Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 42149 invoked from network); 13 Dec 2007 04:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 04:53:56 -0000 Received: (qmail 56910 invoked by uid 500); 13 Dec 2007 04:53:45 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 56827 invoked by uid 500); 13 Dec 2007 04:53:45 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 56818 invoked by uid 99); 13 Dec 2007 04:53:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 20:53:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jasnell@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 04:53:21 +0000 Received: by an-out-0708.google.com with SMTP id b33so129532ana.83 for ; Wed, 12 Dec 2007 20:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=NaEz2O558O8URXAyTZEe2tr+b3qQneLCyOqpawhDYdw=; b=BXwezTf0KoJi/L4WSmxGkEz/+Jek3xIccn0XA0vYuusa04YPZwNwcIp5OFXtEM2YRiomjaWoDAZzxUOsTSq+QkMLP9U81YTa6rseRCRuZvGwvjR4kFLyhKNPqMlkq8F0lOh6dn1LL5JAMMzH6fgC5Ti1gREzD/aFiBBD3+mIFQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=pUdy/sL7Efmy5Z7EJVJEShskvpH12b4nL6kAIW+i259Eilcu71rHZhxkM8HihZjk0jFLjtJLXgHtAmrJrxVn/mJmr7Bx338g6LsHt4OVrh6uI3VIZtLkYJ/0kYk7BsbCeHYLv2crSoEQAUOf+yrc82sRVZU9HhOolqf3NuSB3gA= Received: by 10.100.227.20 with SMTP id z20mr3253983ang.18.1197521604046; Wed, 12 Dec 2007 20:53:24 -0800 (PST) Received: from ?192.168.1.2? ( [67.181.218.96]) by mx.google.com with ESMTPS id i52sm9018209rne.2007.12.12.20.53.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Dec 2007 20:53:23 -0800 (PST) Message-ID: <4760BAC0.1050403@gmail.com> Date: Wed, 12 Dec 2007 20:53:20 -0800 From: James M Snell User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Re: Streaming Problem References: <47604BDF.4030209@mulesource.com> <47604D48.4020103@gmail.com> <47604E2B.3020701@mulesource.com> <47604F15.1030907@mulesource.com> <476058D4.7010906@gmail.com> <47609F23.5020705@mulesource.com> <4760B3D9.9030200@mulesource.com> In-Reply-To: <4760B3D9.9030200@mulesource.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org aha... ok. good catch Dan Diephouse wrote: > I found it - there wasn't a status code being set, so we were calling > response.setStatus(0), which caused jetty all sorts of problems because > it uses the status field to denote that the connection was reset or > something like that. > > Anyway, fixed in SVN and Greg is going to throw an > IllegalArgumentException in Jetty if 0 is passed in from now on. > > - Dan > > Dan Diephouse wrote: >> Its not close()ing actually. The underlying XMLStreamWriter flushes >> once endDocument() is called. flush() is only ever called once too. >> I'm not sure why thats causing Jetty to freak out. *sigh* >> >> Googling turned up this, but I'm not sure its really helping me - >> http://jira.codehaus.org/browse/JETTY-276 >> >> - Dan >> >> James M Snell wrote: >>> It's possible but then I'd expect the error to be thrown higher up in >>> the method. For some reason, the underlying writer appears to be >>> closing before the method completes. Any chance you can do some >>> debugging on that internal writer to see what's going on with it? >>> >>> - James >>> >>> Dan Diephouse wrote: >>> >>>> Any chance the document is being written twice somehow? Thats what the >>>> exception seems to imply to me, but I could be way off. >>>> >>>> Dan Diephouse wrote: >>>> >>>>> Its the code inside AbstractServiceProvider.getServicesDocument() >>>>> (formerly known as AbstractWorkspaceProvider). >>>>> >>>>> James M Snell wrote: >>>>> >>>>>> Odd. Can you provide some of the code you're using the write out the >>>>>> document? >>>>>> >>>>>> - James >>>>>> >>>>>> Dan Diephouse wrote: >>>>>> >>>>>> >>>>>>> I'm getting the following exception in my app when printing out a >>>>>>> services document now. I haven't been able to reproduce in any of >>>>>>> the >>>>>>> Abdera test cases I've written though. Any ideas? >>>>>>> >>>>>>> - Dan >>>>>>> >>>>>>> java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: null >>>>>>> at >>>>>>> org.apache.abdera.parser.stax.StaxStreamWriter.endDocument(StaxStreamWriter.java:117) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.impl.AbstractServiceProvider$1.writeTo(AbstractServiceProvider.java:184) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.impl.StreamWriterResponseContext.writeEntity(StreamWriterResponseContext.java:94) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.impl.SimpleResponseContext.writeTo(SimpleResponseContext.java:67) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.impl.SimpleResponseContext.writeTo(SimpleResponseContext.java:60) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.impl.DefaultRequestHandler.response(DefaultRequestHandler.java:133) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.impl.DefaultRequestHandler.process(DefaultRequestHandler.java:61) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.java:100) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>>>>>> at >>>>>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.springmodules.jcr.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:93) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.ui.switchuser.SwitchUserProcessingFilter.doFilter(SwitchUserProcessingFilter.java:341) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) >>>>>>> >>>>>>> >>>>>>> at org.mortbay.jetty.Server.handle(Server.java:313) >>>>>>> at >>>>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) >>>>>>> at >>>>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) >>>>>>> at >>>>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) >>>>>>> at >>>>>>> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:227) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) >>>>>>> >>>>>>> >>>>>>> >>>>>>> Caused by: com.ctc.wstx.exc.WstxIOException: null >>>>>>> at >>>>>>> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1687) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:585) >>>>>>> >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.apache.abdera.parser.stax.StaxStreamWriter.endDocument(StaxStreamWriter.java:114) >>>>>>> >>>>>>> >>>>>>> >>>>>>> ... 52 more >>>>>>> Caused by: org.mortbay.jetty.EofException >>>>>>> at >>>>>>> org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:253) >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:581) >>>>>>> >>>>>>> >>>>>>> at >>>>>>> org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:906) >>>>>>> >>>>>>> at >>>>>>> sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410) >>>>>>> at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) >>>>>>> at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) >>>>>>> at >>>>>>> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214) >>>>>>> >>>>>>> at >>>>>>> com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194) >>>>>>> >>>>>>> at >>>>>>> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1685) >>>>>>> >>>>>>> >>>>>>> ... 54 more >>>>>>> [12-12 15:57:41] INFO / [main]: Destroying >>>>>>> >>>>>>> >>>>> >>>> >> >> > >