Red Hat Bugzilla – Bug 1004414
Last modified: 2016-07-31 21:15:33 EDT
Created attachment 793722 [details]
server log excerpt from EAP 6.1
Description of problem:
When opening the business-central app, error popup is shown, exception stack trace appears in the server log.
The main message is:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/drools/marshalling/impl/ProtobufMessages$RuleData
Reproduced with standalone package, EAP 5.1.2 and EAP 6.1.
Version-Release number of selected component (if applicable):
Roll up patch BRMS_5.3.1_3_2013
Created attachment 793724 [details]
server log excerpt from standalone package
Created attachment 793726 [details]
popup after signing in
Created attachment 793727 [details]
popup after switching to Process overview
On EAP 6.1, I am able to close the first error popup and switch to Process overview. This happens then.
The problem is probably caused by using wrong version of protobuf library, see the following exception cause in the log:
Caused by: java.lang.VerifyError: class org.drools.marshalling.impl.ProtobufMessages$RuleData overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet
Exactly. As mentioned in Bug 1000385 (included for that roll up list) all protobuf jars must be updated to version 2.5.0.
The protobuf libraries version is now correct, but it seems that protobuf classes have not been regenerated for jBPM engine:
Caused by: java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses.
[java] at com.google.protobuf.GeneratedMessage.getUnknownFields(GeneratedMessage.java:180) ~[protobuf-java-2.5.0.jar:na]
(see attachement for full stack trace)
It seems the following commit did not make it into the patch:
however, it is in the 5.3.x branch - it should probably be cherry-picked into 5.2.x first.
Created attachment 796781 [details]
Exception when serializing a jBPM process instance
It seems the files were regenerated incorrectly on the 5.3.x instead of the 5.2.x branch. The files have been regenerated for 5.2.x now.