-->
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 
Newbie

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

Code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">

    <persistence-unit name="DB" transaction-type="RESOURCE_LOCAL">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <class>db.generated.PackageEntity</class>
        <properties  >
            <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
            <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@10.1.5.81:1521:LDS"/>
            <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"/>
        </properties>
    </persistence-unit>

    <persistence-unit name="IMDG" transaction-type="RESOURCE_LOCAL"  >
        <provider>org.hibernate.ogm.jpa.HibernateOgmPersistence</provider>
        <properties>
            <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"/>
        </properties>
    </persistence-unit>
</persistence>

Here is the infinispan.xml
Code:
<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"
            xmlns="urn:infinispan:config:5.1">

      <global>
      </global>

    <default>
    </default>

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

    <namedCache name="ASSOCIATIONS">
    </namedCache>

    <namedCache name="IDENTIFIERS">
    </namedCache>
</infinispan>

I'm gettting StackOverflowError when I booststrap JPA :
Code:
Persistence.createEntityManagerFactory("IMDG")


As you can see initiator calls itself in endless loop :
Image

My environment :
Code:
dependencies {
    compile 'org.slf4j:slf4j-log4j12:1.7.5',
            'org.hibernate:hibernate-core:4.2.7.SP1',
            'org.hibernate:hibernate-entitymanager:4.2.7.SP1',

            'org.hibernate.ogm:hibernate-ogm-infinispan:4.0.0.Beta4',
            'org.hibernate.ogm:hibernate-ogm-core:4.0.0.Beta4',

            'org.hibernate:hibernate-jpamodelgen:1.3.0.Final',

            'org.infinispan:infinispan-core:5.3.0.Final',
            'org.infinispan:infinispan-cachestore-jpa:5.3.0.Final'
}


Please advice

Thanks
Alexander


Top
 Profile  
 
 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?

Thanks,

--Gunnar

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


Top
 Profile  
 
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.