All validation error from saxParser.parse

I am getting just the 1st error but I want all the errors in the 1st pass itself.
Attaching the code for reference also.
?would really appreciate you suggestion.
==code---
public class EDITExtractSchema {
static Document document;
public void validateXMLVOusingXSD(String str)
try {
//create a SchemaFactory capable of understanding W3C XML Schemas (WXS)
SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
//Set the error handler to receive any error during Schema Compilation
XMLErrorHandler errorHandler = new XMLErrorHandler();
factory.setErrorHandler(errorHandler);
//set the resource resolver to customize resource resolution
//factory.setResourceResolver( new MyLSResourceResolver());
// load a WXS schema, represented by a Schema instance
File schemaFile = new File("C:/Temp/project2-CorrVO/XSDs/TaxExtract5498DetailVO.xsd");
Schema schema = factory.newSchema(new StreamSource(schemaFile));
SAXParserFactory spf = SAXParserFactory.newInstance();
//spf.setNamespaceAware(true);
//spf.setValidating(true);
spf.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
//Just set the Schema instance on SAXParserFactory
spf.setSchema(schema);
//Obtain the SAXParser instance
SAXParser saxParser = spf.newSAXParser();
//parser will parse the XML document but validate it using Schema instance
//saxParser.parse(new File(str), myHandler);
saxParser.parse(new File(str),new MyDefaulyHandler());
}catch(ParserConfigurationException e) {
System.out.println("ParserConfigurationException-" + e);
}catch (SAXException e) {
System.out.println("SAXException-" + e);
catch (Exception e) {
System.out.println("Exception-" + e);
/*// output the errors XML
XMLWriter writer = null;
try {
writer = new XMLWriter(OutputFormat.createPrettyPrint());
} catch (UnsupportedEncodingException e) {
System.out.println("validate error" + e);
e.printStackTrace();
try {
writer.write(errorHandler.geterrors());
} catch (IOException e) {
System.out.println("validate error" + e);
e.printStackTrace();
//implement error handler
public static class XMLErrorHandler implements ErrorHandler {
private boolean valid = true;
public void reset() {
// Assume document is valid until proven otherwise
valid = true;
public boolean isValid() {
return valid;
public void warning(SAXParseException exception) throws SAXException{
System.out.println("Warning: " + exception.getMessage());
System.out.println(" at line " + exception.getLineNumber()
+ ", column " + exception.getColumnNumber());
System.out.println(" in entity " + exception.getSystemId());
valid = true;
public void error(SAXParseException exception) throws SAXException{
System.out.println("Error: " + exception.getMessage());
System.out.println(" at line " + exception.getLineNumber()
+ ", column " + exception.getColumnNumber());
System.out.println(" in entity " + exception.getSystemId());
valid = true;
/* // output the errors XML
XMLWriter writer = null;
try {
writer = new XMLWriter(OutputFormat.createPrettyPrint());
} catch (UnsupportedEncodingException e) {
System.out.println("validate error" + e);
e.printStackTrace();
try {
writer.write((Object)exception);
} catch (IOException e) {
System.out.println("validate error" + e);
e.printStackTrace();
public void fatalError(SAXParseException exception) throws SAXException {
System.out.println("Fatal Error: " + exception.getMessage());
System.out.println(" at line " + exception.getLineNumber()
+ ", column " + exception.getColumnNumber());
System.out.println(" in entity " + exception.getSystemId());
valid = true;
public static class MyDefaulyHandler extends DefaultHandler {
private boolean valid = true;
public void reset() {
// Assume document is valid until proven otherwise
valid = true;
public boolean isValid() {
return valid;
public void warning(SAXParseException exception) throws SAXException{
System.out.println("Warning: " + exception.getMessage());
System.out.println(" at line " + exception.getLineNumber()
+ ", column " + exception.getColumnNumber());
System.out.println(" in entity " + exception.getSystemId());
valid = true;
public void error(SAXParseException exception) throws SAXException{
System.out.println("Error: " + exception.getMessage());
System.out.println(" at line " + exception.getLineNumber()
+ ", column " + exception.getColumnNumber());
System.out.println(" in entity " + exception.getSystemId());
valid = true;
/* // output the errors XML
XMLWriter writer = null;
try {
writer = new XMLWriter(OutputFormat.createPrettyPrint());
} catch (UnsupportedEncodingException e) {
System.out.println("validate error" + e);
e.printStackTrace();
try {
writer.write((Object)exception);
} catch (IOException e) {
System.out.println("validate error" + e);
e.printStackTrace();
public void fatalError(SAXParseException exception) throws SAXException {
System.out.println("Fatal Error: " + exception.getMessage());
System.out.println(" at line " + exception.getLineNumber()
+ ", column " + exception.getColumnNumber());
System.out.println(" in entity " + exception.getSystemId());
valid = true;
public static void main(String[] args) {
EDITExtractSchema schemaClass = new EDITExtractSchema();
try {
schemaClass.validateXMLVOusingXSD("C:/Temp/project2-CorrVO/XSDs/TaxExtract5498DetailVO.xml");
}catch (Exception e) {
System.out.println("xml file read error Exception-" + e);
--====
Regards,
Tapas

No really, it will report all the error if you turn on the validation and implement the error hander methods(error()).
ALSO,
My XSD had "<xs:sequence>" which was causing the problem.
We had to change it to "<xs:all>". Now all the errors are getting reported.
thx!

Similar Messages

  • How to deal with validation errors from DAO layer.

    I have been pondering on how to deal with validation errors from DAO layer.
    Lets say you have a DAO that can save a car object. A car has a year, make, model, vin and so on. During the save operation of this DAO, it validates the car attributes to see if they pass some business rules. If it does not it throws some validation exception that contains all the validation errors. These validation errors know nothing about jsf or my components it just knows what attributes on the object are invalid and why.
    If I just want to show those errors at the top of the page that would be no problem I could just create some FacesMessage objects and add them to the FacesContext messages. But if the DAO layer is telling me that the make attribute is invalid it would be nice to map it to the make field on the screen. I am wondering if any of you have tackled this problem or have some ideas on how to tackle it?
    Brian

    Let it throw an exception with a self explaining message, then catch it and embed that message in a FacesMessage.
    Or let it throw more specific exception types (InvalidCarMakeException extends CarDAOException and so on) and let JSF handle it with own FacesMessage message.

  • Can SOA 11g fault policy handle XSD Validation errors from the Mediator?

    I would like all errors in my SOA process to go through the fault-policies.xml. But I don't seem to be able to catch any mediator error caused by an XSD validation failure. A sample of the sort of error I am trying to 'catch' is:
    Nonrecoverable System Fault          oracle.tip.mediator.infra.exception.MediatorException: ORAMED-01303:[Payload default schema validation error]XSD schema validation fails with error Invalid text 'A' in element: 'TermCode'Possible Fix:Fix payload and resubmit.
    My fault-policies.xml file is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy">
    <faultPolicy version="2.0.1"
         id="NewStudentRegistrationFaults"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:1303">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:rjm="http://schemas.oracle.com/sca/rejectedmessages" name="rjm:GetNewStudentRegistrationFile">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:TYPE_ALL">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:mediatorException">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:bindingFault">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:remoteFault">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="java-fault-handler">
    <javaAction className="edu.villanova.soa.handlers.FaultNotificationHandler"
    defaultAction="ora-human-intervention" propertySet="faultNotificationProps">
    <returnValue value="OK" ref="ora-human-intervention"/>
    </javaAction>
    </Action>
    <!-- Human Intervention -->
    <Action id="ora-human-intervention">
    <humanIntervention/>
    </Action>
    <!-- Terminate -->
    <Action id="ora-terminate">
    <abort/>
    </Action>
    </Actions>
    <!-- Property sets used by custom Java actions -->
    <Properties>
    <!-- Property set for FaultNotificationHandler customer java action -->
    <propertySet name="faultNotificationProps">
    <property name="from">[email protected]</property>
    <property name="to">[email protected]</property>
    <property name="subject">Reporting a SOA fault</property>
    </propertySet>
    </Properties>
    </faultPolicy>
    <faultPolicy version="2.0.1"
         id="MediatorFaults"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:1303">
    <condition>
    <action ref="java-fault-handler"/>
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="java-fault-handler">
    <javaAction className="edu.villanova.soa.handlers.FaultNotificationHandler"
    defaultAction="ora-human-intervention" propertySet="faultNotificationProps">
    <returnValue value="OK" ref="ora-human-intervention"/>
    </javaAction>
    </Action>
    <!-- Human Intervention -->
    <Action id="ora-human-intervention">
    <humanIntervention/>
    </Action>
    <!-- Terminate -->
    <Action id="ora-terminate">
    <abort/>
    </Action>
    </Actions>
    <!-- Property sets used by custom Java actions -->
    <Properties>
    <!-- Property set for FaultNotificationHandler customer java action -->
    <propertySet name="faultNotificationProps">
    <property name="from">[email protected]</property>
    <property name="to">[email protected]</property>
    <property name="subject">Reporting a SOA rejected msg. fault</property>
    </propertySet>
    </Properties>
    </faultPolicy>
    </faultPolicies>
    My fault-bindings.xml file is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <faultPolicyBindings version="2.0.1"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <composite faultPolicy="NewStudentRegistrationFaults"/>
    <component faultPolicy="MediatorFaults">
    <name>NewStudentRegistrationMediator</name>
    </component>
    <service faultPolicy="NewStudentRegistrationFaults">
    <name>GetNewStudentRegistrationFile</name>
    </service>
    </faultPolicyBindings>
    You'll notice that I've tried a number of ways (and various other combinations) to try to steer the error above into my Java fault handler but nothing has meet with success. The mplan is as follows:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!--Generated by Oracle SOA Modeler version 1.0 at [2/3/10 1:21 PM].-->
    <Mediator name="NewStudentRegistationMediator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/sca/1.0/mediator"
    wsdlTargetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/Experiments/NewStudentRegistration/GetNewStudentRegistrationFile%2F">
    <operation name="Get" deliveryPolicy="AllOrNothing" priority="4"
    validateSchema="true">
    <switch>
    <case executionType="queued" name="RegToBanner.insert_2">
    <action>
    <transform>
    <part name="$out.NewstudentregistrationCollection"
    function="xslt(xsl/NewStudentRegistration_To_NewstudentregistrationCollection.xsl, $in.body)"/>
    </transform>
    <invoke reference="RegToBanner" operation="insert"/>
    </action>
    </case>
    </switch>
    </operation>
    </Mediator>
    I'm a newbie to Oracle SOA. So perhaps I am missing the obvious. But I haven't read much in the documentation specifically about using the XSD validation option on the mediator and have seen nothing specifically about catching this sort of exception in the fault policy (apart from the faults I already have in my policy). Can anyone suggest what I am doing incorrectly here or perhaps whether what I am attempting to do is not possible? Thanks.
    - Cris

    Has anyone got it working yet?
    In my case, I have the following sequence:
    FileAdapter -> Mediator1 -> Mediator2->DB Adapter
    I am deliberately introducing validation error in File. Isn't it correct to assume Fault framework would get triggered at Mediator1 level since we are invoking FileAdapter service?
    I am getting a strange behaviour. If I enable XSD validation at Mediator1 level, process is Faulted with no re-try option. However, if I enable XSD validation ONLY at Mediator2 level, I get Recoverable fault. There seems to be some disconnect between documentation and reality. I am using JDeveloper 11.1.1.3.0 version and SOA Suite 11g.
    Thanks,
    Amjad.

  • Printing user validation errors from .php file back onto a form

    Hey all. I have written a simple contact form with the extention .php. It includes the php validation and the form inputs on one page. If the input does not validate, a warning in red is printed at the top of the form after the user pushes submit. When I cut and paste the php validation code into a seperate file, the validation errors print on a blank screen. What I want is to have the same results with a seperate php file as I do when I include the php code on the form. (print errors from the seperate php validation file back onto the form).  Thanks for taking a look
    <h1><span class="bodyheader1">Contact </span><span class="bodyheader2">Us</span></h1>
        <p class="subheading">Tell us what's on your mind:</p>
        <?php
        if(isset($_POST['send_comment']))
            //Validating the comment field
            //checking if a first_name field has been entered
            if($_POST['first_name'] != "")
                //Saitizing first_name with a filter
                $_POST['first_name'] = filter_var($_POST['first_name'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['first_name'] == "")
                    //If no input, return error message
                    $errors .='Please enter a valid first name.<br/>';
            else
                //Error message
                $errors .='Please enter your first name.<br/>';
            //Validating the last_name field
            //checking if last_name has been entered
            if($_POST['last_name'] != "")
                //Saitizing last_name with a filter
                $_POST['last_name'] = filter_var($_POST['last_name'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['last_name'] == "")
                    //If no input, return error message
                    $errors .='Please enter a valid last name.<br/>';
            else
                //Error message
                $errors .='Please enter your last name.<br/>';
            if($_POST['email'] != "")
                $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
                if (!filter_var($email, FILTER_VALIDATE_EMAIL))
                    $errors .= "$email is not a valid email address.<br/>";
            else
                $errors .= 'Please enter your email address.<br/>';
            //Validating the comment field
            //checking if a comment has been entered
            if($_POST['comment'] != "")
                //Saitizing comment with a filter
                $_POST['comment'] = filter_var($_POST['comment'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['comment'] == "")
                    //If no input, return error message
                    $errors .='Please enter a comment.<br/>';
            else
                //Error message
                $errors .='Please enter a comment.<br/>';
            if(!$errors)
                $mail_to = '[email protected]';
                $subject = 'Contact form ' . $_POST['first_name'];
                $message = 'First Name: ' . $_POST['first_name'] . "\n";
                $message .= 'Last Name: ' . $_POST['last_name'] . "\n";
                $message .= 'Email: ' . $_POST['email'] . "\n";
                $message .= 'Comment: ' . $_POST['comment'] . "\n\n";
                mail($mail_to, $subject, $message);
                echo "<script>document.location.href='thankyou.html'</script>";
            else
                echo '<div style="color: red">' . $errors . '<br/></div>';
    ?>
    *All fields are required<br />
    <br />
        <form name="contact" method="post" action="contact.php">
            <p>First Name: <br />
              <input name="first_name" type="text" value="<?php echo $_POST['first_name']; ?>" size="30" maxlength="50" /><br />
              <br />
              Last Name: <br />
              <input name="last_name" type="text" value="<?php echo $_POST['last_name']; ?>" size="30" maxlength="50" /><br />
              <br />
              E-mail: <br />
              <input name="email" type="text" value="<?php echo $_POST['email']; ?>" size="40" maxlength="200" /><br />
              <br />
              Comment: <br />
              <textarea name="comment" rows="5" cols="50"><?php echo $_POST['comment'];?></textarea>
              <br />
             </p>
          <p><input type="submit" name="send_comment" />
          </p>
        </form>

    You want the form to submit its results to a separate file which processes the data.  If this separate file finds errors, you want it to return control to the form page which would a) display the error messages, and b) populate the fields with the data entered?
    If that's the case, then the processing file would have to send the errors and the data back to the form page either as a) URL variables, b) a cookie, or c) entries in a database.
    Does that help?

  • Anyone having "URL not valid" error from Live Monitor?

    I sent a support email to MSI, but they are on vacation till the 5th.  I was just wondering if anyone else has encountered this issue.  Below is the message to MSI support:
    Quote
    MSI Live Monitor has started to behave strangely.  Yesterday I clicked auto-search and the dialog box came up as normal, I clicked "next," and an error message came up with the heading "LMonitor" and "The url is invalid."  So, I closed it and restarted Live Monitor.  I tried it again and received the same error message.  I uninstalled Live Monitor, (I didn't delete a file Windows stated as shared) and downloaded Live Monitor from the website.  Installed Live Monitor, started it from the installation, and ran auto search. It worked this time. But, I then tried it again, and again, the same error message occured.  I rebooted, and tried auto-serch again--once again, the error message occurred.  Anyway, prior to yesterday it seemed to be working fine. I did a second uninstall, and re-install. Again, it worked one time and the second time the error message occurred

    CCB33,
    I haven't received a response yet, but MSI has only been back since the 6th,  and after that kind of time out I bet they have a lot of emails to answer.  Funny thing about your post on this thread.  Just before I read it, I tried MSI Live Monitor and had the same thing ocurr. So, I uninstalled it, reinstalled it and it worked the first time.  I then crossed my fingers and toes, exited the program, restarted the program, tried auto-search, and IT WORKED!  No error message appeared.  I exited again, and restarted the program -- it worked again. Woohoo! This time after exiting the result window and the program still running, I then tried the auto-search which worked yet again.  It seems it's functioning now.  If I were you I'd uninstall the program and reinstall it again(I downloaded it from the MSI website ( http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_liveupdate.php ).  I'll try it again tomorrow and see if it still works.
    Edit: This morning, USA eastern time, I tried it and it worked.  This afternoon I don't get the error but a message stating the server may be busy or no internet connectio. Seems to be working fine now.

  • How do you resolve Financial Management service validation error in EPM ?

    Does anyone know how to resolve Financial Management service validation error from EPM Diagnostic Report?
    Environment:
    Quad-Core AMD Processor 2.2 GHz (Server Machine)
    5 GB RAM
    Server 2003 Standard 32-Bit SP2 (also tried in Enterprise)
    Application Server:
    WebLogic Server 9.2 Custom Installation (with Add-Ins)
    http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html
    Database:
    Oracle 10gR2 (Standard Installation per step-by-step guide from Oracle)
    http://www.oracle.com/technology/software/products/database/index.html
    Hyperion EMP System 11.1.1.3:
    Installer
    Foundation Services (4 Files )
    EMP Architect
    Financial Management, Planning, Financial Reporting and Web Analysis (primarily interested in FM)
    http://www.oracle.com/technology/software/products/bi/performance-management/index.html
    The following are the sequences of steps carried out during the Installation and Configuration of EPM:
    1)     Installed the Server along with its respective SP2 – Shutdown the machine
    2)     Assigned IP and DNS addresses
    3)     Installed Window components by ticking Application Server Console, Enable COM+ access, IIS and DNS
    4)     Run “dcpromo” to create a Domain Controller with default values and assigned a domain name – Shutdown the machine
    5)     Installed Weblogic Server 9.2 and configure it using Configuration Wizard – Selected “test environment” and ticked default “listening port” – Shutdown the machine
    6)     Basic installation of Oracle Database 10gR2 using Step-by-Step guide provided by Oracle and carried out Password Management steps. After installation, I then created a user “oracle” and assigned it to ora_dba User Group with the required Local Security Policies – “log on as a batch job” and “Act as part of operating system”
    7)     Logged into database and acknowledge the licensing window – Shutdown the machine
    8)     Restarted the machine and checked all relevant and newly installed Database and WebLogic services are running.
    9)     Started Installing EPM components by double clicking “InstallTool.cmd” and selected all relevant components at ONCE as per Installation Guide – Result: - All selected EPM components were successfully installed without errors or exceptions
    10)     At the end of installation window, I carried out the configuration in the following scearios:
    Scenario 1: Configuration all at Default settings
    Scenario 2: Configuration all, except “Application Server” I selected the WebLogic9.2
    Scenario 3: Configuration all, except “Application Server” and “Workspace Web Server” were being Welogic9.2 and IIS HTTP
    RESULT: After all numerous installations, all came down to ONE ERROR from “Diagnostic Report” stating the following:
    Financial Management:
    FAILED SVR: HFM Service Validation Check if HFM service in working state.
    Error: Error message: <03/11/2010 05:32:26 PM> CreateApplicationCAS... Failed at line: 2
    Recommended Action: Make sure HAT utility is working. 1 s
    I then simply ignored this error and tried to deploy an Application, all worked fine until you get to the point at “Job Console” where you need to press “Refresh” button. Progress remained at 12% until it got timedout after 300 seconds and force attempt of refreshing resulting in “aborted” job with the following error:
    Error Reference Number: {DB3940F5-2D4A-46AB-A370-77F82F121BBA}
    Num: 0x8000ffff;Type: 0;DTime: 4/12/2010 4:39:58 PM;Svr: PBAR;File: CHsvDataSourceImpl.cpp;Line: 196;Ver: 11.1.1.3.0.2413;
    Num: 0x8000ffff;Type: 0;DTime: 4/12/2010 4:40:07 PM;Svr: PBAR;File: CHsxServer.cpp;Line: 1276;Ver: 11.1.1.3.0.2413;
    Num: 0x8000ffff;Type: 0;DTime: 4/12/2010 4:40:07 PM;Svr: PBAR;File: CHsxServer.cpp;Line: 1190;Ver: 11.1.1.3.0.2413;
    Num: 0x8000ffff;Type: 0;DTime: 4/12/2010 4:40:07 PM;Svr: PBAR;File: AgentHelper.cpp;Line: 728;Ver: 11.1.1.3.0.2413;
    Num: 0x8000ffff;Type: 1;DTime: 4/12/2010 4:40:08 PM;Svr: PBAR;File: CHfmAwbAgent.cpp;Line: 744;Ver: 11.1.1.3.0.2413;
    This is, I believe preventing me from deploying Consolidation Apps, including Sample Application provided with EPM Downloads. I have tried installing and configuring by components. All failed with the same outcome.
    I have been working on this effortlessly in different combinations to get at least one Financial Management Application get deployed so I could enhance my learning adventure. As it stands, I am not sure where to get help and completely lost in the World of Oracle. I am also come to wonder whether “Free Downloads of EPM” are indeed, is “complete and is in working-state” or do I need a licence to use for personal learning experience? Are there different downloads for different needs or/users For example, eDelivery downloads are different from OTN Agreement downloads?
    I have downloaded the files from following URL:
    http://www.oracle.com/technology/software/products/bi/performance-management/index.html
    I am completely lost and all services are up and running and not sure what I am missing!! Any assistance will be greatly appreciated.
    Many Thanks
    BT
    Edited by: user8973921 on 13-Apr-2010 05:08
    Edited by: user8973921 on 13-Apr-2010 10:56
    Edited by: user8973921 on 14-Apr-2010 02:30

    I am having exactly the same problem using Windows 2003 Standard editions SP2. Is there anyone who knows a possible solution for this? The effect on HFM is that is not possible to create an application, since I always get an error that says "Server execution failed"
    Error Reference Number: {E68F87E6-588E-4665-862C-AAB02CB299DA}
    Num: 0x80080005;Type: 0;DTime: 12/3/2009 5:21:47 PM;Svr: KINGTUT;File: CHsxServerImpl.cpp;Line: 3522;Ver: 11.1.1.3.0.2413;
    Num: 0x80080005;Type: 0;DTime: 12/3/2009 5:21:47 PM;Svr: KINGTUT;File: CHsxServer.cpp;Line: 1115;Ver: 11.1.1.3.0.2413;
    Num: 0x80080005;Type: 0;DTime: 12/3/2009 5:21:47 PM;Svr: KINGTUT;File: CHsxServer.cpp;Line: 857;Ver: 11.1.1.3.0.2413;
    Num: 0x80080005;Type: 0;DTime: 12/3/2009 5:21:47 PM;Svr: KINGTUT;File: CHsxClient.cpp;Line: 2106;Ver: 11.1.1.3.0.2413;

  • Customizing validation errors

    First of all I want to take moment in conveying my thanks to each and everone who helped me several times and who spend a lot of their valuable time in helping other developers like me.
    Here's my question:
    When the validation errors show up in the notification, they are formatted with yellow triangles. (apex 3.2). How can I remove these yellow triangles?
    I have a page level validation which throws multiple lines of error messages. I want them all to be a bulleted list.
    So, basically I want all item and page level (which may be more than one line of errors)error messages to be a bulleted list.
    How can it be done?
    If bulleted list is hard, then I would atleast like to get rid of yellow triangles because they don't work good for page level validation which throws multiple error messages. Each traingle indicates one error which may not be the case when my page level validation fails.
    Thanks for looking into this thread,
    RN

    Thanks Jari for prompt reply.
    Your solution worked by putting code in page html header section. Yellow triangles got replaced with bullet points.
    Can you please direct me where you found the code
    li     {
    list-style-image: url(Bullet.gif);
    }My actual problem is more complicated. Changing bullets did not solve what I want. I did not describe my problem properly earlier and got carried away in wrong direction.
    I would like to explain again what I want:
    All validation errors show up as a bulleted list. Each bulleted point shows one validation error. But I have a page level validation that checks multiple business rules and throws error lines like this:
    Product Category should be defined. <br>
    Product needs atleast two approvals before moving it to next status.So far, these both error lines show under one bullet because it is result of one validation failure. But I want there two lines to show up under two different bullets because these are two errors.
    If I can't show them this way, then I don't want any error message to be bulleted because bullets will give user wrong impression about number of errors.
    I do want all error messages(from all different validations) show up in new line for the readilibility.
    Hope I explained my requirement better this time.
    Thanks,

  • Exposing validation errors towards end users

    I have some challenges related to business rules validation when using MDS as a domain hub
    On a daily basis (with a limited number of transactions going into MDS from the source system(s)) it is probably sufficient to handle violation of business rules through mail notification / customized workflow.
    However, when handling large data sets - it is not easy to get a (user-friendly) overview of all validation errors.
    For instance: If you have several rules with multiple conditions on each - the member will be listed several times if it triggers one (or more) conditions on one (or more) business rules.
    Anyone who have a solution for this problem ?
    dakine

    First off I have to say that we are doing something similar to the above but not for BR errors. In any case the process is extremely similar to what you are looking for. For your SSRS I would go off the View for that particular entity. in Web UI: 1. Go
    to Integration Management -> Create Views 2. Add a View for the specific Entity . 3. Optionally you could take the above View and modify it in SQL management Studio to have fewer columns to make it faster, and give it another name (the drawback would be
    you would have to manually change it if you need to later) 4. Have SSRS run off the View you created in 2 or 3. If you are asking about how to force Validation through SQL -> mdm.udpValidateEntity, but I am assuming that Validation is done automatically
    while people are entering data. Or after staging, so you only need to see what has failed, or maybe passed ...

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

  • EPMA Business Rule Validation Error

    Validation error from planning server
    “http://servername
    Appname=finplan1
    ‘Error: Cannot calculate dimension member [20010] with restricted member [Cost per Unit COS Material] on Rule finplan1.URC.Manufacturing Cost Calc’

    Are both of those members in the same dimension? Meaning do you have Cost per Unit COS Material in a fix statement and _20010_ in the calculation?

  • Validation Error in Parsing

    Hi
    Please help i am trying to fix this for last 2 days ..
    I am trying to validate the XML in SAX parser and i am getting
    "java.lang.ClassCastException: " error.
    I am pasting the code i have and the sample XML. If some one faced the same kind of problem please share the thoughts
    thanks in advance.
    I am sending the XML from the command prompt
    This is the code i have
    class XMLBean {
    public void onMessage (String uri) {
    Object [] schemas = new Object[] { "C:/Murugaraj/Projects/Atlys-interface/XSD/Schemas/Common/Types/Public/rDataModel.xsd",
    "C:/raj/Projects/Atlys-interface/XSD/Schemas/Atlas/jms/Public/SubscriberNotification.xsd",
    "C:/raj/Projects/Atlys-interface/XSD/Schemas/Atlas/Container/Public/SubscriberNotification.xsd",
    "C:/raj/Projects/Atlys-interface/XSD/Schemas/Atlas/Container/Public/MessageHeader.xsd"};
    System.out.println("Parsing XML File: " + uri + "\n\n");
    // The SAX handler Events are in RequestHandler which is extends from Defaulthandler
    RequestHandler rh = new RequestHandler();
    try {
    String txt = uri;
    System.out.println(txt);
    SAXParserFactory fact = SAXParserFactory.newInstance();
    fact.setNamespaceAware(true);
    fact.setValidating(true);
    fact.setFeature("http://xml.org/sax/features/validation", true);
    fact.setFeature("http://apache.org/xml/features/validation/schema",true);
    fact.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
    SAXParser sp = fact.newSAXParser();
    sp.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",schemas);
    InputSource inSource = new InputSource(new FileInputStream(txt));
    sp.parse(inSource, rh);
    }catch(SAXNotRecognizedException x){
         System.out.println(" SAXNotRecognizedException Parsing error" );
         x.getMessage();
    }catch(SAXParseException spe){
         System.out.println("\n** Parsing error SAXParseException" + ", line " + spe.getLineNumber() + ", uri " + spe.getSystemId());
    System.out.println(" " + spe.getMessage());
         Exception x = spe;
         if (spe.getException() != null)
         x = spe.getException();
         x.printStackTrace();
    }catch(SAXException sxe){
         System.out.println(" SAXException Parsing error" );
         Exception x = sxe;
         if(sxe.getException() != null)
              x=sxe.getException();
         x.printStackTrace();
    }catch (IOException ioe) {
    System.out.println(" IOException Parsing error" );
    ioe.printStackTrace();
    }catch (Throwable t){
    t.printStackTrace();
    } // End of catch
    } // End of onMessage
    public static void main(String[] args) {
         if (args.length != 1) {
         System.out.println("Usage: java SAXParserDemo [XML URI]");
         System.exit(0);
         String uri = args[0];
         XMLBean call = new XMLBean ();
         call.onMessage(uri);
    } // End of main
    } // End of XMLBean
    This is the error i am getting
    java.lang.ClassCastException: [Ljava.lang.Object;
    at weblogic.apache.xerces.impl.xs.XMLSchemaValidator.reset(Lweblogic/apa
    che/xerces/xni/parser/XMLComponentManager;)V(XMLSchemaValidator.java:1374)
    at weblogic.apache.xerces.parsers.BasicParserConfiguration.reset()V(Basi
    cParserConfiguration.java:523)
    at weblogic.apache.xerces.parsers.DTDConfiguration.reset()V(DTDConfigura
    tion.java:624)
    at weblogic.apache.xerces.parsers.DTDConfiguration.parse(Z)Z(DTDConfigur
    ation.java:498)
    at weblogic.apache.xerces.parsers.DTDConfiguration.parse(Lweblogic/apach
    e/xerces/xni/parser/XMLInputSource;)V(DTDConfiguration.java:581)
    at weblogic.apache.xerces.parsers.XMLParser.parse(Lweblogic/apache/xerce
    s/xni/parser/XMLInputSource;)V(XMLParser.java:152)
    at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg/xml/sax/I
    nputSource;)V(AbstractSAXParser.java:1175)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg/xml/sax/InputSource;)V
    (WebLogicXMLReader.java:135)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg/xml/sax/InputSource;)V
    (RegistryXMLReader.java:152)
    at javax.xml.parsers.SAXParser.parse(Lorg/xml/sax/InputSource;Lorg/xml/s
    ax/helpers/DefaultHandler;)V(SAXParser.java:345)
    at XMLBean.onMessage(Ljava/lang/String;)V(XMLBean.java:80)
    at XMLBean.main([Ljava/lang/String;)V(XMLBean.java:130)
    The Sample XML looks like this
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SubscriberNotification xmlns:cng="http://csi.test.com/CSI/Namespaces/Types/Public/DataModel.xsd" xmlns="http://csi.test.com/ATLAS/Namespaces /Container/JMS/SubscriberNotification.xsd" xmlns:sn="http://csi.test.com/ATLAS/Namespaces/Container/Public/SubscriberNotification.xsd" xmlns:mh="http://csi.test.com/ATLAS/Namespaces/Container/Public/MessageHeader.xsd">
    - <mh:MessageHeader>
    - <mh:TrackingMessageHeader>
    <cng:version>v3</cng:version>
    <cng:messageId>08001200312101117273772521</cng:messageId>
    <cng:originatorId>CARE</cng:originatorId>
    <cng:dateTimeStamp>2005-08-23T13:45:57Z</cng:dateTimeStamp>
    </mh:TrackingMessageHeader>
    - <mh:SequenceMessageHeader>
    <cng:sequenceNumber>1</cng:sequenceNumber>
    <cng:totalInSequence>1</cng:totalInSequence>
    </mh:SequenceMessageHeader>
    </mh:MessageHeader>
    - <sn:SubscriberNotification>
    <sn:billingSystemEventGenrationDateTime>2003-12-10T11:17:27.377Z</sn:billingSystemEventGenrationDateTime>
    <sn:notificationType>UpdateSubscriberStatusNotification</sn:notificationType>
    <sn:notificationSubType>3400</sn:notificationSubType>
    - <sn:Account>
    - <sn:billingMarket>
    <sn:billingMarket>08</sn:billingMarket>
    </sn:billingMarket>
    <sn:billingSystemId>CARE</sn:billingSystemId>
    </sn:Account>
    </sn:SubscriberNotification>
    </SubscriberNotification>

    Thanks bckrispiYou're welcome, :)
    seems like i can pass array of objects so then i
    decided to pass multiple schemas. Also there is one
    sun website claims validating multiple schemasIf you're talking about the new Validation Framework, yes, the tutorials say you can pass it multiple schemas with the same namespace. Unfortunately, the implementation is broken
    Yes, i want to validate with more than one schema ..
    'cos my XML generated based on 4 schemas ( xsd's)
    I did not get what you mean by "import" dependand
    schemas..
    import the depandant schema on the "parent schema"
    thats what you meant ?If you have a "parent" xsd that uses an <xsd:import> on its dependencies, then you just need to pass the parent xsd into your SAX Parser.

  • Javax.xml.parsers.SAXParser parser() error

    Hi,
    I've got some code that works fine in the Forte for Java IDE but just will not work when running as a stand-alone Windows application. I think it's to do with the filename having spaces in the pathname?
    Any help would be great!
    Regards.
    Gary Revell
    [email protected]
    [email protected]
    I've attached the code and the error(s) I get
    ------------------CODE FRAGMENT------------------
    // loadCE.java
    // Created on 25 April 2001, 15:43
    // @author RevellG
    // @version V1.0
    // This class is used to load the Standard Call Reporting XML document
    // and to allow the easy interrogation of the contents. The data can
    // then be used to populate fields in the Call Reporting GUI.
    import java.util.Vector;
    import java.io.*;
    import java.util.*;
    import java.util.Collections;
    import org.xml.sax.*;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class loadCallElement extends Object
    private static loadCall loadCall = null;
    private static boolean DEBUG = false;
    // Creates new loadCE
    public loadCallElement(boolean debugFlag )
    this.DEBUG = debugFlag;
    public void parseDoc( String docName ) throws Throwable
    // Use the default (non-validating) parser
    SAXParserFactory factory = null;
    try
    // Parse the input
    factory = SAXParserFactory.newInstance();
    SAXParser saxParser = factory.newSAXParser();
    loadCall = new loadCall(DEBUG);
    saxParser.parse( new File( docName ), loadCall );
    catch (Throwable t)
    // catch ( Exception t )
    System.err.println( t.getMessage() +" - <"+docName+">");
    t.printStackTrace ();
    loadCall.ceTree.clear();
    throw t;
    ------------------Error and Stack Trace---------------
    E:\Support\Call Logs\bin>java -classpath .\SCM_GUI.jar;%CLASSPATH%;%XML_HOME%\jaxp.jar;%XML_HOME%\parser.jar M
    anagerInterface > g.g
    CWD /Telecom/Support/Call Logs/Logs/Open/BBC PICS/001$revellg$qwerty.xml: 550 /Telecom/Support/Call Logs/Logs/
    Open/BBC PICS/001$revellg$qwerty.xml: The system cannot find the path specified.
    - <\\Reoclu1\Telecom\Support\Call Logs\Logs\Open\BBC PICS\001$revellg$qwerty.xml>
    java.io.FileNotFoundException: CWD /Telecom/Support/Call Logs/Logs/Open/BBC PICS/001$revellg$qwerty.xml: 550 /
    Telecom/Support/Call Logs/Logs/Open/BBC PICS/001$revellg$qwerty.xml: The system cannot find the path specified
    at sun.net.ftp.FtpClient.readReply(Unknown Source)
    at sun.net.ftp.FtpClient.issueCommand(Unknown Source)
    at sun.net.ftp.FtpClient.issueCommandCheck(Unknown Source)
    at sun.net.ftp.FtpClient.cd(Unknown Source)
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at com.sun.xml.parser.InputEntity.init(InputEntity.java:141)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:463)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
    at loadCallElement.parseDoc(loadCallElement.java:52)
    at SCMView.create(SCMView.java, Compiled Code)
    at EventController$5.actionPerformed(EventController.java:116)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    Thanks Jim,
    I've installed JDK V1.3.1 and the problem HAS gone away..... However now JDK V1.3.1 won't install on other Win 2K machines.....
    Gary.

  • ORA-20100: Error occurred while parsing (from xml in custom schema)

    Hi,
    I am using xmlParser and xmlDom to extract information from xml document. My whole process works perfectly in the APPS schema on the Oracle e-Business Suite. The minute I move it to a custom schema (ie new User) I get this error.
    ORA-20100: Error occurred while parsing: Element '' used but not declared.
    This only occures at runtime. I am pretty sure I grant the correct SELECT and EXECUTE privileges to this Schema. If I hadn't then it would not compile. It compiles without errors on the Database.
    Any help will be appreciated.
    Thanks in advance.
    Regards
    Dave

    I just tried this again. I have Oracle9i 9.0.1.1 on my Windows
    2000 laptop.
    I went to OTN and downloaded the XDK 9.0.2D for PL/SQL
    I used loadjava to load the \oracle\ora90\rdbms\jlib\xdb_g.jar
    file into the database (shouldn't have had to do this) into the
    XMLBOOK account. Filed a bug for needing to do this by hand.
    I ran "xdkload.bat" with xmlbook/xmlbook as the username/password
    I made sure the proxy server name was set correctly in the
    example (if you don't need a proxy server, comment out that line
    in the parse_xml_news.sql example, or that could cause your
    error!!)
    I ran the parse_xml_news.sql script, and I get:
    Top Stories on XML from Moreover.com on December 21st, 2001
    ( 1) CEO highlights Mercator Softwares single biggest opportunity
    ( 2) WWRE Chooses webMethods
    ( 3) WebMethods, retail exchange ink deal
    ( 4) Worldwide Retail Exchange Chooses webMethods
    ( 5) Worldwide Retail Exchange Chooses webMethods
    ( 6) WorldWide Retail Exchange choses webMethods for integration
    ( 7) XML: Wherever You Go, There You Are
    ( 8) Chap. 13: Metadata
    ( 9) Enterprise Adoption of XML Made Simple
    (10) XML Databases
    (11) Using CSS2 to display XML documents
    (12) How XML could bring an end to all of your troubles
    (13) Effort Launched To Bring Classic Macs Rich Metadata To Mac
    (14) Sneak attack on Pearl Harbor roused publics anger, resolve
    (15) Drug dogs whiff worth $230,000
    (16) PORTLAND Police target
    (17) 11-year-old cant seem to get out of jury duty
    (18) Another casualty of war: Proposed waterfront museum
    (19) webMethods Establishes Sales Operations in Brussels
    (20) Using Emacs for XML documents
    (21) Gates: XML could be everything we dreamed...
    (22) XML: The end of all your troubles?
    (23) Java XML
    (24) Tool To Compare XML Files
    (25) Fairfax County Sends webMethods to School
    (26) webMethods Embraces Web Services
    (27) WebMethods Supports Web Services
    (28) Accessing metadata through Reflection
    (29) When format is foremost
    (30) Views from Abroad: XML Pipelines and Delta XML

  • Trying to install Creative Cloud Desktop on windows 8.1, I've tried everything. Cloud Cleaner, removed all Adobe products from computer, ran in Administrator Deleted everything still get error code 1

    I've tried everything. Cloud Cleaner, removed all Adobe products from computer, ran in Administrator Deleted everything still get error code 1 noting in all the troubleshoots have helped.

    Error Code 1: "Failed to install" | Creative Cloud Desktop :
    https://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html

  • I downgrad my iphone from ios5 to ios 4.3.3 and after restoring the ios 4.3.3 i fixed all itunes error but after that my i phone screen turned off and the apple logo didnt shows up any more what ever i did my iphone model 4 gsm

    i downgrad my iphone from ios5 to ios 4.3.3 and after restoring the ios 4.3.3 i fixed all itunes error but after that my i phone screen turned off and the apple logo didnt shows up any more what ever i did my iphone model 4 gsm and fyi  i try all the ways to turn it on but it didnt sucsses

    roaminggnome 
      thanks for helping but i didnt know that is the downgrade is forbidden  and i ask for help and u didnt help me so i just want to thank u for telling me that is the downgrade is forbidden >>> but now i didnt have i phone any more so thank u so much again >>>> 

Maybe you are looking for

  • How to plot cross-corr​elation in terms of the real time?

    Usually the cross-correlation or the auto-correlation results are plotted vs. the lag(tao). But how can I plot it vs. the real time of the input signal? I have two same length input signals having same input time.

  • 'Order type not defined in the sales area'.

    Hi, I am creating a sales order, in order type I am taking standard order 'OR' but it is giving error message -'Order type not defined in the sales area'. Pls where to tweak.. regards,

  • Some of the subfolders will not show bookmarks when I click on the folder containing the subfolder.

    I have three computers. 27" iMac, 11" MacBook Air, 13" MacBook Pro. All my bookmarks are synced with Xmarks. On the iMAc and the MacBook Air, the bookmarks work as they should. The bookmark list drops down when I click on Bookmarks and all the subfol

  • Disk errors during backup

    Hi, I'm baaaaaaack! I have a new (replacement) Netware 6.5 SP8 server running Groupwise, with 4 RAID'ed 450GB 10K SAS drives giving me about 1.2TB of space. In keeping things arranged close to the way they were before I arrived, for now at least, I h

  • ALE/IDOC TRANSPORT ERROR FOR Z TABLE

    Dear Experts,                     I am new to ALE/IDOC,I am trying a simple scenario by transporting a ztable data between two clients with in a same server. steps i have done are : 1, created logical system at both sender and receiver. 2, assigned l