HTTP 500 Internal Server Error - How to debug?

Eight Stars

HTTP 500 Internal Server Error - How to debug?

I have a very weird situation. When I am POSTing data to my RESTful service (4MB), on my local LAN Talend RunTime Environment, it works properly.

However, on my prod server, which is hosted on a publicly accessible https URL, same data fails to post. What I see in the tesb.log is below. 

 

I am lost how to figure out what is the problem in my webservice. Any help is appreciated.

 

16:36:50,174 | WARN  | qtp978714646-124 | pl.WebApplicationExceptionMapper   72 | 103 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.7 | javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
        at org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException(SpecExceptions.java:79)
        at org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorException(ExceptionUtils.java:113)
        at org.apache.cxf.jaxrs.utils.FormUtils.readBody(FormUtils.java:120)
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.processFormParam(JAXRSUtils.java:949)
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.createHttpParameterValue(JAXRSUtils.java:877)
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:837)
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:788)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:212)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:234)
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.jetty.io.EofException: Early EOF
        at org.eclipse.jetty.server.HttpInput$3.noContent(HttpInput.java:519)
        at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:125)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at org.apache.cxf.metrics.interceptors.CountingInputStream.read(CountingInputStream.java:47)
        at java.io.SequenceInputStream.read(SequenceInputStream.java:208)
        at java.io.InputStream.read(InputStream.java:101)
        at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:209)
        at org.apache.cxf.jaxrs.utils.FormUtils.readBody(FormUtils.java:117)
        ... 23 more
Moderator

Re: HTTP 500 Internal Server Error - How to debug?

Hello,

It looks like your program suspend. Are there any differences in your JVM configuration for your local LAN and prod server?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Eight Stars

Re: HTTP 500 Internal Server Error - How to debug?

The only thing different is that PROD is accessible via an HTTPS url, internal is HTTP.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download