openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Prud'hommeaux <mprud...@apache.org>
Subject Re: [VOTE] Approve OpenJPA 1.0.2 release
Date Wed, 13 Feb 2008 23:30:45 GMT

Extracting the binary zip, going to apache-openjpa-1.0.2/examples/ 
reversemapping/, and running "ant" raises the following error for me  
(on OS X):

      [java] 1345  none  WARN   [main] openjpa.Enhance - An exception  
was thrown while attempting to perform class file transformation on  
"reversemapping/City":
      [java] <openjpa-1.0.2-r420667:627158 nonfatal general error>  
org.apache.openjpa.util.GeneralException: org.xml.sax.SAXException:  
file:/Users/mprudhom/Downloads/apache-openjpa-1.0.2/examples/ 
reversemapping/orm.xml [Location: Line: 2, C: 159]:  
org.xml.sax.SAXParseException: The prefix "xsi" for attribute  
"xsi:schemaLocation" associated with an element type "entity-mappings"  
is not bound.
      [java] 	at  
org 
.apache 
.openjpa 
.persistence 
.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java: 
249)
      [java] 	at  
org 
.apache 
.openjpa 
.persistence 
.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:198)
      [java] 	at  
org 
.apache 
.openjpa 
.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java: 
433)
      [java] 	at  
org 
.apache 
.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java: 
288)
      [java] 	at  
org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:241)
      [java] 	at  
org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:212)
      [java] 	at  
org 
.apache 
.openjpa 
.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java: 
127)
      [java] 	at  
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
      [java] 	at  
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java: 
155)
      [java] 	at java.lang.ClassLoader.defineClass1(Native Method)
      [java] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
      [java] 	at  
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      [java] 	at  
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      [java] 	at java.net.URLClassLoader.access 
$100(URLClassLoader.java:56)
      [java] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      [java] 	at java.security.AccessController.doPrivileged(Native  
Method)
      [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java: 
188)
      [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
      [java] 	at sun.misc.Launcher 
$AppClassLoader.loadClass(Launcher.java:280)
      [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      [java] 	at  
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
      [java] 	at java.lang.Class.forName0(Native Method)
      [java] 	at java.lang.Class.forName(Class.java:242)
      [java] 	at  
org 
.apache 
.openjpa.meta.MetaDataRepository.classForName(MetaDataRepository.java: 
1253)
      [java] 	at  
org 
.apache 
.openjpa 
.meta.MetaDataRepository.loadPersistentTypes(MetaDataRepository.java: 
1241)
      [java] 	at  
org 
.apache 
.openjpa 
.jdbc 
.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java: 
148)
      [java] 	at  
org 
.apache 
.openjpa 
.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:130)
      [java] 	at  
org 
.apache 
.openjpa 
.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:188)
      [java] 	at  
org 
.apache 
.openjpa 
.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java: 
142)
      [java] 	at  
org 
.apache 
.openjpa 
.persistence 
.EntityManagerFactoryImpl 
.createEntityManager(EntityManagerFactoryImpl.java:192)
      [java] 	at  
org 
.apache 
.openjpa 
.persistence 
.EntityManagerFactoryImpl 
.createEntityManager(EntityManagerFactoryImpl.java:145)
      [java] 	at  
org 
.apache 
.openjpa 
.persistence 
.EntityManagerFactoryImpl 
.createEntityManager(EntityManagerFactoryImpl.java:56)
      [java] 	at reversemapping.Main.main(Main.java:50)
      [java] Caused by: java.io.IOException: org.xml.sax.SAXException:  
file:/Users/mprudhom/Downloads/apache-openjpa-1.0.2/examples/ 
reversemapping/orm.xml [Location: Line: 2, C: 159]:  
org.xml.sax.SAXParseException: The prefix "xsi" for attribute  
"xsi:schemaLocation" associated with an element type "entity-mappings"  
is not bound.
      [java] 	at  
org 
.apache 
.openjpa 
.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:379)
      [java] 	at  
org 
.apache 
.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:318)
      [java] 	at  
org 
.apache 
.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:295)
      [java] 	at  
org 
.apache 
.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:268)
      [java] 	at  
org 
.apache 
.openjpa 
.persistence 
.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java: 
247)
      [java] 	... 32 more
      [java] Caused by: org.xml.sax.SAXException: file:/Users/mprudhom/ 
Downloads/apache-openjpa-1.0.2/examples/reversemapping/orm.xml  
[Location: Line: 2, C: 159]: org.xml.sax.SAXParseException: The prefix  
"xsi" for attribute "xsi:schemaLocation" associated with an element  
type "entity-mappings" is not bound.
      [java] 	at  
org 
.apache 
.openjpa 
.lib.meta.XMLMetaDataParser.getException(XMLMetaDataParser.java:656)
      [java] 	at  
org 
.apache 
.openjpa.lib.meta.XMLMetaDataParser.fatalError(XMLMetaDataParser.java: 
421)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java: 
218)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal 
.impl 
.XMLNSDocumentScannerImpl 
.scanStartElement(XMLNSDocumentScannerImpl.java:279)
      [java] 	at  
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl 
$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java: 
779)
      [java] 	at  
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl 
$ 
FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java: 
1794)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal 
.impl 
.XMLDocumentFragmentScannerImpl 
.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      [java] 	at  
com 
.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 
148)
      [java] 	at  
com 
.sun 
.org 
.apache 
.xerces 
.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      [java] 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
      [java] 	at  
org 
.apache 
.openjpa 
.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:376)
      [java] 	... 36 more



I don't think I've ever seen this error before, and all the other  
examples run fine. Does anyone else see this? I wonder if it might be  
dependent on the XML parser in my JVM ("Java(TM) 2 Runtime  
Environment, Standard Edition (build 1.5.0_13-b05-237)").

Other than that one example, everything else looks fine to me at first  
glance, but I'll vote +0 until we get some more feedback on the error.


On Feb 13, 2008, at 9:11 AM, Patrick Linskey wrote:

> OpenJPA Developers-
>
> A candidate build for OpenJPA 1.0.2 is available at:
>
>   http://openjpa.apache.org/builds/1.0.2/downloads/
>
> Please review these artifacts and signatures, and vote whether we
> should release them as Apache OpenJPA version 1.0.2. Release notes
> for this release are included in the artifact, or can be browsed at:
>
>   http://svn.apache.org/repos/asf/openjpa/branches/1.0.2/openjpa-project/RELEASE-NOTES.html
>
> The Apache Release Audit Tool has been run on the release, and no
> missing licenses were found with the exceptions listed in the
> exclusion section of the "rat-maven-plugin" configuration in http://
> svn.apache.org/repos/asf/openjpa/branches/1.0.2/pom.xml .
>
> In accordance with http://www.apache.org/foundation/
> voting.html#ReleaseVotes , three +1 votes will be sufficient to
> approve the release for publication. While it is not possible to veto
> a release, the vote will remain open for the standard 3 day period
> (ending at 9:00am Pacific on Monday 2/18) in order to allow people to
> thoroughly review the release and perform whatever additional testing
> they desire and raise any concerns or objections.
>
> A vote of "+1" means you approve of the release for publication, "-1"
> means you do not approve, and a "+0" or "-0" means you are neutral.
>
> Thanks in advance for your diligence in helping to ensure that the
> quality of the OpenJPA 1.0.2 release reflects the high quality of all
> of its contributors!
>
> -Patrick
>
> -- 
> Patrick Linskey
> 202 669 5907


Mime
View raw message