[ https://issues.apache.org/jira/browse/OOZIE-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16787751#comment-16787751 ]
Julia Kinga Marton commented on OOZIE-3447: ------------------------------------------- [~nobigo], can you please share exactly how did you tried to run the test when it failed with this error? I have run the test from Maven and from Idea as well, and it passed in both cases, so I was unable to reproduce the issue as well. I also agree with [~asalamon74] that even if we will need to update those files, we should check if we really need those, since using both XML and annotations for mappings in the same project is not really recommended. Maybe we should get rid of the xmls? So I would suggest to do this cleanup/update as a subtask of OOZIE-3336. > Run test case in local : It shows oozie-hsqldb-orm.xml exception > ---------------------------------------------------------------- > > Key: OOZIE-3447 > URL: https://issues.apache.org/jira/browse/OOZIE-3447 > Project: Oozie > Issue Type: Bug > Components: tests > Affects Versions: 5.1.0 > Reporter: duan xiong > Assignee: duan xiong > Priority: Major > Attachments: OOZIE-3447-001.patch > > > {code:java} > 392 oozie-hsqldb WARN [main] openjpa.Enhance - An exception was thrown while > attempting to perform class file transformation on > "org/apache/oozie/util/db/ValidateConnectionBean":<openjpa-2.4.2-r422266:1777108 > nonfatal general error> org.apache.openjpa.util.GeneralException: > org.xml.sax.SAXException: > file:/D:/IdeaProjects/oozie/core/target/classes/META-INF/oozie-hsqldb-orm.xml > [Location: Line: 22, C: 32]: org.xml.sax.SAXParseException; systemId: > file:/D:/IdeaProjects/oozie/core/target/classes/META-INF/oozie-hsqldb-orm.xml; > lineNumber: 22; columnNumber: 32; cvc-complex-type.3.1: Value '1.0' of > attribute 'version' of element 'entity-mappings' is not valid with respect to > the corresponding attribute use. Attribute 'version' has a fixed value of > '2.0'. > at > org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:294) > at > org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:227) > at > org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:587) > at > org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:397) > at > org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:389) > at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:286) > at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:257) > Caused by: java.io.IOException: org.xml.sax.SAXException: > file:oozie-hsqldb-orm.xml [Location: Line: 22, C: 32]: > org.xml.sax.SAXParseException; systemId: file:oozie-hsqldb-orm.xml; > lineNumber: 22; columnNumber: 32; cvc-complex-type.3.1: Value '1.0' of > attribute 'version' of element 'entity-mappings' is not valid with respect to > the corresponding attribute use. Attribute 'version' has a fixed value of > '2.0'. > at > org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:426) > at > org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:346) > at > org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:323) > at > org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:296) > at > org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.parse(XMLPersistenceMetaDataParser.java:406) > at > org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:292) > ... 58 more > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)