You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Luchnikov Alexander (Jira)" <ji...@apache.org> on 2022/05/13 10:34:00 UTC

[jira] [Updated] (IGNITE-15873) Fix constructor argument in jetty config threadPool -> threadpool

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

Luchnikov Alexander updated IGNITE-15873:
-----------------------------------------
    Labels: ise.lts  (was: )

> Fix constructor argument in jetty config threadPool -> threadpool
> -----------------------------------------------------------------
>
>                 Key: IGNITE-15873
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15873
>             Project: Ignite
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 2.11
>            Reporter: Ilya Korol
>            Assignee: Vyacheslav Koptilin
>            Priority: Major
>              Labels: ise.lts
>             Fix For: 2.13
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> According to jetty sources:
> {code:java}
> public Server(@Name("threadpool") ThreadPool pool)
> {
>     _threadPool = pool != null ? pool : new QueuedThreadPool();
>     addBean(_threadPool);
>     setServer(this);
> }
> {code}
> When we instantiate Server class via xml we need to use *threadpool* (all lowercase) instead of *threadPool*
> {code:java}
> <Configure id="Server" class="org.eclipse.jetty.server.Server">
>     --- <Arg name="threadPool">
>     +++ <Arg name="threadpool">
>     ...
> {code}
> otherwise we would get an error: 
> {code:java}
> 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
> {code}
> [SO issue|https://stackoverflow.com/questions/69859238/apache-ignite-unable-to-start-2-11-ignite-nodes-in-a-cluster]



--
This message was sent by Atlassian Jira
(v8.20.7#820007)