incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfrov...@apache.org
Subject svn commit: r1205268 - /incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java
Date Wed, 23 Nov 2011 02:41:06 GMT
Author: rfrovarp
Date: Wed Nov 23 02:41:05 2011
New Revision: 1205268

URL: http://svn.apache.org/viewvc?rev=1205268&view=rev
Log:
Fixes DROIDS-156

Modified:
    incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java
  (contents, props changed)

Modified: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java?rev=1205268&r1=1205267&r2=1205268&view=diff
==============================================================================
--- incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java
(original)
+++ incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java
Wed Nov 23 02:41:05 2011
@@ -69,7 +69,13 @@ public class CrawlingWorker implements W
       if (log.isInfoEnabled()) {
         log.info("Loading " + uri);
       }
-      ManagedContentEntity entity = protocol.load(uri);
+      ManagedContentEntity entity = null;
+      try {
+        entity = protocol.load(uri);
+      } catch(OutOfMemoryError e) {
+        log.error("Out of memory processing: " + uri + " skipping", e);
+        throw new DroidsException(e);
+      }
       try {
         String contentType = entity.getMimeType();
         if (log.isDebugEnabled()) {

Propchange: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/robot/crawler/CrawlingWorker.java
            ('svn:mergeinfo' removed)



Mime
View raw message