[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-320) Hibernate Search conflicts with Spring's class path scanning

Amin Mohammed-Coleman (JIRA) noreply at atlassian.com
Wed Apr 7 03:15:15 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36195#action_36195 ] 

Amin Mohammed-Coleman commented on HSEARCH-320:
-----------------------------------------------

I've looked at component-scan in spring 2.5.5 and Hibernate search 3.1.0.GA and haven't encountered any problems.  I'll look at Spring 3.0.1 and Hibernate Search 3.1.0.GA but I don't see how this is going to be a problem. My example project does AspectJ weaving and dependency injection in the domain objects and I still don't get the above stacktrace. 

Emmanuel, I'm going to need more information on this, at this stage I can't reproduce the above error plus as I mentioned the last project which went live used spring 2.5.6 and HIbernate Search 3.1.0.GA and we didn't have problems.  I'll carry on looking at Spring 3.0 to see if this is reproduceable.



> Hibernate Search conflicts with Spring's class path scanning
> ------------------------------------------------------------
>
>                 Key: HSEARCH-320
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-320
>             Project: Hibernate Search
>          Issue Type: Bug
>    Affects Versions: 3.1.0.CR1, 3.1.0.GA
>            Reporter: Paul Middelkoop
>            Assignee: Hardy Ferentschik
>             Fix For: 3.2.0.CR1
>
>
> Hibernate Search conflicts with Spring's class path scanning. When Hibernate Search is on the classpath Spring throws an exception while reading annotation metadata.
> 3.1.0 Beta1 and 3.0.x versions had no problems.
> Stacktrace:
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 50432
> 	at org.springframework.asm.ClassReader.readUTF8(Unknown Source)
> 	at org.springframework.asm.ClassReader.accept(Unknown Source)
> 	at org.springframework.asm.ClassReader.accept(Unknown Source)
> 	at org.springframework.core.type.classreading.SimpleMetadataReader.getAnnotationMetadata(SimpleMetadataReader.java:55)
> 	at org.springframework.core.type.filter.AnnotationTypeFilter.matchSelf(AnnotationTypeFilter.java:68)
> 	at org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match(AbstractTypeHierarchyTraversingFilter.java:55)
> 	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:224)
> 	at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:182)
> 	at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:201)
> 	at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:85)
> 	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
> 	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1255)
> 	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1245)
> 	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
> 	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list