Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12525

UnsupportedOperationException when running Solr 5.3 with JDK10

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 5.3.1
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      Although Solr 5.3.1 document says that it runs with JDK7 or above, but when we are trying to use JDK10 to run Solr 5.3.1 and we are facing some problems:

      We removed the following JAVA options in solr.in.sh as what SOLR suggest because it wont start:

      UseConcMarkSweepGC
      UseParNewGC
      PrintHeapAtGC
      PrintGCDateStamps
      PrintGCTimeStamps
      PrintTenuringDistribution
      PrintGCApplicationStoppedTime

      And the options left in solr.in.sh:

      1. Enable verbose GC logging
        GC_LOG_OPTS="-verbose:gc -XX:+PrintGCDetails"
      1. These GC settings have shown to work well for a number of common Solr workloads
        GC_TUNE="-XX:NewRatio=3 \
        -XX:SurvivorRatio=4 \
        -XX:TargetSurvivorRatio=90 \
        -XX:MaxTenuringThreshold=8 \
        -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
        -XX:+CMSScavengeBeforeRemark \
        -XX:PretenureSizeThreshold=64m \
        -XX:+UseCMSInitiatingOccupancyOnly \
        -XX:CMSInitiatingOccupancyFraction=50 \
        -XX:CMSMaxAbortablePrecleanTime=6000 \
        -XX:+CMSParallelRemarkEnabled \
        -XX:+ParallelRefProcEnabled"

      After that SOLR runs but it got an error:

      [0.001s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/solr/logs/solr_gc.log instead.
      [0.001s][warning][gc] -XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.
      [0.003s][info ][gc] Using Serial
      WARNING: System properties and/or JVM args set. Consider using --dry-run or --exec
      0 INFO (main) [ ] o.e.j.u.log Logging initialized @532ms
      205 INFO (main) [ ] o.e.j.s.Server jetty-9.2.11.v20150529
      218 WARN (main) [ ] o.e.j.s.h.RequestLogHandler !RequestLog
      220 INFO (main) [ ] o.e.j.d.p.ScanningAppProvider Deployment monitor file:/home/solr/solr-5.3.1/server/contexts/ at interval 0
      559 INFO (main) [ ] o.e.j.w.StandardDescriptorProcessor NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
      569 WARN (main) [ ] o.e.j.s.SecurityHandler ServletContext@o.e.j.w.WebAppContext@1a75e76a

      {/solr,file:/home/solr/solr-5.3.1/server/solr-webapp/webapp/,STARTING} {/home/solr/solr-5.3.1/server/solr-webapp/webapp} has uncovered http methods for path: /
      577 INFO (main) [ ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init(): WebAppClassLoader=1904783235@7188af83
      625 INFO (main) [ ] o.a.s.c.SolrResourceLoader JNDI not configured for solr (NoInitialContextEx)
      626 INFO (main) [ ] o.a.s.c.SolrResourceLoader using system property solr.solr.home: /solr/data
      627 INFO (main) [ ] o.a.s.c.SolrResourceLoader new SolrResourceLoader for directory: '/solr/data/'
      750 INFO (main) [ ] o.a.s.c.SolrXmlConfig Loading container configuration from /solr/data/solr.xml
      817 INFO (main) [ ] o.a.s.c.CoresLocator Config-defined core root directory: /solr/data
      [1.402s][info ][gc] GC(0) Pause Full (Metadata GC Threshold) 85M->7M(490M) 37.281ms
      875 INFO (main) [ ] o.a.s.c.CoreContainer New CoreContainer 1193398802
      875 INFO (main) [ ] o.a.s.c.CoreContainer Loading cores into CoreContainer [instanceDir=/solr/data/]
      875 INFO (main) [ ] o.a.s.c.CoreContainer loading shared library: /solr/data/lib
      875 WARN (main) [ ] o.a.s.c.SolrResourceLoader Can't find (or read) directory to add to classloader: lib (resolved as: /solr/data/lib).
      889 INFO (main) [ ] o.a.s.h.c.HttpShardHandlerFactory created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false,
      1036 INFO (main) [ ] o.a.s.u.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true
      1038 INFO (main) [ ] o.a.s.l.LogWatcher SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
      1039 INFO (main) [ ] o.a.s.l.LogWatcher Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
      1040 INFO (main) [ ] o.a.s.c.CoreContainer Security conf doesn't exist. Skipping setup for authorization module.
      1041 INFO (main) [ ] o.a.s.c.CoreContainer No authentication plugin used.
      1179 INFO (main) [ ] o.a.s.c.CoresLocator Looking for core definitions underneath /solr/data
      1180 INFO (main) [ ] o.a.s.c.CoresLocator Found 0 core definitions
      1185 INFO (main) [ ] o.a.s.s.SolrDispatchFilter user.dir=/home/solr/solr-5.3.1/server
      1186 INFO (main) [ ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init() done
      1216 INFO (main) [ ] o.e.j.s.h.ContextHandler Started o.e.j.w.WebAppContext@1a75e76a{/solr,[file:/home/solr/solr-5.3.1/server/solr-webapp/webapp/,AVAILABLE|file:///home/solr/solr-5.3.1/server/solr-webapp/webapp/,AVAILABLE]}
      {/home/solr/solr-5.3.1/server/solr-webapp/webapp}

      1224 INFO (main) [ ] o.e.j.s.ServerConnector Started ServerConnector@2102a4d5

      {HTTP/1.1} {0.0.0.0:8983}

      1228 INFO (main) [ ] o.e.j.s.Server Started @1762ms
      14426 WARN (qtp1045997582-15) [ ] o.a.s.h.a.SystemInfoHandler Error getting JMX properties
      java.lang.UnsupportedOperationException: Boot class path mechanism is not supported
      at java.management/sun.management.RuntimeImpl.getBootClassPath(RuntimeImpl.java:99)
      at org.apache.solr.handler.admin.SystemInfoHandler.getJvmInfo(SystemInfoHandler.java:317)
      at org.apache.solr.handler.admin.SystemInfoHandler.handleRequestBody(SystemInfoHandler.java:103)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
      at org.apache.solr.handler.admin.InfoHandler.handleRequestBody(InfoHandler.java:90)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
      at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:675)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:443)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:214)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

      [root@centos6 logs]# service solr status

      Found 1 Solr nodes:

      Solr process 4630 running on port 8983

      ERROR: Failed to get system information from http://localhost:8983/solr due to: java.lang.NullPointerException

       

      The exception behind from the log:
      2018-06-27 20:00:55.411 INFO (main) [ ] o.e.j.s.Server Started @1849ms
      2018-06-27 20:01:20.192 WARN (qtp1646371921-17) [ ] o.a.s.h.a.SystemInfoHandler Error getting JMX properties
      java.lang.UnsupportedOperationException: Boot class path mechanism is not supported
      at java.management/sun.management.RuntimeImpl.getBootClassPath(RuntimeImpl.java:99)
      at org.apache.solr.handler.admin.SystemInfoHandler.getJvmInfo(SystemInfoHandler.java:317)
      at org.apache.solr.handler.admin.SystemInfoHandler.handleRequestBody(SystemInfoHandler.java:103)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
      at org.apache.solr.handler.admin.InfoHandler.handleRequestBody(InfoHandler.java:90)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)

      Removing JMX related option (or disable) won't fix this.

      Please advise.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ethanlih Ethan Li
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: