manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CONNECTORS-1176) Update Solr connector to use SolrJ 5.0.0
Date Fri, 27 Mar 2015 19:36:55 GMT

     [ https://issues.apache.org/jira/browse/CONNECTORS-1176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl Wright resolved CONNECTORS-1176.
-------------------------------------
    Resolution: Fixed

r1669660 (trunk)
r1669661 (trunk)


> Update Solr connector to use SolrJ 5.0.0
> ----------------------------------------
>
>                 Key: CONNECTORS-1176
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1176
>             Project: ManifoldCF
>          Issue Type: Task
>          Components: Lucene/SOLR connector
>    Affects Versions: ManifoldCF 1.9, ManifoldCF 2.1
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.9, ManifoldCF 2.1
>
>
> Upgrading to SolrJ 5.0.0  requires some work.  Straight compilation produces the following
errors and warnings:
> {code}
> compile-connector:
>     [javac] Compiling 8 source files to C:\wip\mcf\trunk\connectors\solr\build\connector\classes
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\manifoldcf\agents\output\solr\HttpPoster.java:46:
warning: [deprecation] SolrServer in org.apache.solr.client.solrj has been deprecated
>     [javac] import org.apache.solr.client.solrj.SolrServer;
>     [javac]                                    ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\manifoldcf\agents\output\solr\HttpPoster.java:48:
warning: [deprecation] CloudSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac] import org.apache.solr.client.solrj.impl.CloudSolrServer;
>     [javac]                                         ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:41:
warning: [deprecation] ClientPNames in org.apache.http.client.params has been deprecated
>     [javac] import org.apache.http.client.params.ClientPNames;
>     [javac]                                     ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:42: warning: [deprecation]
ClientConnectionManager in org.apache.http.conn has been deprecated
>     [javac] import org.apache.http.conn.ClientConnectionManager;
>     [javac]                            ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:48: warning: [deprecation]
DefaultHttpClient in org.apache.http.impl.client has been deprecated
>     [javac] import org.apache.http.impl.client.DefaultHttpClient;
>     [javac]                                   ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:54: warning: [deprecation]
HttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac] import org.apache.solr.client.solrj.impl.HttpSolrServer;
>     [javac]                                         ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:57:
warning: [deprecation] SolrServer in org.apache.solr.client.solrj has been deprecated
>     [javac] import org.apache.solr.client.solrj.SolrServer;
>     [javac]                                    ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:83: warning: [deprecation]
HttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac] public class ModifiedHttpSolrServer extends HttpSolrServer
>     [javac]                                             ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedLBHttpSolrServer.java:19: warning: [deprecation]
LBHttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac] import org.apache.solr.client.solrj.impl.LBHttpSolrServer;
>     [javac]                                         ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedLBHttpSolrServer.java:20: warning: [deprecation]
HttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac] import org.apache.solr.client.solrj.impl.HttpSolrServer;
>     [javac]                                         ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedLBHttpSolrServer.java:32: warning: [deprecation]
LBHttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac] public class ModifiedLBHttpSolrServer extends LBHttpSolrServer
>     [javac]                                               ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:86: warning: [deprecation] SolrServer in
org.apache.solr.client.solrj has been deprecated
>     [javac]   protected SolrServer solrServer = null;
>     [javac]             ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:156: warning: [deprecation] CloudSolrServer
in org.apache.solr.client.solrj.impl has been deprecated
>     [javac]       CloudSolrServer cloudSolrServer = new CloudSolrServer(zookeeperHosts,
new ModifiedLBHttpSolrServer(HttpClientUtil.createClient(null)));
>     [javac]       ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:156: warning: [deprecation] CloudSolrServer
in org.apache.solr.client.solrj.impl has been deprecated
>     [javac]       CloudSolrServer cloudSolrServer = new CloudSolrServer(zookeeperHosts,
new ModifiedLBHttpSolrServer(HttpClientUtil.createClient(null)));
>     [javac]                                             ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:161: error: incompatible types
>     [javac]       solrServer = cloudSolrServer;
>     [javac]                    ^
>     [javac]   required: SolrServer
>     [javac]   found:    CloudSolrServer
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:267: error: incompatible types
>     [javac]     solrServer = new ModifiedHttpSolrServer(httpSolrServerUrl, localClient,
new XMLResponseParser());
>     [javac]                  ^
>     [javac]   required: SolrServer
>     [javac]   found:    ModifiedHttpSolrServer
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:1532: error: SolrPing is not abstract and
does not override abstract method process(SolrClient) in SolrRequest
>     [javac]   protected static class SolrPing extends SolrRequest
>     [javac]                    ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:1559: warning: [deprecation] SolrServer
in org.apache.solr.client.solrj has been deprecated
>     [javac]     public SolrPingResponse process( SolrServer server ) throws SolrServerException,
IOException
>     [javac]                                      ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\HttpPoster.java:1558: error: method does not override or
implement a method from a supertype
>     [javac]     @Override
>     [javac]     ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:177: warning: [deprecation]
StringBody(String,Charset) in StringBody has been deprecated
>     [javac]                       parts.add(new FormBodyPart(p, new StringBody(v
> , StandardCharsets.UTF_8)));
>     [javac]                                                     ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedHttpSolrServer.java:193: warning: [deprecation]
InputStreamBody(InputStream,String,String) in InputStreamBody has been deprecated
>     [javac]                        new InputStreamBody(
>     [javac]                        ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedLBHttpSolrServer.java:56: warning: [deprecation]
HttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac]   protected HttpSolrServer makeServer(String server) {
>     [javac]             ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedLBHttpSolrServer.java:57: warning: [deprecation]
HttpSolrServer in org.apache.solr.client.solrj.impl has been deprecated
>     [javac]     HttpSolrServer s = new ModifiedHttpSolrServer(server, httpClient, parser);
>     [javac]     ^
>     [javac] C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\
> manifoldcf\agents\output\solr\ModifiedLBHttpSolrServer.java:55: error: method does not
override or implement a method from a supertype
>     [javac]   @Override
>     [javac]   ^
>     [javac] Note: C:\wip\mcf\trunk\connectors\solr\connector\src\main\java\org\apache\manifoldcf\agents\output\solr\SolrConnector.java
uses unchecked or unsafe
> operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 5 errors
>     [javac] 19 warnings
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message