hibernate envers test
_org.hibernate.envers.test.integration.components.PropertiesGroupTest_ is failing with the
following exception, but I don't see there is a mapping xml issue, could someone take
a look?
21:07:04,514 INFO Environment:342 - HHH000021: Bytecode provider name : javassist
21:07:04,534 INFO Dialect:125 - HHH000400: Using dialect:
org.hibernate.dialect.H2Dialect
21:07:04,719 INFO Dialect:125 - HHH000400: Using dialect:
org.hibernate.dialect.H2Dialect
21:07:04,857 INFO Version:37 - HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
Before class callback errror :
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase#buildSessionFactory
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)
at
org.hibernate.testing.junit4.TestClassMetadata.performBeforeClassCallbacks(TestClassMetadata.java:181)
at
org.hibernate.testing.junit4.BeforeClassCallbackHandler.evaluate(BeforeClassCallbackHandler.java:43)
at
org.hibernate.testing.junit4.AfterClassCallbackHandler.evaluate(AfterClassCallbackHandler.java:42)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.hibernate.metamodel.spi.source.MappingException: Unable to perform
unmarshalling at line number -1 and column -1. Message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'properties'. One of
'{"http://www.hibernate.org/xsd/hibernate-mapping":discriminator,
"http://www.hibernate.org/xsd/hibernate-mapping":natural-id,
"http://www.hibernate.org/xsd/hibernate-mapping":version,
"http://www.hibernate.org/xsd/hibernate-mapping":timestamp,
"http://www.hibernate.org/xsd/hibernate-mapping":multi-tenancy,
"http://www.hibernate.org/xsd/hibernate-mapping":idbag,
"http://www.hibernate.org/xsd/hibernate-mapping":property,
"http://www.hibernate.org/xsd/hibernate-mapping":many-to-one,
"http://www.hibernate.org/xsd/hibernate-mapping":one-to-one,
"http://www.hibernate.org/xsd/hibernate-mapping":component,
"http://www.hibernate.org/xsd/hibernate-mapping":dynamic-component,
"http://www.hibernate.org/xsd/hibernate-mapping":any,
"http://www.hibernate.org/xsd/hibernate-mapping":map,
"http://www.hibernate.org/xsd/hibernate-mapping":set,
"http://www.hibernate.org/xsd/hibernate-mapping":list,
"http://www.hibernate.org/xsd/hibernate-mapping":bag,
"http://www.hibernate.org/xsd/hibernate-mapping":array,
"http://www.hibernate.org/xsd/hibernate-mapping":primitive-array,
"http://www.hibernate.org/xsd/hibernate-mapping":join,
"http://www.hibernate.org/xsd/hibernate-mapping":subclass,
"http://www.hibernate.org/xsd/hibernate-mapping":joined-subclass,
"http://www.hibernate.org/xsd/hibernate-mapping":union-subclass,
"http://www.hibernate.org/xsd/hibernate-mapping":loader,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-insert,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-update,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-delete,
"http://www.hibernate.org/xsd/hibernate-mapping":filter,
"http://www.hibernate.org/xsd/hibernate-mapping":fetch-profile,
"http://www.hibernate.org/xsd/hibernate-mapping":resultset,
"http://www.hibernate.org/xsd/hibernate-mapping":query,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-query}' is expected.
at org.hibernate.metamodel.internal.JaxbHelper.unmarshal(JaxbHelper.java:182)
at org.hibernate.metamodel.internal.JaxbHelper.unmarshal(JaxbHelper.java:94)
at org.hibernate.metamodel.MetadataSources.add(MetadataSources.java:199)
at org.hibernate.metamodel.MetadataSources.addResource(MetadataSources.java:188)
at
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase.addMappings(BaseCoreFunctionalTestCase.java:241)
at
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase.buildMetadata(BaseCoreFunctionalTestCase.java:168)
at
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase.buildSessionFactory(BaseCoreFunctionalTestCase.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.hibernate.testing.junit4.TestClassMetadata.invokeCallback(TestClassMetadata.java:196)
... 22 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid content was found starting
with element 'properties'. One of
'{"http://www.hibernate.org/xsd/hibernate-mapping":discriminator,
"http://www.hibernate.org/xsd/hibernate-mapping":natural-id,
"http://www.hibernate.org/xsd/hibernate-mapping":version,
"http://www.hibernate.org/xsd/hibernate-mapping":timestamp,
"http://www.hibernate.org/xsd/hibernate-mapping":multi-tenancy,
"http://www.hibernate.org/xsd/hibernate-mapping":idbag,
"http://www.hibernate.org/xsd/hibernate-mapping":property,
"http://www.hibernate.org/xsd/hibernate-mapping":many-to-one,
"http://www.hibernate.org/xsd/hibernate-mapping":one-to-one,
"http://www.hibernate.org/xsd/hibernate-mapping":component,
"http://www.hibernate.org/xsd/hibernate-mapping":dynamic-component,
"http://www.hibernate.org/xsd/hibernate-mapping":any,
"http://www.hibernate.org/xsd/hibernate-mapping":map,
"http://www.hibernate.org/xsd/hibernate-mapping":set,
"http://www.hibernate.org/xsd/hibernate-mapping":list,
"http://www.hibernate.org/xsd/hibernate-mapping":bag,
"http://www.hibernate.org/xsd/hibernate-mapping":array,
"http://www.hibernate.org/xsd/hibernate-mapping":primitive-array,
"http://www.hibernate.org/xsd/hibernate-mapping":join,
"http://www.hibernate.org/xsd/hibernate-mapping":subclass,
"http://www.hibernate.org/xsd/hibernate-mapping":joined-subclass,
"http://www.hibernate.org/xsd/hibernate-mapping":union-subclass,
"http://www.hibernate.org/xsd/hibernate-mapping":loader,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-insert,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-update,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-delete,
"http://www.hibernate.org/xsd/hibernate-mapping":filter,
"http://www.hibernate.org/xsd/hibernate-mapping":fetch-profile,
"http://www.hibernate.org/xsd/hibernate-mapping":resultset,
"http://www.hibernate.org/xsd/hibernate-mapping":query,
"http://www.hibernate.org/xsd/hibernate-mapping":sql-query}' is expected.]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:419)
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:400)
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:373)
at org.hibernate.metamodel.internal.JaxbHelper.unmarshal(JaxbHelper.java:172)
... 33 more
Process finished with exit code 255
-------------------------
Best Regards,
Strong Liu <stliu at hibernate.org>
http://about.me/stliu/bio