Back to bug 1326805

Who When What Removed Added
Marco Rietveld 2016-04-13 12:47:00 UTC Priority unspecified urgent
Status NEW ASSIGNED
CC kverlaen
QA Contact lpetrovi tlivora
Marco Rietveld 2016-04-13 14:08:17 UTC Status ASSIGNED MODIFIED
Tomas Livora 2016-04-18 12:46:55 UTC See Also https://bugzilla.redhat.com/show_bug.cgi?id=1299549
Marco Rietveld 2016-04-19 12:03:47 UTC Status MODIFIED ASSIGNED
Edson Tirelli 2016-04-19 13:41:11 UTC CC etirelli, tlivora
Flags needinfo?(tlivora)
Tomas Livora 2016-04-19 13:46:31 UTC Flags needinfo?(tlivora)
Tomas Livora 2016-04-19 13:52:38 UTC Keywords Regression
Marco Rietveld 2016-04-20 11:36:45 UTC Doc Text Cause:

The use of the Apache Wink framework in Webspher.

Consequence:

User-defined classes in deployments will be incorrectly deserialized and serialized when using the REST API.

Fix:

When setting up the application in websphere, it's important to add the following (custom) JVM property:

property: org.apache.wink.jaxbcontextcache
value: off

This property makes sure that the websphere apache wink framework does not cache JAXBContext instances, which are responsible for serialization and deserialization of classes to XML. Otherwise, if these JAXBContext instances are cached, de/serialization of user-defined classes can fail or be incorrectly performed.

(Furthermore, caching JAXBContext instances is unnecessary for performance since the BxMS (REPLACE!) framework is already doing this.)

Result:

User-defined classes in deployments will be incorrectly deserialized and serialized when using the REST API.
Marco Rietveld 2016-04-20 17:50:26 UTC Status ASSIGNED MODIFIED
Marco Rietveld 2016-04-21 14:17:29 UTC Flags needinfo?(tlivora)
Tomas Livora 2016-04-21 14:24:49 UTC Flags needinfo?(tlivora)
Tomas 'Sheldon' Radej 2016-04-25 12:16:45 UTC CC tradej
Docs Contact tradej
Doc Text Cause:

The use of the Apache Wink framework in Webspher.

Consequence:

User-defined classes in deployments will be incorrectly deserialized and serialized when using the REST API.

Fix:

When setting up the application in websphere, it's important to add the following (custom) JVM property:

property: org.apache.wink.jaxbcontextcache
value: off

This property makes sure that the websphere apache wink framework does not cache JAXBContext instances, which are responsible for serialization and deserialization of classes to XML. Otherwise, if these JAXBContext instances are cached, de/serialization of user-defined classes can fail or be incorrectly performed.

(Furthermore, caching JAXBContext instances is unnecessary for performance since the BxMS (REPLACE!) framework is already doing this.)

Result:

User-defined classes in deployments will be incorrectly deserialized and serialized when using the REST API.
When Business Central is installed on IBM WebSphere, direct REST calls involving user-defined classes fail due to a serialization issue. The only workaround is using the Java REST client (if possible).
Ant Stephenson 2016-04-26 14:03:35 UTC Status MODIFIED ON_QA
Target Release --- 6.3.0
Target Milestone --- CR1
Tomas Livora 2016-04-27 08:37:19 UTC Status ON_QA VERIFIED
John Skeoch 2016-09-20 05:06:43 UTC CC smcgowan
John Skeoch 2016-09-20 05:12:27 UTC Assignee mrietvel smcgowan
PnT Account Manager 2018-01-31 04:43:56 UTC QA Contact tlivora lpetrovi
PnT Account Manager 2018-01-31 04:46:10 UTC CC tlivora
Alasdair Kergon 2020-03-27 20:13:39 UTC Status VERIFIED CLOSED
Resolution --- EOL
Last Closed 2020-03-27 20:13:39 UTC

Back to bug 1326805