Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-4236

Content type not correctly set except for text/xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • Hop Server
    • None

    Description

      • Fix issue
      • Create integration tests for Hop Webservice
        html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/><title>Error 500 java.lang.NullPointerException</title>
        </head><body><h2>HTTP ERROR 500 java.lang.NullPointerException</h2><table><tr><th>URI:</th><td>/hop/webService/</td></tr><tr><th>STATUS:</th><td>500</td></tr><tr><th>MESSAGE:</th><td>java.lang.NullPointerException</td></tr><tr><th>SERVLET:</th><td>org.apache.hop.www.WebServiceServlet-1fe2c5ad</td></tr><tr><th>CAUSED BY:</th><td>java.lang.NullPointerException</td></tr>
        </table><h3>Caused by:</h3><pre>java.lang.NullPointerException
                at org.eclipse.jetty.util.AbstractTrie.get(AbstractTrie.java:58)
                at org.eclipse.jetty.util.StringUtil.normalizeCharset(StringUtil.java:70)
                at org.eclipse.jetty.util.StringUtil.isUTF8(StringUtil.java:644)
                at org.eclipse.jetty.server.Request.setCharacterEncoding(Request.java:2073)
                at org.apache.hop.www.BaseHttpServlet.service(BaseHttpServlet.java:94)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
                at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:791)
                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
                at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
                at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
                at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59)
                at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:567)
                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
                at org.eclipse.jetty.server.Server.handle(Server.java:516)
                at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
                at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
                at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
                at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
                at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:540)
                at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:395)
                at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161)
                at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
                at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
                at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
                at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
                at java.base/java.lang.Thread.run(Thread.java:829)
        </pre><hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.35.v20201120</a><hr/></body>
        </html> 

        Caused by getContentEncoding in BaseHttpServlet.java

      Attachments

        Issue Links

          Activity

            People

              hansva Hans Van Akelyen
              hansva Hans Van Akelyen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: