Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15873

Fix constructor argument in jetty config threadPool -> threadpool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11
    • 2.13
    • documentation
    • Docs Required

    Description

      According to jetty sources:

      public Server(@Name("threadpool") ThreadPool pool)
      {
          _threadPool = pool != null ? pool : new QueuedThreadPool();
          addBean(_threadPool);
          setServer(this);
      }
      

      When we instantiate Server class via xml we need to use threadpool (all lowercase) instead of threadPool

      <Configure id="Server" class="org.eclipse.jetty.server.Server">
          --- <Arg name="threadPool">
          +++ <Arg name="threadpool">
          ...
      

      otherwise we would get an error:

      Caused by: java.lang.IllegalStateException: No matching constructor class org.eclipse.jetty.server.Server in file:///...config/jetty.xml
              at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:454)
              at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:380)
              at org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.loadJettyConfiguration(GridJettyRestProtocol.java:318)
              ... 16 more
      

      SO issue

      Attachments

        Issue Links

          Activity

            People

              slava.koptilin Vyacheslav Koptilin
              Korol Ilya Korol
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h