Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdi-dev] HTTP 500 error incompatible processing
  • From: Alfonso Altamirano <alfonso.altamirano@xxxxxxxxxxx>
  • Date: Sat, 4 Jun 2022 01:05:24 +0000
  • Accept-language: en-US, es-MX
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=payara.fish; dmarc=pass action=none header.from=payara.fish; dkim=pass header.d=payara.fish; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pLwZE+adJUP1HxVoi3KixOhN8KmaJjsU32xXFxPq+EA=; b=QZqTg2qK0xzKiT44qO6um7kNe7to6iuNZX3JuNTUi0ZkUKijLy8kFjDnj0CABzpRV2HRyqImqZdohHkNA7x9mbob80P95sT7Pk5p8B5NbnsAdyqVsBBQ19jp4kjNgAYnWqskrT+bD39TZtluXhdRo6GMJumSFwDn29Ie96Qjb5buOJkWfCzCisHobfdmqqR80Ox0+lqZv0fYMVHtpnk2jLaryg0g6Bc6aKu8Kkl2+VuDalPCdmVzYgowdN+0AshMi1iXiJKGdrU9WSgwlaW5/ETT45uUwDNnaDSo73dIGXvBXDA0D2qrOYO5pVZwEdhlHEGmaA2s1VltTuFgbcF2/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=keTCjnpbxOBEOjY+JQNrMXRUjJ3EMyz3CxwAQjASA0x0HoBWWz0Yd9ng6frrWthwzukJQyWMTEa25mSHz8EgruTXLqDgZSGyVvN3n+KZB8gabFrOKM+spOCL89kqMmOJ7OoG6o45N9L5BJ9auwBP0itQlrC790BNzSyBxbSDdPuo5N6ktpk0XlQ+WcyrXC58K7WPJR4TYmu+sD1Nsbr49slLfiJO5VBvrYUW1o6Z2HqDVl0oFLmi/ezL6ILod7IjkMNFl+MQ/SwWHMZcskXyJ27AfGc9PimAlBC0mqJTkNr8b+yEceL6MrlLyjIpOv8diACFtqBBi376XEq0GPW5IQ==
  • Delivered-to: cdi-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdi-dev/>
  • List-help: <mailto:cdi-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdi-dev>, <mailto:cdi-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdi-dev>, <mailto:cdi-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHYd64K6etPmhSXrE6hSgOoYLnapw==
  • Thread-topic: HTTP 500 error incompatible processing

Hi guys,

Again with something related to the CDI-TCK execution. I'm using the version 4.0.1 and when executing I'm seeing the following error:

 [mvn.test] com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 Internal Server Error for http://localhost:8080/ApplicationContextAsyncListenerTestf171a3d3289dcf8237159d936219ff9c87d85db/AsyncServlet?test=error

The source of this issue came from the following tests:
  • org.jboss.cdi.tck.tests.context.application.async.ApplicationContextAsyncListenerTest.testApplicationContextActiveOnError
  • org.jboss.cdi.tck.tests.context.conversation.determination.ConversationDeterminationTest.testConversationDetermination
  • org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest.testRequestContextActiveOnError
  • org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest.testSessionContextActiveOnError
I'm not sure if this is correct because when checking details of the test I saw that the Servlet called is going to generate a ServletException that is going to cause an error 500 from the Server, but the following block of code from the htmlunit implementation make me think that I need to configure something to disable the throw of the FailingHttpStatusCodeException. Do you know how to pass this exception? or Do you know what to config to pass this tests?

this is the block of code from the htmlunit implementation:
WebClient:

public void throwFailingHttpStatusCodeExceptionIfNecessary(WebResponse webResponse) {
    int statusCode = webResponse.getStatusCode();
    boolean successful = statusCode >= 200 && statusCode < 300 || statusCode == 305 || statusCode == 304;
    if (this.getOptions().isThrowExceptionOnFailingStatusCode() && !successful) {
        throw new FailingHttpStatusCodeException(webResponse);
    }
}

regards


Back to the top