Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338820 - with xmlparser, testValidateNoSchemaReference throws ValidationException
Summary: with xmlparser, testValidateNoSchemaReference throws ValidationException
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 10:19 EST by Praba Vijayaratnam CLA
Modified: 2022-06-09 10:25 EDT (History)
2 users (show)

See Also:


Attachments
Patch - phase 1 (2.21 KB, patch)
2011-03-07 14:36 EST, Rick Barkhouse CLA
no flags Details | Diff
Patch (1.57 KB, patch)
2012-05-01 13:41 EDT, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Praba Vijayaratnam CLA 2011-03-03 10:19:07 EST
Test Env:
Ant target: test-jaxb
Java Development Kit: jdk16
Ant parameters:
-Dxml.platform=org.eclipse.persistence.platform.xml.xdk.XDKPlatform
-Dxml.parser.jar.dir=/net/ottvm033.ca.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/extension.oracle.lib.external
-Dxml.parser.jar=xmlparserv2.jar

Following tests failed:
org.eclipse.persistence.testing.jaxb.xmlmarshaller.NoSchemaRefTestCases.testValidateNoSchemaReference 
------------------------
javax.xml.bind.ValidationException
- with linked exception:
[Exception [EclipseLink-25005] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred validating the object
Internal Exception: Exception [EclipseLink-27005] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.platform.xml.XMLPlatformException
Exception Description: An error occurred while validating the document.
Internal Exception: Exception [EclipseLink-25012] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred resolving the XML Schema.
Internal Exception: java.lang.NullPointerException]
at org.eclipse.persistence.jaxb.JAXBValidator.validate(JAXBValidator.java:77)
at org.eclipse.persistence.testing.jaxb.xmlmarshaller.NoSchemaRefTestCases.testValidateNoSchemaReference(NoSchemaRefTestCases.java:48)
Caused by: Exception [EclipseLink-25005] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred validating the object
Internal Exception: Exception [EclipseLink-27005] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.platform.xml.XMLPlatformException
Exception Description: An error occurred while validating the document.
Internal Exception: Exception [EclipseLink-25012] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred resolving the XML Schema.
Internal Exception: java.lang.NullPointerException
at org.eclipse.persistence.exceptions.XMLMarshalException.validateException(XMLMarshalException.java:103)
at org.eclipse.persistence.oxm.XMLValidator.validate(XMLValidator.java:101)
at org.eclipse.persistence.jaxb.JAXBValidator.validate(JAXBValidator.java:75)
Caused by: Exception [EclipseLink-27005] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.platform.xml.XMLPlatformException
Exception Description: An error occurred while validating the document.
Internal Exception: Exception [EclipseLink-25012] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred resolving the XML Schema.
Internal Exception: java.lang.NullPointerException
at org.eclipse.persistence.platform.xml.XMLPlatformException.xmlPlatformValidationException(XMLPlatformException.java:77)
at org.eclipse.persistence.platform.xml.xdk.XDKPlatform.validate(XDKPlatform.java:256)
at org.eclipse.persistence.oxm.XMLValidator.validate(XMLValidator.java:99)
Caused by: Exception [EclipseLink-25012] (Eclipse Persistence Services - 2.3.0.v20110303-r9068): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred resolving the XML Schema.
Internal Exception: java.lang.NullPointerException
at org.eclipse.persistence.exceptions.XMLMarshalException.errorResolvingXMLSchema(XMLMarshalException.java:152)
at org.eclipse.persistence.oxm.schema.XMLSchemaClassPathReference.getURL(XMLSchemaClassPathReference.java:47)
at org.eclipse.persistence.platform.xml.xdk.XDKPlatform.validate(XDKPlatform.java:252)
Caused by: java.lang.NullPointerException
at sun.misc.MetaIndex.mayContain(MetaIndex.java:225)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:747)
at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
at sun.misc.URLClassPath.getResource(URLClassPath.java:221)
at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1151)
at java.lang.ClassLoader.getResource(ClassLoader.java:1000)
at java.lang.ClassLoader.getResource(ClassLoader.java:998)
at java.lang.ClassLoader.getResource(ClassLoader.java:998)
at org.eclipse.persistence.oxm.schema.XMLSchemaClassPathReference.getURL(XMLSchemaClassPathReference.java:45)
Comment 1 Rick Barkhouse CLA 2011-03-07 14:36:52 EST
Created attachment 190591 [details]
Patch - phase 1
Comment 2 Rick Barkhouse CLA 2012-05-01 13:41:36 EDT
Created attachment 214877 [details]
Patch
Comment 3 Rick Barkhouse CLA 2012-05-01 14:45:58 EDT
Test case fixed and checked into trunk, reviewed by bdoughan
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:14:33 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:25:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink