Author: kwright
Date: Wed Jun 13 08:32:29 2012
New Revision: 1349682
URL: http://svn.apache.org/viewvc?rev=1349682&view=rev
Log:
Handle runtime exceptions properly so we can see where it is failing.
Modified:
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
incubator/lcf/branches/CONNECTORS-474/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
Modified:
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
URL:
http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java?rev=1349682&r1=1349681&r2=1349682&view=diff
==============================================================================
---
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
(original)
+++
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
Wed Jun 13 08:32:29 2012
@@ -183,6 +183,8 @@ public class AuthorityConnector extends
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -299,6 +301,8 @@ public class AuthorityConnector extends
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -425,6 +429,8 @@ public class AuthorityConnector extends
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -678,6 +684,8 @@ public class AuthorityConnector extends
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -747,6 +755,8 @@ public class AuthorityConnector extends
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -922,6 +932,8 @@ public class AuthorityConnector extends
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
Modified:
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
URL:
http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java?rev=1349682&r1=1349681&r2=1349682&view=diff
==============================================================================
---
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
(original)
+++
incubator/lcf/branches/CONNECTORS-474/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
Wed Jun 13 08:32:29 2012
@@ -269,6 +269,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -345,6 +347,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -428,6 +432,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -507,6 +513,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -652,6 +660,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -1118,6 +1128,8 @@ public class DCTM extends org.apache.man
throw (DocumentumException)thr;
else if (thr instanceof InterruptedException)
throw (InterruptedException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -1460,6 +1472,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -1778,6 +1792,8 @@ public class DCTM extends org.apache.man
throw (DocumentumException)thr;
else if (thr instanceof ManifoldCFException)
throw (ManifoldCFException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3586,6 +3602,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3660,6 +3678,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3813,6 +3833,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3882,6 +3904,8 @@ public class DCTM extends org.apache.man
throw (RemoteException)thr;
else if (thr instanceof DocumentumException)
throw (DocumentumException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
Modified:
incubator/lcf/branches/CONNECTORS-474/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
URL:
http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-474/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java?rev=1349682&r1=1349681&r2=1349682&view=diff
==============================================================================
---
incubator/lcf/branches/CONNECTORS-474/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
(original)
+++
incubator/lcf/branches/CONNECTORS-474/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
Wed Jun 13 08:32:29 2012
@@ -199,6 +199,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -300,6 +302,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -489,6 +493,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3266,6 +3272,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3348,6 +3356,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3432,6 +3442,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3518,6 +3530,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3603,6 +3617,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3687,6 +3703,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3775,6 +3793,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}
@@ -3858,6 +3878,8 @@ public class FilenetConnector extends or
throw (RemoteException)thr;
else if (thr instanceof FilenetException)
throw (FilenetException)thr;
+ else if (thr instanceof RuntimeException)
+ throw (RuntimeException)thr;
else
throw (Error)thr;
}