[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-877) TreeCache usage should not depend on trove.jar

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu Mar 15 14:09:32 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBCACHE-877?page=comments#action_12356244 ] 
            
Manik Surtani commented on JBCACHE-877:
---------------------------------------

For 2.x try downloading 2.0.0.BETA2 - the JBossCache-core package which *should* not come with the trove jar.  It currently does because of this error.  

Remove lib/trove.jar and try running 

./build.sh one.test -Dtest=org.jboss.cache.loader.FileCacheLoaderTest

Barf city!  

java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy

java.lang.RuntimeException: java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3684) at org.jboss.cache.CacheImpl.put(CacheImpl.java:1470) at org.jboss.cache.loader.CacheLoaderTestsBase.testPrint(CacheLoaderTestsBase.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)Caused by: java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy at org.jboss.serial.objectmetamodel.DataContainer.<init>(DataContainer.java:131) at org.jboss.serial.objectmetamodel.DataContainer.<init>(DataContainer.java:119) at org.jboss.serial.io.JBossObjectOutputStreamSharedTree.checkOutput(JBossObjectOutputStreamSharedTree.java:71) at org.jboss.serial.io.JBossObjectOutputStreamSharedTree.writeObjectOverride(JBossObjectOutputStreamSharedTree.java:58) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) at org.jboss.cache.marshall.CacheMarshaller200.marshallString(CacheMarshaller200.java:425) at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:365) at org.jboss.cache.marshall.CacheMarshaller200.marshallMap(CacheMarshaller200.java:484) at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:323) at org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:133) at org.jboss.cache.marshall.VersionAwareMarshaller.objectToObjectStream(VersionAwareMarshaller.java:214) at org.jboss.cache.loader.FileCacheLoader.marshall(FileCacheLoader.java:447) at org.jboss.cache.loader.FileCacheLoader.storeAttributes(FileCacheLoader.java:388) at org.jboss.cache.loader.FileCacheLoader.put(FileCacheLoader.java:178) at org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:233) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:157) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:33) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:196) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:22) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:291) at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:128) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:141) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75) at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:66) at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3672) ... 17 more

> TreeCache usage should not depend on trove.jar
> ----------------------------------------------
>
>                 Key: JBCACHE-877
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-877
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.4.0.SP1, 2.0.0.BETA1, 1.4.1.SP2
>            Reporter: Galder Zamarreno
>         Assigned To: Galder Zamarreno
>            Priority: Minor
>             Fix For: 2.0.0.BETA2
>
>         Attachments: jbosscache.log
>
>
> A customer is upgrading from JBC 1.1 to 1.4.0.SP1 and 
> even though it only uses plain TreeCache, it gets a 
> NoClassDefFoundError for trove classes.
> 2006-11-23 13:19:03,781  ERROR RpcDispatcher exception=java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy
> This is a TreeCacheAop/PojoCache dependency and therefore,
> should be isolated and attempted to be loaded only when 
> PojoCache used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jboss-jira mailing list