Bug 1036559

Summary: BPEL Console / Errai and Google Collections
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Nick Cross <ncross>
Component: BPEL IntegrationAssignee: Nick Cross <ncross>
Status: CLOSED CURRENTRELEASE QA Contact: lvaskova
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, kconner, ncross, soa-p-jira
Target Milestone: ER7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nick Cross 2013-12-02 09:45:25 UTC
BPELConsole depends on Errai 1.1. This depends on org.reflections reflections-0.9.5-RC2_jboss-SP1.jar which pulls in Google Collections 1.0. This appears to conflict with com.google.guava guava-13.0.1-redhat-1.jar (from EAP). 

Guava superceded Google Collections (http://code.google.com/p/google-collections). Note that the 0.9.5 version of org.reflections from Maven central does not have this collections dependency ( http://code.google.com/p/reflections  /  
http://central.maven.org/maven2/org/reflections/reflections/0.9.5/reflections-0.9.5.pom  ) : it has started to move to guava as well.

The error message we get on server startup is 

09:39:44,945 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/bpel-console]] (ServerService Thread Pool -- 54) JBWEB000289: Servlet ErraiServlet threw load() exception: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
	at org.reflections.util.ConfigurationBuilder.setScanners(ConfigurationBuilder.java:62) [reflections-0.9.5-RC2_jboss-SP1.jar:]
	at org.jboss.errai.bus.server.service.metadata.MetaDataScanner.<init>(MetaDataScanner.java:64) [errai-bus-1.1-Final.jar:1.1-Final]

Comment 2 Nick Cross 2013-12-05 11:08:25 UTC
X:ref: Bug 1038267

Fixed by 7ca9ef841a41bbe43e3467d9053b490e881a00b2

Comment 3 Julian Coleman 2013-12-08 12:23:19 UTC
Updated with commit 78edf681677082941e4db87ce760a6cac3c2a2b0 in ip:

    Back out 7ca9ef841a41bbe43e3467d9053b490e881a00b2:
      BZ1036559 / BZ1038267 Fix for BPMConsole GoogleCollections/Guava clash
    The real bug is in the Drools/jBPM modules, so we'll fix it there instead.

Comment 4 lvaskova 2013-12-17 14:30:55 UTC
Verified on ER7