ichinco / mastergear

0 stars 0 forks source link

not sure what happened #41

Closed evilwire closed 11 years ago

evilwire commented 11 years ago

Encountered this while adding one more list for the night. I guess my luck just ran out.

Error 500: Internal Server Error

URI /mastergear/gearList/initializeSave Class java.sql.BatchUpdateException Message Batch entry 0 insert into gear_list (version, date_created, hike_type, image_url, last_updated, list_description, season, title, trail_id, user_id, id) values ('0', '2013-08-20 23:17:37.255000 -04:00:00', 'DAY', NULL, '2013-08-20 23:17:37.255000 -04:00:00', 'We usually stay in a camp ground near the ranger''s station for a week, watch the leaves fall. It''s a lot of fun, and we do it almost every year. Here are some camping stuff that we brought along, and thought it might make the trip more enjoyable for you, too.', 'FALL', 'Annual Family Camping - Franconia Notch', '38745', '38783', '38812') was aborted. Call getNextException to see the cause. Around line 82 of grails-app\controllers\com\mastergear\web\GearListController.groovy

79: }80: gearList.trail = t;81: }82: gearList.save(flush : true);83:84: if (gearList.hasErrors()){85: return render(view:"initialize", model: [list: gearList]) Around line 195 of PageFragmentCachingFilter.java

192: if (CollectionUtils.isEmpty(cacheOperations)) {193: log.debug("No cacheable annotation found for {}:{} {}",194: new Object[] { request.getMethod(), request.getRequestURI(), getContext() });195: chain.doFilter(request, response);196: return;197: }198: Around line 63 of AbstractFilter.java

60: try {61: // NO_FILTER set for RequestDispatcher forwards to avoid double gzipping62: if (filterNotDisabled(request)) {63: doFilter(request, response, chain);64: }65: else {66: chain.doFilter(req, res); Trace

Line | Method

->> 2598 | handleError in org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler


| 1836 | processResults in org.postgresql.core.v3.QueryExecutorImpl | 407 | execute . . . in '' | 2737 | executeBatch in org.postgresql.jdbc2.AbstractJdbc2Statement | 297 | executeBatch . in org.apache.commons.dbcp.DelegatingStatement | 82 | initializeSave in GearListController.groovy | 195 | doFilter . . . in PageFragmentCachingFilter.java | 63 | doFilter in AbstractFilter.java | 1145 | runWorker . . in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . . . in java.lang.Thread

ichinco commented 11 years ago

if i could possibly discourage you from naming tickets "not sure what happened", I would!

fixed this by validating the length of the description field