[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Java 8 Support  XML
Forum Index -> Terracotta Platform
Author Message
tony_murphy

neo

Joined: 03/28/2015 04:19:49
Messages: 2
Offline

Hi

Which version of Terracotta supports Java 8?. We are getting following error message


Code:
 
 10:51:28.529 [main] DEBUG n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...
 java.lang.ArrayIndexOutOfBoundsException: 52264
 	at com.tc.asm.ClassReader.readClass(ClassReader.java:2015)
 	at com.tc.asm.ClassReader.accept(ClassReader.java:469)
 	at com.tc.asm.ClassReader.accept(ClassReader.java:425)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.<init>(AsmClassInfo.java:189)
 



We are running an old version - see maven dependency below. Its the opensource version. I guess Terracotta open source is not supported for Java 8

Code:
 		<dependency>
 			<groupId>net.sf.ehcache</groupId>
 			<artifactId>ehcache-core</artifactId>
 			<version>2.5.2</version>
 		</dependency>
 		<dependency>
 			<groupId>net.sf.ehcache</groupId>
 			<artifactId>ehcache-terracotta</artifactId>
 			<version>2.5.2</version>
 		</dependency>
 		<dependency>
 			<groupId>org.terracotta</groupId>
 			<artifactId>terracotta-toolkit-1.5-runtime</artifactId>
 			<version>4.2.0</version>
 		</dependency>		
 
         <dependency>
             <groupId>org.javassist</groupId>
             <artifactId>javassist</artifactId>
         </dependency>
 


I have created a project on bitbucket for reference, https://bitbucket.org/scalalondon/terracotta


This is the full stack trace

Code:
 2015-03-28 10:51:28,340 INFO - Connection successfully established to server at 192.168.0.3:9510
 10:51:28.496 [main] INFO  n.s.e.terracotta.TerracottaClient - Thread [main] [cacheManager: no name]: Registered interest for rejoin, current node: ClientID[4]
 10:51:28.498 [WorkerThread(cluster_events_stage, 0)] INFO  n.s.e.terracotta.TerracottaClient - Thread [WorkerThread(cluster_events_stage, 0)] [cacheManager: no name]: ClusterNode [id=ClientID[4]] joined the cluster (currentNode=ClientID[4])
 10:51:28.498 [WorkerThread(cluster_events_stage, 0)] INFO  n.s.e.terracotta.TerracottaClient - Thread [WorkerThread(cluster_events_stage, 0)] [cacheManager: no name]: ClusterNode [id=ClientID[4]] became online (currentNode=ClientID[4])
 10:51:28.502 [main] DEBUG n.s.e.config.ConfigurationHelper - No CacheManagerEventListenerFactory class specified. Skipping...
 10:51:28.526 [main] DEBUG net.sf.ehcache.Cache - No BootstrapCacheLoaderFactory class specified. Skipping...
 10:51:28.526 [main] DEBUG net.sf.ehcache.Cache - CacheWriter factory not configured. Skipping...
 10:51:28.527 [main] DEBUG n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...
 10:51:28.529 [main] DEBUG net.sf.ehcache.Cache - No BootstrapCacheLoaderFactory class specified. Skipping...
 10:51:28.529 [main] DEBUG net.sf.ehcache.Cache - CacheWriter factory not configured. Skipping...
 10:51:28.529 [main] DEBUG n.s.e.config.ConfigurationHelper - No CacheExceptionHandlerFactory class specified. Skipping...
 java.lang.ArrayIndexOutOfBoundsException: 52264
 	at com.tc.asm.ClassReader.readClass(ClassReader.java:2015)
 	at com.tc.asm.ClassReader.accept(ClassReader.java:469)
 	at com.tc.asm.ClassReader.accept(ClassReader.java:425)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.<init>(AsmClassInfo.java:189)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.constructAsmClassInfo(AsmClassInfo.java:269)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(AsmClassInfo.java:298)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.createClassInfoFromStream(AsmClassInfo.java:692)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo.getClassInfo(AsmClassInfo.java:245)
 	at com.tc.aspectwerkz.reflect.impl.asm.AsmFieldInfo.getType(AsmFieldInfo.java:63)
 	at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:488)
 	at com.tc.aspectwerkz.expression.ast.ASTFieldPattern.jjtAccept(ASTFieldPattern.java:28)
 	at com.tc.aspectwerkz.expression.ExpressionVisitor.visitAnnotatedNode(ExpressionVisitor.java:1016)
 	at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:171)
 	at com.tc.aspectwerkz.expression.ast.ASTGet.jjtAccept(ASTGet.java:22)
 	at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:100)
 	at com.tc.aspectwerkz.expression.ast.ASTExpression.jjtAccept(ASTExpression.java:22)
 	at com.tc.aspectwerkz.expression.ExpressionVisitor.visit(ExpressionVisitor.java:88)
 	at com.tc.aspectwerkz.expression.ExpressionVisitor.match(ExpressionVisitor.java:74)
 	at com.tc.object.config.Root.matches(Root.java:94)
 	at com.tc.object.config.StandardDSOClientConfigHelperImpl.findMatchingRootDefinition(StandardDSOClientConfigHelperImpl.java:1009)
 	at com.tc.object.config.StandardDSOClientConfigHelperImpl.classContainsAnyRoots(StandardDSOClientConfigHelperImpl.java:1017)
 	at com.tc.object.config.StandardDSOClientConfigHelperImpl.shouldBeAdapted(StandardDSOClientConfigHelperImpl.java:1248)
 	at com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transformInternal(DefaultWeavingStrategy.java:177)
 	at com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transform(DefaultWeavingStrategy.java:127)
 	at com.tc.object.bytecode.hook.impl.DSOContextImpl.preProcess(DSOContextImpl.java:298)
 	at com.tc.object.bytecode.hook.impl.DSOContextImpl.transform(DSOContextImpl.java:400)
 	at com.terracotta.express.ClusteredStateLoader.transform(ClusteredStateLoader.java:152)
 	at com.terracotta.express.ClusteredStateLoader.loadClass(ClusteredStateLoader.java:111)
 	at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.registerLocalResourceCacheManager(TerracottaClusteredInstanceFactory.java:282)
 	at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStoreInternal(TerracottaClusteredInstanceFactory.java:239)
 	at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateStore(TerracottaClusteredInstanceFactory.java:229)
 	at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createStore(TerracottaClusteredInstanceFactory.java:123)
 	at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.createStore(StandaloneTerracottaClusteredInstanceFactory.java:67)
 	at net.sf.ehcache.terracotta.ClusteredInstanceFactoryWrapper.createStore(ClusteredInstanceFactoryWrapper.java:93)
 	at net.sf.ehcache.CacheManager.createTerracottaStore(CacheManager.java:507)
 	at net.sf.ehcache.Cache.initialise(Cache.java:1068)
 	at net.sf.ehcache.CacheManager$2.call(CacheManager.java:1247)
 	at net.sf.ehcache.CacheManager$2.call(CacheManager.java:1245)
 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 	at net.sf.ehcache.constructs.nonstop.NonstopThreadPool$WorkerThreadLocal$1.run(NonstopThreadPool.java:191)
 	at net.sf.ehcache.constructs.nonstop.NonstopThreadPool$Worker.run(NonstopThreadPool.java:241)
 	at java.lang.Thread.run(Thread.java:745)
 







https://confluence.terracotta.org/display/release/Terracotta+Release+Archive

tony_murphy

neo

Joined: 03/28/2015 04:19:49
Messages: 2
Offline


upgraded to 3.7.7 - same problem

Code:
 			<dependency>
 				<groupId>net.sf.ehcache</groupId>
 				<artifactId>ehcache-core</artifactId>
 				<version>2.6.8</version>
 			</dependency>
 			<dependency>
 				<groupId>net.sf.ehcache</groupId>
 				<artifactId>ehcache-terracotta</artifactId>
 				<version>2.6.8</version>
 			</dependency>
 			<dependency>
 				<groupId>org.terracotta</groupId>
 				<artifactId>terracotta-toolkit-1.6-runtime</artifactId>
 				<version>5.7.0</version>
 			</dependency>
 
rownokbr

neo

Joined: 04/23/2015 20:03:39
Messages: 1
Offline

Thanks for this.
[WWW]
muzuro

neo

Joined: 08/31/2015 06:04:36
Messages: 1
Offline

I have succeeded with 3.7.10.
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team