SAXParser Error

Hi
I have written a code for reading the xml data using SAXParser.... my code is like this :
package example.sax;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.XMLReaderFactory;
class Cheapest extends DefaultHandler{
     double min = Double.MAX_VALUE;
     String vendor = null;
     public void startElement(String name,Attributes attributes){
          if(name.equals("price")){
               String attribute = attributes.getValue("price");
               if(attribute != null){
                    double price = toDouble(attribute);
                    if(min > price){
                         min = price;
                         vendor = attributes.getValue("vendor");
     public double toDouble(String string){
          Double stringDouble = Double.valueOf(string);
          if(stringDouble != null){
               return stringDouble.doubleValue();
          }else {
               return 0.0;
     public String getVendor(){
          return vendor;
     public double getMinimum(){
          return min;
public class SAXParserExample {
     public static void main(String args[])throws Exception {
          Cheapest cheapest = new Cheapest();
          XMLReader xmlReader = XMLReaderFactory.createXMLReader("javax.xml.parsers.SAXParser");
          xmlReader.setDTDHandler(cheapest);
          xmlReader.parse(args[0]);
          System.out.println(cheapest.getMinimum()+":"+cheapest.getVendor());
when i am running this i am getting the following error :
Exception in thread "main" java.lang.IllegalAccessException: Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParserFactory with modifiers "protected"
     at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
     at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
     at example.sax.SAXParserExample.main(SAXParserExample.java:52)
please help me ....
Thanks & Regards
Ravi Shankar B

Hi
I have written a code for reading the xml data using SAXParser.... my code is like this :
package example.sax;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.XMLReaderFactory;
class Cheapest extends DefaultHandler{
     double min = Double.MAX_VALUE;
     String vendor = null;
     public void startElement(String name,Attributes attributes){
          if(name.equals("price")){
               String attribute = attributes.getValue("price");
               if(attribute != null){
                    double price = toDouble(attribute);
                    if(min > price){
                         min = price;
                         vendor = attributes.getValue("vendor");
     public double toDouble(String string){
          Double stringDouble = Double.valueOf(string);
          if(stringDouble != null){
               return stringDouble.doubleValue();
          }else {
               return 0.0;
     public String getVendor(){
          return vendor;
     public double getMinimum(){
          return min;
public class SAXParserExample {
     public static void main(String args[])throws Exception {
          Cheapest cheapest = new Cheapest();
          XMLReader xmlReader = XMLReaderFactory.createXMLReader("javax.xml.parsers.SAXParser");
          xmlReader.setDTDHandler(cheapest);
          xmlReader.parse(args[0]);
          System.out.println(cheapest.getMinimum()+":"+cheapest.getVendor());
when i am running this i am getting the following error :
Exception in thread "main" java.lang.IllegalAccessException: Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParserFactory with modifiers "protected"
     at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
     at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
     at example.sax.SAXParserExample.main(SAXParserExample.java:52)
please help me ....
Thanks & Regards
Ravi Shankar B

Similar Messages

  • Oracle.xml.parser.v2.SAXParser error

    I'm reposting this error that I recently received one more time before removing the XML transforms from my Java projects and doing them in .NET.
    Code that was working fine suddenly getting a transform error using JDeveloper.
    Get the following:
    javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser).
         at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:417)
    Seems that
    <!--
    <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <h1>Project Weekly Hours Worked</h1>
    <table>
    <c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
    <c:import url="./HoursWorked3.xsl" var="xslt" charEncoding="windows-1252"/>
    <x:transform xml="${xmlHoursWorked}" xslt="${xslt}" />
    </table>
    -->
    will not transform XML to HTML via XSL in JSP anymore.
    If I run the XSL i get the HTML results I expected in an HTML test page.
    So I know the XML and XSL is sound.
    XSL and DOM parsing in Java/Oracle was a major pain in the ass in the first place and now this.
    Well I've spent hours going through Oralce/Java documentation on XML, DOM and XSL transforms.
    All that time spent and still so unstable. I don't think I was ever able to really get what I wanted
    which was to transform my XML document to HTML, update via JSP and have the XML document
    be updated and ready to view in a summary page. The XML document changes were never really
    available unless I closed the app and restarted. So all in all a failure of capabilities compared to my
    use of XML in .NET.
    So........
    Me thinks it will be a good idea to take out the transforms and have my JSP use a script to invoke a
    method in a class that extracts it from a message. Just have PL/SQL interface with XML and do the
    transform or serialize thing there.
    I don't want to give up on XML but I'm tired of trying to jam a square peg into a round hole
    with Java and JDeveloper.
    Brian

    We don't support file references ("cv1_0.dtd"). Only url type references
    are supported, of the form:
    @ <!DOCTYPE cv1 SYSTEM "http://www.oracle.com/public/cv1_0.dtd>
    Note that the url should be accessible to the world without the need to authenticate.
    you could put your dtd in the "public" area in your iFS system.
    Thanks,
    Sirisha
    null

  • SaxParser error  parsing xml encoded string

    I'm trying to parse an XML string with Java's SaxParser. The program
    fails at the end of an element or at the beginning of a new element.
    Is my XML string okay?
    <?xml version="1.0" encoding="utf-8"
    ?><DTYPE>OVL</DTYPE><DTYPE>IMG</DTYPE>. . .
    If fails after </DTYPE> and before the next <DTYPE>
    The Sax Parser works fine on files.
    Here is the code I use to send the string to the parser :
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    InputStream is = new ByteArrayInputStream(stringToParse.getBytes());
    saxParser.parse( is, handler );
    Here is the error message I get :
    org.xml.sax.SAXParseException: Inadmissible sign at the document end<
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3370)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:673)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
    at
    org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at EchoSaxParser.parse(EchoSaxParser.java:51)
    at StringParser.parse(StringParser.java:23)
    at Servant.stringparse(Servant.java:30)
    at TEST._TestImplBase._invoke(_TestImplBase.java:43)
    at
    com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java�:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at
    com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.ja�va:81)
    at
    com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.ja�va:106)
    Any help would be greatly appreciated!
    Thank you!

    <?xml version="1.0" encoding="utf-8" ?><DTYPE>IMG</DTYPE><DTYPE>REF</DTYPE>Above is a short XML string that causes the problem.
    It's all one line.
    I also tried adding System.getProperty("line.separator") add the
    end of each tag so I get :
    <?xml version="1.0" encoding="utf-8" ?>
    <DTYPE>IMG</DTYPE>
    <DTYPE>REF</DTYPE>But same error. It still crashes after the first <DTYPE></DTYPE> tag.
    Any help greatly appreciated!

  • SaxParser error while using WSIF bindings in BPEL

    Hi All,
    I am using WSIF bindings in BPEL to invoke a java class.
    This java classs is using Jersey Client. For this I have imported relevant jersey jar files version 1.1.4.1.
    My java class is getting invoked and even the jersey client jars are also recognized by my project.
    But I am getiing the following SAX parser error:
    *Operation failed!; nested exception is: javax.ws.rs.WebApplicationException: javax.xml.bind.JAXBException: Error creating SAXSource - with linked exception: [org.xml.sax.SAXNotSupportedException: SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.]*
    I found the following details when checked the logs.
    JAXP feature XMLConstants.FEATURE_SECURE_PROCESSING cannot be set on a SAXParserFactory. External general entity processing is disbaled but other potential securty related features will not be enabled.
    Please let me know what should be done in order to solve this issue.
    Thanks in advance!!!

    I am having the same problem in a non-BPEL application. I am using Oracle MDS in an application that is also using Jersey 1.1.4.1 and it blows up Jersey 1.1.4.1 in the same way.
    Oracle MDS has a dependency on Oracle XDK, an XML parser (xmlparserv2.jar). xmlparserv2.jar registers Oracle's oracle.xml.jaxp.JXSAXParserFactory using the Java ServiceLoader API (by using the file META-INF/javax.xml.parsers.SAXParserFactory.
    Jersey doesn't like Oracle's JXSAXParserFactory, as you can see. From what I've found so far, it seems that the Oracle SAXParserFactory is clamped down for security and Jersey will not work with it. Here is a more complete stack trace that I have:
    [org.xml.sax.SAXNotSupportedException: SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.]
    at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getSAXSource(AbstractJAXBProvider.java:178)
    at com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider.readFrom(XMLRootElementProvider.java:110)
    at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.readFrom(AbstractRootElementProvider.java:105)
    Caused by: org.xml.sax.SAXNotSupportedException: SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.
    at oracle.xml.parser.v2.NonValidatingParser.setFeature(NonValidatingParser.java:1974)
    at oracle.xml.parser.v2.SAXParser.setFeature(SAXParser.java:270)
    at oracle.xml.jaxp.JXSAXParserFactory.newSAXParser(JXSAXParserFactory.java:92)
    at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getSAXSource(AbstractJAXBProvider.java:174)
    In my case, Jersey seems to ignore the system property that I set with -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    I am trying to figure out a way to satisfy the dependency that my app has on Oracle's XDK (xmlparserv2.jar) without having its SAXParserFactory take over Jersey.
    I'll try to post here if I ever solve my problem because it sounds the same as yours.

  • SaxParser error when deploying J2EE application on 10gAS for IBM AIX 5.2

    Hello,
    We have problems deploying J2EE application on 10gAS 9.0.4.0.0, on IBM AIX 5.2. We deployed it on 10gAS for Windows 9.4.0.0 and 9.0.4.0.1, and on 10gAS 9.0.4.0.0 for Linux, without any trouble (installed ADF runtime, etc.).
    Application architecture is JSP/Struts/ADF BC4J. We used JHeadstart 10g framework.
    As soon as we start the application, we get the message described bellow. We saw that J2SE version, shipped with the AS is 1.4.1? On all the other AS versions, and in embedded JDeveloper OC4J is 1.4.2.
    We also use the Xerces library xercesImpl.jar, which is located in .../WEB-INF/lib directory (which contains SaxParser implementation), if that is important. But the application fails right on the beginning.
    The complete error message follows:
    javax.xml.parsers.FactoryConfigurationError: Provider null could not be
    instantiated: java.lang.NullPointerException at
    javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:30) at
    org.apache.commons.digester.Digester.getFactory(Digester.java:512) at
    org.apache.commons.digester.Digester.getParser(Digester.java:686) at
    org.apache.commons.digester.Digester.getXMLReader(Digester.java:902) at
    org.apache.commons.digester.Digester.parse(Digester.java:1567) at
    org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433) at
    org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at
    oracle.jheadstart.controller.struts.JhsActionServlet.init(JhsActionServlet.java:219) at
    com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4523)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:568)
    Any information would be helpful,
    Vladimir,
    MAOP d.o.o., Slovenia

    Figures, I've been fighting with this for the past day and a half and I figure it out shortly after I post the question.
    It turns out the tiles.jar that was in our WEB-INF/lib directory was an old one. It looks like the newer struts.jar (from jdeveloper) we're using includes the tiles information. Once I removed tiles.jar, commons-dbcp, pool, resources, and services, it works now.
    It looks like jdeveloper overwrites most of those files with it's built in struts integration, and we've just been lucky before that struts.jar was being loaded before tiles.jar and something with oas 10.1.3 is loading the jars in a different order--but I'm just guessing here.

  • Error: Namespace not supported by SAXParser

    here's my xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <guest>
         <name>
              <first>Johnny</first>
              <last>Blasto</last>
         </name>
         <address id="12345" type="home">
              <street>5101 Great American Pkwy.</street>
              <city>Santa Clara</city>
              <state>CA</state>
              <zip>95054</zip>
              <country>USA</country>
         </address>
    </guest>
    here's my xsl
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="html" indent="yes"/>
    <xsl:template match="links">
    <HTML>
    <HEAD>
    <TITLE>Fun with XSL</TITLE>
    </HEAD>
    <BODY>
    <table cellspacing="0" width="100%">
    <tr>
    <td class="clear" align="center">
    <table width="95%">
    <xsl:apply-templates select="guest"/>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    </xsl:template>
    <xsl:template match="guest">
    <tr>
    <td>
    <xsl:value-of select="name/first" />
    </td>
    </tr>
    </xsl:template>
    </xsl:stylesheet>
    here's my jsp
    <%@page contentType="text/html"%>
    <%@ page import="javax.xml.transform.Templates"%>
    <%@ page import="javax.xml.transform.Transformer"%>
    <%@ page import="javax.xml.transform.stream.StreamSource"%>
    <%@ page import="javax.xml.transform.stream.StreamResult"%>
    <%@ page import="javax.xml.transform.TransformerException"%>
    <%@ page import="javax.xml.transform.TransformerFactory"%>
    <%@ page import="java.io.FileInputStream"%>
    <%@ page import="java.io.File"%>
    <%@ page import="java.io.IOException"%>
    <%@ page import="java.io.InputStream"%>
    <%@ page import="java.io.StringWriter"%>
    <html>
    <head><title>Test Document Viewer</title></head>
    <body>
    <%
    try {
    String xml_filename = "c:/apache/tomcat/webapps/ConsumerTest/Documents/addresses.xml";
    String xsl_filename = "c:/apache/tomcat/webapps/ConsumerTest/Documents/addresses.xsl";
    StreamSource xslSource = new StreamSource( new File(xsl_filename));
    StreamSource xmlSource = new StreamSource( new File(xml_filename));
    // pre-compile the stylesheet
    // in a real application you would only want to do this
    // once and keep reusing it
    //Templates templates = tfactory.newTemplates( xslSource );
    //StringWriter sos = new StringWriter();
    StreamResult result = new StreamResult( out );
    // in a real application if you reuse a pre-compiled
    // stylesheet
    // you need to use it in a thread-sfae manner,
    // grabbing a new
    // transformer before completing the transformation
    // is the way to go
    TransformerFactory tfactory = TransformerFactory.newInstance();
    Transformer transformer = tfactory.newTransformer(xslSource);
    transformer.transform( xmlSource, result );
    catch ( Exception ex )
    System.out.println(ex.getMessage());
    %>
    </body>
    </html>
    and i got "Namespace not supported by SAXParser" error at the console
    please help
    thanks

    Hi,
    I had the same problem trying to run on tomcat-3.2.1 the serlvet samples from xalan-2.1.0. I solved this by removing the older parsers and SAX packages from the classpath (I removed parser.jar and jaxp.jar from $TOMCAT_HOME/lib/ and replaced with xerces.jar that came with xalan and with a new SAX API).

  • XML(SAX) +Java 1.1.7(8) + Ora 8.1.5

    Hello,
    It is possible to write Java Stored Procedure using SAX to parse XML?
    What type of parse shell i use?
    When i load xmlparserv2.jar a get a lot of errors, that "something" cannot be resolved.... what is wrong?

    loadjava -user system/manager -r -v xmlparserv2.jar
    Parser for java and after load and create loadjava try resolve...
    At the beggining the messages looks like:
    resolver :
    resolving: oracle/xml/parser/v2/DOMParser
    Errors in oracle/xml/parser/v2/DOMParser:
    ORA-29534: referenced object SYSTEM.oracle/xml/parser/v2/DocumentBuilder cou
    ld not be resolved
    ORA-29545: badly formed class: java.lang.NullPointerException
    resolving: oracle/xml/parser/v2/SAXParser
    Errors in oracle/xml/parser/v2/SAXParser:
    ORA-29534: referenced object SYSTEM.oracle/xml/parser/v2/NonValidatingParser
    could not be resolved
    resolving: oracle/xml/parser/v2/XMLParser
    Errors in oracle/xml/parser/v2/XMLParser:
    ORA-29534: referenced object SYSTEM.oracle/xml/parser/v2/NonValidatingParser
    could not be resolved
    null

  • Help: How to Validate XML using SAXParser and return the entire error list

    Hi,
    I have a problem, I'm trying to validate a xml document against the DTD. Here Im using SAXParser and having the ErrorHandler object passed when setting the error Handler, like parser.setErrorHandler(errorHandlerObj).
    I need an output like where the entire XML document is read and all the errors have to be reported with the line number.
    like example:
    <b>Line 6: <promp>
    [Error]:Element type "promp" must be declared.
    Line 8: </prompt>
    [Fatal Error]:The end-tag for element type "promp" must end with a '>' delimiter.
    who can i achieve this.</b>
    what happens with the present code is that it throws the first error it encountered and comes out.
    how can i solve this problem

    You can try to set the following feature to 'true' for your SAXParser:
    http://apache.org/xml/features/continue-after-fatal-error
    At least Xerces supports this feature.

  • 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!

  • 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.

  • How to avoid reference errors in SAXParser?

    Hi,
    org.xml.sax.SAXParseException: The entity "MyExternalEntity" was referenced, but not declared.
    can someone tell me how to tell SAXParser to just ignore the entity refernces it finds while parsing, any workaround?
    thanks!

    here is what i tried. i still get the same problem you had in the beginning though. namely, "org.xml.sax.SAXParseException: Reference to undefined entity "&bull;""
    import org.xml.sax.*;
    import org.xml.sax.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.io.*;
    public class TestDriver {
    public TestDriver() {
    SAXParserFactory sf = SAXParserFactory.newInstance();
    TestHandler TH = new TestHandler();
    try {
    SAXParser p = sf.newSAXParser();
    p.setProperty("http://xml.org/sax/properties/lexical-handler",TH);
    p.parse("C:/70235.xml",TH);
    } catch (Exception e) {
    e.printStackTrace();
    public static void main(String[] args) {
    TestDriver testDriver1 = new TestDriver();
    ------------my handler class header nothing implemented----------------------
    import org.xml.sax.ext.LexicalHandler;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    public class TestHandler extends DefaultHandler implements LexicalHandler{                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while creating a callable object - User Interface

    Hello,
    When i'm trying to create a callable object - User Interface in the guided procedure design time. i'm getting an error. An internal server error. This is happening while i'm trying to create a guided procedure with webdynpro's.
    Is there any body who allready had somthing like this.
    Greetings
    Kurt

    Hi Raja Akella,
    I allready had the roles and my portal version is upgraded until SP8 and all the possible patches.
    I get an internal server error when i want to create a callable object. specially when i want to create a webdynpro ( ABAP / JAVA).
    In the visual administrator i get the following  errors.
    <b>Error 1</b>
    Exception occured during processing of a Web Dynpro application: "com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.".
    [EXCEPTION]
    com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.
         at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:640)
         at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponentInternal(IWDApplicationInfo.java:286)
         at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponent(IWDApplicationInfo.java:270)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.addWdappsElement(COConfigWDApp.java:646)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readWebDynproApps(COConfigWDApp.java:631)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readApplications(COConfigWDApp.java:308)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalCOConfigWDApp.readApplications(InternalCOConfigWDApp.java:190)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.initCreate(VSelect.java:306)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.onPlugFromDispatch(VSelect.java:174)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:168)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:873)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)
         at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:178)
         at com.sap.tc.webdynpro.repository.persistence.xml.XMLPersistence.doReadVMO(XMLPersistence.java:126)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.readVMO(RepositoryPersistence.java:356)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.doFindRepositoryObject(RepositoryPersistence.java:598)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.findRepositoryObject(RepositoryPersistence.java:170)
         at com.sap.tc.webdynpro.repository.model.Repository.findRepositoryObjectInternal(Repository.java:590)
         at com.sap.tc.webdynpro.repository.model.RepositoryObjectRelation$XMLGuidWrapper.getModelObject(RepositoryObjectRelation.java:462)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.getCurrentLayerObject(RepositoryPersistence.java:702)
         at com.sap.tc.webdynpro.repository.model.Repository.getCurrentLayerObject(Repository.java:1483)
         at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.doMergeInheritedTarget(NonSharedRelationToOne.java:85)
         at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.mergeInheritedTargets(NonSharedRelationToOne.java:49)
         at com.sap.tc.webdynpro.repository.model.RelationToOne.getTarget(RelationToOne.java:93)
         at com.sap.tc.webdynpro.repository.model.AbstractRepositoryModelClass.getRelatedModelObject(AbstractRepositoryModelClass.java:234)
         at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:636)
         ... 39 more
    Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)(:main:, row=1, col=491) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:148)
         at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:166)
         ... 52 more
    Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
         at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1566)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1687)
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2792)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:227)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:141)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:156)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:259)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:278)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:340)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
         ... 53 more
    <b>error 2</b>
    Processing HTTP request to servlet [dispatcher] finished with error. The error is: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.
         at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:640)
         at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponentInternal(IWDApplicationInfo.java:286)
         at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponent(IWDApplicationInfo.java:270)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.addWdappsElement(COConfigWDApp.java:646)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readWebDynproApps(COConfigWDApp.java:631)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readApplications(COConfigWDApp.java:308)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalCOConfigWDApp.readApplications(InternalCOConfigWDApp.java:190)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.initCreate(VSelect.java:306)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.onPlugFromDispatch(VSelect.java:174)
         at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:168)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:873)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)
         at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:178)
         at com.sap.tc.webdynpro.repository.persistence.xml.XMLPersistence.doReadVMO(XMLPersistence.java:126)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.readVMO(RepositoryPersistence.java:356)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.doFindRepositoryObject(RepositoryPersistence.java:598)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.findRepositoryObject(RepositoryPersistence.java:170)
         at com.sap.tc.webdynpro.repository.model.Repository.findRepositoryObjectInternal(Repository.java:590)
         at com.sap.tc.webdynpro.repository.model.RepositoryObjectRelation$XMLGuidWrapper.getModelObject(RepositoryObjectRelation.java:462)
         at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.getCurrentLayerObject(RepositoryPersistence.java:702)
         at com.sap.tc.webdynpro.repository.model.Repository.getCurrentLayerObject(Repository.java:1483)
         at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.doMergeInheritedTarget(NonSharedRelationToOne.java:85)
         at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.mergeInheritedTargets(NonSharedRelationToOne.java:49)
         at com.sap.tc.webdynpro.repository.model.RelationToOne.getTarget(RelationToOne.java:93)
         at com.sap.tc.webdynpro.repository.model.AbstractRepositoryModelClass.getRelatedModelObject(AbstractRepositoryModelClass.java:234)
         at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:636)
         ... 39 more
    Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)(:main:, row=1, col=491) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:148)
         at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:166)
         ... 52 more
    Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
         at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1566)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1687)
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2792)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:227)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:141)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:156)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:259)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:278)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:340)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
         ... 53 more
    <b>error 3</b>
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.
    Exception id: [00505691431B006F0000003E00000FE800041B45B87F7617]
    thanks in advance
    Kurt

  • Error while invoking a Web Service from a Web Application in Websphere 5.1

    Hi,
    I get the following error when i try to connec to a Webservice on Weblogic server.
    Can anybody help me in determinig the reason for the error-
    faultCode: Server.generalException
    faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    faultActor: null
    faultDetail:
    org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:150)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:868)
    at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1225)
    at com.ibm.ws.webservices.engine.Message.getFault(Message.java:757)
    at com.ibm.ws.webservices.engine.Message.ifFaultThrowSelf(Message.java:737)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:252)
    at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
    at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:685)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:611)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:441)
    at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
    at com.bea.www.TATServicePortStub.getDetailsFull(TATServicePortStub.java:874)
    at com.bea.www.TATServicePortProxy.getDetailsFull(TATServicePortProxy.java:134)
    at com.dhl.amis.cds.webtracking.action.TrackAction.experiment(TrackAction.java:160)
    at com.dhl.amis.cds.webtracking.action.TrackAction.execute(TrackAction.java:104)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:285)
    at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:775)
    at com.ibm.ws.webservices.engine.events.P2DConverter.startElement(P2DConverter.java:270)
    at sax.SAX2DocumentEntityParserBase.startElement(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.startElement(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.startElementAction(Unknown Source)
    at util.DocumentEntityParserBase.startElementEvent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanStartElement(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
    at util.DocumentEntityParserBase.parse(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:251)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:864)
    ... 39 more
    WebServicesFault
    faultCode: Server.generalException
    faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    faultActor: null
    faultDetail:
    org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:150)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:868)
    at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1225)
    at com.ibm.ws.webservices.engine.Message.getFault(Message.java:757)
    at com.ibm.ws.webservices.engine.Message.ifFaultThrowSelf(Message.java:737)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:252)
    at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
    at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:685)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:611)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:441)
    at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
    at com.bea.www.TATServicePortStub.getDetailsFull(TATServicePortStub.java:874)
    at com.bea.www.TATServicePortProxy.getDetailsFull(TATServicePortProxy.java:134)
    at com.dhl.amis.cds.webtracking.action.TrackAction.experiment(TrackAction.java:160)
    at com.dhl.amis.cds.webtracking.action.TrackAction.execute(TrackAction.java:104)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:285)
    at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:775)
    at com.ibm.ws.webservices.engine.events.P2DConverter.startElement(P2DConverter.java:270)
    at sax.SAX2DocumentEntityParserBase.startElement(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.startElement(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.startElementAction(Unknown Source)
    at util.DocumentEntityParserBase.startElementEvent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanStartElement(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
    at util.DocumentEntityParserBase.parse(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:251)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:864)
    ... 39 more
    [10/3/06 23:31:59:271 IST] ad6d507 SystemOut O Experiment exceptionorg.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.

    Hi,
    Thanx it is working now.
    BTW can you give me some urls with info of this kind of setting which i need to do for other kind of integarions in J2EE platform.Sorry if i am asking too much as i am a starter in this technology.

  • Error in starting the domain in application server 8.2

    I want to deploy a application EAR on newly created domain. For this :
    1. Got the 8.2 Java application server installed on solaris box.
    2. Created domain using the asadmin command -> create-domain --adminport 4848 --adminuser admin <DOMAIN_NAME>
    On starting the domain with this command - sh asadmin start-domain --user admin <DOMAIN_NAME. I am facing the below issue. Please note this is a fresh installation of the app server and a new domain
    To troubleshoot this, I have already followed below steps , without any resolution:
    1. Checked port with - netstat -an|grep 45184 and also checked the processes using ps -fu <unix_user>. Even after killing the process, same error.
    2. Gave full permissions on /AppServer8.2/imq/var/instances
    3. Logged in as root user and then tried to start domain
    4. Updated domain.xml with some other port , checked this port if it is free , then replaced in domain.xml
    5. No logs generated in /AppServer8.2/imq/var/instances
    Please help me in resolving this issue. I have downloaded the 9.1 application server and will install and check in the meantime
    [#|2013-07-29T14:14:34.067+0530|INFO|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|
    /usr/j2se/bin/java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=/PostCUG_Track1/AppServer8.2/domains/MPCBebk/logs/server.log
    -Djava.endorsed.dirs=/PostCUG_Track1/AppServer8.2/lib/endorsed
    -Djava.security.policy=/PostCUG_Track1/AppServer8.2/domains/MPCBebk/config/server.policy
    -Djava.security.auth.login.config=/PostCUG_Track1/AppServer8.2/domains/MPCBebk/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=/PostCUG_Track1/AppServer8.2/domains/MPCBebk/config/keystore.jks
    -Djavax.net.ssl.trustStore=/PostCUG_Track1/AppServer8.2/domains/MPCBebk/config/cacerts.jks
    -Djava.ext.dirs=/usr/j2se/jre/lib/ext:/PostCUG_Track1/AppServer8.2/domains/MPCBebk/lib/ext:/PostCUG_Track1/AppServer8.2/derby/lib
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dcom.sun.aas.configName=server-config
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=MPCBebk
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=/PostCUG_Track1/AppServer8.2/domains/MPCBebk
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=MPCBebk
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=/PostCUG_Track1/AppServer8.2/config
    -Djava.library.path=/usr/j2se/jre/lib/sparc/client:/usr/j2se/jre/lib/sparc/client:/usr/j2se/jre/lib/sparc:/usr/j2se/jre/../lib/sparc:/PostCUG_Track1/AppServer8.2/lib:/usr/lib/lwp:/PostCUG_Track1/AppServer8.2/lib:/usr/lib/lwp:/usr/j2se/jre/lib/sparc/client:/usr/j2se/jre/lib/sparc:/usr/j2se/jre/../lib/sparc:/PostCUG_Track1/AppServer8.2/lib:/PostCUG_Track1/AppServer8.2/lib:/PostCUG_Track1/AppServer8.2/lib:/opt/CA/SharedComponents/lib:/usr/lib
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    /PostCUG_Track1/AppServer8.2/lib/appserv-rt.jar:/usr/j2se/lib/tools.jar:/PostCUG_Track1/AppServer8.2/lib/j2ee.jar:/PostCUG_Track1/AppServer8.2/lib/activation.jar:/PostCUG_Track1/AppServer8.2/lib/mail.jar:/PostCUG_Track1/AppServer8.2/lib/appserv-cmp.jar:/PostCUG_Track1/AppServer8.2/lib/admin-cli.jar:/PostCUG_Track1/AppServer8.2/lib/appserv-admin.jar:/PostCUG_Track1/AppServer8.2/lib/appserv-jstl.jar:/PostCUG_Track1/AppServer8.2/lib/commons-launcher.jar:/PostCUG_Track1/AppServer8.2/lib/commons-logging.jar:/PostCUG_Track1/AppServer8.2/lib/j2ee-svc.jar:/PostCUG_Track1/AppServer8.2/lib/jaxr-api.jar:/PostCUG_Track1/AppServer8.2/lib/jaxr-impl.jar:/PostCUG_Track1/AppServer8.2/lib/jaxrpc-api.jar:/PostCUG_Track1/AppServer8.2/lib/jaxrpc-impl.jar:/PostCUG_Track1/AppServer8.2/lib/dom.jar:/PostCUG_Track1/AppServer8.2/lib/relaxngDatatype.jar:/PostCUG_Track1/AppServer8.2/lib/jax-qname.jar:/PostCUG_Track1/AppServer8.2/lib/saaj-api.jar:/PostCUG_Track1/AppServer8.2/lib/saaj-impl.jar:/PostCUG_Track1/AppServer8.2/lib/xsdlib.jar:/PostCUG_Track1/AppServer8.2/lib/jmxremote.jar:/PostCUG_Track1/AppServer8.2/lib/jmxremote_optional.jar:/PostCUG_Track1/AppServer8.2/lib/jsf-api.jar:/PostCUG_Track1/AppServer8.2/lib/jsf-impl.jar:/PostCUG_Track1/AppServer8.2/lib/rmissl.jar:/PostCUG_Track1/AppServer8.2/lib/xalan.jar:/PostCUG_Track1/AppServer8.2/lib/xercesImpl.jar:/PostCUG_Track1/AppServer8.2/lib/appserv-upgrade.jar:/PostCUG_Track1/AppServer8.2/lib/appserv-ext.jar:/PostCUG_Track1/AppServer8.2/lib/install/applications/jmsra/imqjmsra.jar:/PostCUG_Track1/AppServer8.2/imq/lib/jaxm-api.jar:/PostCUG_Track1/AppServer8.2/imq/lib/fscontext.jar:/PostCUG_Track1/AppServer8.2/lib/ant/lib/ant.jar
    com.sun.enterprise.server.PEMain
    start
    display|#]
    [#|2013-07-29T14:15:35.774+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5035: Timed out after 60000 milliseconds while trying to verify if the JMS service startup succeeded.|#]
    [#|2013-07-29T14:15:35.776+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5037: Check permissions of MQ instance directory /PostCUG_Track1/AppServer8.2/imq/var/instances|#]
    [#|2013-07-29T14:15:35.776+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5036: More details may be available in the log file for the JMS service broker instance imqbroker. Please refer to the JMS provider documentation for the exact location of this log file.|#]
    [#|2013-07-29T14:15:35.777+0530|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|UnknownException during startup. Disable quick startup by setting system property com.sun.enterprise.server.ss.ASQuickStartup to false
    com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [127.0.0.1:45184]. - cause: java.io.IOException
    at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:427)
    at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(ASLazyKernel.java:54)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:274)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    Caused by: com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [127.0.0.1:45184]. - cause: java.io.IOException
    at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSConnectException(ExceptionHandler.java:233)
    at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:180)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:191)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:116)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:54)
    at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:61)
    at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:102)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionOld(ConnectionInitiator.java:291)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:113)
    at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:98)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:613)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:1194)
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1949)
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:745)
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:315)
    at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
    at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
    at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:72)
    at com.sun.messaging.jmq.admin.jmsspi.JMSAdminImpl.pingProvider(JMSAdminImpl.java:783)
    at com.sun.enterprise.jms.JmsProviderLifecycle.waitForJmsProvider(JmsProviderLifecycle.java:335)
    at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:396)
    ... 3 more
    Caused by: java.io.IOException
    at com.sun.enterprise.server.ss.ASInputStream.waitForSelect(ASInputStream.java:118)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:81)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:73)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
    at com.sun.messaging.jmq.io.PortMapperTable.readLine(PortMapperTable.java:277)
    at com.sun.messaging.jmq.io.PortMapperTable.read(PortMapperTable.java:233)
    at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:185)
    ... 21 more
    Caused by: java.io.IOException: Invalid argument
    at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
    at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:136)
    at sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:70)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:59)
    at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:70)
    at com.sun.enterprise.server.ss.ASSelector.select(ASSelector.java:92)
    at com.sun.enterprise.server.ss.ASInputStream.waitForSelect(ASInputStream.java:101)
    ... 28 more
    |#]
    [#|2013-07-29T14:15:35.798+0530|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|Exception while stoppping Lifecycle.
    com.sun.appserv.server.ServerLifecycleException: MQ startup failed :[C4003]: Error occurred on connection creation [127.0.0.1:45184]. - cause: java.io.IOException
    at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:376)
    at com.sun.enterprise.jms.JmsProviderLifecycle.onShutdown(JmsProviderLifecycle.java:445)
    at com.sun.enterprise.server.ss.ASLazyKernel.stopLifecycle(ASLazyKernel.java:178)
    at com.sun.enterprise.server.ss.ASLazyKernel.stopMQ(ASLazyKernel.java:172)
    at com.sun.enterprise.server.ss.ASLazyKernel.exitServer(ASLazyKernel.java:74)
    at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(ASLazyKernel.java:67)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:274)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]

    Hi,
    Try to manually download the file from application server using standard transactions, and than check how many records are you able to download from app. server.
    I guess there might be something wrong with the format of 583rd record, which makes sap assume that the file has come to an end.
    Hope this will help you.
    Regards,
    Vinit...

  • Error in consuming a (simple) SAP web service

    Hello,
    I am trying to write a simple web service client for this web service:
    WSDL: http://xi.esworkplace.sap.com:50200/ClassificationService/CS?wsdl
    Endpoint: http://xi.esworkplace.sap.com:50200/ClassificationService/CS?style=document
    When calling the operation getAllClassificationSystems(1, 1, 1, 1) I get the following error:
    An error occurred invoking the specified method.
    ; nested exception is:
         org.xml.sax.SAXException: Invalid element in api_v1.classification.sap.com.ClassificationSystemList - actualCount
    I tested the web service with JCows Generic Web Service Client (http://www.jcows.org/?page=4⟨=de). I also get a similar error when using the Web Service Client Wizard of WebSphere Integration Developer.
    As I can see with TCPmonitor, from the endpoint I receive a meaningful SOAP response like this one:
    SOAP response:
    <SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity- secext-1.0.xsd">
    <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-u tility-1.0.xsd">
    <wsu:Created>2007-05-16T13:10:10Z</wsu:Created>
    <wsu:Expires>2007-05-16T13:10:40Z</wsu:Expires>
    </wsu:Timestamp>
    </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ns1:ClassificationSystemList version="10736" xmlns:rn0="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rn1="java:sap/standard" xmlns:rn2="urn:uddi-org:vscache_v3" xmlns:rn3="urn:java/lang" xmlns:rn5="urn:uddi-org:api_v3" xmlns:rn4="urn:com.sap.classification.transport" xmlns:ns1="urn:com.sap.classification:api_v1">
    <ns1:listDesc>
    <ns1:actualCount>9</ns1:actualCount>
    <ns1:includedCount>1</ns1:includedCount>
    <ns1:listHead>1</ns1:listHead>
    </ns1:listDesc>
    <ns1:ClassificationSystem valuesVersion="12">
    <ns1:id>uddi:uddi.sap.com:categorization:business-object</ns1:id>
    <ns1:name>Business object</ns1:name>
    <ns1:description>The SAP business object UDDI category system and SR classification system. Business objects are part of the Enterprise Service Architecture meta-model.</ns1:description>
    <ns1:type>FLAT</ns1:type>
    <ns1:isPredifined>true</ns1:isPredifined>
    <ns1:readOnly>false</ns1:readOnly>
    <ns1:onlyOnce>false</ns1:onlyOnce>
    <ns1:mustHaveDesc>false</ns1:mustHaveDesc>
    <ns1:normalizeCodes>false</ns1:normalizeCodes>
    <ns1:mTimeCustModService>true</ns1:mTimeCustModService>
    <ns1:mTimeSapModService>true</ns1:mTimeSapModService>
    <ns1:ideCusModService>true</ns1:ideCusModService>
    <ns1:ideCustPrgService>true</ns1:ideCustPrgService>
    <ns1:ideSapModService>true</ns1:ideSapModService>
    <ns1:ideSapPrgService>true</ns1:ideSapPrgService>
    </ns1:ClassificationSystem>
    </ns1:ClassificationSystemList>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    This is how the submitted SOAP request looks like:
    SOAP request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <getAllClassificationSystems xmlns="urn:com.sap.classification:api_v1">
    <listHead xsi:type="xsd:int">1</listHead>
    <maxRows xsi:type="xsd:int">1</maxRows>
    <version xsi:type="xsd:long">1</version>
    <sortType xsi:type="xsd:int">1</sortType>
    </getAllClassificationSystems>
    </soapenv:Body>
    </soapenv:Envelope>
    But the problem is meet when the client tries to deserialize the received SOAP response. The error message in WID looks like this:
    Error message:
    WebServicesFault
    faultCode: hxxp://schemas.xmlsoap.org/soap/envelope/ Server.generalException
    faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element actualCount of bean classification.api_v1.sap.com.ClassificationSystemList_Type.
    Child element actualCount does not belong in namespace urn:com.sap.classification:api_v1.
    Most likely, a third-party web services platform has sent an incorrect SOAP message.
    faultActor: null
    faultDetail:
    org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element actualCount of bean classification.api_v1.sap.com.ClassificationSystemList_Type.
    Child element actualCount does not belong in namespace urn:com.sap.classification:api_v1.
    Most likely, a third-party web services platform has sent an incorrect SOAP message.
         at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java: 203)
         at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1055)
         at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:605)
         at com.ibm.ws.webservices.engine.Message.getSOAPEnvelope(Message.java:461)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCSOAPHandler.checkSOAPSemant ics(JAXRPCSOAPHandler.java:298)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCSOAPHandler.access$000(JAXR PCSOAPHandler.java:75)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCSOAPHandler$2.invoke(JAXRPC SOAPHandler.java:173)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.ja va:329)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:2 83)
         at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:79 8)
         at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:693)
         at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:644)
         at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:472)
         at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:818)
         at ClassificationServiceWsd.CSBindingStub.getAllClassificationSystems(CSBindingStu b.java:127)
         at ClassificationServiceWsd.ClassificationServiceViProxy.getAllClassificationSyste ms(ClassificationServiceViProxy.java:64)
         at temp.CsReader3.main(CsReader3.java:42)
    Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element actualCount of bean classification.api_v1.sap.com.ClassificationSystemList_Type.
    Child element actualCount does not belong in namespace urn:com.sap.classification:api_v1.
    Most likely, a third-party web services platform has sent an incorrect SOAP message.
         at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDe serializer.java:359)
         at com.ibm.ws.webservices.engine.events.DEventProcessor.onSimpleChild(DEventProces sor.java:240)
         at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onSimpleChild(BeanD eserializer.java:576)
         at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:767)< br>     at com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2DConverter.java: 410)
         at sax.SAX2DocumentEntityParserBase.endElementAction(Unknown Source)
         at util.DocumentEntityParserBase.endElementEvent(Unknown Source)
         at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanEndElement(Unknown Source)
         at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
         at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
         at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
         at util.DocumentEntityParserBase.parse(Unknown Source)
         at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
         at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at com.ibm.ws.webservices.engine.utils.WebServicesParser.parse(WebServicesParser.j ava:274)
         at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(Deseria lizationContextImpl.java:268)
         at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1029)
         ... 15 more
    Are the generated proxies for the web service client erronous, and thus a problem with Axis WSDL2Java tooling exists?
    Or is there a mismatch between WSDL and SOAP response concerning encoding style or namespaces, or other...
    Thanks for some hints!

    I should have included a possible work-around: modify
    the WSDL to match with the wire format if you don't
    have access to the remote service.
    <xs:element name="ClassificationSystemList">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="listDesc"
    type="tns:ListDescription"
    nillable="true"
    minOccurs="0"/>
    <xs:element name="ClassificationSystem"
    maxOccurs="unbounded"
    minOccurs="0"
    type="tns:ClassificationSystem"
    nillable="true"/>
    <xs:attribute name="version" type="xs:long"
    use="required"/>
    <xs:sequence>
    <xs:element name="Response"
    type="tns:ClassificationSystemList"
    nillable="true"/>
    >
    -->
    </xs:complexType>
    xs:element>
    ...Hope it helps,
    -Ericerajkovi,
    thanks for your suggestion. Since I have no access to the remote service I have modified the WSDL file, as you suggested.
    But now I am encountering another error when invoking the operation:
    WebServicesFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultString: No operation found using soap keys [], [getAllClassificationSystems]. InterfaceMapping Object class: com.sap.engine.services.webservices.espbase.mappings.InterfaceMapping mappings: {BindingType=Soap, InterfaceMappingID=sap.com/tc~classificationService_ClassificationService_CSPort}.
    faultActor: null
    faultDetail:
         com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException: No operation found using soap keys [], [getAllClassificationSystems]. InterfaceMapping Object class: com.sap.engine.services.webservices.espbase.mappings.InterfaceMapping mappings: {BindingType=Soap, InterfaceMappingID=sap.com/tc~classificationService_ClassificationService_CSPort}.
    No operation found using soap keys [], [getAllClassificationSystems]. InterfaceMapping Object class: com.sap.engine.services.webservices.espbase.mappings.InterfaceMapping mappings: {BindingType=Soap, InterfaceMappingID=sap.com/tc~classificationService_ClassificationService_CSPort}.
         at com.ibm.ws.webservices.engine.WebServicesFault.makeUserFault(WebServicesFault.java:218)
         at com.ibm.ws.webservices.engine.xmlsoap.builders.WebServicesFaultProcessor.createFault(WebServicesFaultProcessor.java:411)
         at com.ibm.ws.webservices.engine.xmlsoap.SOAPFault.getFault(SOAPFault.java:486)
    ...I noticed that the generated SOAP request now has also changed. The getAllClassificationSystems element is now wrapped with an additional getAllClassificationSystems element. So the web service endpoint is not able to understand the message.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Header/>
       <soapenv:Body>
          <getAllClassificationSystems>
             <p970:getAllClassificationSystems xmlns:p970="urn:com.sap.classification:api_v1">
                <p970:listHead>1</p970:listHead>
                <p970:maxRows>10</p970:maxRows>
                <p970:version>1</p970:version>
                <p970:sortType>1</p970:sortType>
             </p970:getAllClassificationSystems>
          </getAllClassificationSystems>
       </soapenv:Body></soapenv:Envelope>The generated proxies by WSDL2Java are now different. Previously I invoked the operation in this way:
    proxy.getAllClassificationSystems(new Integer(1), new Integer(1), new Long(1), new Integer(1));Now I must invoke it so:
    GetAllClassificationSystems gas = new GetAllClassificationSystems();       
            gas.setListHead(new Integer(1));
            gas.setMaxRows(new Integer(10));
            gas.setSortType(new Integer(1));
            gas.setVersion(new Long(1));                
            proxy.getAllClassificationSystems(gas);Is there a possbility to configure Axis WSDL2Java in order to create the previous SOAP message or is another change to the WSDL required?

Maybe you are looking for

  • Please Apple, explain why iOS 8 was born, it caused a lot of issues.

    Hi There, Last Monday i went to the Apple Store, and received a new iPhone 5s, with a swap repair. I was very exited and happy with it, until.... IOS 8.0.2. showed up. i did an OTA update and everything went fine, until the moment i would like to pla

  • How to send a notification to upstream system when trasformation fails?

    How to send notification message if 'transformation of input xml fails' or 'due to some technical exception while generating the orchestration plan'.

  • How to pass more than one email address in email template

    Hi all. I need to pass email address list in TO field of email template.I passed the list with comma delimeter but even though mail is trigerring only to the first email address in the list... If any one come across this please mail me... It is bit u

  • Creating a Cube from an XML CLOB

    I'm trying to create a cube by calling dbms_aw_xml.execute, passing a CLOB. The CLOB has been populated by saving a cube XML template to a database table, then selecting it into a temporary CLOB. When I run dbms_aw_xml.execute, I get error messages s

  • Trial Adobe Audition Will Not Open PKF File

    I downloaded the Adobe Audition Trial software and I made two recordings. Six hours later I tried to open both files and got the following error message:"Error: File not supported by any currently registered plug-ins." THEY ARE PKF FILES!!! What happ