cnthompson / Beer366

It's a One-A-Day Leap Year Beer Celebration
6 stars 2 forks source link

Exception while deleting a logged drink #44

Open cnthompson opened 10 years ago

cnthompson commented 10 years ago

On the Edit Logged Drink page, the first time I attempted to delete a logged drink, it took an exceptionally long time to perform the operation. At least 5 minutes, but I actually forgot about it. The time could have been as long as 10 minutes. That drink log deletion did complete successfully/. I wanted to see if this was repeatable, but a second attempt to delete a logged drink resulted in a java heap space error: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag : java.lang.OutOfMemoryError: Java heap space

at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)

at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)

Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag : java.lang.OutOfMemoryError: Java heap space

at gsp_beer366_usercompletelog_gsp$_run_closure2.doCall(gsp_beer366_usercompletelog_gsp.groovy:40)

at gsp_beer366_usercompletelog_gsp.run(gsp_beer366_usercompletelog_gsp.groovy:43)

... 5 more

Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.OutOfMemoryError: Java heap space

... 7 more

Caused by: java.lang.OutOfMemoryError: Java heap space

at beer366.IndexTagLib$_closure5_closure15.doCall(IndexTagLib.groovy:224)

at beer366.IndexTagLib$_closure5.doCall(IndexTagLib.groovy:183)
starryknight64 commented 10 years ago

I was unable to reproduce this issue. Is this repeatable for you?

starryknight64 commented 10 years ago

Oh, I get it now. You attempted to delete a drink log, it took too long, but it eventually deleted. After that, you tried to delete another drink log and got the Heap space error.

Before you deleted the first drink log, what were you doing? Specifically, which pages did you go to?

I'll keep a look-out for this. I have a feeling it's due to our hosting service.

cnthompson commented 10 years ago

I tried to reproduce this following these steps:

Clicked on breweries Selected S Selected Samuel Adams Selected LongShot Five Crown Imperial Stout Clicked to edit my logged drink Clicked Delete

This time, I was taken back to the log in page. After I'd logged back in, I got a 404 error because it was trying to find a page called favicon or something like that. When I went back to the beer page, my logged drink had been deleted.

I then followed these steps:

Clicked the link from the beer page back to Sam Adam's page Selected Boston Lager. Clicked to edit one of my logged drinks Clicked Delete

And this time, I was redirected to the complete log page (http://www.beer366.com:8080/user/completelog). Going back to the Boston Lager page, my drink had been deleted.

I was not able to reproduce the heap space exception.