Skip to content

java.lang.IllegalStateException: This PooledParser was not returned to the pool properly #669

Description

@basil

An attempt to upgrade to 3.8.0 failed in jenkinsci/jenkins#8710 / https://ci.jenkins.io/job/Core/job/jenkins/job/PR-8710/ with intermittent errors of the form

Caused by: java.lang.IllegalStateException: This PooledParser was not returned to the pool properly
	at org.htmlunit.WebClient$PooledCSS3Parser.markInUse(WebClient.java:3050)
	at org.htmlunit.WebClient$CSS3ParserPool.get(WebClient.java:2999)
	at org.htmlunit.WebClient.getCSS3Parser(WebClient.java:2961)
	at org.htmlunit.html.DomNode.getSelectorList(DomNode.java:1869)
	at org.htmlunit.html.DomNode.querySelectorAll(DomNode.java:1838)
	at org.htmlunit.javascript.host.dom.Document.querySelectorAll(Document.java:1067)
	at jdk.internal.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:222)
	... 35 more

introduced in #664 which cannot be reproduced locally or even consistently in CI. The failures have been observed mostly on Windows (slower infrastructure) but also occasionally on Linux. The failures often disappear when the test is run a second time. We have rolled back to 3.7.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions