-->
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.  [ 5 posts ] 
Author Message
 Post subject: Problems upgrading to Spring 3.1.3 and higher
PostPosted: Mon Jun 17, 2013 6:15 pm 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

I've been having upgrade problems trying to upgrade to Spring 3.1.3 or higher.

Basically, I'm getting this error on previously valid IndexedEmbedded:

Code:
Caused by: org.hibernate.search.SearchException: Found invalid @IndexedEmbedded->paths configured on class nl.project.Offer, member address: city.place.id,city.region.id,city.id,country.id,barrio.id
   at org.hibernate.search.engine.spi.AbstractDocumentBuilder.validateAllPathsEncountered(AbstractDocumentBuilder.java:903)
   at org.hibernate.search.engine.spi.AbstractDocumentBuilder.checkForIndexedEmbedded(AbstractDocumentBuilder.java:882)
   at org.hibernate.search.engine.spi.AbstractDocumentBuilder.initializeMemberLevelAnnotations(AbstractDocumentBuilder.java:490)
   at org.hibernate.search.engine.spi.AbstractDocumentBuilder.initializeClass(AbstractDocumentBuilder.java:392)
   at org.hibernate.search.engine.spi.AbstractDocumentBuilder.<init>(AbstractDocumentBuilder.java:174)
   at org.hibernate.search.engine.spi.DocumentBuilderContainedEntity.<init>(DocumentBuilderContainedEntity.java:60)
   at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:396)
   at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:222)
   at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:146)
   at org.hibernate.search.event.impl.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:130)
   at org.hibernate.search.hcore.impl.HibernateSearchIntegrator.integrate(HibernateSearchIntegrator.java:83)
   at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:303)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1769)
   at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)
   at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
   at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
   at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)
   at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:287)
   at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)


In this case, Address is an @Embedded class for Offer. One of the things I noticed stepping through the code is that all the embedded non-id properties seemed to be considered as correctly encountered. It seems to only relate to @Id properties. I logged an issue with Spring before regarding this annoying issue: https://jira.springsource.org/browse/SPR-10221.

Any suggestions on this?

Kind regards,
Marc


Top
 Profile  
 
 Post subject: Re: Problems upgrading to Spring 3.1.3 and higher
PostPosted: Tue Jun 18, 2013 7:19 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi Marc,
if you could contribute a test then we could debug it, from the stack trace I'm not sure what might be happening.

We're in the process to refactor and cleanup this code area, so this could be a perfect time to address some special behaviour possibly needed for Spring.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Problems upgrading to Spring 3.1.3 and higher
PostPosted: Thu Jun 27, 2013 11:39 am 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
I have a feeling it's related to this change: https://github.com/SpringSource/spring-framework/commit/bac05f568a1d72d0bab64a640401080f26d84531 which came in at Spring 3.1.3
Perhaps you can have a look as well.


Top
 Profile  
 
 Post subject: Re: Problems upgrading to Spring 3.1.3 and higher
PostPosted: Thu Jun 27, 2013 2:24 pm 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Resolved. See https://jira.springsource.org/browse/SPR-10221


Top
 Profile  
 
 Post subject: Re: Problems upgrading to Spring 3.1.3 and higher
PostPosted: Tue Jul 02, 2013 4:49 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
great! thanks for the notice.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.