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

Uwe Schindler commented on SOLR-8689:
-------------------------------------

Hi Varun,
the warnings are:
- The garbage collectors are deprecated. That's something we should 
investigate. Maybe it's time to switch to G1GC at some time by default.
- The BufferUtils warning is caused by reflection of Jetty into JDK internals. 
On tests we don't see this, because we execute Java with --illegal-access=deny. 
By default, Java 9 allows illegal accesses. IMHO, we should maybe also deny 
illegal access in Solr by default through the startup scripts. Jetty can handle 
this, so it falls back to something that does not try to reflect into JDK 
internals.

I think we should open a separate issue and hack the startup scripts of solr to 
pass "--illegal-access=deny" to the JVM. Interestingly, I don't see this 
warning on master and 7.x, but on 7.0 and 6.6, so maybe that's just an issue of 
older Jetty versions (9.3.14 vs. 9.3.20).

> bin/solr.cmd does not start with recent Verona builds of Java 9 because of 
> version parsing issue
> ------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8689
>                 URL: https://issues.apache.org/jira/browse/SOLR-8689
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.5, 6.0
>         Environment: Windows 7
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>            Priority: Blocker
>              Labels: Java9
>             Fix For: 7.0, 6.6.1, master (8.0), 7.1
>
>         Attachments: SOLR-8689.patch, SOLR-8689.patch, SOLR-8689.patch, 
> SOLR-8689.patch, SOLR-8689.patch
>
>
> At least on Windows, Solr 5.5 does not start with the shell script using a 
> Verona-Java-9 JDK:
> {noformat}
> *****************************************************
> JAVA_HOME = C:\Program Files\Java\jdk-9
> java version "9-ea"
> Java(TM) SE Runtime Environment (build 
> 9-ea+105-2016-02-11-003336.javare.4433.nc)
> Java HotSpot(TM) 64-Bit Server VM (build 
> 9-ea+105-2016-02-11-003336.javare.4433.nc, mixed mode)
> *****************************************************
> C:\Users\Uwe Schindler\Desktop\solr-5.5.0\bin>solr start
> ERROR: Java 1.7 or later is required to run Solr. Current Java version is: 
> 9-ea
> {noformat}
> I don't know if this is better with Linux, but I assume the version parsing 
> is broken (e.g., String#startsWith, interpret as floating point number,...)
> We should fix this before Java 9 gets released! The version numbering scheme 
> changed completely: http://openjdk.java.net/jeps/223



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to