Red Hat Bugzilla – Bug 1281864
Marshalling error accessing remote EJB services app with Sybase DB
Last modified: 2016-04-15 11:52:11 EDT
Description of problem:
Having a Business Central deployed together with EJB services app to EAP-6.4.4.GA using a Sybase DB. Marshalling error occurs with every query to active process instances, showing "java.lang.ClassNotFoundException: com.sybase.jdbc4.tds.SybTimestamp" as a root cause. Sybase driver probably returns this type for some timestamp column of the ProcessInstanceInfo table and the org.jboss.marshalling.river.RiverUnmarshaller is unable to deal with this class.
Similar issue has been already solved with this release, see bug 1263567
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. deploy the EJB services app to EAP
2. trigger RuntimeDataService#getProcessInstances() method using EJB client
3. watch for the error message in response
this is actually a test blocker for EJB remoting with Sybase DB.
fixed on master
in case it needs to be back ported please assign back to me
Requesting backport to 6.3.x
back ported to 6.3.x
Have to reassign the issue, as it has been fixed only partially - there are additional classes which cannot be serialized during communication via EJB remoting. Basically, every class containing java.util.Date attribute that could be sent via EJB API is hit by this issue.
Based on failing tests, here is a list of these classes, but there could be more, please double check it:
I am starting to think that we should stop fixing (or sort of going around and impacting other parts of code) because of badly written 3rd party code. In this case our solution should be to recommend end users to add sybase driver on client class path and problem will be solved. Trying to spot all possible cases where sybase impl can get in the way might become a never ending story.
The proposed solution fixes the problem - I suggest rolling back the previously implemented fix and to update a documentation.
changes reverted on master
moving to modified, in case it shall be back ported to 6.3.x branch please put back on me
Verified with BPMS-6.3.0.DR2