Solved

java error logs reading

Posted on 2014-04-03
4
377 Views
Last Modified: 2014-04-14
Hi,
I got the following error in my logs :
2014-04-03 14:24:16 ERROR http-bio-7070-exec-19999 com.yatra.platform.remotecache.CacheClientImpl Remote Cache Not Available 
java.lang.RuntimeException: Exception waiting for value
	at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1183)
	at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1200)
	at com.yatra.platform.remotecache.CacheClientImpl.get(CacheClientImpl.java:63)
	at com.yatra.platform.remotecache.RemoteCacheFactory.get(RemoteCacheFactory.java:26)
	at com.yatra.platform.remotecache.CacheHandler.get(CacheHandler.java:97)
	at com.yatra.platform.remotecache.CacheHandler.get(CacheHandler.java:123)
	at com.yatra.products.air.service.impl.FlightSearchServiceImpl.getjsonResponse(FlightSearchServiceImpl.java:124)
	at com.yatra.products.air.rules.mgr.SearchRulesMgr.getSearchResponse(SearchRulesMgr.java:89)
	at com.yatra.platform.products.air.rules.Rule_Render_Search_Result_Page_0.defaultConsequence(Rule_Render_Search_Result_Page_0.java:23)
	at com.yatra.platform.products.air.rules.Rule_Render_Search_Result_Page_0DefaultConsequenceInvoker.evaluate(Rule_Render_Search_Result_Page_0DefaultConsequenceInvoker.java:39)
	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:906)
	at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:846)
	at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1056)
	at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:733)
	at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:699)
	at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:162)
	at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:75)
	at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:102)
	at com.yatra.products.air.web.controller.FlightSearchController.searchFlights(FlightSearchController.java:108)
	at com.yatra.products.air.web.controller.FlightSearchController.searchFlightsJson(FlightSearchController.java:157)
	at sun.reflect.GeneratedMethodAccessor1800.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:550)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.yatra.platform.pagecache.PageCacheFilter.doFilterInternal(PageCacheFilter.java:46)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.yatra.platform.xss.filter.XSSFilter.doFilter(XSSFilter.java:27)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:124)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:954)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:120)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: getNewTla
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
	at java.util.concurrent.FutureTask.get(FutureTask.java:83)
	at net.spy.memcached.transcoders.TranscodeService$Task.get(TranscodeService.java:76)
	at net.spy.memcached.internal.GetFuture.get(GetFuture.java:39)
	at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1178)
	... 54 more
Caused by: java.lang.OutOfMemoryError: getNewTla
	at java.nio.ByteBuffer.wrap(ByteBuffer.java:133)
	at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:137)
	at java.lang.StringCoding.decode(StringCoding.java:173)
	at java.lang.String.<init>(String.java:443)
	at java.lang.String.<init>(String.java:515)
	at net.spy.memcached.transcoders.BaseSerializingTranscoder.decodeString(BaseSerializingTranscoder.java:185)
	at net.spy.memcached.transcoders.SerializingTranscoder.decode(SerializingTranscoder.java:97)
	at net.spy.memcached.transcoders.TranscodeService$1.call(TranscodeService.java:42)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at net.spy.memcached.transcoders.TranscodeService$Task.run(TranscodeService.java:89)
	at net.spy.memcached.transcoders.TranscodeService$Task.get(TranscodeService.java:75)
	at net.spy.memcached.internal.GetFuture.get(GetFuture.java:39)
	at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1178)
	at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1200)
	at com.yatra.platform.remotecache.CacheClientImpl.get(CacheClientImpl.java:63)
	at com.yatra.platform.remotecache.RemoteCacheFactory.get(RemoteCacheFactory.java:26)
	at com.yatra.platform.remotecache.CacheHandler.get(CacheHandler.java:97)
	at com.yatra.platform.remotecache.CacheHandler.get(CacheHandler.java:123)
	at com.yatra.products.air.service.impl.FlightSearchServiceImpl.getjsonResponse(FlightSearchServiceImpl.java:124)
	at com.yatra.products.air.rules.mgr.SearchRulesMgr.getSearchResponse(SearchRulesMgr.java:89)
	at com.yatra.platform.products.air.rules.Rule_Render_Search_Result_Page_0.defaultConsequence(Rule_Render_Search_Result_Page_0.java:23)
	at com.yatra.platform.products.air.rules.Rule_Render_Search_Result_Page_0DefaultConsequenceInvoker.evaluate(Rule_Render_Search_Result_Page_0DefaultConsequenceInvoker.java:32)
	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:906)
	at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:845)
	at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1056)
	at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:733)
	at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:699)
	at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:162)
	at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:73)
	at com.yatra.platform.rules.BusinessRulesExecutor.fireBusinessRules(BusinessRulesExecutor.java:102)
	at com.yatra.products.air.web.controller.FlightSearchController.searchFlights(FlightSearchController.java:108)
	at com.yatra.products.air.web.controller.FlightSearchController.searchFlightsJson(FlightSearchController.java:156)
	at sun.reflect.GeneratedMethodAccessor1800.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.yatra.platform.pagecache.PageCacheFilter.doFilterInternal(PageCacheFilter.java:45)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.yatra.platform.xss.filter.XSSFilter.doFilter(XSSFilter.java:26)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	... 1 more

Open in new window


I am unable to interpret the flow of log.
Please help me understand it and which is the key error ?

Thanks
0
Comment
Question by:Rohit Bajaj
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 400 total points
ID: 39974693
This is called a stack trace, and it shows you the functions that were called up to the point of failure. The function that failed was net.spy.memcached.MemcachedClient.get. This may or may not be something you can fix. If you passed a bogus parameter, then you can fix it; if there's a bug in the method, then unless you wrote the code for the function itself, you'll need the owner of that library to fix it.
0
 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 100 total points
ID: 39975136
Yeah , since it is a stack trace , you go thru it bottom up . yatra API is calling net.spy.memcached.MemcachedClient and failing at that point
0
 

Author Comment

by:Rohit Bajaj
ID: 39977899
Which is the error to look at
1) 070-exec-19999 com.yatra.platform.remotecache.CacheClientImpl Remote Cache Not Available
java.lang.RuntimeException: Exception waiting for value

or
2) Caused by: java.lang.OutOfMemoryError: getNewTla
      at java.nio.ByteBuffer.wrap(ByteBuffer.java:133)
      at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:137)
      at java.lang.StringCoding.decode(StringCoding.j
0
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 39977985
Follow each method call , and you will easily know that it is 2)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now