Problem validating a DOMSource

Hi,
In de folowing javacode I'm trying to validate a DOMSource using the javax.xml.validation.Validator class.
public XsdValidator(Document bericht, String xsd, ErrorHandler errorHandler ) {
this.bericht = bericht;
this.xsd = xsd;
this.errorHandler = errorHandler;
public void validate() throws SAXException {
SchemaFactory factory = SchemaFactory.newInstance(SCHEMA_TYPE);
try {
Schema schema = factory.newSchema(new URL(this.xsd));
// Get a validator from the schema.
Validator validator = schema.newValidator();
validator.setErrorHandler(this.errorHandler);
// Parse the document you want to check.
Source source = new DOMSource(this.bericht);
// Check the document
validator.validate(source);
etc...
The validator doesn't seem to find any errors in de given org.w3c.dom.Document (this.bericht). When I validate the document against the XSD using XMLSPY (for instance), I can see the errors in de document. Am I doing something wrong?
Arjan Jorritsma

Hi,
Here is my own errorhandler implementation:
public class BerichtErrorHandler implements ErrorHandler {
  private ArrayList foutmeldingen = new ArrayList();   
  private void addFoutmelding(String code, String omschrijving) { 
    this.foutmeldingen.add(new Foutmelding(code,omschrijving));
  public void warning(SAXParseException ex) {
    this.addFoutmelding("warning",ex.getMessage());
  public void error(SAXParseException ex) { 
    this.addFoutmelding("error",ex.getMessage());
  public void fatalError(SAXParseException ex) throws SAXException {   
    this.addFoutmelding("fatal",ex.getMessage());
    throw ex;
public Foutmelding[] getFoutmeldingen() {
    Foutmelding[] err = new Foutmelding[this.foutmeldingen.size()];
    err = (Foutmelding[])this.foutmeldingen.toArray(err);
    return err;
}

Similar Messages

  • Problem validating XMl document

    Hi everyone,
    I'm facing a problem validating a XML document with Apache toolkit under windows XP and eclipse 3.0
    I generate a pair of public/private keys using the RSA algorithm. The keys are of arbitrary length, but satisfying RSA conditions, ie we can encrypt and decrypt.
    I can sign my XML document, but no way to validate it. Validation is only ok when I generate random keys using the KeyPairGenerator.
    Do you think that arbitrary length keys don't allow to validate XML document. And do you have any idea how to solve the problem ( I'm not allowed to generate fixed length keys) ?
    Thansk a lot for your precious help.

    solved!
    urghh...forgot to load th eschema..duh. (must be friday)
    here's the fixed code:
        // parse the xml document (validate the xml string using a schema  file)
        // the xml document does not specified the System ID or location of
        // schema..and use no namespace
        public void parse(HandlerType type, String xmldoc) throws SAXException, IOException {
            File           schema      = schemaMap.get(type);
            DefaultHandler handler     = handlerMap.get(yype);
            XMLReader   reader = XMLReaderFactory.createXMLReader(VENDOR);
            InputSource source = new InputSource(new StringReader(xmldoc));
            reader.setContentHandler(handler);
            reader.setFeature("http://xml.org/sax/features/validation", true);
            reader.setFeature("http://apache.org/xml/features/validation/schema", true);
            reader.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
            reader.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
            "file:///" + schema.getAbsolutePath());
            reader.parse(source);          
        }

  • Vivado 2013.4 ERROR: [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order

    Hello,
    I just downloaded and installed Vivado 2013.4 on my Xubuntu 12.04 machine. But when I try to add IP from the IP catalog, as in the ug937 Lab1 step2, it fails with obscure error messages (see below).
    Here's basically what I did:
    -In the Flow Navigator, i select the IP Catalog button.
    -In the search field of the IP Catalog, I type DDS.
    -then I double-click the DDS Compiler and my error occure.
    Please Help,
    Jerome.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd":1]
    Analysis Results[IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd":1]
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    set_property target_language Verilog [current_project]
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    sources_1[IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd":1]
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    update_compile_order -fileset sim_1
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd":1]
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd":1]
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [HDL 9-1654] Analyzing Verilog file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v":1]
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd":1]
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-2313] Loaded Vivado IP repository '/opt/Xilinx/Vivado/2013.4/data/ip'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-1704] No user IP repositories specified
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    Vivado Commands[Project 1-11] Changing the constrs_type of fileset 'constrs_1' to 'XDC'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    sim_1[IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [HDL 9-1654] Analyzing Verilog file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v":1]
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-234] Refreshing IP repositories
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd":1]
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd":1]
    set_property constrs_type XDC [current_fileset -constrset]
     

    We had the same problem when switching to Ubuntu 14.04, and there actually is a solution for it: make sure your locales are set to English.
    $> env | grep LC_*
    should only show english (or C) locales, all others are known to cause parsing errors in some numbers, usually caused by wrong string-to-float conversions (e.g. 18,29 in german is 18.29 in english). You can change the locales in the file /etc/default/localesThis is not the first time we had problems with the locale settings, Xilinx does not seem to test their software with anything else than en_US, causing obscure bugs like this one.
    HTH
    Philipp

  • WARNING: Problem validating implementation class. Exception declaration mis

    I have created sample class using JDevStudio10.1.3
    Added method getX() throws Ex (Ex implements Exception)
    Select class and generated J2EE 1.4 RPC webservices
    Got the warning :
    Generating WSDL and mapping file
    WARNING: Problem validating implementation class. Exception declaration mismatch between Implementation: mypackage.Class3 and Interface: mypackage.MyWebService3. Impl class Method: X declares exceptions not declared by the interface (mypackage.Exp)
    Now When I generated client proxy from the wsdl generated, Ex class is not getting generated.
    Can some one help me please.
    Thanks in advance

    If you are using Ex in the implemetation class, make sure that you also include the same in the interface (or SEI).
    If the implementation looks something like:
    public void doSomething() throws Ex {
    System.out.println("Is there something to do, now ?");
    then the SEI should be:
    public void doSomething() throws Ex, RemoteException;
    If your have ommited Ex, then you will have the warning you are seing, and there wont be any artifact generated for Ex in the WSDL.
    Because the Ex exception was not mapped to any WSDL artifact, there is no way you will see the Ex exception generated on the client side (or proxy).
    I have been able to reproduce your error message, so you should be all good.
    WARNING: Problem validating implementation class. Exception declaration mismatch between Implementation: bugyyy.MyServiceImpl and Interface: bugyyy.MyWebService. Impl class Method: doSomething declares exceptions not declared by the interface (bugyyy.Ex)
    Hope this helps,
    Eric

  • WARNING: Problem validating implementation class. Failed to load class:

    when i am running plsqlAssembler.jar file for wsa.jar with all other atributes , i am getting this warning WARNING: Problem validating implementation class. Failed to load class.
    Please if anybody knows about this reply me,
    thanks in advance.

    If you are using Ex in the implemetation class, make sure that you also include the same in the interface (or SEI).
    If the implementation looks something like:
    public void doSomething() throws Ex {
    System.out.println("Is there something to do, now ?");
    then the SEI should be:
    public void doSomething() throws Ex, RemoteException;
    If your have ommited Ex, then you will have the warning you are seing, and there wont be any artifact generated for Ex in the WSDL.
    Because the Ex exception was not mapped to any WSDL artifact, there is no way you will see the Ex exception generated on the client side (or proxy).
    I have been able to reproduce your error message, so you should be all good.
    WARNING: Problem validating implementation class. Exception declaration mismatch between Implementation: bugyyy.MyServiceImpl and Interface: bugyyy.MyWebService. Impl class Method: doSomething declares exceptions not declared by the interface (bugyyy.Ex)
    Hope this helps,
    Eric

  • Problem validating an XML document with a schema containing xs:include

    I have a problem using an include statement in xsd. I try to include another
    schema by using the include statement:
    <xsd:include schemaLocation="../../XXX.xsd"/>
    and get the xjc error:
    s4s-att-invalid-value: Invalid attribute value for 'schemaLocation' in element 'include': cvc-datatype-valid.1.2.1.
    Can anybody give me a hint what goes wrong here? THANKS!!!!
    ayache

    Your schemaLocation value is not a URI? To me, it looks like the value should conform to this:
    http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#anyURI
    I will let you read all those specs to see whether that is your problem.

  • Problem validating xml file - jaxb

    hi people, I'm working with jaxb to generate Java source classes from the .xsd schemas that I have. I work with 17 schemas that, a priori, I can't modify. In those schemas there are a lot of types and structures that I can use when creating an .xml file. I've read other threads with the problem of namespaces but as a solution they provide a modification on the schemas. The generation of java source is ok, I've done custoization classes and no problem, but when I try to unmarshal an input xml file I get an error of validation:
    DefaultValidationEventHandler: [ERROR]: Probably namespace URI of tag "XFFile" is wrong (correct one is "http://ww........
    A possible xml file is :
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE XFFile><XFFile xmlns:rp210Elements="http://www.smpte-ra.org/schemes/434/200X/multiplex/S377M/2004" xmlns:s377mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S377M/2004" xmlns:s377mMux="http://www.smpte-ra.org/schemes/434/200X/multiplex/S377M/2004" xmlns:s377mTypes="http://www.smpte-ra.org/schemes/434/200X/types/S377M/2004" xmlns:s380mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S380M/2004" xmlns:s381mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S381M/200X" xmlns:s382mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S382M/200X" xmlns:s385mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S385M/2004" xmlns:s422mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S422M/200X" xmlns:s422mTypes="http://www.smpte-ra.org/schemes/434/200X/types/S422M/200X" xmlns:s423mGroups="http://www.smpte-ra.org/schemes/434/200X/groups/S423M/200X">
         <s380mGroups:ClipFramework rp210Elements:InstanceID="a6.67.7a.47.19.2f.4b.10.8f.ee.1e.59.6d.4c.f1.70" rp210Elements:LinkedGenerationID="0e.10.a8.9c.96.1c.4c.11.b1.fb.0a.a9.40.22.a4.e2">
              <rp210Elements:ClipCreationDateTime>
                   <rp210Elements:Year>2006</rp210Elements:Year>
                   <rp210Elements:Month>4</rp210Elements:Month>
                   <rp210Elements:Day>18</rp210Elements:Day>
                   <rp210Elements:Hour>12</rp210Elements:Hour>
                   <rp210Elements:Minute>0</rp210Elements:Minute>
                   <rp210Elements:Second>0</rp210Elements:Second>
                   <rp210Elements:mSec4>0</rp210Elements:mSec4></rp210Elements:ClipCreationDateTime>
              <rp210Elements:FrameworkExtendedTextLanguageCode>fr</rp210Elements:FrameworkExtendedTextLanguageCode>
         </s380mGroups:ClipFramework>
    </XFFile>
    I think it's ok because someone has provided it to my company but I can't validate it because it takes elements from many schemas (am I wrong and I can?)
    i can't post the schemas because of the copyrights (damn it). I'm not asking for a solution but if someone has an idea or has had a similar problema.. I'll appreciate all comments, thanks
    Jordi
    Message was edited by:
    WuWei

    In the schema root element xs:schema add namespace declaration.
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    In the XML document root element add xmlns:xsi and xsi:noNamespaceSchemaLocation attributes.
    <root_element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://c:/testing.xsd">

  • Problem in setContent(domsource) -- works well outside WAS

    Hi,
    Am trying to set SOAP complaint xml content to SOAPPart using setContent() method. When used in normal java program works fine without any problems.
    But when the same (whole application) is deployed on WAS 5.1 its throwing the following exception.
    java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl
         at com.ibm.ws.webservices.engine.utils.XMLUtils.sourceToInputSource(XMLUtils.java:657)
         at com.ibm.ws.webservices.engine.SOAPPart.setContent(SOAPPart.java:874).....................
    Am new to WAS and don't know whats wrong.
    ***Code Snippet is ***
    SOAPMessage soapmsg = getMessage();
    DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = dbFactory.newDocumentBuilder();
    Document document = builder.parse(getContents()); // getContents() is constructed xml content -- soapmsg
    DOMSource domSource = new DOMSource(document);
    SOAPPart soapPart = soapmsg.getSOAPPart();
    soapPart.setContent(domSource); // at this part am getting Exception.
    *** End Code Snippet***
    I did checked the forum and got one post of similar problem, but doesn't have any replies to it.
    http://forum.java.sun.com/thread.jspa?forumID=34&threadID=454348
    Does anyone know what might be the problem and why is that Exception?
    I guess WAS is using some API which is not fully comaptible with what's been used in the program - but not sure.
    Any idea / suggestion would be much appreciated!!
    Thanks

    I am curious as to what you are trying to accomplish. We are using WAS, and WSDC running on an AS/400. I am trying to create an application that writes to an XML file on the server so it can be accessed via an HTML webpage to be used as a data island to display "news" content.
    When I try to write the xml to the server I get error, unless I do not specify a path, but then it writes the file to the root of the server.
    Thanks

  • Problems Validating an Attribute of type oracle.jbo.domain.date

    I have a form that has a date input field. I am trying to customise the exception error for this field for when the user enters something other than my dd/MM/yyyy format. ie JBO-25009: oracle.jbo.domain.DataCreationException
    This Attribute uses a the oracle.jbo.domain.date data type. An exception is finally thrown when the transaction trys to commit.
    My problem is that I can't customise the exception because I can't catch where it is occuring. I have tried at the <setAttributeInternal>, <setAttribute> and <validateEntity> levels uses both try{}catch(Jbo Exception){} and try{}catch(AttrValException){}. I believe the reason for this is because the problem occurs because the parse value to functions are invalid dates so it never enters them.
    If this is true validation and any exception thrown should occur at the data type level, but the the oracle.jbo.domain.date class doesn't have a validate method.
    Can someone please help me get around this problem. Or tell me if the have a solution for date input validation.

    The usecase is as follows:
    I have a DynaAction Form with a input field for a date value. This field in the form is associated with an entity attribute that is of the type oracle.jbo.domain.date
    In the message bundle for this entity I specify a format (dd/MM/yyyy) and formatter for the field (oracle.jbo.format.DefaultDateFormatter). In the jsp page I display the field using the following tag within the <jbo:row> tags,
    <jbo:InputDate dataitem="ChangeDate" formname="ApplicationReleaseForm"/>
    The date picker script works well here and the formatter formats it correctly.
    My error occurs when an invalid date value is entered. Ie characters like "abc" or numeric values that don't match a date format ie my date format (dd/MM/yyyy) or the default format of the jbo.domain.date type(yyyy-MM-dd).
    On submitting my form the input is posted to an action that extends the Update action class. I use the following expression to cache the input from the form in the viewobject:
    ActionForward actionForward = super.execute(mapping,form,request,response);
    The invalid input appears to be able to slip through this call without causing an exception, unless I make the attribute manditory. In this case an exception is thrown causing the form to be returned and the mandatory value error message to be shown.
    If the attribute is not mandatory the exception is not thrown until I make a call to commit; eg
    context.getApplicationModule().getTransaction().commit();
    The DataCreationException is the initial exception that is caught and causes the rest of the transaction to fall over.
    It is my understanding that if the input is wrong then it should be picked up when the form data is pushed into the viewobject, ie in the call to execute and at the setAttributeInternal() method call for the attribute in the viewobject. I don't believe that the input gets this far as the input is not a valid date, indicating to me that the oracle.jbo.domain.date should be the object throwing the exception.
    I hope this gives you a better understanding of the process and where and what causes the problem to occur.

  • Problem validating XML with XSD

    Hi everyone. I have an xsd schema and I want to validate some XML doc with the schema using SAX parser.
    The user make the xml and then upload it to the server.
    I want to enable client side validation but, for security reasons, I want also to validate this document when it's uploaded to the server.
    The schema called ContentSchema.xsd
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
         targetNamespace="www.mysite.com/Content" xmlns="www.mysite.com/Content">
         <xs:element name="content">
              <xs:complexType>
    A document produced by the client starts in this way:
    <?xml version="1.0" encoding="UTF-8"?>
    <p:content xmlns:p="www.mysite.com/Content" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="www.mysite.com/Content ContentSchema.xsd">
    in this way users can validate the XML doc before uploading. If the XSD is in the same folder of the uploaded XML the validation is ok.
    The problem is that, on the server, I've stored the xsd file in a folder and I want the SAX parser to use this xsd to validate the XML. Even I pass the complete URI of the file to the parser, it won't work:
    SAXParserFactory spf = SAXParserFactory.newInstance();
              spf.setValidating(true);
              spf.setNamespaceAware(true);
              spf.setFeature("http://apache.org/xml/features/validation/schema",true);
              spf.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
              SAXParser sp=spf.newSAXParser();
              sp.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", schemaURL );
    I set the schemURL with setProperty method but it's like the parser is looking for the XSD in the URL declared in the XML doc and not in the URI I specify. Anyone can help me?
    Thank you very much

    You will have to associate the schema with the namespace, like in your xsi:schemaLocation attribute.
    Try something like this:
    sp.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", "www.mysite.com/Content "+schemaURL);

  • Problem validating an two Input Date components !...

    Hi to all the users !. I would like to tell my problem... I have two input dates ("from" and "to") and I would like that the value from the "from" component isn't higher than the value from the "to" component... For that, I have use a validateDateTimeRange validator and set the "Maximum" value... My problem is that I don't get validated my inputdates components and additionally, when I select a date it appears with a strange format... Although I set the pattern to "dd/mm/yyyy" !... Let say... If I choose the 23th of July of 2012, the input date show "23/58/2012"... What would be the problem ?... Thankx !...

    Navaneetha: Thankx for your help !; I will check it right now... I didn't answer as I was having lunch ! :D Thankx again
    Suresh: A friend from another group told me that and the problem was solved !; anyway... Thankx for your time ! :d

  • Problem validating a responsive page (Dreamweaver CC 2014)

    Hello all,
    I bought templates from Dream Template to speed up the change to responsive technology for my websites (several of them) in time for Google's release of their new algorithm. I didn't check before purchase if they would validate properly or not because the demo was shown inside a frame.
    After completing the site on my localhost I attempted to validate the index.html and check for errors. Shocked to find altering the template for my use had created 23 errors and 10 warning.
    I'm struggling to get my head around this whole idea of responding to screen size and I'm new to Dreamweaver. I'm none the less determined to become proficient at the whole area of 'design for mobile first' and become an expert with Dreamweaver. I've been loyal to Expression web for far to long.
    The most serious problem as I have is with the use of Google Fonts API. Although I've fixed most of the errors now, I'm still getting 8 (5 of them related to the one line of code for Google fonts) :
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
    These are the validation errors for that line of code:
    < when expecting an attribute name. Probable cause: Missing > immediately before.
    Attribute <link not allowed on element meta at this point.
    Attribute href not allowed on element meta at this point.
    Attribute rel not allowed on element meta at this point.
    Attribute type not allowed on element meta at this point.
    I can't seem to discover what I'm doing wrong here. Every time I try to change the order of this line,( put it in a different place in the head) the page breaks. Right now it displays perfectly in Chrome, IE 11, Firefox, iPad and Android smart phone with the errors.
    I'd also like to know how important is it that a page or pages Validate with W3C? If validating correctly breaks the page, surely there is a serious flaw I can't find a description for.
    If I can get some advise - even help, with this I would be grateful. Please excuse me if I've posted in the wrong place.
    Douglas

    Thanks for your reply.
    Here's the head code including the Google statement.
    According to the Bootstrap site, the first 3 lines of code MUST be in the order they are in but didn't describe why. I had them below the fonts statement. It didn't seem to make any difference to any browser or phone I looked at it with. If you can see something here I should change, I will !.
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Ryadias Planning Weddings</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <meta name="description" content="Ryadia's Planning Weddings Expo,Directory and Magazine"/>
    <meta name="keywords" content="Wedding, Expos, Directory, planning Weddings, Redlands, Brisbane, Queensland, Stradroke"
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>

  • Update rule problem - validation of "sales/cost w/ tax" keyfigure

    BW Gurus,
        Hi to all, i have this update rule problem at "sales/cost w/tax" keyfigure here is the senario.
        Our Goverment mandatory implemented an additional 2% tax from the original 10%, this will affect our report on sales, and also the BW "sales/cost w/ tax" key figure.
        My question is How can I validated the effectivity of the new tax? i have tax 10% from previous sales and 12% on the current sales. What "date field" can I use to validated this. I am using /BIC/CS2LIS_13_VDITM stucture to get the data i need.
    Thanks in Advance
    Joven

    Hi,
    Till to day how are extracting the data for tax(original 10%) is it available directly in 2LIS_13_VDITM ?
    Usually all taxes( condition types) can be extracted by the data source 2LIS_13_VDKON.Discuss with SD team, they may give the condition type used for different taxes.
    With rgds,
    Anil Kumar sharma .P

  • A different iTunes windows install problem: "validation"

    am posting this for a friend of mine who has been using iT on his windows laptop for years.
    He was trying to install the latest iTunes, and he downloaded it okay. When it started installing, he gets as far as the step "validating" and then it just stops - no error message or anything.
    any clues? I see other folks have been having Windows iT install problems, but not exactly this one (there was no error message number).
    (He's using a pre-vista version of Windows - could it be that the newest iT is only supposed to work with vista? I know nothing about windows.)
    w

    WillFriedwald2 wrote:
    am posting this for a friend of mine who has been using iT on his windows laptop for years.
    He was trying to install the latest iTunes, and he downloaded it okay. When it started installing, he gets as far as the step "validating" and then it just stops - no error message or anything.
    any clues? I see other folks have been having Windows iT install problems, but not exactly this one (there was no error message number).
    (He's using a pre-vista version of Windows - could it be that the newest iT is only supposed to work with vista? I know nothing about windows.)
    w
    Just a few quick thoughts.
    1. The newest iTunes does not work with Windows 2000.
    2. Some problems have been due to a display setting. To see everything the display setting (Changed through the Control Panel and/or Display) should be 1024 x 768.
    3. What specific error messages is he seeing?

  • Problem Validating & Processing Transformation file in NW 7.0 version

    I am trying to Validate & Process Transformation File against my Data file I am getting the error message that I have at the below. When I validate the Conversion files, I see the creation of corresponding .CDM files. I even deleted the .CDM files and recreated the files.
    So my question is why it is giving "Sheet does not exist  (CONVERSION)" warning for which it is rejecting the records inside the Data File?
    DATA FILE:
    C_Category,Time,R_ACCT,R_Entity,InputCurrency,Amount
    ACTUAL,2007.DEC,AVG,GLOBAL,USD,1
    ACTUAL,2007.DEC,END,GLOBAL,USD,1
    ACTUAL,2007.DEC,AVG,GLOBAL,JPY,110
    ACTUAL,2007.DEC,END,GLOBAL,JPY,110
    ACTUAL,2007.DEC,HIST,GLOBAL,JPY,110
    ACTUAL,2007.DEC,HIST,GLOBAL,USD,1
    ACTUAL,2008.MAR,AVG,GLOBAL,USD,1
    ACTUAL,2008.MAR,END,GLOBAL,USD,1
    ACTUAL,2008.MAR,AVG,GLOBAL,JPY,107.5
    ACTUAL,2008.MAR,END,GLOBAL,JPY,105
    ACTUAL,2008.MAR,HIST,GLOBAL,JPY,110
    ACTUAL,2008.MAR,HIST,GLOBAL,USD,1
    TRANSFORMATION FILE:
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = ,
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    SPECIFICMAPPING=YES
    *MAPPING
    C_Category=*col(1)
    Time=*col(2)
    R_ACCT =*col(3)
    R_Entity=*col(4)
    InputCurrency=*col(5)
    Amount=*col(6)
    *CONVERSION
    C_Category=[COMPANY]C_Category.xls!CONVERSION
    Time=[COMPANY]Time.xls!CONVERSION
    R_ACCT=[COMPANY]R_ACCT.xls!CONVERSION
    R_Entity=[COMPANY]R_Entity.xls!CONVERSION
    InputCurrency=[COMPANY]InputCurrency.xls!CONVERSION
    ERROR
    [Start validating transformation file]
    Validating transformation file format
    Validating optionsu2026
    Validation on options was successful
    Validating mappingsu2026
    Validation on mappings was successful
    Validating conversionsu2026
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Validation on conversions was successful
    Creating the transformation xml file; wait a moment
    Transformation xml file saved successfully
    Connecting to server...
    Begin validate transformation file with data fileu2026
    [Start test transformation file]
    Validate has successfully completed
    ValidateRecords = YES
    Task name CONVERT:
    No 1 Round:
    Record count: 12
    Accept count: 0
    Reject count: 12
    Skip count: 0
    Error: All records are rejected

    *CONVERSION
    C_Category=C_Category.xls
    Time=Time.xls
    R_ACCT=R_ACCT.xls
    R_Entity=R_Entity.xls
    InputCurrency=InputCurrency.xls
    On validating with the above format, I still getting the same error
    [Start validating transformation file]
    Validating transformation file format
    Validating optionsu2026
    Validation on options was successful
    Validating mappingsu2026
    Validation on mappings was successful
    Validating conversionsu2026
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Validation on conversions was successful
    Creating the transformation xml file; wait a moment
    Transformation xml file saved successfully
    Connecting to server...
    Begin validate transformation file with data fileu2026
    [Start test transformation file]
    Validate has successfully completed
    ValidateRecords = YES
    Task name CONVERT:
    No 1 Round:
    Record count: 12
    Accept count: 0
    Reject count: 12
    Skip count: 0
    Error: All records are rejected

Maybe you are looking for

  • SAPINST 'space' error on Solaris 10 Zone

    Hi All, I am attempting to install a 4.7E X 110 system on Oracle 9 and Solaris 10. I am in the CI phase of the installation and am getting an error in phase "Check/Adapt Filesystem". I'm not sure where - it does not say exactly. But the 3 main areas

  • T61 reacts to power button but stays silent

    I recently dropped my Thinkpad T61 (model 6459). The laptop was off and in a padded bag, but apparently the fall was still sufficient to cause a problem. If it's at all relevant, it appears to have fallen such that the screen's top-left corner (if lo

  • Quick question about sync - sync communication

    Hi All How many receiver agrement , reciever determination do we need in sync-sync communication let us say that a proxy send request to http and wait for the response. in this case we need a http receiver channel but when the http sends the answer b

  • ISupplier, OID,SSO on 11i EBS

    Hi Gurus I have a client requirement to implement i-Supplier module,OID/SSO on 11i EBS Can any one please help me to implement this process. This is very urgent. I have posted this in OA framework discussion, but haven't got any response. Thanks Keve

  • HT201317 How do you edit photo's that are in the icloud. They all have a lock on them

    How do you edit photo's in the icloud. There is a lock on every photo there.