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

Jan Høydahl resolved SOLR-8080.
-------------------------------
    Resolution: Fixed

> 'bin/solr start' should print informative errors when the JVM version is 
> insufficient
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-8080
>                 URL: https://issues.apache.org/jira/browse/SOLR-8080
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.3, 5.4, 6.0
>            Reporter: Steve Rowe
>            Assignee: Jan Høydahl
>            Priority: Minor
>             Fix For: 6.3, master (7.0)
>
>         Attachments: SOLR-8080.patch
>
>
> From the unpacked 5.3.0 distribution, with Java6 set in {{$JAVA_HOME}} and 
> the {{$PATH}}, there is some indication that there is a problem (Java7 is 
> minimum supported JVM version) - bin/solr times out waiting for Solr to start 
> up - but no info is printed about what the problem might be:
> {noformat}
> $ echo $JAVA_HOME
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> $ java -version
> java version "1.6.0_65"
> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
> Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
> $ bin/solr start
> Waiting up to 30 seconds to see Solr running on port 8983 [\]  Still not 
> seeing Solr listening on 8983 after 30 seconds!
> tail:~/temp/solr-5.3.0/server/logs/solr.log: No such file or directory
> {noformat}
> On trunk (built via {{ant server}} with Java8), the situation is worse - 
> although Solr started, it's not in a usable state, and there is no indication 
> given that there is a problem:
> {noformat}
> $ java -version
> java version "1.7.0_71"
> Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
> $ echo $JAVA_HOME
> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
> sarowe@smb [2048]$ bin/solr start
> Waiting up to 30 seconds to see Solr running on port 8983 [/]  
> Started Solr server on port 8983 (pid=50551). Happy searching!
> {noformat}
> From {{server/logs/solr.log}}:
> {noformat}
> 2015-09-21 17:15:28.991 WARN  (main) [   ] o.e.j.u.c.AbstractLifeCycle FAILED 
> So
> lrRequestFilter: java.lang.UnsupportedClassVersionError: 
> org/apache/solr/servlet
> /SolrDispatchFilter : Unsupported major.minor version 52.0
> java.lang.UnsupportedClassVersionError: 
> org/apache/solr/servlet/SolrDispatchFilt
> er : Unsupported major.minor version 52.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
> 2)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> [...]
> 2015-09-21 17:15:29.020 INFO  (main) [   ] o.e.j.s.ServerConnector Started 
> ServerConnector@24d25ddc{HTTP/1.1}{0.0.0.0:8983}
> 2015-09-21 17:15:29.020 INFO  (main) [   ] o.e.j.s.Server Started @1237ms
> {noformat}



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

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

Reply via email to