Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Migration of Mirror-pu to Gigaspaces 10.1

Hi,

I'm in the middle of migrating some code from Gigaspaces 9.7 to 10.1, but I'm having problems to migrate the mirroring service. It is not very clear to me if I have to upgrade to Hibernate 4.X or I can continue using 3.6.10, but the thing is that I tried using 3.6.10, 4.0.X, 4.1.X, 4.2.X and 4.3.X and I always get the same error:

java.lang.Exception: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session; at com.gigaspaces.internal.cluster.node.impl.packets.data.errors.UnknownConsumeErrorResult.toException(UnknownConsumeErrorResult.java:60) at com.gigaspaces.internal.cluster.node.impl.processlog.multisourcesinglefile.MultiSourceSingleFileReliableAsyncTargetProcessLog.consumePendingPacketsInBatch(MultiSourceSingleFileReliableAsyncTargetProcessLog.java:659) at com.gigaspaces.internal.cluster.node.impl.processlog.multisourcesinglefile.MultiSourceSingleFileReliableAsyncTargetProcessLog.processPackets(MultiSourceSingleFileReliableAsyncTargetProcessLog.java:429) at com.gigaspaces.internal.cluster.node.impl.processlog.multisourcesinglefile.MultiSourceSingleFileReliableAsyncTargetProcessLog.processBatch(MultiSourceSingleFileReliableAsyncTargetProcessLog.java:267) at com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationTargetChannel.processBatch(AbstractReplicationTargetChannel.java:137) at com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationTargetGroup.processBatch(AbstractReplicationTargetGroup.java:320) at com.gigaspaces.internal.cluster.node.impl.packets.BatchReplicatedDataPacket.accept(BatchReplicatedDataPacket.java:43) at com.gigaspaces.internal.cluster.node.impl.ReplicationNode.onReplication(ReplicationNode.java:660) at com.gigaspaces.internal.cluster.node.impl.router.AbstractConnectionProxyBasedReplicationRouter$ConnectionEndpoint.dispatchAsync(AbstractConnectionProxyBasedReplicationRouter.java:442) at com.gigaspaces.internal.cluster.node.impl.router.spacefinder.IReplicationConnectionProxyGigaspacesMethodinternalInvoke2.internalInvoke(Unknown Source) at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:41) at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:480) at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:570) at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:662) at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:196) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at com.gigaspaces.lrmi.nio.async.LRMIThreadWrapper.run(LRMIThreadWrapper.java:34) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session; at org.openspaces.persistency.hibernate.DefaultHibernateSpaceSynchronizationEndpoint.executeDataSyncOperations(DefaultHibernateSpaceSynchronizationEndpoint.java:69) at org.openspaces.persistency.hibernate.DefaultHibernateSpaceSynchronizationEndpoint.onOperationsBatchSynchronization(DefaultHibernateSpaceSynchronizationEndpoint.java:65) at com.gigaspaces.internal.sync.mirror.MirrorBulkExecutor.execute(MirrorBulkExecutor.java:64) at com.gigaspaces.internal.sync.mirror.MirrorReplicationInHandler.execute(MirrorReplicationInHandler.java:130) at

There is an attempt to write before these logs, and everything looks fine before this point.

According to the example in the wiki http://docs.gigaspaces.com/xap101/hib... , hibernate 4 is required, and according to the first answer in http://ask.gigaspaces.org/question/98... , Gigaspaces 10.1 supports Hibernate 4.1.9.

So, that being said, what am I doing wrong in my code?

asked 2015-03-02 10:59:59 -0500

jbarren gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

It seems to me the you are using wrong version of Spring. For XAP 10.1 you should use Hibernate 4.1.9 + Spring 4.1.1

answered 2015-03-03 05:44:02 -0500

Yuval gravatar image
edit flag offensive delete link more

Comments

I am using Spring version 4.1.1 release and I tried with version 4.1.9 of hibernate, but I'll give it another try. Thanks

jbarren gravatar imagejbarren ( 2015-03-03 07:30:24 -0500 )edit

Check your classpath, maybe you have another Spring version elsewhere that appears first.

Yuval gravatar imageYuval ( 2015-03-03 07:35:22 -0500 )edit
0

Sorry, it was totally my fault. As part of the migration the project has been moved to another folder, and the project wasn't creating the lib folder in the jar file anymore. After changing this, and using Spring 4.1.1.Release and Hibernate 4.1.9.Final, I have everything working like before.

Thanks for your help!

answered 2015-03-05 08:37:10 -0500

jbarren gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-02 10:59:59 -0500

Seen: 527 times

Last updated: Mar 05 '15