Melinda Reiz
asked on
What is the reason for the 500 Internal Server Error and how to fix it?
Hello,
I am confused about this error I am getting, although the code I didn't change anything at the code and two days ago everything just ran perfectly.
Can anyone help me out with this one and suggest any solution?
017-08-17 13:01:15.785 ERROR 9068 --- [nio-8080-exec-5] o.a.c.c.C.[.[.[/].[dispatc herServlet ] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.cl ient.HttpS erverError Exception: 500 Internal Server Error] with root cause
org.springframework.web.cl ient.HttpS erverError Exception: 500 Internal Server Error
at org.springframework.web.cl ient.Defau ltResponse ErrorHandl er.handleE rror(Defau ltResponse ErrorHandl er.java:66 ) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.cl ient.RestT emplate.ha ndleRespon se(RestTem plate.java :700) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.cl ient.RestT emplate.do Execute(Re stTemplate .java:653) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.cl ient.RestT emplate.ex ecute(Rest Template.j ava:613) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.cl ient.RestT emplate.ge tForEntity (RestTempl ate.java:3 12) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at com.mhp.sdac.cockpit.servi ce.Cockpit ServiceImp l.getTicke tListFor(C ockpitServ iceImpl.ja va:90) ~[classes/:na]
at com.mhp.sdac.cockpit.servi ce.Cockpit ServiceImp l.getFirst LevelTicke tList(Cock pitService Impl.java: 52) ~[classes/:na]
at com.mhp.sdac.cockpit.web.C ockpitCont roller.get FirstLevel TicketList (CockpitCo ntroller.j ava:34) ~[classes/:na]
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method) ~[na:1.8.0_144]
at sun.reflect.NativeMethodAc cessorImpl .invoke(Un known Source) ~[na:1.8.0_144]
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Unknown Source) ~[na:1.8.0_144]
at java.lang.reflect.Method.i nvoke(Unkn own Source) ~[na:1.8.0_144]
at org.springframework.web.me thod.suppo rt.Invocab leHandlerM ethod.doIn voke(Invoc ableHandle rMethod.ja va:205) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.me thod.suppo rt.Invocab leHandlerM ethod.invo keForReque st(Invocab leHandlerM ethod.java :133) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.se rvlet.mvc. method.ann otation.Se rvletInvoc ableHandle rMethod.in vokeAndHan dle(Servle tInvocable HandlerMet hod.java:9 7) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.mvc. method.ann otation.Re questMappi ngHandlerA dapter.inv okeHandler Method(Req uestMappin gHandlerAd apter.java :827) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.mvc. method.ann otation.Re questMappi ngHandlerA dapter.han dleInterna l(RequestM appingHand lerAdapter .java:738) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.mvc. method.Abs tractHandl erMethodAd apter.hand le(Abstrac tHandlerMe thodAdapte r.java:85) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.Disp atcherServ let.doDisp atch(Dispa tcherServl et.java:96 3) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.Disp atcherServ let.doServ ice(Dispat cherServle t.java:897 ) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.Fram eworkServl et.process Request(Fr ameworkSer vlet.java: 970) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at org.springframework.web.se rvlet.Fram eworkServl et.doGet(F rameworkSe rvlet.java :861) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 635) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.springframework.web.se rvlet.Fram eworkServl et.service (Framework Servlet.ja va:846) ~[spring-webmvc-4.3.8.RELE ASE.jar:4. 3.8.RELEAS E]
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 742) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:231 ) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 66) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.tomcat.websocke t.server.W sFilter.do Filter(WsF ilter.java :52) ~[tomcat-embed-websocket-8 .5.14.jar: 8.5.14]
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:193 ) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 66) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.springframework.web.fi lter.Reque stContextF ilter.doFi lterIntern al(Request ContextFil ter.java:9 9) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.fi lter.OnceP erRequestF ilter.doFi lter(OnceP erRequestF ilter.java :107) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:193 ) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 66) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.springframework.web.fi lter.HttpP utFormCont entFilter. doFilterIn ternal(Htt pPutFormCo ntentFilte r.java:105 ) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.fi lter.OnceP erRequestF ilter.doFi lter(OnceP erRequestF ilter.java :107) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:193 ) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 66) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.springframework.web.fi lter.Hidde nHttpMetho dFilter.do FilterInte rnal(Hidde nHttpMetho dFilter.ja va:81) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.fi lter.OnceP erRequestF ilter.doFi lter(OnceP erRequestF ilter.java :107) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:193 ) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 66) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.springframework.web.fi lter.Chara cterEncodi ngFilter.d oFilterInt ernal(Char acterEncod ingFilter. java:197) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.springframework.web.fi lter.OnceP erRequestF ilter.doFi lter(OnceP erRequestF ilter.java :107) ~[spring-web-4.3.8.RELEASE .jar:4.3.8 .RELEASE]
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:193 ) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 66) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:198) ~[tomcat-embed-core-8.5.14 .jar:8.5.1 4]
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:96) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.catalina.authen ticator.Au thenticato rBase.invo ke(Authent icatorBase .java:478) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:140 ) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:80) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :87) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:342) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.coyote.http11.H ttp11Proce ssor.servi ce(Http11P rocessor.j ava:799) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.coyote.Abstract ProcessorL ight.proce ss(Abstrac tProcessor Light.java :66) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.coyote.Abstract Protocol$C onnectionH andler.pro cess(Abstr actProtoco l.java:861 ) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.tomcat.util.net .NioEndpoi nt$SocketP rocessor.d oRun(NioEn dpoint.jav a:1455) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at org.apache.tomcat.util.net .SocketPro cessorBase .run(Socke tProcessor Base.java: 49) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at java.util.concurrent.Threa dPoolExecu tor.runWor ker(Unknow n Source) [na:1.8.0_144]
at java.util.concurrent.Threa dPoolExecu tor$Worker .run(Unkno wn Source) [na:1.8.0_144]
at org.apache.tomcat.util.thr eads.TaskT hread$Wrap pingRunnab le.run(Tas kThread.ja va:61) [tomcat-embed-core-8.5.14. jar:8.5.14 ]
at java.lang.Thread.run(Unkno wn Source) [na:1.8.0_144]
Thanks,
I would appreciate it a lot!
I am confused about this error I am getting, although the code I didn't change anything at the code and two days ago everything just ran perfectly.
Can anyone help me out with this one and suggest any solution?
017-08-17 13:01:15.785 ERROR 9068 --- [nio-8080-exec-5] o.a.c.c.C.[.[.[/].[dispatc
org.springframework.web.cl
at org.springframework.web.cl
at org.springframework.web.cl
at org.springframework.web.cl
at org.springframework.web.cl
at org.springframework.web.cl
at com.mhp.sdac.cockpit.servi
at com.mhp.sdac.cockpit.servi
at com.mhp.sdac.cockpit.web.C
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.springframework.web.me
at org.springframework.web.me
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at org.springframework.web.se
at javax.servlet.http.HttpSer
at org.springframework.web.se
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.tomcat.websocke
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.springframework.web.fi
at org.springframework.web.fi
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.springframework.web.fi
at org.springframework.web.fi
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.springframework.web.fi
at org.springframework.web.fi
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.springframework.web.fi
at org.springframework.web.fi
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.authen
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.Abstract
at org.apache.coyote.Abstract
at org.apache.tomcat.util.net
at org.apache.tomcat.util.net
at java.util.concurrent.Threa
at java.util.concurrent.Threa
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Unkno
Thanks,
I would appreciate it a lot!
If you have a backup of this server, I'd recommend restoring from that. I had this error a few months back, we use Rollback Rx Server, and I restored the machine from the backup and it worked perfectly.
I don't think that it is a problem with *this* application at all. From the stack trace it appears that this application uses RestTemplate to make a web service call to some other service. And I believe that it is this *other* service that is having this Internal Server Error, and this application is just reporting that error condition.
If you can give us more information on the architecture of this system, it may help.
If you can give us more information on the architecture of this system, it may help.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
check what is required in:
at com.mhp.sdac.cockpit.servi
seems like something empty is being passed to the method.
try to use debug to see what actually happens in this line of code.