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

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Tue Mar 6 13:15:23 EST 2007


    [ http://jira.jboss.com/jira/browse/JBCACHE-877?page=comments#action_12355159 ] 
            
Galder Zamarreno commented on JBCACHE-877:
------------------------------------------

I managed to replicate the issue by chance.

I need to drill it down, but I'm attaching the test case and 
instructions to replicate it for the moment so that I can come 
back to it later:

Instructions:

- run "clean-start-hs.bat"
- run "build.bat"
- run "run.bat"
- hit 0 (so that db schema is created)
- hit q
- comment <property name="hbm2ddl.auto">create</property> in src/hibernate.cfg.xml

- run build.bat
- run run.bat
- run run.bat in another console instance

- hit 0 in 1st instance
- hit 0 in 2nd instance

- hit 1 in 1st instance

- You get a rollback on 1st instance and the following in the 2nd instance:

19:04:10,984 ERROR RpcDispatcher:257 - exception marshalling object
java.lang.NoClassDefFoundError: gnu/trove/TObjectHashingStrategy
        at org.jboss.serial.io.JBossObjectInputStream.<clinit>(JBossObjectInputStream.java:56)
        at org.jboss.cache.marshall.JBossObjectStreamFactory.createObjectInputStream(JBossObjectStreamFactory.java:47)
        at org.jboss.cache.marshall.ObjectSerializationFactory.createObjectInputStream(ObjectSerializationFactory.java:57)
        at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:149)
        at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:254)
        at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:650)
        at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:535)
        at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:358)
        at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:775)
        at org.jgroups.JChannel.up(JChannel.java:1091)
        at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:377)
        at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:393)
        at org.jgroups.stack.Protocol.passUp(Protocol.java:538)
        at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:158)
        at org.jgroups.stack.UpHandler.run(Protocol.java:60)

Apologies for those non Windows users for the scripts :)

It's from a JBC + Hibernate + JBoss Transactions example I'm working on for a support case.

The replicated object has an empty Set which seems to confirm the previous indications 
about a collection being replicated.

I'll narrow it down once I have a few spare mins.

> 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
>            Reporter: Galder Zamarreno
>         Assigned To: Ben Wang
>            Priority: Minor
>
> 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