[
http://jira.jboss.com/jira/browse/JBCACHE-877?page=all ]
Galder Zamarreno updated JBCACHE-877:
-------------------------------------
Affects Version/s: 2.0.0.BETA1
Reproduced again while solving JBCACHE-964 in head.
Manually adding trover.jar in expanded JBossCache-core-2.0.0.BETA2
so that I can get this JBCACHE-964 solved and then fix the example :)
C:\jboss\jira\jbcache-964\finishing.example\JBossCache-core-2.0.0.BETA2\examples\cacheloader-migration>build.bat
run.jdbccacheloader.example
Buildfile: build.xml
init:
[mkdir] Created dir:
C:\jboss\jira\jbcache-964\finishing.example\JBossCache-core-2.0.0.BETA2\examples\cacheloader-migration\output\classes
compile:
[javac] Compiling 1 source file to
C:\jboss\jira\jbcache-964\finishing.example\JBossCache-core-2.0.0.BETA2\examples\cacheloader-migration\output\classes
[copy] Copying 4 files to
C:\jboss\jira\jbcache-964\finishing.example\JBossCache-core-2.0.0.BETA2\examples\cacheloader-migration\output\classes
run.jdbccacheloader.example:
[unzip] Expanding:
C:\jboss\jira\jbcache-964\finishing.example\JBossCache-core-2.0.0.BETA2\examples\cacheloader-migration\data\jbossdb-1x.zip
into
C:\jboss\jira\jbcache-964\finishing.example\JBossCache-core-2.0.0.BETA2\examples\cacheloader-migrat
ion
[java] 2007-03-07 22:53:50,703 INFO [TransformStore] (main) Transforming
configuration file: transform-jdbccl-service.xml
[java] 2007-03-07 22:53:50,734 DEBUG [XmlConfigurationParser] (main) Attribute size:
13
[java] 2007-03-07 22:53:51,015 DEBUG [GenericTransactionManagerLookup] (main) Trying
to lookup TransactionManager for JBoss, JRun4
[java] 2007-03-07 22:53:51,062 INFO [GenericTransactionManagerLookup] (main) Failed
to perform a lookup for [java:/TransactionManager (JBoss, JRun4)]
[java] 2007-03-07 22:53:51,062 DEBUG [GenericTransactionManagerLookup] (main) Trying
to lookup TransactionManager for Resin 3.x
[java] 2007-03-07 22:53:51,062 INFO [GenericTransactionManagerLookup] (main) Failed
to perform a lookup for [java:comp/TransactionManager (Resin 3.x)]
[java] 2007-03-07 22:53:51,078 DEBUG [GenericTransactionManagerLookup] (main) Trying
to lookup TransactionManager for Borland, Sun
[java] 2007-03-07 22:53:51,078 INFO [GenericTransactionManagerLookup] (main) Failed
to perform a lookup for [java:pm/TransactionManager (Borland, Sun)]
[java] 2007-03-07 22:53:51,078 DEBUG [GenericTransactionManagerLookup] (main) Trying
to lookup TransactionManager for Sun Glassfish
[java] 2007-03-07 22:53:51,078 INFO [GenericTransactionManagerLookup] (main) Failed
to perform a lookup for [java:appserver/TransactionManager (Sun Glassfish)]
[java] 2007-03-07 22:53:51,078 DEBUG [GenericTransactionManagerLookup] (main) Trying
to lookup TransactionManager for BEA WebLogic
[java] 2007-03-07 22:53:51,078 INFO [GenericTransactionManagerLookup] (main) Failed
to perform a lookup for [javax.transaction.TransactionManager (BEA WebLogic)]
[java] 2007-03-07 22:53:51,093 DEBUG [GenericTransactionManagerLookup] (main) Trying
to lookup TransactionManager for Resin, Orion, JOnAS (JOTM)
[java] 2007-03-07 22:53:51,093 INFO [GenericTransactionManagerLookup] (main) Failed
to perform a lookup for [java:comp/UserTransaction (Resin, Orion, JOnAS (JOTM))]
[java] 2007-03-07 22:53:51,093 DEBUG [GenericTransactionManagerLookup] (main) Trying
WebSphere 5.1: com.ibm.ws.Transaction.TransactionManagerFactory
[java] 2007-03-07 22:53:51,093 DEBUG [GenericTransactionManagerLookup] (main) Trying
WebSphere 5.0: com.ibm.ejs.jts.jta.TransactionManagerFactory
[java] 2007-03-07 22:53:51,093 DEBUG [GenericTransactionManagerLookup] (main) Trying
WebSphere 4: com.ibm.ejs.jts.jta.JTSXA
[java] 2007-03-07 22:53:51,093 DEBUG [GenericTransactionManagerLookup] (main)
Couldn't find any WebSphere TransactionManager factory class, neither for WebSphere
version 5.1 nor 5.0 nor 4
[java] 2007-03-07 22:53:51,093 WARN [GenericTransactionManagerLookup] (main) Falling
back to DummyTransactionManager from JBossCache
[java] 2007-03-07 22:53:51,109 DEBUG [JDBCCacheLoaderConfig] (main) Properties:
cache.jdbc.url=jdbc:derby:jbossdb-1x;create=true,
cache.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver, cache.jdbc.user=user1,
cache.jdbc.password=user1, cache.jdb
c.table=null
[java] 2007-03-07 22:53:51,125 DEBUG [JBossCache-Cluster] (main) Not using an
EvictionPolicy
[java] 2007-03-07 22:53:51,125 DEBUG [JBossCache-Cluster] (main) cache mode is local,
will not create the channel
[java] 2007-03-07 22:53:51,156 INFO [InterceptorChainFactory] (main) interceptor
chain is:
[java] class org.jboss.cache.interceptors.CallInterceptor
[java] class org.jboss.cache.interceptors.CacheStoreInterceptor
[java] class org.jboss.cache.interceptors.CacheLoaderInterceptor
[java] class org.jboss.cache.interceptors.UnlockInterceptor
[java] class org.jboss.cache.interceptors.PessimisticLockInterceptor
[java] class org.jboss.cache.interceptors.NotificationInterceptor
[java] class org.jboss.cache.interceptors.TxInterceptor
[java] class org.jboss.cache.interceptors.CacheMgmtInterceptor
[java] class org.jboss.cache.interceptors.InvocationContextInterceptor
[java] 2007-03-07 22:53:54,250 DEBUG [JDBCCacheLoader] (main) executing sql: select
node from jbosscache where fqn=? (/)
[java] 2007-03-07 22:53:54,312 DEBUG [JDBCCacheLoader] (main) executing sql: select
node from jbosscache where fqn=? (/)
[java] 2007-03-07 22:53:54,312 DEBUG [JDBCCacheLoader] (main) executing sql: insert
into jbosscache (fqn, node, parent) values (?, ?, ?) (/)
[java] 2007-03-07 22:53:54,421 INFO [JBossCache-Cluster] (main) JBoss Cache version:
JBossCache 'Habanero' 2.0.0.BETA2[ $Id: Version.java,v 1.29 2007/03/06 20:12:05
msurtani Exp $]
[java] 2007-03-07 22:53:54,421 INFO [TransformStore] (main) Transforming 1.x cache
store
[java] 2007-03-07 22:53:54,468 DEBUG [JDBCCacheLoader] (main) executing sql: select
node from jbosscache where fqn=? (/)
[java] 2007-03-07 22:53:54,468 DEBUG [CacheStoreInterceptor] (main) PUT_DATA: /
[java] data={}
[java] 2007-03-07 22:53:54,484 DEBUG [JDBCCacheLoader] (main) executing sql: select
node from jbosscache where fqn=? (/)
[java] 2007-03-07 22:53:54,484 DEBUG [JDBCCacheLoader] (main) executing sql: update
jbosscache set node=? where fqn=?
[java] 2007-03-07 22:53:54,515 DEBUG [VersionAwareMarshaller] (main) Initialised with
version 2.0.0 and versionInt 20
[java] 2007-03-07 22:53:54,515 DEBUG [VersionAwareMarshaller] (main) Using default
marshaller class org.jboss.cache.marshall.CacheMarshaller200
[java] 2007-03-07 22:53:54,515 INFO [JBossCache-Cluster] (main) Using marshaller
org.jboss.cache.marshall.VersionAwareMarshaller
[java] Exception in thread "main" java.lang.RuntimeException:
java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy
[java] at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3656)
[java] at org.jboss.cache.CacheImpl.put(CacheImpl.java:1410)
[java] at examples.TransformStore.transformNode(TransformStore.java:64)
[java] at examples.TransformStore.transformCacheStore(TransformStore.java:58)
[java] at examples.TransformStore.main(TransformStore.java:34)
[java] Caused by: java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy
[java] at
org.jboss.serial.objectmetamodel.DataContainer.<init>(DataContainer.java:131)
[java] at
org.jboss.serial.objectmetamodel.DataContainer.<init>(DataContainer.java:119)
[java] at
org.jboss.serial.io.JBossObjectOutputStreamSharedTree.checkOutput(JBossObjectOutputStreamSharedTree.java:71)
[java] at
org.jboss.serial.io.JBossObjectOutputStreamSharedTree.writeObjectOverride(JBossObjectOutputStreamSharedTree.java:58)
[java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
[java] at
org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:396)
[java] at
org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:133)
[java] at
org.jboss.cache.marshall.VersionAwareMarshaller.objectToByteBuffer(VersionAwareMarshaller.java:128)
[java] at
org.jboss.cache.loader.AdjListJDBCCacheLoader.updateNode(AdjListJDBCCacheLoader.java:486)
[java] at org.jboss.cache.loader.JDBCCacheLoader._put(JDBCCacheLoader.java:177)
[java] at org.jboss.cache.loader.JDBCCacheLoader.put(JDBCCacheLoader.java:75)
[java] at
org.jboss.cache.loader.AbstractCacheLoader.put(AbstractCacheLoader.java:220)
[java] at
org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:215)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:157)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:33)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:196)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:22)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:291)
[java] at
org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:128)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:151)
[java] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
[java] at
org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:66)
[java] at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3644)
[java] ... 4 more
[java] Java Result: 1
BUILD SUCCESSFUL
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, 1.4.1.SP2, 2.0.0.BETA1
Reporter: Galder Zamarreno
Assigned To: Galder Zamarreno
Priority: Minor
Fix For: 1.4.1.SP3
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