Uploaded image for project: 'JIRA'
  1. JIRA
  2. JRA-20009

JAXB log messages are too much.. for an IOException

    Details

      Description

      When the browser does a "reset connection" the following is logged by Jersey

      2009-12-17 00:42:12,428 http-81-Processor6 ERROR smitrokhin 2531x338088x3 dghcaz http://project.aginity.net:81/rest/gadget/1.0/issueTable/jql [[Catalina].[localhost].[/].[default]] Servlet.service() for servlet default threw exception
      
      java.io.IOException: Error marshalling JAXB object of type "class com.atlassian.jira.gadgets.system.IssueTableResource$IssueTable".
      
      	at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.writeTo(AbstractRootElementProvider.java:145)
      
      	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:254)
      
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689)
      
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612)
      
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603)
      
      	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)
      
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
      
      	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:198)
      
      	at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689)
      
      	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:112)
      
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41)
      
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
      
      	at com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilterInternal(RestServletUtilsUpdaterFilter.java:26)
      
      	at com.atlassian.plugins.rest.module.servlet.RestServletUtilsUpdaterFilter.doFilter(RestServletUtilsUpdaterFilter.java:40)
      
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.executeRequest(AccessLogFilter.java:154)
      
      	at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.doFilter(AccessLogFilter.java:133)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:206)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:131)
      
      	at com.atlassian.jira.web.filters.JiraLoginFilter.doFilter(JiraLoginFilter.java:70)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
      
      	at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69)
      
      	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:59)
      
      	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:53)
      
      	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:81)
      
      	at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55)
      
      	at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.jira.web.filters.CurlyQuotesFilter.doFilter(CurlyQuotesFilter.java:24)
      
      	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33)
      
      	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)
      
      	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at com.atlassian.jira.startup.JiraStartupChecklistFilter.doFilter(JiraStartupChecklistFilter.java:72)
      
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:581)
      
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
      
      	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      
      	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      
      	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      
      	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      
      	at java.lang.Thread.run(Thread.java:619)
      
      Caused by: javax.xml.bind.MarshalException
      
       - with linked exception:
      
      [javax.xml.stream.XMLStreamException]
      
      	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:332)
      
      	at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:172)
      
      	at com.sun.jersey.json.impl.JSONMarshaller.marshal(JSONMarshaller.java:123)
      
      	at com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider.writeTo(JSONRootElementProvider.java:139)
      
      	at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.writeTo(AbstractRootElementProvider.java:143)
      
      	... 103 more
      
      Caused by: javax.xml.stream.XMLStreamException
      
      	at com.sun.jersey.json.impl.writer.Stax2JacksonWriter.flush(Stax2JacksonWriter.java:334)
      
      	at com.sun.xml.bind.v2.runtime.output.XMLStreamWriterOutput.endDocument(XMLStreamWriterOutput.java:107)
      
      	at com.sun.xml.bind.v2.runtime.XMLSerializer.endDocument(XMLSerializer.java:854)
      
      	at com.sun.xml.bind.v2.runtime.MarshallerImpl.postwrite(MarshallerImpl.java:379)
      
      	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:326)
      
      	... 107 more
      

      Its TOO much and makes supporting JIRA all that much harder, invokes panic in customers and supports alike and for good measure hides the actual cause of the problem.

      So far in my time in support I have seen hundreds of these log messages (as expected) and it hinders problem resolution

      We need to do something about this. Just what is the trick. JAXB/Jersey is doing the logging calls and wrapping exceptions. However maybe we can do something at the log4j level to tweak how these messages get formatted and printed.

      See

      https://studio.atlassian.com/browse/REST-108

      and kinda related

      https://studio.atlassian.com/browse/REST-107

        Activity

        bbaker Brad Baker [Atlassian] created issue -
        chris@atlassian.com Chris Mountford [Atlassian] made changes -
        Field Original Value New Value
        Fix Version/s 4.0.x [ 14950 ]
        bbaker Brad Baker [Atlassian] made changes -
        Priority Minor [ 4 ] Major [ 3 ]
        chris@atlassian.com Chris Mountford [Atlassian] made changes -
        Fix Version/s 4.1.x [ 15085 ]
        Fix Version/s 4.0.x [ 14950 ]
        chris@atlassian.com Chris Mountford [Atlassian] made changes -
        Labels support_improvement support_improvement bughunt_easy
        chris@atlassian.com Chris Mountford [Atlassian] made changes -
        Labels support_improvement bughunt_easy support_improvement
        chris@atlassian.com Chris Mountford [Atlassian] made changes -
        Fix Version/s 4.2.x [ 15240 ]
        Fix Version/s 4.1.x [ 15085 ]
        nzakaria.adm Nabil Zakaria [Administrative Account] made changes -
        Workflow JIRA Bug Workflow + Quality v3 [ 198599 ] JIRA Bug Workflow + Quality v4 [ 256450 ]
        pleschev.adm Peter Leschev [Admin] made changes -
        Workflow JIRA Bug Workflow + Quality v4 [ 256450 ] JIRA Bug Workflow w Kanban v5 [ 265278 ]
        bdziedzic Bogdan Dziedzic [Atlassian] made changes -
        Labels support_improvement bugfix_support_backlog
        pleschev Peter Leschev made changes -
        Fix Version/s Bugfix Release [ 15240 ]
        edalgliesh Eric Dalgliesh made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        bbaker Brad Baker [Atlassian] made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Open [ 1 ]
        Assignee Eric Dalgliesh [Atlassian] Bugmaster [ edalgliesh ]
        clepetit Chris LePetit [Atlassian] made changes -
        Status Open [ 1 ] Needs Verification [ 10004 ]
        edalgliesh Eric Dalgliesh made changes -
        Assignee Eric Dalgliesh [Atlassian] Bugmaster [ edalgliesh ]
        cshim Chris Shim [Atlassian] made changes -
        Labels bugfix_support_backlog bugfix_support_backlog needs_steps
        ohernandez@atlassian.com Oswaldo Hernandez [Atlassian] Bugmaster made changes -
        Workflow JIRA Bug Workflow w Kanban v5 [ 265278 ] JIRA Bug Workflow w Kanban v6 [ 648748 ]
        ohernandez@atlassian.com Oswaldo Hernandez [Atlassian] Bugmaster made changes -
        Workflow JIRA Bug Workflow w Kanban v5 [ 648748 ] JIRA Bug Workflow w Kanban v6 [ 665350 ]
        bmagro Benjamin Magro [Atlassian] made changes -
        Component/s Remote API (REST) [ 13170 ]
        Component/s Remote API (SOAP & XML-RPC) [ 10480 ]
        bmagro Benjamin Magro [Atlassian] made changes -
        Labels bugfix_support_backlog needs_steps bugfix_support_backlog hedge needs_steps

          People

          • Assignee:
            Unassigned
            Reporter:
            bbaker Brad Baker [Atlassian]
          • Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: