annotationsatharvard / catcha

Catch-A - Catching Annotation: An annotation backend and API.
http://catcha.readthedocs.io
20 stars 9 forks source link

OutOfMemoryError occurred when processing request: [PUT] /catch/annotator/update/54500 #39

Closed jmiranda closed 10 years ago

jmiranda commented 10 years ago

Stacktrace:

2014-06-29 07:31:28,114 [http-bio-8080-exec-416] ERROR errors.GrailsExceptionResolver  - OutOfMemoryError occurred when processing request: [PUT] /catch/annotator/update/54500
Java heap space. Stacktrace follows:
org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Executing action [update] of controller [org.mindinformatics.ann.framework.module.persistence.AnnotatorController] in plugin [af-persistence] caused exception: Runtime error executing ac
tion
at grails.plugins.httplogger.filters.HttpLoggerFilter.doFilter(HttpLoggerFilter.java:47)
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
at grails.plugins.httplogger.filters.HttpLoggerFilter.doFilter(HttpLoggerFilter.java:44)
at grails.plugins.httplogger.filters.HttpLoggerFilter.doFilter(HttpLoggerFilter.java:44)
at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Runtime error executing action
... 10 more
Caused by: java.lang.reflect.InvocationTargetException
... 10 more
Caused by: java.lang.OutOfMemoryError: Java heap space
2014-06-29 07:31:28,282 [http-bio-8080-exec-416] ERROR errors.GrailsExceptionResolver  - ArrayIndexOutOfBoundsException occurred when processing request: [PUT] /catch/annotator/update/54500
Negative array index [-1] too large for array size 0. Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <g:renderException>: Negative array index [-1] too large for array size 0
at grails.plugins.httplogger.filters.HttpLoggerFilter.doFilter(HttpLoggerFilter.java:47)
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
at grails.plugins.httplogger.filters.HttpLoggerFilter.doFilter(HttpLoggerFilter.java:44)
at grails.plugins.httplogger.filters.HttpLoggerFilter.doFilter(HttpLoggerFilter.java:44)
at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:renderException>: Negative array index [-1] too large for array size 0
at gsp_catcherror_gsp$_run_closure2.doCall(gsp_catcherror_gsp.groovy:32)
at gsp_catcherror_gsp.run(gsp_catcherror_gsp.groovy:35)
... 10 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Negative array index [-1] too large for array size 0
... 12 more
2014-06-29 07:31:28,404 [http-bio-8080-exec-416] INFO  httplogger.DefaultHttpLogger  - >> #60824 returned 500, took 48504 ms.
2014-06-29 07:31:28,404 [http-bio-8080-exec-416] INFO  httplogger.DefaultHttpLogger  - >> #60824 responded with '<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Grails Runtime Exception</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/catch/static/images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="/catch/static/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="114x114" href="/catch/static/images/apple-touch-icon-retina.png">
<link rel="stylesheet" href="/catch/static/css/main.css" type="text/css">
<link rel="stylesheet" href="/catch/static/css/mobile.css" type="text/css">
<meta name="layout" content="main">
<link rel="stylesheet" href="/catch/static/css/errors.css" type="text/css">
</head>
<body>
<div id="grailsLogo" role="banner"><a href="http://grails.org"><img src="/catch/static/images/grails_logo.png" alt="Grails"/></a></div>
<h1>Error 500: Internal Server Error</h1>
<dl class="error-details">
<dt>URI</dt><dd>/catch/annotator/update/54500</dd>
<dt>Class</dt><dd>java.lang.ArrayIndexOutOfBoundsException</dd><dt>Message</dt><dd>Negative array index [-1] too large for array size 0</dd></dl><h2>Trace</h2><pre class="stack">    Line | Method
-&gt;&gt;  464 | doFilter  in /error.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Caused by GrailsTagException: Error executing tag &lt;g:renderException&gt;: Negative array index [-1] too large for array size 0
-&gt;&gt;    9 | doCall    in /WEB-INF/grails-app/views/error.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Caused by ArrayIndexOutOfBoundsException: Negative array index [-1] too large for array size 0
-&gt;&gt;   32 | doCall    in gsp_catcherror_gsp$_run_closure2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|     35 | run       in gsp_catcherror_gsp
|     47 | doFilter  in grails.plugins.httplogger.filters.HttpLoggerFilter
|     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter
|     49 | doFilter  in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter
|     82 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|     44 | doFilter  in grails.plugins.httplogger.filters.HttpLoggerFilter
|     75 | doFilter  in com.brandseye.cors.CorsFilter
|   1146 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    701 | run . . . in java.lang.Thread
</pre>
<div class="footer" role="contentinfo"></div>
<div id="spinner" class="spinner" style="display:none;">Loading&hellip;</div>
        <script src="/catch/static/js/application.js" type="text/javascript" ></script>
</body>
</html>'
jmiranda commented 10 years ago

Fixed by commit to AfPersistence plugin (https://github.com/annotationframework/AfPersistence/commit/85f3af1f1a9136e04a6d9c8c43c2368e4ca30f89)