Hi,
i have a problem with one of my oo java extensions using jre 1.6.
the extensions gets a xml string from a database, validates against
a schema and insert parts of the xml string into an oo writer document...
there is no problem if i use jre 1.5 instead or if i run the program *without*
oo (standalone) ... even jre 1.6 with oo 2.0.4 worked perfect ...
the code seems to crash at "Schema schema = factory.newSchema(schemaFile)".
here is the class:
public class XMLSchemaValidator {
private SchemaFactory factory = SchemaFactory
.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
private Node node = null;
private Reader schema = null;
public XMLSchemaValidator(Node doc, Reader schema) {
this.node = doc;
this.schema = schema;
}
public XMLSchemaValidator(Node doc, String schema, String encoding) {
this.node = doc;
this.schema = new XReader().getReaderFromFile(schema, encoding);
}
public synchronized void validate() throws SAXException, IOException {
if (node == null || schema == null)
return;
Source schemaFile = new StreamSource(schema);
crash-> Schema schema = factory.newSchema(schemaFile);
Validator validator = schema.newValidator();
validator.validate(new DOMSource(node));
}
}
my remote debugger generates the following error message and jumps to the
EventDispatchThread class ...
Thread AWT-EventQueue-0 Suspended(noSuch Method Error)
Event-DispatchThread.run() line 155
line 155 is empty :-) ...
/*
* @(#)EventDispatchThread.java 1.54 05/03/03
*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
[..]
void pumpEventsForHierarchy(Conditional cond, Component modalComponent) {
pumpEventsForHierarchy(ANY_EVENT, cond, modalComponent);
}
[155 -> empty line]
void pumpEvents(int id, Conditional cond) {
pumpEventsForHierarchy(id, cond, null);
}
[..]
here is my javasettings_Windows_x86.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled xsi:nil="true"/>
<userClassPath xsi:nil="true"/>
<vmParameters xsi:nil="false">
<param>-agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000,suspend=n</param>
<param>-Dcom.sun.management.jmxremote</param>
</vmParameters>
<jreLocations xsi:nil="true"/>
<javaInfo xsi:nil="false" vendorUpdate="2004-01-30" autoSelect="false">
<vendor>Sun Microsystems Inc.</vendor>
<location>file:///D:/Programme/Java/jdk1.6.0/jre</location>
<version>1.6.0</version>
<features>0</features>
<requirements>0</requirements>
<vendorData>660069006C0065003A002F002F002F0044003A002F00500072006F006700720061006D006D0065002F004A006100760061002F006A0064006B0031002E0036002E0030002F006A00720065002F00620069006E002F0063006C00690065006E0074002F006A0076006D002E0064006C006C00</vendorData>
</javaInfo>
</java>
any hints ?
Oliver
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]