[JBoss JIRA] (ISPN-4902) Unsupported Class Version Error when running testsuite with JDK6
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-4902?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-4902:
-----------------------------------------------
Dave Stahl <dstahl(a)redhat.com> changed the Status of [bug 1158479|https://bugzilla.redhat.com/show_bug.cgi?id=1158479] from POST to MODIFIED
> Unsupported Class Version Error when running testsuite with JDK6
> -----------------------------------------------------------------
>
> Key: ISPN-4902
> URL: https://issues.jboss.org/browse/ISPN-4902
> Project: Infinispan
> Issue Type: Bug
> Components: Build process, Documentation-Core
> Affects Versions: 7.0.0.CR2
> Reporter: Roman Macor
> Assignee: Ion Savin
> Priority: Critical
> Fix For: 7.0.1.Final
>
>
> Description of problem:
> Unsupported Class Version Error is thrown when running testsuite with JDK6.
> The main error messages:
> [ERROR] java.lang.UnsupportedClassVersionError: org/infinispan/protostream/sampledomain/User : Unsupported major.minor version 51.0
> [ERROR] java.lang.UnsupportedClassVersionError: org/ops4j/pax/exam/Option : Unsupported major.minor version 51.0
> Extracted logs:
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Infinispan BOM .................................... SUCCESS [10.406s]
> [INFO] Infinispan Common Parent .......................... SUCCESS [17.060s]
> [INFO] Infinispan Commons ................................ SUCCESS [26.115s]
> [INFO] Infinispan Core ................................... SUCCESS [1:03:33.709s]
> [INFO] Parent pom for server modules ..................... SUCCESS [3.556s]
> [INFO] Infinispan Server - Core Components ............... SUCCESS [1:07.008s]
> [INFO] Infinispan Query DSL API .......................... SUCCESS [3.722s]
> [INFO] Infinispan Object Filtering API ................... SUCCESS [8.841s]
> [INFO] Parent pom for cachestore modules ................. SUCCESS [1.038s]
> [INFO] Infinispan JDBC CacheStore ........................ SUCCESS [10:10.126s]
> [INFO] Parent pom for the Lucene integration modules ..... SUCCESS [1.188s]
> [INFO] Infinispan integration with Lucene v.3.x .......... SUCCESS [37.289s]
> [INFO] Infinispan Lucene Directory Implementation ........ SUCCESS [3.409s]
> [INFO] Infinispan Query API .............................. SUCCESS [5:25.030s]
> [INFO] Infinispan Tools .................................. SUCCESS [8.149s]
> [INFO] Infinispan Remote Query Client .................... SUCCESS [2.575s]
> [INFO] Infinispan Remote Query Server .................... FAILURE [1:09.702s]
> [INFO] Infinispan JPA CacheStore ......................... SUCCESS [4:35.809s]
> [INFO] Infinispan Hot Rod Server ......................... FAILURE [3:21.935s]
> [INFO] Infinispan Hot Rod Client ......................... FAILURE [11.828s]
> [INFO] Parent pom for compatibility modules .............. SUCCESS [0.697s]
> [INFO] infinispan-custom52x-store ........................ SUCCESS [25.898s]
> [INFO] infinispan-adaptor52x ............................. SUCCESS [3:59.482s]
> [INFO] Infinispan remote CacheStore ...................... SUCCESS [44.130s]
> [INFO] Infinispan LevelDB CacheStore ..................... SUCCESS [6:05.134s]
> [INFO] Infinispan REST Server ............................ SUCCESS [1:31.259s]
> [INFO] Infinispan REST CacheStore ........................ SUCCESS [15.390s]
> [INFO] Infinispan Memcached Server ....................... SUCCESS [1:34.134s]
> [INFO] Parent pom for uberjar modules .................... SUCCESS [0.037s]
> [INFO] Infinispan Embedded ............................... SUCCESS [31.958s]
> [INFO] Infinispan Embedded Query ......................... SUCCESS [40.679s]
> [INFO] Infinispan Remote Client .......................... FAILURE [4.012s]
> [INFO] Infinispan RHQ Plugin ............................. SUCCESS [37.664s]
> [INFO] Infinispan CLI Server ............................. SUCCESS [41.473s]
> [INFO] Infinispan CLI Client ............................. SUCCESS [11.122s]
> [INFO] Infinispan CDI support ............................ SUCCESS [1:34.483s]
> [INFO] Infinispan AS/EAP modules for library ............. SUCCESS [23.125s]
> [INFO] Infinispan AS/EAP modules for remote client ....... SUCCESS [1.783s]
> [INFO] Integration tests: Security Tests ................. SUCCESS [7:57.420s]
> [INFO] Integration tests: SecurityManager tests .......... SUCCESS [15.094s]
> [INFO] Integration tests: Karaf .......................... FAILURE [52.078s]
> [INFO] Integration tests: AS Module Integration Tests .... SUCCESS [1:35.135s]
> [INFO] Integration tests: AS Remote Client Module Integration Tests SUCCESS [52.983s]
> [INFO] Integration tests: Lucene Directory with Infinispan Query SUCCESS [13.914s]
> [INFO] Integration tests: Infinispan compatibility mode .. SUCCESS [25.802s]
> [INFO] Infinispan Embedded Integration Tests ............. SUCCESS [5.941s]
> [INFO] Infinispan Embedded Query Integration Tests ....... SUCCESS [4.319s]
> [INFO] Infinispan Remote Client Integration Tests ........ FAILURE [0.080s]
> [INFO] Infinispan Distribution ........................... SUCCESS [0.708s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2:03:47.228s
> [INFO] Finished at: Fri Oct 24 07:33:04 EDT 2014
> [INFO] Final Memory: 145M/446M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project infinispan-remote-query-server: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
> [ERROR] Command was/bin/sh -c cd /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/remote-query/remote-query-server && /qa/tools/opt/amd64/jdk1.6.0_last/bin/java -Xmx1536m -XX:MaxPermSize=384m -Dsun.nio.ch.bugLevel -jar /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/remote-query/remote-query-server/target/surefire/surefirebooter1225172043033571111.jar /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/remote-query/remote-query-server/target/surefire/surefire4460884784028612739tmp /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/remote-query/remote-query-server/target/surefire/surefire_61815997041197751408tmp
> [ERROR] -> [Help 1]
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project infinispan-server-hotrod: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
> [ERROR] Command was/bin/sh -c cd /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/server/hotrod && /qa/tools/opt/amd64/jdk1.6.0_last/bin/java -Xmx1536m -XX:MaxPermSize=384m -Dsun.nio.ch.bugLevel -jar /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/server/hotrod/target/surefire/surefirebooter8896904403305648242.jar /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/server/hotrod/target/surefire/surefire878622548590911280tmp /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/server/hotrod/target/surefire/surefire_86027626310850569139tmp
> [ERROR] -> [Help 1]
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project infinispan-client-hotrod: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: There was an error in the forked process
> [ERROR] java.lang.UnsupportedClassVersionError: org/infinispan/protostream/sampledomain/User : Unsupported major.minor version 51.0
> [ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
> [ERROR] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> [ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> [ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> [ERROR] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> [ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
> [ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
> [ERROR] at java.lang.Class.getDeclaredMethods(Class.java:1793)
> [ERROR] at org.testng.internal.annotations.AnnotationHelper.findMethodsWithAnnotation(AnnotationHelper.java:214)
> [ERROR] at org.testng.internal.TestNGMethodFinder.getTestMethods(TestNGMethodFinder.java:49)
> [ERROR] at org.testng.TestClass.initMethods(TestClass.java:123)
> [ERROR] at org.testng.TestClass.init(TestClass.java:86)
> [ERROR] at org.testng.TestClass.<init>(TestClass.java:45)
> [ERROR] at org.testng.TestRunner.initMethods(TestRunner.java:427)
> [ERROR] at org.testng.TestRunner.init(TestRunner.java:235)
> [ERROR] at org.testng.TestRunner.init(TestRunner.java:205)
> [ERROR] at org.testng.TestRunner.<init>(TestRunner.java:153)
> [ERROR] at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:522)
> [ERROR] at org.testng.SuiteRunner.init(SuiteRunner.java:157)
> [ERROR] at org.testng.SuiteRunner.<init>(SuiteRunner.java:111)
> [ERROR] at org.testng.TestNG.createSuiteRunner(TestNG.java:1273)
> [ERROR] at org.testng.TestNG.createSuiteRunners(TestNG.java:1260)
> [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1114)
> [ERROR] at org.testng.TestNG.run(TestNG.java:1031)
> [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
> [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:189)
> [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:105)
> [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:117)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
> [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
> [ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
> [ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
> [ERROR] -> [Help 1]
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.3:shade (default) on project infinispan-remote: Error creating shaded jar: /mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-rhel/6a814865/infinispan/client/hotrod-client/target/classes (Is a directory) -> [Help 2]
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project integrationtests-osgi: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: There was an error in the forked process
> [ERROR] java.lang.UnsupportedClassVersionError: org/ops4j/pax/exam/Option : Unsupported major.minor version 51.0
> [ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
> [ERROR] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> [ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> [ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> [ERROR] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> [ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
> [ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
> [ERROR] at java.lang.Class.getMethod0(Class.java:2679)
> [ERROR] at java.lang.Class.getMethod(Class.java:1605)
> [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(ReflectionUtils.java:57)
> [ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isSuiteOnly(JUnit3TestChecker.java:64)
> [ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isValidJUnit3Test(JUnit3TestChecker.java:59)
> [ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.accept(JUnit3TestChecker.java:54)
> [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:51)
> [ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:97)
> [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.scanClassPath(JUnitCoreProvider.java:179)
> [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:132)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
> [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
> [ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
> [ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
> [ERROR] -> [Help 1]
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (ISPN-5104) Infinite loop in TransactionAwareCloseableIterator when iterating through cache...
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-5104?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-5104:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 7.1.0.Beta1
7.0.3.Final
Resolution: Done
> Infinite loop in TransactionAwareCloseableIterator when iterating through cache...
> ----------------------------------------------------------------------------------
>
> Key: ISPN-5104
> URL: https://issues.jboss.org/browse/ISPN-5104
> Project: Infinispan
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 7.0.2.Final
> Reporter: Christian Niessner
> Assignee: William Burns
> Fix For: 7.1.0.Beta1, 7.0.3.Final
>
>
> Hi,
> i have some testing code that iterates through a cache and validates all data in this cache for consistency.
> The reduced code is:
> TransactionManager tm = cache.getAdvancedCache().getTransactionManager();
> tm.begin();
> try {
> for (Entry<Object,Object> entry : metadataCache.entrySet()) {
> // validation code omitted...
> }
> } finally {
> tm.commit();
> }
> In some circumstances the iteration starts returning the same Entry every time. I stepped into the code and the value is returned from:
> https://github.com/infinispan/infinispan/blob/master/core/src/main/java/o...
> This code block is commented with:
> "// We do a last check to make sure no additional values were added to our context while iterating"
> And for me it seems that the value returned here never gets added to the "seenContextKeys" Set and so the iterator is always returning the same key.
> Maybe a simple "seenContextKeys.add(lookedUpEntry.getKey())" next to Line 70 would fix this issue. Maybe even a 'break' could make sense here because is there the need to walk through the entire list if we have found a candidate?
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month
[JBoss JIRA] (ISPN-5016) Specify and document cache consistency guarantees
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-5016?page=com.atlassian.jira.plugin.... ]
Radim Vansa commented on ISPN-5016:
-----------------------------------
{quote}TODO What happens if a node is a backup owner for two of the keys?{quote}
Hmm? The primary owner sends the PutMapCommand to all nodes that are backup owners of at least one of the keys primary-owned by this node. But you're right that I am not sure whether this command makes the backup node write only
{quote}When a node tries to read a key it does not own, it sends a remote get{quote}
AFAIK the node checks if the entry is in data container, not whether it is owned.
Regarding the situation that an entry is lost, I think that you should note somewhere that further attempts to read it will simply return null, not throwing any exceptions (the user could expect that).
I lack explicit resolution on ISPN-4995, regarding reading and writing two (or more) entries and expectation whether any read is already visible.
And in the end, I think that there should be a summarized table for the modes and ticks or crosses whether the cache will stay consistent after originator crash, primary owner crash, timeout exception/another exception.
I think this is the best design document on Infinispan cache API so far. Thanks a lot, Dan, for the effort to put it together. I hope at least some users will be willing to read it (as it took me several hours just to go through it).
> Specify and document cache consistency guarantees
> -------------------------------------------------
>
> Key: ISPN-5016
> URL: https://issues.jboss.org/browse/ISPN-5016
> Project: Infinispan
> Issue Type: Task
> Components: Documentation-Core
> Affects Versions: 7.0.2.Final
> Reporter: Radim Vansa
> Assignee: Dan Berindei
> Priority: Critical
>
> We can't simply use the consistency model defined by Java Specification and broaden it for whole cache (maybe the expression "can't" is too strong, but we definitely don't want to do that in some cases).
> By consistency guarantees/model I mean mostly in which order are
> writes allowed to be observed: and we can't boil it down to simply
> causal, PRAM or any other consistency model as writes can be observed as non-atomic in Infinispan.
> Infinispan documentation is quite scarce about that, the only trace I've
> found is in Glossarry [2] "Infinispan has traditionally followed ACID
> principles as far as possible, however an eventually consistent mode
> embracing BASE is on the roadmap."
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
10 years, 1 month