Register Schema Errors

Hi again. I'm the one that postted the last topis "Any way to show parse errors". Obviouslly I have got mixed up myself. The problem is not parsing a Schema (Schemas are not parsed but are validated), the problem is the error messages that I get when I try to reguister the Schema. Those messages are very abstract and doesn't help me much to solve the Schema problems that doesn't let me to register it.
So, is there any way to see more specific messages??
I really yor help guys.
Thanks on advance.

No problem on posting the Schema, but it is not the matter, what I really need is a more general answer. What I really want to know is not what kind of errors are in this Schema acording to Oracle, what I want to know if there are any way to get more detailed mesages from Oracle about the correct of a Schema to register

Similar Messages

  • [JR_Registration;6iR4.2;8.1.7.3.0] Various error messages trying to register schemas

    Hello !
    I've a problem to register schemas. These schemas depend on each others (i.e. Schema #2 references Schema #1 with a foreign key ).
    The designer's repository (6i R4.2) is on a 8.1.7.3.0 Database.
    I have three question using jr_registration.generate (up to now :-> )
    Question #1:
    ============
    Starting with the base schema (no FK) SQL*Plus comes up with
    ORA-00001 unique constraint (<repos_owner>.RM_LINK_PROPERTIES_PK) violated
    ( all error messages continue the same:
    ORA-06512: in "COLANI.JR_REG", Zeile 903
    ORA-06512: in "COLANI.JR_REGISTRATION", Zeile 112
    ORA-06512: in Zeile 2
    logfile information:
    06-Mai-2002 17:23:36 : Creating Link Properties for Table : <the table_name>
    link property (M end) : new id : <number #1>
    link property (1 end) : new id : <number #2>
    link property (1 end) : new name : <name #1>
    link property (M end) : new id : <number #3>
    link property (1 end) : new id : <number #4>
    link property (1 end) : new name : <name #2>
    link property (M end) : new id : <number #1, allready used !!!>
    ------------------------------------------------------- end of logfile ---
    How do I solve this ?
    Question #2
    ===========
    ORA-01403 no data found
    logfile information:
    Failed to query element type mapped to PK table : <primary key>
    ------------------------------------------------------- end of logfile ---
    This primary key is contained in an other (therefore not now existing) schema.
    Seems acceptable :->
    The <primary key> just reads <constraint_name> and not <schema_owner>.<constraint_name>.
    This leaves me with the question:
    Is it any possible to generate/register the required schema dependencies ?
    Question #3
    ===========
    I tried another schema referencing a not now existing schema (which doesn't seem to be the problem here).
    Although the table did not contain any data:
    ORA-01401 inserted value too large for column
    logfile information:
    Setting schema irid : <irid> , ivid : 1
    06-Mai-2002 17:46:11 : Table : <table_name>
    06-Mai-2002 17:46:11 : Table : <table_name>
    ------------------------------------------------------- end of logfile ---
    The <DATA_TYPE>s for the last table reads
    DATE
    NUMBER (10,0)
    NUMBER
    various VARCHAR2 (1-80)
    The <DATA_TYPE>s for the possible next table ( according to <DBA_TABLES> ordered by <Table_name> ):
    DATE
    NUMBER
    various VARCHAR2 (1-80)
    What could be the reason ?
    Thanks for your help

    I found an answer on Metalink for question 1:
    Issue logged as <Bug:1391592> Cannot Register a Table with the Same Column in more than one Foreign Key

  • XDB is invalid post registering schema

    Hi all, We have an Windows 2008R2 Oracle 11g 11.2.0.3 database. I am trying to register xml schema but we now have a problem. Please advice how to resolve this:
    Regards, Nick
    Warning: XDB now invalid, invalid objects found:
    object_name                                 object_type
    XDPvR/1dI8T7Sgbi6W3+hdRw==                   XML SCHEMA
    XDpjNsY48sTPS2U0FTcntpeA==                   XML SCHEMA
    XDc47y7s7IRAiROOzbxAxxHw==                   XML SCHEMA
    XDSKZf8PoBQYOsi3xhlK/eIQ==                   XML SCHEMA
    XDgWRTQYoXReCeOSe0Pdx9iw==                   XML SCHEMA
    XDwNX9aokgQEKPpaPog31zoA==                   XML SCHEMA
    PL/SQL procedure successfully completed.
    SQL> select schema_url from dba_xml_schemas, dba_objects
      2  where int_objname = object_name and status = 'INVALID';
    SCHEMA_URL
    OSDNFFeatures.xsd
    OSImageMetadata.xsd
    OSOrthoMetadata.xsd
    OSQueryResult.xsd
    OSIMIngestionMetadata.xsd
    OSIMProductMetadata.xsd
    6 rows selected.
    Try to delete the registered schema but fails:
    SQL> BEGIN
      2  DBMS_XMLSchema.deleteSchema(
      3  schemaurl=>'/XML_SCHEMA/EGISPROD/OSDNFFeatures.xsd',
      4  delete_option=>DBMS_XMLSchema.Delete_Cascade_Force);
      5  END;
      6  /
    BEGIN
    ERROR at line 1:
    ORA-31000: Resource '/XML_SCHEMA/EGISPROD/OSDNFFeatures.xsd' is not an XDB
    schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 122
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 106
    ORA-06512: at line 2
    Even doing by this way:
    SQL> exec DBMS_XMLSCHEMA.PURGESCHEMA('3EF47FD5D23C4FB4A06E2E96DFE85D47');
    BEGIN DBMS_XMLSCHEMA.PURGESCHEMA('3EF47FD5D23C4FB4A06E2E96DFE85D47'); END;
    ERROR at line 1:
    ORA-31050: Access denied
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 109
    ORA-06512: at line 1

    <body><p>thanks guys, i was eventually able to delete the xml schema using the below commnand
    begin
    dbms_xmlschema.deleteschema('OSDNFFeatures.xsd',dbms_xmlschema.DELETE_CASCADE);
    end;
    on a sepertate note, i use the below sql to create a new resource for a XSD file but how does one do for a DTD file?
    Adding a XSD
    declare
    v_result boolean;
    v_schema xmltype := xmltype(bfilename('XML_VALIDATION', 'feature.xsd'), nls_charset_id('UTF8'));
    begin
    v_result := dbms_xdb.CreateResource('/XML_SCHEMA/EGISPROD/feature.xsd', v_schema);
    end;
    Adding a DTD file:
    SQL> declare
      2  v_result boolean;
      3  v_schema xmltype := xmltype(bfilename('XML_VALIDATION', 'XMLSchema.dtd'), n
    ls_charset_id('UTF8'));
      4  begin
      5  v_result := dbms_xdb.CreateResource('/XML_SCHEMA/EGISPROD/XMLSchema.dtd', v
    _schema);
      6  end;
      7  /
    declare
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00247: invalid Document Type Declaration (DTD)
    Error at line 18
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 3

  • Register Schema: ORA-20001: enable_hierarchy_internal

    Hi,
    I'm trying to register an XML Schema and get the following errors:
    16:45:28 SQL> BEGIN
    16:45:28 2      DBMS_XMLSCHEMA.registerSchema(
    16:45:28 3      SCHEMAURL     => 'http://www.sample.net/phoenix/xsd/data_exchange.xsd',
    16:45:28 4      SCHEMADOC     => XDBURIType('/phoenix/DataSupplier20080528-2.xsd').getCLOB(),
    16:45:28 5      GENTABLES     => TRUE
    16:45:28 6      );
    16:45:28 7      COMMIT;
    16:45:28 8 END;
    16:45:28 9 /
    BEGIN
    ERROR at line 1:
    ORA-20001: enable_hierarchy_internal
    ORA-06512: at "XDB.DBMS_XDBZ", line 28
    ORA-06512: at line 1
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 31
    ORA-06512: at line 2
    18:13:31 SQL>
    Database Version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 (Linux)
    In my previous attempts I've seen that the types and tables will be created and removed after the error occurred...
    Does anybody know what the problem is?
    TIA
    Andreas

    Hi Mr.Mdrake,
    I am working on XML Type Views, and I did created an XML Type view and it did worked well. Later on there is a change of envirnoment for the development team. So, I tried to deploy my XML Type View scripts in the new environment. While registering the Schema(locally) to the repository I encountered the fallowing error
    Error report:
    ORA-20001: enable_hierarchy_internal
    ORA-06512: at "XDB.DBMS_XDBZ", line 28
    ORA-06512: at line 1
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
    ORA-06512: at line 2
    I have gone through your threads realted to this kind of error and verified wethere I have previleges or not ? Well, there seems to be no problem regarding that(looks like I have all the previlages).
    And one more question I would like to ask is do I have to register the schema globally or locally? The script that worked for me in the previous environment I did register the schema globally using the default.
    Here, even if I try to register the schema locally or globally I am facing the error. The error i am getting while i resiter the schema globally is
    Error report:
    ORA-31086: insufficient privileges to register schema "http://www.oracle.com/MBR_TYPE.xsd"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
    ORA-06512: at line 2
    31086. 00000 - "insufficient privileges to register schema \"%s\""
    *Cause:    An attempt was made to register a schema without
    sufficient privileges.
    *Action:   Make sure that the user has sufficient privileges to register
    the schema.
    The suggestion that you have
    "1. Registering a Schema as SYS.
    This is not supported, please don't do it." is that mean schema should be registered globally??
    Pardon my ignorance if I say anything which is meaning less.
    Thanks in advance

  • Issue in Store XML into Schema generated tables and Validation XML against registered schema.

    Hello friends,
    I am facing some problem when store xml into generated tables from registered schema.
    This is my Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.abc.inf.in/test" targetNamespace="http://www.abc.inf.in/test" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:include schemaLocation="abc.xsd"/>
      <xs:element name="project" type="student">
      <xs:annotation>
      <xs:documentation> This is a Documentation</xs:documentation>
      </xs:annotation>
      </xs:element>
    </xs:schema>
    -- This is my xml document
    <project versao="2.00" xmlns="http://www.abc.inf.in/test">
      <test xmlns="http://www.abc.inf.in/test">
      <intest version="2.00" Id="testabc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  >
      <ide>
      <cUF>35</cUF>
      <cNF>59386422</cNF>
      <natOp>this is post</natOp>
      <indPag>1</indPag>
      <mod>55</mod>
      <serie>1</serie>
      </ide>............
    Not giving full because it's too long.
    1. I Successfully registered Schema into database
    2. Then i generate table from registered Schema
    2. In my java code i validated XML document against Schema and it's successfully validate.
    3. But when i stored this XML into this generated table it's give me error
       Like :
    INSERT INTO XMLTABLE
    VALUES
    (XMLTYPE(bfilename('MYDIR','testabc.xml'),NLS_CHARSET_ID('AL32UTF8')))
    Error report:
    SQL Error: ORA-31061: XDB error: XML event error
    ORA-19202: Error occurred in XML processing
    LSX-00333: literal "94032000" is not valid with respect to the pattern
    And i have to store this xml into this tables so what i have to do ?

    Thanks for your reply odie_63.
    I got this my error solution. My XML document is not well structured based on my registered XML Schema.
    Means In My XML Document there are some invalid value and that not match my schema pattern so it's gives this error
    SQL Error: ORA-31061: XDB error: XML event error
    ORA-19202: Error occurred in XML processing
    LSX-00333: literal "94032000" is not valid with respect to the pattern
    For Solution we have two ways
    1. I have changed this literal "94032000" value in my xml file then save it.
    2.
    - We have to delete this schema then
    - we have to change Schema pattern for particular element
    like :--
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="preserve"/>
      <xs:pattern value="[0-9]{3}"/>
    </xs:restriction>
    - then store xml into database it works..
    Thanks.

  • Register Schema / privilege

    Hi,
    I have read through the topic on registerschema but I'm still having a pb.
    I have a stored procedure which register a schema but if I'm not logged as sys/***@sid as sysdba when I exec the proc, I get an error insufficient privilege.
    The test user I use has all priviliges/roles : XDBAdmin, DBA, connect, resource, ...
    This user can create, delete anything in the repository without any pb, the only thing refused is register schema.
    Any clue?
    Vlad

    Here is one example of schema :
    <?xml version = '1.0'?>
    <xsd:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
    <xsd:element name="ROWSET" xdb:defaultTable="XML_GENERATED_CONGE" xdb:global="false">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ROW" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ID_CONGE" type="xsd:long" minOccurs="0"/>
    <xsd:element name="ID_CHEMINOT" type="xsd:long" minOccurs="0"/>
    <xsd:element name="DATE_DEBUT" type="xsd:string" minOccurs="0"/>
    <xsd:element name="DATE_FIN" type="xsd:string" minOccurs="0"/>
    <xsd:element name="ACCORD" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="num" type="xsd:integer"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I hava added xdb:global="false" but it does not change the error:ORA-01031: insufficient privileges

  • Org.xml.sax.SAXException: Error:General Schema Error

    I am getting the error below. Any clues/workarounds? I am
    using WL 6.1.
    Thanks in advance,
    Eva
    The following files are below:
    Validate.java
    BMDefaultHandler.java
    validate.xml
    validate.xsd
    org.xml.sax.SAXException: Error:General Schema Error: Grammar with uri:http://schemas.xmlsoap.org/soap/envelope/
    , can not be
    found; schema namespace maybe wrong:
    Xerces supports schemas from the "http://www.w3.org/2001/XMLSchema" namespace
    or
    the instance document's namespace may not match the targetNamespace of the schema.
    at
    com.bluemartini.xml.BMDefaultHandler.error(BMDefaultHandler.java:32)
    at
    org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249)
    at
    org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLEr
    ror(XMLValidator.java:1821)
    at
    org.apache.xerces.validators.common.XMLValidator.validateElementAndAttr
    ibutes(XMLValidator.java:3232)
    at
    org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa
    lidator.java:1229)
    at
    org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
    canner.java:1806)
    at
    org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
    ch(XMLDocumentScanner.java:949)
    at
    org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
    nner.java:381)
    at
    org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at
    org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
    va:195)
    at
    javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:191)
    at com.bluemartini.test.Validate.main(Validate.java:32)
    ===Validate.java
    package com.bluemartini.test;
    import java.io.*;
    import org.w3c.dom.*;
    import com.bluemartini.xml.*;
    // JAXP imports
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    * Sample test case.
    * Eva Flora
    public class Validate {
    public static void main(String[] argv) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    factory.setAttribute("http://xml.org/sax/features/validation", Boolean.TRUE);
    factory.setAttribute("http://apache.org/xml/features/validation/schema",
    Boolean.TRUE);
    DocumentBuilder builder = factory.newDocumentBuilder();
    BMDefaultHandler bmErrorHandler = new BMDefaultHandler();
    builder.setErrorHandler(bmErrorHandler);
    File temp = new File("validate.xml");
    Document doc = builder.parse(temp);
    } catch (Exception e) {
    e.printStackTrace();
    ===BMDefaultHandler.java
    package com.bluemartini.xml;
    import com.bluemartini.dna.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.*;
    public class BMDefaultHandler extends
    DefaultHandler
    public BMDefaultHandler()
    public void warning(SAXParseException spe)
    throws SAXException
    System.out.println("Warning: " + spe.getMessage());
    public void error(SAXParseException spe)
    throws SAXException
    throw new SAXException("Error:" + spe.getMessage());
    public void fatalError(SAXParseException spe)
    throws SAXException
    throw new SAXException("Fatal Error: " + spe.getMessage());
    ===validate.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <soapns:Envelope xmlns:soapns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:test="http://www.test.com"
    xsi:noNamespaceSchemaLocation="validate.xsd">
         <soapns:Header/>
         <soapns:Body>
    <test:GWSMapRequestMessage>
              </test:GWSMapRequestMessage>
         </soapns:Body>
    </soapns:Envelope>
    ===validate.xsd
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema">
    <element name="GWSMapRequestMessage" type="TestType"/>
    <complexType name="TestType">
    </complexType>
    </schema>

    I am getting the error below. Any clues/workarounds? I am
    using WL 6.1.
    Thanks in advance,
    Eva
    The following files are below:
    Validate.java
    BMDefaultHandler.java
    validate.xml
    validate.xsd
    org.xml.sax.SAXException: Error:General Schema Error: Grammar with uri:http://schemas.xmlsoap.org/soap/envelope/
    , can not be
    found; schema namespace maybe wrong:
    Xerces supports schemas from the "http://www.w3.org/2001/XMLSchema" namespace
    or
    the instance document's namespace may not match the targetNamespace of the schema.
    at
    com.bluemartini.xml.BMDefaultHandler.error(BMDefaultHandler.java:32)
    at
    org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249)
    at
    org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLEr
    ror(XMLValidator.java:1821)
    at
    org.apache.xerces.validators.common.XMLValidator.validateElementAndAttr
    ibutes(XMLValidator.java:3232)
    at
    org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa
    lidator.java:1229)
    at
    org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
    canner.java:1806)
    at
    org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
    ch(XMLDocumentScanner.java:949)
    at
    org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
    nner.java:381)
    at
    org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at
    org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
    va:195)
    at
    javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:191)
    at com.bluemartini.test.Validate.main(Validate.java:32)
    ===Validate.java
    package com.bluemartini.test;
    import java.io.*;
    import org.w3c.dom.*;
    import com.bluemartini.xml.*;
    // JAXP imports
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    * Sample test case.
    * Eva Flora
    public class Validate {
    public static void main(String[] argv) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    factory.setAttribute("http://xml.org/sax/features/validation", Boolean.TRUE);
    factory.setAttribute("http://apache.org/xml/features/validation/schema",
    Boolean.TRUE);
    DocumentBuilder builder = factory.newDocumentBuilder();
    BMDefaultHandler bmErrorHandler = new BMDefaultHandler();
    builder.setErrorHandler(bmErrorHandler);
    File temp = new File("validate.xml");
    Document doc = builder.parse(temp);
    } catch (Exception e) {
    e.printStackTrace();
    ===BMDefaultHandler.java
    package com.bluemartini.xml;
    import com.bluemartini.dna.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.*;
    public class BMDefaultHandler extends
    DefaultHandler
    public BMDefaultHandler()
    public void warning(SAXParseException spe)
    throws SAXException
    System.out.println("Warning: " + spe.getMessage());
    public void error(SAXParseException spe)
    throws SAXException
    throw new SAXException("Error:" + spe.getMessage());
    public void fatalError(SAXParseException spe)
    throws SAXException
    throw new SAXException("Fatal Error: " + spe.getMessage());
    ===validate.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <soapns:Envelope xmlns:soapns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:test="http://www.test.com"
    xsi:noNamespaceSchemaLocation="validate.xsd">
         <soapns:Header/>
         <soapns:Body>
    <test:GWSMapRequestMessage>
              </test:GWSMapRequestMessage>
         </soapns:Body>
    </soapns:Envelope>
    ===validate.xsd
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema">
    <element name="GWSMapRequestMessage" type="TestType"/>
    <complexType name="TestType">
    </complexType>
    </schema>

  • Org.xml.sax.SAXException: Error:General Schema Error: Grammar

    I am getting the error below. Any clues/workarounds? I am
    using WL 6.1.
    Thanks in advance,
    Eva
    The following files are below:
    Validate.java
    BMDefaultHandler.java
    validate.xml
    validate.xsd
    org.xml.sax.SAXException: Error:General Schema Error: Grammar with uri:http://schemas.xmlsoap.org/soap/envelope/
    , can not be
    found; schema namespace maybe wrong:
    Xerces supports schemas from the "http://www.w3.org/2001/XMLSchema" namespace
    or
    the instance document's namespace may not match the targetNamespace of the schema.
    at
    com.bluemartini.xml.BMDefaultHandler.error(BMDefaultHandler.java:32)
    at
    org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249)
    at
    org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLEr
    ror(XMLValidator.java:1821)
    at
    org.apache.xerces.validators.common.XMLValidator.validateElementAndAttr
    ibutes(XMLValidator.java:3232)
    at
    org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa
    lidator.java:1229)
    at
    org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
    canner.java:1806)
    at
    org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
    ch(XMLDocumentScanner.java:949)
    at
    org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
    nner.java:381)
    at
    org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at
    org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
    va:195)
    at
    javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:191)
    at com.bluemartini.test.Validate.main(Validate.java:32)
    ===Validate.java
    package com.bluemartini.test;
    import java.io.*;
    import org.w3c.dom.*;
    import com.bluemartini.xml.*;
    // JAXP imports
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    * Sample test case.
    * Eva Flora
    public class Validate {
    public static void main(String[] argv) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    factory.setAttribute("http://xml.org/sax/features/validation", Boolean.TRUE);
    factory.setAttribute("http://apache.org/xml/features/validation/schema",
    Boolean.TRUE);
    DocumentBuilder builder = factory.newDocumentBuilder();
    BMDefaultHandler bmErrorHandler = new BMDefaultHandler();
    builder.setErrorHandler(bmErrorHandler);
    File temp = new File("validate.xml");
    Document doc = builder.parse(temp);
    } catch (Exception e) {
    e.printStackTrace();
    ===BMDefaultHandler.java
    package com.bluemartini.xml;
    import com.bluemartini.dna.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.*;
    public class BMDefaultHandler extends
    DefaultHandler
    public BMDefaultHandler()
    public void warning(SAXParseException spe)
    throws SAXException
    System.out.println("Warning: " + spe.getMessage());
    public void error(SAXParseException spe)
    throws SAXException
    throw new SAXException("Error:" + spe.getMessage());
    public void fatalError(SAXParseException spe)
    throws SAXException
    throw new SAXException("Fatal Error: " + spe.getMessage());
    ===validate.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <soapns:Envelope xmlns:soapns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:test="http://www.test.com"
    xsi:noNamespaceSchemaLocation="validate.xsd">
         <soapns:Header/>
         <soapns:Body>
    <test:GWSMapRequestMessage>
              </test:GWSMapRequestMessage>
         </soapns:Body>
    </soapns:Envelope>
    ===validate.xsd
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema">
    <element name="GWSMapRequestMessage" type="TestType"/>
    <complexType name="TestType">
    </complexType>
    </schema>

    I guess the problem is due to the schema namespace
    you are using.
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
    pls try with :
    "http://www.w3.org/2001/XMLSchema"
    regards,
    -manoj
    "Eva Flora" <[email protected]> wrote in message
    news:[email protected]...
    I am getting the error below. Any clues/workarounds? I am
    using WL 6.1.
    Thanks in advance,
    Eva
    The following files are below:
    Validate.java
    BMDefaultHandler.java
    validate.xml
    validate.xsd
    org.xml.sax.SAXException: Error:General Schema Error: Grammar with
    uri:http://schemas.xmlsoap.org/soap/envelope/
    , can not be
    found; schema namespace maybe wrong:
    Xerces supports schemas from the "http://www.w3.org/2001/XMLSchema"
    namespace
    or
    the instance document's namespace may not match the targetNamespace of the
    schema.
    at
    com.bluemartini.xml.BMDefaultHandler.error(BMDefaultHandler.java:32)
    at
    org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249)
    at
    org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLEr
    ror(XMLValidator.java:1821)
    at
    org.apache.xerces.validators.common.XMLValidator.validateElementAndAttr
    ibutes(XMLValidator.java:3232)
    at
    org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa
    lidator.java:1229)
    at
    org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
    canner.java:1806)
    at
    org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
    ch(XMLDocumentScanner.java:949)
    at
    org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
    nner.java:381)
    at
    org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at
    org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
    va:195)
    at
    javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:191)
    at com.bluemartini.test.Validate.main(Validate.java:32)
    ===Validate.java
    package com.bluemartini.test;
    import java.io.*;
    import org.w3c.dom.*;
    import com.bluemartini.xml.*;
    // JAXP imports
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    * Sample test case.
    * Eva Flora
    public class Validate {
    public static void main(String[] argv) {
    try {
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    factory.setAttribute("http://xml.org/sax/features/validation",
    Boolean.TRUE);
    factory.setAttribute("http://apache.org/xml/features/validation/schema",
    Boolean.TRUE);
    DocumentBuilder builder = factory.newDocumentBuilder();
    BMDefaultHandler bmErrorHandler = new BMDefaultHandler();
    builder.setErrorHandler(bmErrorHandler);
    File temp = new File("validate.xml");
    Document doc = builder.parse(temp);
    } catch (Exception e) {
    e.printStackTrace();
    ===BMDefaultHandler.java
    package com.bluemartini.xml;
    import com.bluemartini.dna.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.*;
    public class BMDefaultHandler extends
    DefaultHandler
    public BMDefaultHandler()
    public void warning(SAXParseException spe)
    throws SAXException
    System.out.println("Warning: " + spe.getMessage());
    public void error(SAXParseException spe)
    throws SAXException
    throw new SAXException("Error:" + spe.getMessage());
    public void fatalError(SAXParseException spe)
    throws SAXException
    throw new SAXException("Fatal Error: " + spe.getMessage());
    ===validate.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <soapns:Envelope xmlns:soapns="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
    xmlns:test="http://www.test.com"
    xsi:noNamespaceSchemaLocation="validate.xsd">
    <soapns:Header/>
    <soapns:Body>
    <test:GWSMapRequestMessage>
    </test:GWSMapRequestMessage>
    </soapns:Body>
    </soapns:Envelope>
    ===validate.xsd
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema">
    <element name="GWSMapRequestMessage" type="TestType"/>
    <complexType name="TestType">
    </complexType>
    </schema>
    [att1.html]

  • Ctxsys.context index on registered schema xmltype column

    9iR2
    Is it possible to create a text index (indextype is ctxsys.context) on a schema registered xmltype column?
    I tried it, the index creation works fine.
    After the first insert statement the Oracle process seems to hang. (CPU 100%, increasing memory consumption)

    Yes, I previously entered some data.
    Test case:
    1. register schema
    begin
    DBMS_XMLSCHEMA.REGISTERSCHEMA('http://localhost/JobPositionSeeker-1_1.xsd',
    getDocument('JobPositionSeeker-1_1.xsd'), TRUE, TRUE, FALSE, FALSE
    end;
    2. create table
    CREATE TABLE application_xml of XMLType
    XMLSCHEMA "http://localhost/JobPositionSeeker-1_1.xsd" ELEMENT "JobPositionSeeker"
    3. entered some data
    4. created the index
    create index applicant on application_xml ( SYS_NC_ROWINFO$)
    indextype is ctxsys.context
    5. select using index
    select value(a).getClobVal() from application_xml a
    where contains( value(a),'%ai% INPATH(//PersonalData/PersonName/FamilyName)')>0
    6. insert another record
    -> crash

  • Warning: skgmdetach - Unable to register unmap, error 4210

    Can anyone infer from the alert log message found in production database. If I have connect as normal user the database hangs. Find the alert log message below
    ksvcreate: Process(q001) creation failed
    Tue Apr 03 21:42:07 2007
    ksvcreate: Process(q001) creation failed
    Wed Apr 04 00:01:05 2007
    Thread 1 advanced to log sequence 3812
    Current log# 2 seq# 3812 mem# 0: C:\db1\LOG\REDO02.LOG
    Wed Apr 04 00:25:17 2007
    Warning: skgmdetach - Unable to register unmap, error 4210
    Wed Apr 04 01:29:47 2007
    Warning: skgmdetach - Unable to register unmap, error 4210
    Wed Apr 04 02:20:45 2007
    Thread 1 advanced to log sequence 3813
    Current log# 3 seq# 3813 mem# 0: C:\db1\LOG\REDO03.LOG
    Wed Apr 04 02:29:44 2007
    Warning: skgmdetach - Unable to register unmap, error 4210
    Wed Apr 04 02:35:29 2007
    Warning: skgmdetach - Unable to register unmap, error 4210
    Wed Apr 04 02:55:28 2007
    Warning: skgmdetach - Unable to register unmap, error 4210
    Wed Apr 04 08:52:07 2007
    Warning: skgmdetach - Unable to register unmap, error 4210
    Wed Apr 04 10:08:46 2007
    Thread 1 advanced to log sequence 3814
    Current log# 4 seq# 3814 mem# 0: C:\db1\LOG\REDO04.LOG

    Joshi,
    Check SAP Note 1289691 - ORA-610: INTERNAL ERROR CODE if not enough resources
    Metalink:-
    https://metalink.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocTitle=%3Cb%3EORA-00610%3C/b%3E%20AND%20&quot;unable%20to%20spawn%20jobq%20slave%20process%20&quot;%20IN%20THE%20ALERT%20LOG.&viewingMode=1143&bmDocID=416244.1&from=BOOKMARK&bmDocType=PROBLEM&bmDocDsrc=KB))
    https://metalink.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocTitle=Process%20J000%20died,%20kkjcre1p:%20unable%20to%20spawn%20jobq%20slave%20process&viewingMode=1143&bmDocID=833613.1&from=BOOKMARK&bmDocType=PROBLEM&bmDocDsrc=KB))
    Check you DB parameter setting according to SAP Note 830576 - Parameter recommendations for Oracle 10g
    SAP Note 1171650 -Automated Oracle DB parameter check
    Also try by restarting server once.
    Hope this helps
    Thanks
    Sushil

  • Registered schema lost one byte of Chinese character at certain position

    Hello all,
    I registered a schema as below. When viewing the registered schema in the Enterprise Manager, I found a byte was lost for the Chinese character at the position of byte 4200 ( or 0x1068 ).
    before registration:
    22 B2 FA C6 B7 CA FD C1 BF B5 A5 CE BB 22 20 ; "产品数量单位"
    after registration:
    22 B2 FA C6 B7 FD C1 BF B5 A5 CE 3F 20 ; "产品康ノ?
    My database (9.2.0.1 & 9.2.0.3) has the character set of SIMPLIFIED CHINESE_CHINA.ZHS16GBK.
    Connect test/test;
    DECLARE
    samplexmldoc clob := '<?xml version="1.0" encoding="GB2312"?>
    <xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <xs:element name="产品目录">
              <xs:complexType xdb:SQLType="ST产品目录">
                   <xs:sequence>
                        <xs:element ref="第一种产品目录"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="第一种产品目录">
              <xs:complexType xdb:SQLType="ST第一种产品目录">
                   <xs:sequence>
                        <xs:element name="产品分类名称" type="xs:string"/>
                        <xs:element name="产品分类概况" type="xs:string"/>
                        <xs:element name="产品数量单位" type="xs:string"/>
                        <xs:element name="产品存放总分布图" type="xs:anyURI"/>
                        <xs:element name="产品样本" type="xs:anyURI"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    BEGIN
    dbms_xmlschema.registerSchema('http://www.antu.com.cn/metaxml.xsd',samplexmldoc,True,True,False,FALSE);
    End;
    Because we have to generate schemas by program, it's not acceptable to adjust the schema text manually.
    What shall I do? Thanks for any help.
    Chen Hui

    Please open a tar with your local support organization...
    Chen
    Please excuse me if I ask some basic questions here, I've no previous experience working with documents containing Chinese Character sets.
    I assume that if I look at your post with my Brower character set to simplifiedChinese.GB2312 I will see the schema document posted correctly..
    Can you test wether or not this problem occurs if the document is encoded in UTF8 and loaded into an AL32UTf8 database. Also, do you see , rather than GB2312. Also are the characters still missing if you view it from SQL*PLUS...

  • Register failk error in IE

    Hello,
    When the java plug-in is needed, I get a register failk error... then when I clode that alert, I get a Java Plug-In Fatal Error... which says "The Bridge was installed at <file location> but the class is not there. Modify the registry key to reflect the new bridge location.
    The key is HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in or change your CLASSPATH to include the new directory"
    is there any way to fix this? I need to be able to use the plugin version 1.4.2_08
    Thanks in advance for any suggestions

    This is going to sound really peculiar, but I was getting that same error and I stumbled across the fix by accident.
    I was using plugin version 1.4.2._10
    The error message was exactly the same.
    I was reconstructing a profile and was transferring the shortcuts back into favorites one at a time and one of the favorites was causing the error.
    take out the shortcut - no error
    put back the shortcut - error
    go figure.
    The shortcut was to an document database application on one of our servers.

  • Register failk error when invoking ActiveX control for a JavaBean from VB6

    J2RE v1.4.2_09
    Visual Basic 6.0 SP5/Visual C++ 6.0 SP5
    Windows 2000 SP4
    We have our existing production applications written using VB6 and VC++6. We are in the process of moving them incrementally to J2EE. Before everything is totally re-written in J2EE, we need to do something for interoperability between existing VB6/VC++6 and J2EE. ActiveX Bridge seems to be the solution we need, if only it works.
    Problem that I am facing....
    Register failk error when I try to insert a java bean activex control on a VB6.0 or VC++6.0 form or create an instance of the activex "Person.Bean.1" using CreateObject function, it throws the following error. I am able to create an instance of Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully though which means that the ActiveX control is registered properly and working.
    Error Message Box Title: asdas
    Error Message: register failk
    And then another error message pops up.
    Error Message Box Title: Java(TM) Plug-in Fatal Error
    Error Message: Cannot load class sun/plugin/JavaRunTime
    The Bridge was installed at <D:\PROGRA~1\Java\J2RE14~2.2_0> but the class is not there. Modify the registry key to reflect the new bridge location. The key is HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in or Change your CLASSPATH to include the new directory.
    I have this sample java bean class.
    a) Person.java
    import java.io.*;
    public class Person implements Serializable{
    private String fName,lName;
    public Person(){
    fName = new String();
    lName = new String();
    public void setFirstName(String firstName){
    fName = firstName;
    public void setLastName(String lastName){
    lName = lastName;
    public String getName(){
    return fName+" "+lName;
    b) person_manifest
    Name: Person.class
    Java-Bean: True
    Steps followed:
    call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
    set path=D:\j2sdk1.4.2_09\bin;%path%
    javac Person.java
    jar -cvfm Person.jar person_manifest Person.class
    mkdir "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin"
    D:\j2sdk1.4.2_09\bin\packager -out "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin" -reg Person.jar Person
    Person.dll file created under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin and Person.jar copied under d:\Program Files\Java\j2re1.4.2_09\axbridge\lib.
    I am able to create an instance of this Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully. But, when I try to insert the activex control on a VB6 or VC++6 form or create an instance of "Person.Bean.1" using CreateObject function, it throws the above mentioned errors.
    I checked the registry and it shows J2RE1.4.2_09 version properly under that key and the Person.dll file exists under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin. I also explicitly added the plugin.jar, person.jar to the classpath. Still it gives the error.
    Any ideas? Any fix or workaround for this problem? Thanks.

    Sometimes solutions are simpler than expose the problem.
    Did you add the dll to the project references?
    Sometimes also it is usefull to use the regsvr32 program to register the DLL.
    Pedro

  • How to set dom fidelity to false on an already registered schema

    How to set dom fidelity to false on an already registered schema
    Thanks
    Message was edited by:
    uraees

    I guess that you will have to annotate the schema via updating schema or inserting the "xdb annotation" to deactivate the DOM fidelity. Reasoning from the most difficult situation that objects (XMLType objects created via registering the schema) are linked to the schema, this is probably not a supported way to do it.
    Schema evolution is supported though, this would be the supported way to do it...
    Do you have more info (including the database version in use)?

  • Deleting Multiple Registered Schemas

    Does anyone have a script for deleting multiple registered schemas (500+)?

    How you get the URLs of the registered schemas?
    If all of them are stored in a table, you can write a PL/SQL procedure using DBMS_XMLSCHEMA package.

Maybe you are looking for

  • Excise Amount not capturing in MIRO

    Hi Excise amount is not being captured in MIRO. Case is that a GR has been reversed with 102 and then new GR was made but when user is trying to do Invoice Verification then he is not getting the MODVAT values there. Please suggest what shall we do.

  • Oracle ADF Calendar Component Customization

    Hi, I am starting my journey to learn ADF. I am using Oracle ADF Calendar component as read only calendar. We need to further customize the calender to incorporate CUD operations. I am using ADF BC @ business layer and which in turns talk to DB for C

  • Control break urgent

    difference between on change and at first. in which scenario which control break statement we have to use

  • Apple Bug Reporter won't let me sign in

    Don't know where else to post this. When I try to sign into the Apple Bug Reporter with my correct email address and password, it redirects to the same login page with no error message.

  • Can paging an html dataset be accomplished?

    I have created a standard Master/Detail HTML dataset that is working very nicely. However the client wants to be able to click arrows to advance to the next portfolio item. Here is an example of the page: http://www.studioabsolute.com/dev/websites2.p