These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]

Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: StackOverflowError
PostPosted: Tue Dec 10, 2013 5:29 am 

Joined: Tue Apr 25, 2006 9:49 am
Posts: 9
I'm trying to configure OGM with Infinispan + JPA loader.
Here is my persistents.xml :

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"

    <persistence-unit name="DB" transaction-type="RESOURCE_LOCAL">
        <properties  >
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@"/>
            <property name="javax.persistence.jdbc.user" value="***" />
            <property name="javax.persistence.jdbc.password" value="****" />
            <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.NoJtaPlatform"/>

    <persistence-unit name="IMDG" transaction-type="RESOURCE_LOCAL"  >
            <property name="hibernate.ogm.datastore.provider" value="infinispan"/>
            <property name="hibernate.ogm.infinispan.configuration_resourcename"  value="infinispan.xml"/>
            <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.NoJtaPlatform"/>

Here is the infinispan.xml
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"



    <namedCache name="ENTITIES">
        <loaders preload="true"  passivation="false" shared="true" >
            <loader class="org.infinispan.loaders.jpa.JpaCacheStore"   fetchPersistentState="true" purgeOnStartup="false" ignoreModifications="true" >
                    <property name="persistenceUnitName" value="DB" />
                    <property name="entityClassName" value="db.generated.PackageEntity" />

    <namedCache name="ASSOCIATIONS">

    <namedCache name="IDENTIFIERS">

I'm gettting StackOverflowError when I booststrap JPA :

As you can see initiator calls itself in endless loop :

My environment :
dependencies {
    compile 'org.slf4j:slf4j-log4j12:1.7.5',




Please advice


 Post subject: Re: StackOverflowError
PostPosted: Tue Dec 10, 2013 9:00 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi Alexander,

Thanks for the report. Could you please file an issue at our JIRA (https://hibernate.atlassian.net/browse/OGM) and attach a minimal test case demonstrating the issue and post the stack trace you get?



Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/

Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.