Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A07710D8C for ; Wed, 5 Feb 2014 12:50:17 +0000 (UTC) Received: (qmail 16735 invoked by uid 500); 5 Feb 2014 12:50:13 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 16549 invoked by uid 500); 5 Feb 2014 12:50:11 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 16267 invoked by uid 99); 5 Feb 2014 12:50:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 12:50:09 +0000 Date: Wed, 5 Feb 2014 12:50:09 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONNECTORS-875) LiveLink connector: LAPI exceptions not always caught MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13892061#comment-13892061 ] Karl Wright commented on CONNECTORS-875: ---------------------------------------- The refactor will not help you; it contains no functional changes. This is not a MCF problem. Your LiveLink server is dead. > LiveLink connector: LAPI exceptions not always caught > ----------------------------------------------------- > > Key: CONNECTORS-875 > URL: https://issues.apache.org/jira/browse/CONNECTORS-875 > Project: ManifoldCF > Issue Type: Bug > Components: LiveLink connector > Affects Versions: ManifoldCF 1.4.1 > Reporter: Karl Wright > Assignee: Karl Wright > Fix For: ManifoldCF 1.6 > > Attachments: CONNECTORS-875.patch, refactor.patch > > > LAPI has the ability to communicate via HTTP with the LiveLink server. Unfortunately, if something goes wrong on the server side, LAPI does not behave well and throws all sorts of runtime exceptions. For example: > {code} > 2014-01-30 17:44:17,773 [Worker thread '43'] FATAL org.apache.manifoldcf.crawlerthreads- Error tossed: For input string: "

500" > java.lang.NumberFormatException: For input string: "

500" > at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > at java.lang.Integer.parseInt(Integer.java:492) > at java.lang.Integer.(Integer.java:677) > at com.opentext.api.LLConnect.readResponseHeaders(Unknown Source) > at com.opentext.api.LLConnect.executeHTTP(Unknown Source) > at com.opentext.api.LLConnect.execute(Unknown Source) > at com.opentext.api.LAPI_DOCUMENTS.GetObjectInfo(Unknown Source) > at org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector$GetObjectInfoThread.run(LivelinkConnector.java:6370) > {code} > Other examples include ArrayIndexOutOfBoundsException, etc. > It would be good to catch these and deal with them in a saner way than killing off and restarting the worker thread. -- This message was sent by Atlassian JIRA (v6.1.5#6160)