Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Exception with 1.4.2_05 and not with 1.5
Exception with 1.4.2_05 and not with 1.5 [message #289970] Tue, 16 August 2005 03:48 Go to next message
Eclipse UserFriend
Originally posted by: vducloux.cosmosbay-vectis.com

Hi everybody, my eclipse plugin uses "xmlbean" to write into an xml file
in the workspace.

The problem is that I get the following exception with j2sdk1.4.02_05
and not with jre1.5.0_02 !!!!

And a search on gooogle gave no results.. anyone can help me please ?

org.eclipse.core.runtime.CoreException[-1]:
org.xml.sax.SAXNotRecognizedException: Property:
http://java.sun.com/xml/jaxp/properties/schemaLanguage
at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReade rImpl.java:272)
at
org.apache.crimson.jaxp.SAXParserImpl.setProperty(SAXParserI mpl.java:190)
at
fr.cosmosbay.mrs.selenium.generators.TestCaseGenerator.isVal ideVdf(TestCaseGenerator.java:226)
at
fr.cosmosbay.mrs.selenium.generators.TestCaseGenerator.gener ateFrom(TestCaseGenerator.java:93)
at
fr.cosmosbay.mrs.selenium.resources.MyBuildDeltaVisitor.visi t(MyBuildDeltaVisitor.java:135)
at
org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:68)
at
org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:77)
at
org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:77)
at
org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:77)
at
org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:49)
at
fr.cosmosbay.mrs.selenium.builders.seleniumBuilder.increment alBuild(seleniumBuilder.java:94)
at
fr.cosmosbay.mrs.selenium.builders.seleniumBuilder.build(sel eniumBuilder.java:62)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:570)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:159)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:251)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:204)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:231)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:234)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:270)
at
org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:299)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:155)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Re: Exception with 1.4.2_05 and not with 1.5 [message #289971 is a reply to message #289970] Tue, 16 August 2005 04:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

In Java 1.4 the 'built-in' xml parser is Crimson (in 1.5 it has been changed
to Xerces). From the exception I think that you use an xml schema for xml
validation and the Crimson parser does not support schemas.

You can either bundle a Xerces parser with your plugin and use that one for
processing xmls or use a dtd for validation purposes (I prefer the first
one). I do not know xmlbeans so I cannot give more specific advice.

HTH,
Regards,
Csaba

Ducloux Victor wrote:
> Hi everybody, my eclipse plugin uses "xmlbean" to write into an xml file
> in the workspace.
>
> The problem is that I get the following exception with j2sdk1.4.02_05
> and not with jre1.5.0_02 !!!!
>
> And a search on gooogle gave no results.. anyone can help me please ?
>
> org.eclipse.core.runtime.CoreException[-1]:
> org.xml.sax.SAXNotRecognizedException: Property:
> http://java.sun.com/xml/jaxp/properties/schemaLanguage
> at
>
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReade rImpl.java:272)
> at
> org.apache.crimson.jaxp.SAXParserImpl.setProperty(SAXParserI mpl.java:190)
> at
....
Re: Exception with 1.4.2_05 and not with 1.5 [message #289973 is a reply to message #289971] Tue, 16 August 2005 06:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vducloux.cosmosbay-vectis.com

Thanks, that's what I was thinking too...

I'll do the way you say, that means adding the jar, but in case one day
the plugin runs in a 1.5 environment won't there be a conflict between
the default xerces parser and the xerces parser I provide which can also
be of a different version ?

Horváth, Csaba wrote:
> Hi,
>
> In Java 1.4 the 'built-in' xml parser is Crimson (in 1.5 it has been changed
> to Xerces). From the exception I think that you use an xml schema for xml
> validation and the Crimson parser does not support schemas.
>
> You can either bundle a Xerces parser with your plugin and use that one for
> processing xmls or use a dtd for validation purposes (I prefer the first
> one). I do not know xmlbeans so I cannot give more specific advice.
>
> HTH,
> Regards,
> Csaba
>
> Ducloux Victor wrote:
>
>>Hi everybody, my eclipse plugin uses "xmlbean" to write into an xml file
>>in the workspace.
>>
>>The problem is that I get the following exception with j2sdk1.4.02_05
>>and not with jre1.5.0_02 !!!!
>>
>>And a search on gooogle gave no results.. anyone can help me please ?
>>
>>org.eclipse.core.runtime.CoreException[-1]:
>>org.xml.sax.SAXNotRecognizedException: Property:
>>http://java.sun.com/xml/jaxp/properties/schemaLanguage
>>at
>>
>
> org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReade rImpl.java:272)
>
>>at
>> org.apache.crimson.jaxp.SAXParserImpl.setProperty(SAXParserI mpl.java:190)
>>at
>
> ...
>
>
Re: Exception with 1.4.2_05 and not with 1.5 [message #289977 is a reply to message #289973] Tue, 16 August 2005 08:53 Go to previous message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

I don't use jdk 1.5 so I don't know that the two xerces conflict or not. On
page http://java.sun.com/j2se/1.4.2/docs/guide/standards/ sun specifies a
mechanism to provide newer version of an "endorsed standard library". I have
not tried it but - because sun wrote that 'officially' - it should work
(either specify the directory of xerces jar in the appropriate system
property or create the <java-home>/lib/endorsed directory and place the
xerces jar in it).

HTH,
Regards,
Csaba

Ducloux Victor wrote:
> Thanks, that's what I was thinking too...
>
> I'll do the way you say, that means adding the jar, but in case one day
> the plugin runs in a 1.5 environment won't there be a conflict between
> the default xerces parser and the xerces parser I provide which can also
> be of a different version ?
>
> Horv
Previous Topic:Creating MultiPageEditorPart inside a Text Editor
Next Topic:A question about Tree and TreeColumns
Goto Forum:
  


Current Time: Sun Jun 08 08:33:00 EDT 2025

Powered by FUDForum. Page generated in 0.08488 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top