Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jetty-acceptratelimit.xml #12815

Open
wants to merge 1 commit into
base: jetty-12.0.x
Choose a base branch
from
Open

Conversation

yuzzz
Copy link

@yuzzz yuzzz commented Feb 22, 2025

Default config in file etc\jetty-acceptratelimit.xml cause for exception java.lang.IllegalStateException: No suitable constructor

Because first argument for class org.eclipse.jetty.server.AcceptRateLimit in config is "maxRate"
but should be "acceptRateLimit"

How to reproduce

  1. unzip jetty-home-12.0.16.zip
  2. java -jar start.jar --add-modules=acceptratelimit,http
  3. java -jar start.jar

error:
Caused by: java.lang.IllegalStateException: No suitable constructor: on oejs.Server@3e44f2a5{STOPPED}[12.0.16,sto=0] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:1046) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1568) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1469) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$Args.(XmlConfiguration.java:1727) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:975) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:533) at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:486) at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:388)

first argument name "maxRate" cause exception: java.lang.IllegalStateException: No suitable constructor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant