[ 
https://issues.apache.org/jira/browse/CONNECTORS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509028#comment-13509028
 ] 

Karl Wright commented on CONNECTORS-575:
----------------------------------------

There are several possible long-term solutions.

(1) We can have a different connector for each version of lapi.
(2) We can forget about stub classes, and use reflection to find methods and 
values we need.
(3) We can build against lapi.jar if it is present, which would at least allow 
someone to build against versions of lapi that were not like the one we built 
against and distributed.
(4) We can forget about pre-building the Livelink Connector altogether.

My take is that (1) would be a maintenance headache, but might be required 
anyway as OpenText adds functionality to their product.  (2) is more flexible 
against changes like this, but at the cost of a large amount of extra code, and 
loss of compile-time checking, although we may be able to localize the LAPI 
calls in a family of wrapper classes which would minimize the compile-time 
issues - probably with the cost of pretty much rewriting the connector.  (3) is 
perhaps the simplest choice, and would be a good stop-gap fix.  (4) is also a 
good short-term possibility.

                
> Livelink connector: Different versions of LAPI have different class and 
> method structures, making building against stubs challenging
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-575
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-575
>             Project: ManifoldCF
>          Issue Type: Bug
>    Affects Versions: ManifoldCF next
>         Environment: I'm running solr 4.0 alpha with manifoldcf v1.1-dev on 
> windows 7 with jetty
>            Reporter: David Morana
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.1
>
>         Attachments: build.xml, regex-not-saved.jpg
>
>
> I'm trying to test out the new path metadata feature and I have 2 issues: 
> that it doesn't save the regex (I have to add it each time)
> And I get these fatal errors see below:
> I turned on the Livelink connector in the xml file and added lapi.jar to the 
> lib-proprietary folder.
> FATAL 2012-12-03 12:07:49,123 (Worker thread '47') - Error tossed: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
> java.lang.NoSuchMethodError: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
>       at 
> org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector$GetCategoryAttributesThread.run(LivelinkConnector.java:4359)
> FATAL 2012-12-03 12:07:51,182 (Worker thread '15') - Error tossed: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
> java.lang.NoSuchMethodError: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
>       at 
> org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector$GetCategoryAttributesThread.run(LivelinkConnector.java:4359)
> FATAL 2012-12-03 12:07:53,257 (Worker thread '31') - Error tossed: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
> java.lang.NoSuchMethodError: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
>       at 
> org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector$GetCategoryAttributesThread.run(LivelinkConnector.java:4359)
> FATAL 2012-12-03 12:07:55,300 (Worker thread '36') - Error tossed: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
> java.lang.NoSuchMethodError: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
>       at 
> org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector$GetCategoryAttributesThread.run(LivelinkConnector.java:4359)
> FATAL 2012-12-03 12:07:57,359 (Worker thread '39') - Error tossed: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
> java.lang.NoSuchMethodError: 
> com.opentext.api.LLValue.add(Ljava/lang/String;I)V
>       at 
> org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector$GetCategoryAttributesThread.run(LivelinkConnector.java:4359)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to