[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6456) Test failure in CachedPropertyRefCollectionTest behind a proxy

Erik-Berndt Scheper (JIRA) noreply at atlassian.com
Tue Jul 19 08:09:14 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42982#comment-42982 ] 

Erik-Berndt Scheper commented on HHH-6456:
------------------------------------------

Stack trace:

{noformat}org.hibernate.testing.junit4.CallbackException: org.hibernate.testing.junit4.BaseCoreFunctionalTestCase#buildSessionFactory
	at org.hibernate.testing.junit4.TestClassMetadata.invokeCallback(TestClassMetadata.java:199)
	at org.hibernate.testing.junit4.TestClassMetadata.performCallbacks(TestClassMetadata.java:190)

...

Caused by: org.hibernate.InvalidMappingException: Unable to read XML
	at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:102)

...

Caused by: org.dom4j.DocumentException: hibernate.org Nested exception: hibernate.org
	at org.dom4j.io.SAXReader.read(SAXReader.java:484)
	at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)
	... 45 more
{noformat}

> Test failure in CachedPropertyRefCollectionTest behind a proxy
> --------------------------------------------------------------
>
>                 Key: HHH-6456
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6456
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.6.5, 4.0.0.Beta3
>            Reporter: Erik-Berndt Scheper
>            Priority: Trivial
>
> With the JDK 1.6.0_25 (master) I am getting test failures in
> {{org.hibernate.test.propertyref.cachedcollections.CachedPropertyRefCollectionTest}}
> The same test failure occurs in 3.6 with JDK 1.5.0_22. 
> The root cause of this test failure can be found in the file 
> {{hibernate-core/src/test/java/org/hibernate/test/propertyref/cachedcollections/Mappings.hbm.xml}} 
> which contains a DOCTYPE referring to {noformat}"http://hibernate.org/dtd/hibernate-mapping-3.0.dtd"{noformat}
> The {{org.hibernate.internal.util.xml.DTDEntityResolver.java}} only resolves the DOCTYPE {noformat}"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"{noformat} and the old sourceforge one.
> A simple fix is to add "www." to the DOCTYPE. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list