Bug 1084904

Summary: Can not run full Infinispan testsuite with JDK8
Product: [JBoss] JBoss Data Grid 6 Reporter: Vitalii Chepeliuk <vchepeli>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0, 6.4.0CC: afield, dmehra, dstahl, jdg-bugs, rmacor, tsykora
Target Milestone: ER8Keywords: Reopened
Target Release: 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-09 10:38:18 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 Vitalii Chepeliuk 2014-04-07 08:10:28 UTC
Maven build fails with following error, probably migration to new API should be done
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project infinispan-commons: Compilation failure: Compilation failure:
[ERROR] /qa/local/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/084b05de/infinispan/commons/src/main/java/org/infinispan/commons/util/concurrent/jdk8backported/EquivalentConcurrentHashMapV8.java:[4555,45] error: spliterator() in KeySetView cannot implement spliterator() in Set
[ERROR] return type ConcurrentHashMapSpliterator<K> is not compatible with Spliterator<K>
[ERROR] where K,E are type-variables:
[ERROR] K extends Object declared in class KeySetView
[ERROR] E extends Object declared in interface Set
[ERROR] /qa/local/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/084b05de/infinispan/commons/src/main/java/org/infinispan/commons/util/concurrent/jdk8backported/EquivalentConcurrentHashMapV8.java:[4613,45] error: spliterator() in ValuesView cannot implement spliterator() in Collection
[ERROR] return type ConcurrentHashMapSpliterator<V> is not compatible with Spliterator<V>
[ERROR] where V,E are type-variables:
[ERROR] V extends Object declared in class ValuesView
[ERROR] E extends Object declared in interface Collection
[ERROR] /qa/local/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/084b05de/infinispan/commons/src/main/java/org/infinispan/commons/util/concurrent/jdk8backported/EquivalentConcurrentHashMapV8.java:[4702,58] error: spliterator() in EntrySetView cannot implement spliterator() in Set

Comment 2 JBoss JIRA Server 2014-07-29 10:04:16 UTC
Dan Berindei <dberinde> updated the status of jira ISPN-4433 to Resolved

Comment 3 Tomas Sykora 2014-08-28 13:52:46 UTC
Ugh, I can still see it in 6.3.1.

Majority of tests is running, but we are experiencing failures in a few modules.

Setting target releases do 6.3.1 and 6.4.0 to bring this stuff to our attention.

Comment 4 Tomas Sykora 2014-08-28 13:54:22 UTC
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:52:57.787s
[INFO] Finished at: Tue Aug 26 18:02:42 EDT 2014
[INFO] Final Memory: 129M/359M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check (default) on project infinispan-cachestore-jdbc: Execution default of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check failed. IllegalArgumentException -> [Help 1]
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check (default) on project infinispan-lucene-v3: Execution default of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check failed. IllegalArgumentException -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack) on project infinispan-lucene-directory: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98. -> [Help 2]
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check (default) on project infinispan-query: Execution default of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check failed. IllegalArgumentException -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project infinispan-tools: Compilation failure: Compilation failure:
[ERROR] /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/89fa96e5/infinispan/tools/src/main/java/org/infinispan/tools/doclet/jmx/JmxDoclet.java:[67,32] cannot find symbol
[ERROR] symbol:   method getInstance()
[ERROR] location: class com.sun.tools.doclets.formats.html.ConfigurationImpl
[ERROR] /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/89fa96e5/infinispan/tools/src/main/java/org/infinispan/tools/doclet/jmx/JmxDoclet.java:[80,32] cannot find symbol
[ERROR] symbol:   method getInstance()
[ERROR] location: class com.sun.tools.doclets.formats.html.ConfigurationImpl
[ERROR] -> [Help 3]
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check (default) on project infinispan-cachestore-jpa: Execution default of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.9:check failed. IllegalArgumentException -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (javadoc) on project infinispan-client-hotrod: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - javadoc: warning - Error fetching URL: http://java.sun.com/javase/6/docs/api
[ERROR] /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/89fa96e5/infinispan/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/Flag.java:7: error: self-closing element not allowed
[ERROR] * <p />
[ERROR] ^
[ERROR] /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/89fa96e5/infinispan/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/Flag.java:22: error: reference not found
[ERROR] *                                      {@link org.infinispan.persistence.spi.CacheLoader}s.</li>

etc. etc.

Comment 5 Alan Field 2014-09-03 14:19:02 UTC
Moving target version to JDG 6.4.0

Comment 6 Tomas Sykora 2014-09-09 10:38:18 UTC
Working now. Closing

Comment 7 Tomas Sykora 2014-09-09 14:22:20 UTC
Damn, too eager with decisioning. Reopening. 6.3.1.ER2 -- still present.

Comment 8 Tomas Sykora 2014-11-11 16:35:54 UTC
I can still see this e.g. on my local machine with JDK8.

Comment 16 Martin Gencur 2014-12-17 18:33:59 UTC
Update: Both library mode tests and client-server tests run fine on JDK 1.8. The problem with HR client is only related to compilation and will be fixed by a PR from Tristan. But at runtime the client works fine with JDK 1.8 even now.

Comment 19 Martin Gencur 2015-01-05 08:28:56 UTC
Tried with Oracle JDK 1.8 and all the modules can be built. Closing.