Bug 1084904 - Can not run full Infinispan testsuite with JDK8
Summary: Can not run full Infinispan testsuite with JDK8
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.3.0,6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER8
: 6.4.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-07 08:10 UTC by Vitalii Chepeliuk
Modified: 2015-01-28 13:30 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-09 10:38:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-4433 0 Major Resolved Can not run INFINISPAN testsuite with JDK8 2015-11-13 21:32:49 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.