Bug 1326805

Summary: Serialization problems on websphere as a result of BZ-1299549
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marco Rietveld <mrietvel>
Component: Business CentralAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: urgent Docs Contact: Tomas 'Sheldon' Radej <tradej>
Priority: urgent    
Version: 6.3.0CC: etirelli, kverlaen, smcgowan, tradej
Target Milestone: CR1Keywords: Regression
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
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).
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:13:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marco Rietveld 2016-04-13 12:46:22 UTC
Description of problem:

While https://bugzilla.redhat.com/show_bug.cgi?id=1299549 fixed the performance problems, unfortunately other problems, in particular custom-type serialization, were caused by the change. 

Version-Release number of selected component (if applicable):

6.3.0 and 6.2.0.

This BZ is for 6.3.0

How reproducible:

Always

Steps to Reproduce:
1. Do a REST operation

Actual results:

Not all REST calls are completing correctly. 

The 2 most common issues are either: 
- "Caused by: javax.xml.bind.PropertyException: property "com.ibm.jtc.jax.xml.bind.marshaller.CharacterEscapeHandler" must be an instance of type com.ibm.jtc.jax.xml.bind.marshaller.CharacterEscapeHandler, not org.kie.services.client.serial"
- REST operations involving custom-type (user-defined) serialization fail

Expected results:

All REST calls complete successfully. 

Additional info:

Comment 1 Marco Rietveld 2016-04-13 14:08:17 UTC
"Fixed". This is a configuration problem (see the next comment). 

Documentation PR: 
https://github.com/droolsjbpm/kie-wb-distributions/pull/268

Comment 2 Marco Rietveld 2016-04-13 14:09:11 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1299549#c13

Comment 5 Marco Rietveld 2016-04-20 11:39:54 UTC
Documentation text submitted. 

PR's submitted: 

https://github.com/droolsjbpm/droolsjbpm-integration/pull/442
https://github.com/droolsjbpm/kie-wb-distributions/pull/268

Comment 7 Tomas Livora 2016-04-21 13:57:16 UTC
It seems that these commits fix the bug only partially. I have just tested it on the latest snapshot and while REST client calls with custom types work without any problems, direct REST calls still fail with the same exception:

org.kie.remote.services.exception.KieRemoteServicesDeploymentException: Could not unmarshall user-defined class instance parameter of type...

Comment 10 Tomas 'Sheldon' Radej 2016-04-25 12:16:45 UTC
Documented as a known issue for 6.3. We will adjust the documentation once a permanent fix is found.

Comment 11 Tomas Livora 2016-04-27 08:37:19 UTC
The tests that failed on the snapshot passed on the latest productized build so the issue is completely fixed.

Verified on BPM Suite 6.3.0 CR1