You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/03/08 17:13:38 UTC

[jira] [Commented] (SOLR-8876) Morphlines tests fail with Java 9 due to morphline "importCommands" attempting to resolve classname globs in config files

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

ASF subversion and git services commented on SOLR-8876:
-------------------------------------------------------

Commit 4bc0636c1d188def7b221ed5c1235e9b6688471b in lucene-solr's branch refs/heads/branch_6x from Chris Hostetter
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4bc0636 ]

SOLR-8876: change morphline test config files to work around 'importCommands' bug when using java9

(cherry picked from commit 8756be05404758155b850748f807245fdaab6a8b)


> Morphlines tests fail with Java 9 due to morphline "importCommands" attempting to resolve classname globs in config files
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8876
>                 URL: https://issues.apache.org/jira/browse/SOLR-8876
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - MapReduce, contrib - morphlines-cell, contrib - morphlines-core
>            Reporter: Uwe Schindler
>              Labels: Java9
>         Attachments: SOLR-8876.patch
>
>
> morphline configs we use in our contrib tests  have {{importCommands}} that look like this...
> {noformat}
> importCommands : ["org.kitesdk.**", "org.apache.solr.**"]
> {noformat}
> ...but under java9 these tests fail with errors like...
> {noformat}
> No command builder registered for COMMAND_NAME
> {noformat}
> ...because of how morphlines attempts to locate classes matching those globs -- this type of classpath scanning does not work in java9.
> workaround is to only use fully qualified command class names in {{importCommands}} declaration.  No other (obviuos) java9 problems seem to exist with solr's use of morphlines (based on current test coverage)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org