Examples of XMLException


Examples of nu.xom.XMLException

      }
    }
  }
 
  private static void throwTamperedWithParent() {
    throw new XMLException("Factory has tampered with a parent pointer " +
        "of ancestor-or-self in finishMakingElement()");
  }
View Full Code Here

Examples of nu.xom.XMLException

  public Builder createW3CBuilder(Map schemaLocations) {
    XMLReader parser = createParser(true);
    try {
      setupW3CParser(parser, schemaLocations);     
    } catch (SAXException e) {
      throw new XMLException(
        "Can't find or create W3C schema validating parser (i.e. Xerces)" +
        " - check your classpath",
        e);
    }
   
View Full Code Here

Examples of nu.xom.XMLException

      else {     
        setupFeaturesAndProps(parser);
      }
      if (DEBUG) System.err.println("using MSV XMLReader=" + parser.getClass().getName());
    } catch (SAXNotRecognizedException ex) { // e.g. syntax or semantic error in schema
      throw new XMLException(ex.toString(), ex);
    } catch (Exception ex) {
      throw new XMLException(
          "Could not find or create a suitable MSV parser" +
          " - check your classpath"
          , ex);
    } catch (NoClassDefFoundError ex) {
      throw new XMLException(
          "Could not find or create a suitable MSV parser" +
          " - check your classpath"
          , ex);
    }
   
View Full Code Here

Examples of nu.xom.XMLException

      parser = factory.newSAXParser().getXMLReader();
      setupFeaturesAndProps(parser);
      if (DEBUG) System.err.println("using default JAXP XMLReader=" + parser.getClass().getName());
      return parser;
    } catch (Exception ex) {
      throw new XMLException(
          "Could not find or create a suitable SAX2 parser" +
          " - check your classpath",
          ex);
    } catch (NoClassDefFoundError ex) {
      throw new XMLException(
          "Could not find or create a suitable SAX2 parser" +
          " - check your classpath",
          ex);
    }
  }
View Full Code Here

Examples of oracle.toplink.essentials.internal.ejb.cmp3.xml.parser.XMLException

            throw XMLParseException.exceptionReadingXMLDocument(documentName, ioex);
        } catch (SAXException saxex) {
          // XMLExceptionHandler will handle parse exceptions
        }
       
        XMLException xmlEx = xmlExceptionHandler.getXMLException();
        if (xmlEx != null) {
          throw ValidationException.invalidEntityMappingsDocument(documentName, xmlEx);
        }
       
        return doc;
View Full Code Here

Examples of org.activiti.bpmn.exceptions.XMLException

    if (schema == null) {
      schema = factory.newSchema(BpmnXMLConverter.class.getClassLoader().getResource(BPMN_XSD));
    }
   
    if (schema == null) {
      throw new XMLException("BPMN XSD could not be found");
    }
    return schema;
  }
View Full Code Here

Examples of org.apache.pluto.portalImpl.xml.XmlException

                    String guid = servlet.getInitParameterSet().get("portlet-guid").getValue();
                    servletMap.put(guid, servlet);

                    ServletMappingImpl servletMapping = (ServletMappingImpl)mappings.get(servlet.getServletName());
                    if (mappings==null) {
                        throw new XmlException("No corresponding servlet mapping found for servlet name '"+servlet.getServletName()+"'");
                    }
                    ((Support)servlet).postBuild(servletMapping);

                }
            }
View Full Code Here

Examples of org.apache.shindig.common.xml.XmlException

          } else {
            HTML_SERIALIZER.serialize(msgChildren.item(child), sw);
          }
        } catch (IOException e) {
          throw new SpecParserException("Unexpected error getting value of msg node",
                                        new XmlException(e));
        }
      }
      messages.put(name, sw.toString().trim());
    }
View Full Code Here

Examples of org.apache.xmlbeans.XmlException

                                String jspFile = cursor.getTextValue();
                                if (!jspFile.startsWith("/")){
                                    if (is22) {
                                        cursor.setTextValue("/" + jspFile);
                                    } else {
                                        throw new XmlException("jsp-file does not start with / and this is not a 2.2 web app: " + jspFile);
                                    }
                                }
                            }
                            cursor.pop();
                        }
View Full Code Here

Examples of org.apache.xmlbeans.XmlException

    try {
      return getTargetPart(
        getCorePart().getRelationship(master.getId2())
      );
    } catch(InvalidFormatException e) {
      throw new XmlException(e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.