[JBoss JIRA] (JGRP-2418) Impedence mismatch between message types and transports
by Bela Ban (Jira)
[ https://issues.redhat.com/browse/JGRP-2418?page=com.atlassian.jira.plugin... ]
Bela Ban updated JGRP-2418:
---------------------------
Description:
When sending a message (_of any type_), it is currently marshalled into a byte[] array, which is handled differently by each transport:
* UDP wraps it into a DatagramPacket and calls DatagramSocket.send()
* TCP writes the array to the socket's output stream
* TCP_NIO2 wraps it into a {{ByteBuffer}} and calls SocketChannel.write(ByteBuffer)
In some cases, there is an impedance mismatch between the type of the message and the type of the transport: for example, when sending an NioMessage (containing a ByteBuffer), we don't actually need the conversion to byte array and the subsequent wrapping into a ByteBuffer; this is superfluous. Even worse, when using off-heap, this creates an unneeded memory allocation. Passing the *same* ByteBuffer all the way down from the application to the transport would be better.
This requires changes in the way bundlers accumulate messages. Also, perhaps the transport itself should become an SPI, to which a generic {{Transport}} protocol delegates. This would also allow us to implement multiple transports (JGRP-1424) in the same stack.
was:
When sending a message (_of any type_), it is currently marshalled into a byte[] array, which is handled differently by each transport:
* UDP wraps it into a DatagramPacket and calls DatagramSocket.send()
* TCP writes the array to the socket's output stream
* TCP_NIO2 wraps it into a {{ByteBuffer}} and calls SocketChannel.write(ByteBuffer)
In some cases, there is an impedance mismatch between the type of the message and the type of the transport: for example, when sending an NioMessage (containing a ByteBuffer), we don't actually need the conversion to byte array and the subsequent wrapping into a ByteBuffer, this is superfluous. Even worse, when using off-heap, this creates unneeded memory allocation. Passing the *same* ByteBuffer all the way down from the application to the transport would be beneficial.
This requires changes in the way bundlers accumulate messages. Also, perhaps the transport itself should become an SPI, to which a generic {{Transport}} protocol delegates. This would also allow up to implement multiple transports (JGRP-1424) in the same stack.
> Impedence mismatch between message types and transports
> -------------------------------------------------------
>
> Key: JGRP-2418
> URL: https://issues.redhat.com/browse/JGRP-2418
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Major
> Fix For: 5.1
>
>
> When sending a message (_of any type_), it is currently marshalled into a byte[] array, which is handled differently by each transport:
> * UDP wraps it into a DatagramPacket and calls DatagramSocket.send()
> * TCP writes the array to the socket's output stream
> * TCP_NIO2 wraps it into a {{ByteBuffer}} and calls SocketChannel.write(ByteBuffer)
> In some cases, there is an impedance mismatch between the type of the message and the type of the transport: for example, when sending an NioMessage (containing a ByteBuffer), we don't actually need the conversion to byte array and the subsequent wrapping into a ByteBuffer; this is superfluous. Even worse, when using off-heap, this creates an unneeded memory allocation. Passing the *same* ByteBuffer all the way down from the application to the transport would be better.
> This requires changes in the way bundlers accumulate messages. Also, perhaps the transport itself should become an SPI, to which a generic {{Transport}} protocol delegates. This would also allow us to implement multiple transports (JGRP-1424) in the same stack.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (WFLY-13933) access-log entries might become lost during the shutdown even if graceful timeout is specified
by Flavia Rainone (Jira)
[ https://issues.redhat.com/browse/WFLY-13933?page=com.atlassian.jira.plugi... ]
Flavia Rainone commented on WFLY-13933:
---------------------------------------
[~baranowb] I answered in the email, I'm reviewing the proposed code.
> access-log entries might become lost during the shutdown even if graceful timeout is specified
> ------------------------------------------------------------------------------------------------
>
> Key: WFLY-13933
> URL: https://issues.redhat.com/browse/WFLY-13933
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 20.0.0.Final
> Reporter: Masafumi Miura
> Assignee: Bartosz Baranowski
> Priority: Major
>
> access-log has a possibility to be lost during WildFly shutdown even if a graceful timeout is specified.
> If I understand correctly, access-log processing runs on a different thread from the application processing and the graceful shutdown does not care about it.
> Since WildFly 16+, WFCORE-1632 changed the shutdown behavior to wait only for 100ms (hard-coded). So, WildFly 16+ does not wait for completing a task worker thread processing access-log.
> I understand the purpose of WFCORE-1632. However, it might be good if we have an option to tune the wait time. (Of course, it would be difficult to know how long wait time is sufficient for completion. And specifying a large wait time can be a cause of long shutdown time. So, it's still questionable how it's useful.)
> Or, if it's possible to implement that the graceful shutdown can wait for access-log processing, it would be better. (This might be RFE?).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (WFLY-13944) Jakarta EE 8 Platform Connector test failure with WildFly master after a change made after Oct 3rd, 2020
by Scott Marlow (Jira)
[ https://issues.redhat.com/browse/WFLY-13944?page=com.atlassian.jira.plugi... ]
Scott Marlow updated WFLY-13944:
--------------------------------
Summary: Jakarta EE 8 Platform Connector test failure with WildFly master after a change made after Oct 3rd, 2020 (was: Jakarta EE 8 Platform Connector test failure with WildFly master after a change after Oct 3rd, 2020)
> Jakarta EE 8 Platform Connector test failure with WildFly master after a change made after Oct 3rd, 2020
> --------------------------------------------------------------------------------------------------------
>
> Key: WFLY-13944
> URL: https://issues.redhat.com/browse/WFLY-13944
> Project: WildFly
> Issue Type: Bug
> Components: JCA, Security
> Reporter: Scott Marlow
> Assignee: Scott Marlow
> Priority: Major
>
> We only see a failure with a recent WildFly master change that might of been merged in on Monday Oct 5, 2020. We will see if we can narrow it down further.
> The failure only occurs with Elyron security configuration (doesn't recreate with legacy config). The Jakarta Connector connector/resourceDefs/ejb + connector/localTx/msginflow tests are failing, for example:
>
> {quote}
> [javatest.batch] 10-07-2020 12:16:53: setup(): appContextHostname = server
> [javatest.batch] 10-07-2020 12:16:53: setup(): servletAppContext = null
> [javatest.batch] 10-07-2020 12:16:53: sContext = /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
> [javatest.batch] 10-07-2020 12:16:53: passing to servlet: testMethod = ValidateAppAdminObj
> [javatest.batch] 10-07-2020 12:16:53: authData : j2ee:j2ee
> [javatest.batch] 10-07-2020 12:16:53: encoded authData : ajJlZTpqMmVl
> [javatest.batch] 10-07-2020 12:16:53: called HttpURLConnection.connect() for url: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
> [javatest.batch] 10-07-2020 12:16:53: Got response string of: Not Found
> [javatest.batch] 10-07-2020 12:16:53: Abnormal return status encountered while invoking /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
> [javatest.batch] 10-07-2020 12:16:53: Exception Message was: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
> [javatest.batch] 10-07-2020 12:16:53: ValidateAppAdminObj : str = Not Found
> [javatest.batch] 10-07-2020 12:16:53: ERROR: ValidateAppAdminObj : FAILED
> [javatest.batch] 10-07-2020 12:16:53: ERROR: Test case throws exception: ValidateAppAdminObj : FAILED
> [javatest.batch] 10-07-2020 12:16:53: ERROR: Exception at:
> [javatest.batch] 10-07-2020 12:16:53: ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateAppAdminObj : FAILED
> [javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.ValidateAppAdminObj(Client.java:289)
> [javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [javatest.batch] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [javatest.batch] at java.lang.reflect.Method.invoke(Method.java:498)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
> [javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
> [javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
> [javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.main(Client.java:86)
> [javatest.batch]
> [javatest.batch] 10-07-2020 12:16:54: setup(): appContextHostname = server
> [javatest.batch] 10-07-2020 12:16:54: setup(): servletAppContext = null
> [javatest.batch] 10-07-2020 12:16:54: sContext = /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
> [javatest.batch] 10-07-2020 12:16:54: passing to servlet: testMethod = ValidateAppAdminObj
> [javatest.batch] 10-07-2020 12:16:54: authData : j2ee:j2ee
> [javatest.batch] 10-07-2020 12:16:54: encoded authData : ajJlZTpqMmVl
> [javatest.batch] 10-07-2020 12:16:55: called HttpURLConnection.connect() for url: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
> [javatest.batch] 10-07-2020 12:16:55: Got response string of: Not Found
> [javatest.batch] 10-07-2020 12:16:55: Abnormal return status encountered while invoking /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
> [javatest.batch] 10-07-2020 12:16:55: Exception Message was: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
> [javatest.batch] 10-07-2020 12:16:55: ValidateAppAdminObj : str = Not Found
> [javatest.batch] 10-07-2020 12:16:55: ERROR: ValidateAppAdminObj : FAILED
> [javatest.batch] 10-07-2020 12:16:55: ERROR: Test case throws exception: ValidateAppAdminObj : FAILED
> [javatest.batch] 10-07-2020 12:16:55: ERROR: Exception at:
> [javatest.batch] 10-07-2020 12:16:55: ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateAppAdminObj : FAILED
> [javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.ValidateAppAdminObj(Client.java:289)
> [javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [javatest.batch] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [javatest.batch] at java.lang.reflect.Method.invoke(Method.java:498)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
> [javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
> [javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
> [javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.main(Client.java:86)
> [javatest.batch]
> [javatest.batch] 10-07-2020 12:16:56: setup(): appContextHostname = server
> [javatest.batch] 10-07-2020 12:16:56: setup(): servletAppContext = null
> [javatest.batch] 10-07-2020 12:16:56: sContext = /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
> [javatest.batch] 10-07-2020 12:16:56: passing to servlet: testMethod = ValidateAppAdminObj
> [javatest.batch] 10-07-2020 12:16:56: authData : j2ee:j2ee
> [javatest.batch] 10-07-2020 12:16:56: encoded authData : ajJlZTpqMmVl
> [javatest.batch] 10-07-2020 12:16:56: called HttpURLConnection.connect() for url: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
> [javatest.batch] 10-07-2020 12:16:56: Got response string of: Not Found
> [javatest.batch] 10-07-2020 12:16:56: Abnormal return status encountered while invoking /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
> [javatest.batch] 10-07-2020 12:16:56: Exception Message was: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
> [javatest.batch] 10-07-2020 12:16:56: ValidateAppAdminObj : str = Not Found
> [javatest.batch] 10-07-2020 12:16:56: ERROR: ValidateAppAdminObj : FAILED
> [javatest.batch] 10-07-2020 12:16:56: ERROR: Test case throws exception: ValidateAppAdminObj : FAILED
> [javatest.batch] 10-07-2020 12:16:56: ERROR: Exception at:
> [javatest.batch] 10-07-2020 12:16:56: ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateAppAdminObj : FAILED
> [javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.ValidateAppAdminObj(Client.java:289)
> [javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [javatest.batch] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [javatest.batch] at java.lang.reflect.Method.invoke(Method.java:498)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
> [javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
> [javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> [javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
> [javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.main(Client.java:86)
> [javatest.batch]
> [javatest.batch] STATUS:Failed.Test case throws exception: ValidateAppAdminObj : FAILED
> [javatest.batch] Failed. Test case throws exception: ValidateAppAdminObj : FAILED
> [javatest.batch] ********************************************************************************
> [javatest.batch] Finished Test: FAILED........com/sun/ts/tests/connector/resourceDefs/ejb/Client.java#Val...
> [javatest.batch] ********************************************************************************
> [javatest.batch] Number of tests completed: 1 (0 passed, 1 failed, 0 with errors)
> {quote}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (WFLY-13944) Jakarta EE 8 Platform Connector test failure with WildFly master after a change after Oct 3rd, 2020
by Scott Marlow (Jira)
Scott Marlow created WFLY-13944:
-----------------------------------
Summary: Jakarta EE 8 Platform Connector test failure with WildFly master after a change after Oct 3rd, 2020
Key: WFLY-13944
URL: https://issues.redhat.com/browse/WFLY-13944
Project: WildFly
Issue Type: Bug
Components: JCA, Security
Reporter: Scott Marlow
Assignee: Scott Marlow
We only see a failure with a recent WildFly master change that might of been merged in on Monday Oct 5, 2020. We will see if we can narrow it down further.
The failure only occurs with Elyron security configuration (doesn't recreate with legacy config). The Jakarta Connector connector/resourceDefs/ejb + connector/localTx/msginflow tests are failing, for example:
{quote}
[javatest.batch] 10-07-2020 12:16:53: setup(): appContextHostname = server
[javatest.batch] 10-07-2020 12:16:53: setup(): servletAppContext = null
[javatest.batch] 10-07-2020 12:16:53: sContext = /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
[javatest.batch] 10-07-2020 12:16:53: passing to servlet: testMethod = ValidateAppAdminObj
[javatest.batch] 10-07-2020 12:16:53: authData : j2ee:j2ee
[javatest.batch] 10-07-2020 12:16:53: encoded authData : ajJlZTpqMmVl
[javatest.batch] 10-07-2020 12:16:53: called HttpURLConnection.connect() for url: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
[javatest.batch] 10-07-2020 12:16:53: Got response string of: Not Found
[javatest.batch] 10-07-2020 12:16:53: Abnormal return status encountered while invoking /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
[javatest.batch] 10-07-2020 12:16:53: Exception Message was: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
[javatest.batch] 10-07-2020 12:16:53: ValidateAppAdminObj : str = Not Found
[javatest.batch] 10-07-2020 12:16:53: ERROR: ValidateAppAdminObj : FAILED
[javatest.batch] 10-07-2020 12:16:53: ERROR: Test case throws exception: ValidateAppAdminObj : FAILED
[javatest.batch] 10-07-2020 12:16:53: ERROR: Exception at:
[javatest.batch] 10-07-2020 12:16:53: ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateAppAdminObj : FAILED
[javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.ValidateAppAdminObj(Client.java:289)
[javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javatest.batch] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javatest.batch] at java.lang.reflect.Method.invoke(Method.java:498)
[javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
[javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
[javatest.batch] at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
[javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
[javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
[javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.main(Client.java:86)
[javatest.batch]
[javatest.batch] 10-07-2020 12:16:54: setup(): appContextHostname = server
[javatest.batch] 10-07-2020 12:16:54: setup(): servletAppContext = null
[javatest.batch] 10-07-2020 12:16:54: sContext = /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
[javatest.batch] 10-07-2020 12:16:54: passing to servlet: testMethod = ValidateAppAdminObj
[javatest.batch] 10-07-2020 12:16:54: authData : j2ee:j2ee
[javatest.batch] 10-07-2020 12:16:54: encoded authData : ajJlZTpqMmVl
[javatest.batch] 10-07-2020 12:16:55: called HttpURLConnection.connect() for url: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
[javatest.batch] 10-07-2020 12:16:55: Got response string of: Not Found
[javatest.batch] 10-07-2020 12:16:55: Abnormal return status encountered while invoking /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
[javatest.batch] 10-07-2020 12:16:55: Exception Message was: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
[javatest.batch] 10-07-2020 12:16:55: ValidateAppAdminObj : str = Not Found
[javatest.batch] 10-07-2020 12:16:55: ERROR: ValidateAppAdminObj : FAILED
[javatest.batch] 10-07-2020 12:16:55: ERROR: Test case throws exception: ValidateAppAdminObj : FAILED
[javatest.batch] 10-07-2020 12:16:55: ERROR: Exception at:
[javatest.batch] 10-07-2020 12:16:55: ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateAppAdminObj : FAILED
[javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.ValidateAppAdminObj(Client.java:289)
[javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javatest.batch] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javatest.batch] at java.lang.reflect.Method.invoke(Method.java:498)
[javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
[javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
[javatest.batch] at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
[javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
[javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
[javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.main(Client.java:86)
[javatest.batch]
[javatest.batch] 10-07-2020 12:16:56: setup(): appContextHostname = server
[javatest.batch] 10-07-2020 12:16:56: setup(): servletAppContext = null
[javatest.batch] 10-07-2020 12:16:56: sContext = /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
[javatest.batch] 10-07-2020 12:16:56: passing to servlet: testMethod = ValidateAppAdminObj
[javatest.batch] 10-07-2020 12:16:56: authData : j2ee:j2ee
[javatest.batch] 10-07-2020 12:16:56: encoded authData : ajJlZTpqMmVl
[javatest.batch] 10-07-2020 12:16:56: called HttpURLConnection.connect() for url: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
[javatest.batch] 10-07-2020 12:16:56: Got response string of: Not Found
[javatest.batch] 10-07-2020 12:16:56: Abnormal return status encountered while invoking /conn_resourcedefs_web/AODTestServlet?method.under.test=ValidateAppAdminObj&rar.jndi.scope=java:app/env/EJBAdminObjectForAppScope
[javatest.batch] 10-07-2020 12:16:56: Exception Message was: http://localhost:8080/conn_resourcedefs_web/AODTestServlet?method.under.t...
[javatest.batch] 10-07-2020 12:16:56: ValidateAppAdminObj : str = Not Found
[javatest.batch] 10-07-2020 12:16:56: ERROR: ValidateAppAdminObj : FAILED
[javatest.batch] 10-07-2020 12:16:56: ERROR: Test case throws exception: ValidateAppAdminObj : FAILED
[javatest.batch] 10-07-2020 12:16:56: ERROR: Exception at:
[javatest.batch] 10-07-2020 12:16:56: ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateAppAdminObj : FAILED
[javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.ValidateAppAdminObj(Client.java:289)
[javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javatest.batch] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javatest.batch] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javatest.batch] at java.lang.reflect.Method.invoke(Method.java:498)
[javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
[javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
[javatest.batch] at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
[javatest.batch] at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
[javatest.batch] at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
[javatest.batch] at com.sun.ts.tests.connector.resourceDefs.ejb.Client.main(Client.java:86)
[javatest.batch]
[javatest.batch] STATUS:Failed.Test case throws exception: ValidateAppAdminObj : FAILED
[javatest.batch] Failed. Test case throws exception: ValidateAppAdminObj : FAILED
[javatest.batch] ********************************************************************************
[javatest.batch] Finished Test: FAILED........com/sun/ts/tests/connector/resourceDefs/ejb/Client.java#Val...
[javatest.batch] ********************************************************************************
[javatest.batch] Number of tests completed: 1 (0 passed, 1 failed, 0 with errors)
{quote}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (WFLY-13898) Bootable JAR/Galleon - HTTP 500 is returned by some RESTEasy tests
by Jean Francois Denise (Jira)
[ https://issues.redhat.com/browse/WFLY-13898?page=com.atlassian.jira.plugi... ]
Jean Francois Denise updated WFLY-13898:
----------------------------------------
Git Pull Request: https://github.com/wildfly/wildfly/pull/13608 (was: https://issues.redhat.com/browse/WFLY-13898)
> Bootable JAR/Galleon - HTTP 500 is returned by some RESTEasy tests
> ------------------------------------------------------------------
>
> Key: WFLY-13898
> URL: https://issues.redhat.com/browse/WFLY-13898
> Project: WildFly
> Issue Type: Task
> Components: Build System
> Affects Versions: 21.0.0.Beta1
> Reporter: Fabio Burzigotti
> Assignee: Jean Francois Denise
> Priority: Blocker
>
> I set the component to {{Build System}} because this only happens with Bootable JAR and - as [~jdenise] noticed - it's related with Galleon.
> This is about some tests in the RESTEasy TS which has been adapted to execute against bootable JARs through a specific profile [1].
> The tests are running successfully with WildFly 20.0.1.Final (the {{ejb}} layer needs to be removed for this experiment to be run [2]) but fail against 21.0.0.Beta1, so it is a regression.
> Also, the tests are passing when the TS is executed against a distributed WildFly version, and only fail when the server is packaged via the {{wildfly-jar-maven-plugin}}.
> There are 108 tests failing but htis JIRA focuses on those failing because of the following error:
> {code}
> RESTEASY002005: Failed executing POST /all/a/z: org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: org.jboss.resteasy.test.validation.resource.ValidationFoo of media type: application/xml;charset=UTF-8
> {code}
> hence I guess serialization issues when the request accept header is not {{application/json}}, e.g. {{org.jboss.resteasy.test.validation.ValidationTest}}
> *Steps to reproduce*:
> 1. clone https://github.com/fabiobrz/Resteasy/tree/bootable-jar-support
> 2. build RESTEasy:
> {code}
> $ mvn install -Dmaven.test.skip=true -Dmaven.repo.local=/home/my-local-repo
> {code}
> 3. run the test against WF 21.0.0.Beta1:
> {code}
> cd testsuite
> {code}
> {code}
> mvn clean verify -am -pl integration-tests -Dmaven.repo.local=/home/my-local-repo -Dserver.version=21.0.0.Beta1 -Dtest=org.jboss.resteasy.test.validation.ValidationTest
> {code}
> The test should *pass*
> 4. run the test against WF 21.0.0.Beta1 with bootable JAR:
> {code}
> mvn clean verify -am -pl integration-tests -Dmaven.repo.local=/home/my-local-repo -Dserver.version=21.0.0.Beta1 -Dtest=org.jboss.resteasy.test.validation.ValidationTest -Ddisable.microprofile.tests -Dserver.home=foo -Dts.bootable
> {code}
> The test should *fail*
> 5. run the test against WF 20.0.1.Final with bootable JAR:
> {code}
> mvn clean verify -am -pl integration-tests -Dmaven.repo.local=/home/my-local-repo -Dserver.version=20.0.1.Final -Dtest=org.jboss.resteasy.test.validation.ValidationTest -Ddisable.microprofile.tests -Dserver.home=foo -Dts.bootable
> {code}
> The test should *pass*
> [1]
> https://github.com/resteasy/Resteasy/pull/2526/files#diff-8c7ea03eb619e46...
> [2]
> https://github.com/resteasy/Resteasy/pull/2526/files#diff-8c7ea03eb619e46...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months