Org.xml.sax.SAXException:SimpleDeserializer encountered a child element..

Hi All,
I created a following program using "GetReportDefintion" method provided by BI Publisher Web Services
package bip_webservices;
import com.oracle.xmlns.oxp.service.PublicReportService.ItemData;
import com.oracle.xmlns.oxp.service.PublicReportService.ReportRequest;
import com.oracle.xmlns.oxp.service.PublicReportService.ReportResponse;
import com.oracle.xmlns.oxp.service.PublicReportService.ParamNameValue;
import com.oracle.xmlns.oxp.service.PublicReportService.ReportDefinition;
import com.oracle.xmlns.oxp.service.PublicReportService.ScheduleRequest;
import com.oracle.xmlns.oxp.service.PublicReportService.DeliveryRequest;
import com.oracle.xmlns.oxp.service.PublicReportService.EMailDeliveryOption;
import  java.io.FileOutputStream;
import  java.io.OutputStream;
import java.net.MalformedURLException;
import java.rmi.RemoteException;
import  java.util.Calendar;
import javax.xml.rpc.ServiceException;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.encoding.ser.BeanDeserializerFactory;
import org.apache.axis.encoding.ser.BeanSerializerFactory;
import  javax.xml.namespace.QName;
import  javax.xml.rpc.ParameterMode;
import  java.net.URL;
public class BIP_GetReportDefinition {
    public static void main(String[] args) throws ServiceException, MalformedURLException, RemoteException{
     try{
        final String bipEndpoint = "http://localhost:9704/xmlpserver/services/PublicReportService?wsdl";
        final String bipNamespace = "http://xmlns.oracle.com/oxp/service/PublicReportService";
        final String xdofile = "/MyReports/SummaryCustomerReport/SummaryCustomerReport.xdo";
        Service service = new Service();
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(new URL(bipEndpoint));
       System.out.println("BEGIN TESTING getReportDefinition");
        // register the ReportDefinition class
        QName reportDef = new QName(bipNamespace, "ReportDefinition");
        call.registerTypeMapping(ReportDefinition.class, reportDef,
                        BeanSerializerFactory.class, BeanDeserializerFactory.class);
        // register the ParamNameValue class
        QName nmvals = new QName(bipNamespace, "ParamNameValue");
        call.registerTypeMapping(ParamNameValue.class, nmvals, BeanSerializerFactory.class, BeanDeserializerFactory.class);
        call.setOperationName(new QName(bipNamespace, "getReportDefinition"));
        call.addParameter("reportAbsolutePath", XMLType.XSD_STRING, ParameterMode.IN);
        call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
        call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
        call.setReturnClass(ReportDefinition.class);
        // issue the request
        ReportDefinition reportDefn = (ReportDefinition) call.invoke(
            new Object[] { xdofile, "Administrator", "Administrator"});
        System.out.println("Report Definition Returns with \n Default Output Format = " + reportDefn.getDefaultOutputFormat());
        ParamNameValue params [] = reportDefn.getReportParameterNameValues();
        if (params != null) {
            for (int i = 0; i < params.length; i++) {
                System.out.print("Parameter " + params.getName() + ":");
if (params[i].getValues() != null) {
for (int j = 0; j < params[i].getValues().length; j++)
System.out.print(" " + params[i].getValues()[j]);
} else
System.out.print(" null");
System.out.println(" - multiple values? " + params[i].isMultiValuesAllowed());
System.out.println("END TESTING getReportDefinition");
}catch(Exception e){
e.printStackTrace();
I am getting following exception message. Anyone has any ideas what could be the mistake ?
SEVERE: Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
        at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at bip_webservices.BIP_GetReportDefinition.main(BIP_GetReportDefinition.java:67)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
faultActor:
faultNode:
faultDetail:
        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
        at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at bip_webservices.BIP_GetReportDefinition.main(BIP_GetReportDefinition.java:67)
        {http://xml.apache.org/axis/}hostname:mildh0228
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.client.Call.invoke(Call.java:2470)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at bip_webservices.BIP_GetReportDefinition.main(BIP_GetReportDefinition.java:67)
Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
        at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        ... 3 moreThanks for giving this problem a look.
-Sookie

Hi Sookie,
I found the problem is with couple of child parameters are not registered the deserializer. There're couple of additional classes needs to be registerd.
// register the TemplateLabelValue class
QName templateval = new QName(bipNamespace, "TemplateFormatLabelValue");
Class cls = TemplateFormatLabelValue.class;
call.registerTypeMapping(cls, templateval, BeanSerializerFactory.class, BeanDeserializerFactory.class);
// register the TemplateLabelValues class
QName templatevals = new QName(bipNamespace, "TemplateFormatsLabelValues");
cls = TemplateFormatsLabelValues.class;
call.registerTypeMapping(cls, templatevals, BeanSerializerFactory.class, BeanDeserializerFactory.class);
Could you please give it a try?
Thanks.
Yang

Similar Messages

  • XML in Payload, fault returned. -org.xml.sax.SAXException: SimpleDeserializ

    I'M getting the following fault msg returned -
    <?xml version="1.0" encoding="UTF-8"?>
       <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> 
             <soapenv:Fault>  
                <faultcode>soapenv:Server.userException</faultcode>  
                <faultstring>org.xml.sax.SAXException: SimpleDeserializer
    encountered a child element, which is NOT expected, in something it
    was trying to deserialize.</faultstring>
                <detail/> 
             </soapenv:Fault>
          </soapenv:Body>
       </soapenv:Envelope>
    WHEN I send over this SOAP Msg in my document style web service:
    <?xml version="1.0" encoding="UTF-8"?>
       <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>
             <CATALOG xmlns="http://mywroxexample/axis/catalog">     
                <DOCUMENTINFO>          
                   <DATE>02/15/2004</DATE>     
                </DOCUMENTINFO>     
                <SUPPLERDETAILS>          
                   <SUPPLIERID>1234</SUPPLIERID>          
                   <SUPPLIERCONTACTEMAIL>[email protected]</SUPPLIERCONTACTEMAIL>     
                </SUPPLERDETAILS>     
                <PRODUCTLIST>          
                   <PRODUCT>               
                      <SUPPLIER-PRODUCTSKU>SKU 123</SUPPLIER-PRODUCTSKU>          
                   </PRODUCT>     
                </PRODUCTLIST>
             </CATALOG>
          </soapenv:Body>
       </soapenv:Envelope>
    I'm using apache axis with tomcat.
    Any advice regarding what this fault msg means or how to fix my
    problem is appreciated.
    org.xml.sax.SAXException: SimpleDeserializer encountered a child
    element, which is NOT expected, in something it was trying to
    deserialize.

    Fixed my own problem.
    I should of declared the WS to be of type 'message' instead of document.

  • Org.xml.sax.SAXException

    Hi all,
    I am trying to invoke a method from my BPEL console of my webservice.I am passing inputHeader variables(For passing WS-Addressing) related information.On invoking my web service,the following error is thrown
    <remoteFault>
    <part name="code" >
    <code>Server.userException</code>
    </part>
    <part name="summary" >
    <summary>when invoking endpointAddress 'http://10.100.64.64:8080/wsrf/services/examples/core/factory/MathService', org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</summary>
    </part>
    <part name="detail" >
    <detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:144) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285) at org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:677) at org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:398) at org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:302) {http://xml.apache.org/axis/}hostname:revati.nakshatra.da-iict.org </detail>
    </part>
    </remoteFault>
    My BPEL file is follows
    <!--
    // Oracle JDeveloper BPEL Designer
    // Created: Fri Apr 21 21:15:55 GMT+05:30 2006
    // Author: Administrator
    // Purpose: Asynchronous BPEL Process
    -->
    <process name="MathService" targetNamespace="http://xmlns.oracle.com/MathService" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://www.globus.org/namespaces/examples/core/FactoryService" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:ns2="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:client="http://xmlns.oracle.com/MathService" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:MathService" myRole="MathServiceProvider" partnerRole="MathServiceRequester"/>
    <partnerLink name="factoryServicePL" partnerRole="FactoryPortType_Role" partnerLinkType="ns1:FactoryPortType_PL"/>
    <partnerLink name="mathServicePL" partnerRole="MathPortType_Role" partnerLinkType="ns2:MathPortType_PL"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:MathServiceRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="outputVariable" messageType="client:MathServiceResponseMessage"/>
    <variable name="invokeFactoryService_createResource_InputVariable" messageType="ns1:CreateResourceRequest"/>
    <variable name="invokeFactoryService_createResource_OutputVariable" messageType="ns1:CreateResourceResponse"/>
    <variable name="invokeMathService_add_InputVariable" messageType="ns2:AddInputMessage"/>
    <variable name="invokeMathService_add_OutputVariable" messageType="ns2:AddOutputMessage"/>
    <variable name="headerRequest" messageType="ns2:Header"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in MathService.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:MathService" operation="initiate" variable="inputVariable" createInstance="yes"/><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <invoke name="invokeFactoryService" partnerLink="factoryServicePL" portType="ns1:FactoryPortType" operation="createResource" inputVariable="invokeFactoryService_createResource_InputVariable" outputVariable="invokeFactoryService_createResource_OutputVariable"/>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:MathServiceProcessRequest"/>
    <to variable="invokeMathService_add_InputVariable" part="parameters" query="/ns2:add"/>
    </copy>
    <copy>
    <from expression="string('http://10.100.64.64:8080/wsrf/services/examples/core/factory/MathService')"/>
    <to variable="headerRequest" part="To" query="/ns3:To"/>
    </copy>
    <copy>
    <from expression="string('uuid:1')"/>
    <to variable="headerRequest" part="MessageID" query="/ns3:MessageID"/>
    </copy>
    <copy>
    <from expression="string('http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/addRequest')"/>
    <to variable="headerRequest" part="Action" query="/ns3:Action"/>
    </copy>
    <copy>
    <from>
    <From xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
    <Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
    </Address>
    </From>
    </from>
    <to variable="headerRequest" part="From" query="/ns3:From"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('invokeFactoryService_createResource_OutputVariable','response','/ns1:createResourceResponse/ns3:EndpointReference/ns3:ReferenceProperties/ns2:MathResourceKey')"/>
    <to variable="headerRequest" part="MathResourceKey" query="/ns2:MathResourceKey"/>
    </copy>
    </assign>
    <invoke name="invokeMathService" partnerLink="mathServicePL" portType="ns2:MathPortType" operation="add" inputVariable="invokeMathService_add_InputVariable" outputVariable="invokeMathService_add_OutputVariable" bpelx:inputHeaderVariable="headerRequest"/>
    <invoke name="callbackClient" partnerLink="client" portType="client:MathServiceCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    For my process.I have to use 3 different WSDL: files which contain information about binding,sevice,methods.These WSDL files refer each other for getting information
    The WSDL containing binding related information is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance/bindings" xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:porttype="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:import namespace="http://www.globus.org/namespaces/examples/core/MathService_instance" location="Math_flattened.wsdl"/>
    <wsdl:binding name="MathPortTypeSOAPBinding" type="porttype:MathPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="add">
    <soap:operation soapAction="http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/addRequest"/>
    <wsdl:input>
         <soap:header use="literal" message="tns:Header" part="MessageID"/>
    <soap:header use="literal" message="tns:Header" part="To"/>
    <soap:header use="literal" message="tns:Header" part="Action"/>
    <soap:header use="literal" message="tns:Header" part="From"/>
    <soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="subtract">
    <soap:operation soapAction="http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/subtractRequest"/>
    <wsdl:input>
    <soap:header use="literal" message="tns:Header" part="MessageID"/>
    <soap:header use="literal" message="tns:Header" part="To"/>
    <soap:header use="literal" message="tns:Header" part="Action"/>
    <soap:header use="literal" message="tns:Header" part="From"/>
    <soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
         <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getValueRP">
    <soap:operation soapAction="http://www.globus.org/namespaces/examples/core/MathService_instance/MathPortType/getValueRPRequest"/>
    <wsdl:input>
    <soap:header use="literal" message="tns:Header" part="MessageID"/>
    <soap:header use="literal" message="tns:Header" part="To"/>
    <soap:header use="literal" message="tns:Header" part="Action"/>
    <soap:header use="literal" message="tns:Header" part="From"/>
    <soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
         <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetResourceProperty">
    <soap:operation soapAction="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties/GetResourceProperty"/>
    <wsdl:input>
    <soap:header use="literal" message="tns:Header" part="MessageID"/>
    <soap:header use="literal" message="tns:Header" part="To"/>
    <soap:header use="literal" message="tns:Header" part="Action"/>
    <soap:header use="literal" message="tns:Header" part="From"/>
    <soap:header use="literal" message="tns:Header" part="MathResourceKey"/>
         <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="InvalidResourcePropertyQNameFault">
    <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    </wsdl:definitions>
    WSDL containing service related information
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance/service" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:binding="http://www.globus.org/namespaces/examples/core/MathService_instance/bindings" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:import namespace="http://www.globus.org/namespaces/examples/core/MathService_instance/bindings" location="Math_bindings.wsdl"/>
    <wsdl:service name="MathService">
    <wsdl:port name="MathPortTypePort" binding="binding:MathPortTypeSOAPBinding">
    <soap:address location="http://10.100.64.64:8080/wsrf/services/examples/core/factory/MathService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    WSDL containing information regarding methods is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="MathService" targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" xmlns:wsdlpp="http://www.globus.org/namespaces/2004/10/WSDLPreprocessor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" location="../../wsrf/properties/WS-ResourceProperties.wsdl"/>
    <wsdl:types>
    <xsd:schema targetNamespace="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:tns="http://www.globus.org/namespaces/examples/core/MathService_instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/03/addressing" schemaLocation="../../ws/addressing/WS-Addressing.xsd"/>
         <!-- REQUESTS AND RESPONSES -->
         <xsd:element name="MathResourceKey" type="xsd:string"/>
         <xsd:element name="add" type="xsd:int"/>
         <xsd:element name="addResponse" type="xsd:int"/>
         <xsd:element name="subtract" type="xsd:int"/>
         <xsd:element name="subtractResponse" type="xsd:int"/>
         <xsd:element name="getValueRP">
              <xsd:complexType/>
         </xsd:element>
         <xsd:element name="getValueRPResponse" type="xsd:int"/>
         <!-- RESOURCE PROPERTIES -->
         <xsd:element name="Value" type="xsd:int"/>
         <xsd:element name="LastOp" type="xsd:string"/>
         <xsd:element name="MathResourceProperties">
         <xsd:complexType>
              <xsd:sequence>
                   <xsd:element maxOccurs="1" minOccurs="1" ref="tns:Value"/>
                   <xsd:element maxOccurs="1" minOccurs="1" ref="tns:LastOp"/>
              </xsd:sequence>
         </xsd:complexType>
         </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="SubtractOutputMessage">
    <wsdl:part name="parameters" element="tns:subtractResponse"/>
    </wsdl:message>
    <wsdl:message name="GetValueRPInputMessage">
    <wsdl:part name="parameters" element="tns:getValueRP"/>
    </wsdl:message>
    <wsdl:message name="SubtractInputMessage">
    <wsdl:part name="parameters" element="tns:subtract"/>
    </wsdl:message>
    <wsdl:message name="AddInputMessage">
    <wsdl:part name="parameters" element="tns:add"/>
    </wsdl:message>
    <wsdl:message name="AddOutputMessage">
    <wsdl:part name="parameters" element="tns:addResponse"/>
    </wsdl:message>
    <wsdl:message name="GetValueRPOutputMessage">
    <wsdl:part name="parameters" element="tns:getValueRPResponse"/>
    </wsdl:message>
    <wsdl:message name="Header">
    <wsdl:part name="MessageID" element="wsa:MessageID"/>
    <wsdl:part name="To" element="wsa:To"/>
    <wsdl:part name="Action" element="wsa:Action"/>
    <wsdl:part name="From" element="wsa:From"/>
    <wsdl:part name="MathResourceKey" element="tns:MathResourceKey"/>
    </wsdl:message>
    <wsdl:portType name="MathPortType" wsrp:ResourceProperties="tns:MathResourceProperties">
    <wsdl:operation name="add">
    <wsdl:input message="tns:AddInputMessage"/>
    <wsdl:output message="tns:AddOutputMessage"/>
    </wsdl:operation>
    <wsdl:operation name="subtract">
    <wsdl:input message="tns:SubtractInputMessage"/>
    <wsdl:output message="tns:SubtractOutputMessage"/>
    </wsdl:operation>
    <wsdl:operation name="getValueRP">
    <wsdl:input message="tns:GetValueRPInputMessage"/>
    <wsdl:output message="tns:GetValueRPOutputMessage"/>
    </wsdl:operation>
    <wsdl:operation name="GetResourceProperty">
    <wsdl:input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest" wsa:Action="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties/GetResourceProperty"/>
    <wsdl:output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse" wsa:Action="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties/GetResourcePropertyResponse"/>
    <wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
    <wsdl:fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Partner links are auto generated,hence information related to that is not given in this
    Can some one please throw some light on the cause of this error,and how can I rectify it.
    Please help me out...
    Thanks
    Regards
    Prateek Jain
    B.Tech(ICT)
    DA-IICT
    Gandhinagar(Gujarat)
    India
    Detailed log is as follows
    <conversationId>bpel://localhost/default/MathService~v2006_04_22__46596/1401-BpInv0-BpSeq0.3-2</conversationId>
    <properties>{}</properties>
    </partnerLink>
    <2006-04-22 13:05:22,296> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::doShortCut> Parner Property optShortCut
    <2006-04-22 13:05:23,515> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
    <2006-04-22 13:05:23,656> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
    <2006-04-22 13:05:24,640> <DEBUG> <default.collaxa.cube.ws> <WSInvocationManager::invoke> operation: add, partnerLink: <partnerLink name="mathServicePL" partnerLinkType="{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType_PL">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="MathPortType_Role">
    <ServiceName>null</ServiceName>
    <PortType>{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType</PortType>
    <Address>null</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/MathService~v2006_04_22__46596/1401-BpInv1-BpSeq0.3-4</conversationId>
    <properties>{}</properties>
    </partnerLink>
    <2006-04-22 13:05:24,718> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> registered wsdl at D:\OraBPELPM_1\integration\orabpel\domains\default\tmp\.bpel_MathService_v2006_04_22__46596.jar\Math_flattenedRef.wsdl
    <2006-04-22 13:05:24,734> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> got wsdl at: D:\OraBPELPM_1\integration\orabpel\domains\default\tmp\.bpel_MathService_v2006_04_22__46596.jar\Math_flattenedRef.wsdl
    <2006-04-22 13:05:24,734> <DEBUG> <default.collaxa.cube.ws> <WSInvocationManager::invoke> def is file:/D:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_MathService_v2006_04_22__46596.jar/Math_flattenedRef.wsdl
    <2006-04-22 13:05:24,750> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> opName=add, parnterLink=<partnerLink name="mathServicePL" partnerLinkType="{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType_PL">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="MathPortType_Role">
    <ServiceName>{http://www.globus.org/namespaces/examples/core/MathService_instance/service}MathService</ServiceName>
    <PortType>{http://www.globus.org/namespaces/examples/core/MathService_instance}MathPortType</PortType>
    <Address>null</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/MathService~v2006_04_22__46596/1401-BpInv1-BpSeq0.3-4</conversationId>
    <properties>{}</properties>
    </partnerLink>
    <2006-04-22 13:05:24,765> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::doShortCut> Parner Property optShortCut
    <2006-04-22 13:05:24,765> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
    <2006-04-22 13:05:24,781> <DEBUG> <default.collaxa.cube.ws> SOAP-HTTP-BASIC: null
    <2006-04-22 13:05:25,156> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> invoke failed
    org.collaxa.thirdparty.apache.wsif.WSIFException: exception during AXIS invoke: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.; nested exception is:
         org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.populateFaultMessage(WSIFOperation_ApacheAxis.java:3422)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2120)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1611)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1083)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
         at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
         at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
         at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
         at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
         at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
         at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
         at org.collaxa.thirdparty.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
         at org.collaxa.thirdparty.apache.axis.Message.getSOAPEnvelope(Message.java:424)
         at org.collaxa.thirdparty.apache.axis.client.Call.invokeEngine(Call.java:2754)
         at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:2715)
         at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:1737)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2113)
         ... 27 more
    <2006-04-22 13:05:25,406> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> Fault happened
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
         at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:144)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
         at org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:677)
         at org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:398)
         at org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:302)
         {http://xml.apache.org/axis/}hostname:revati.nakshatra.da-iict.org
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
         at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
         at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
         at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
         at org.collaxa.thirdparty.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
         at org.collaxa.thirdparty.apache.axis.Message.getSOAPEnvelope(Message.java:424)
         at org.collaxa.thirdparty.apache.axis.client.Call.invokeEngine(Call.java:2754)
         at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:2715)
         at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:1737)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2113)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1611)
         at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1083)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
         at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
         at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
         at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

    you are unable to deserialize the data from the client what you have at the moment. There ius some datatype which you are unable to process / maybe it was added recently and you do not have the latest client to process that.
    The solution would be do some changes at e changes at you client side / regenerate client which will understand the new datatype else do changes to server side to make the data type simpler / revert.
    Hope this helps

  • SimpleDeserializer encountered a child element..webservice error

    when I invoke a webservice using Oracle stored procedure,I'm getting the fault response below :
    HTTP response status code: 500
    HTTP response reason phrase: Internal Server Error
    <?xml version="1.0" encoding="UTF-8"?><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/XMLSchemainstance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
    which is NOT expected, in something it was trying to deserialize.</faultstring><detail><ns1:hostname
    xmlns:ns1="http://xml.apache.org/axis/">suznt266.qintra.com</ns1:hostname></detail></soapenv:Fault>
    </soapenv:Body></soapenv:Envelope>
    Any ideas about the cause and resolution?..
    Thanks in advance!!!!
    Regards,
    Bhagat

    If you posted the whole WSDL file, it would be more helpful.
    I suppose your WSDL uses rpc/encoding. Both operations in your WSDL expects only one parameter of xsd:float. Well your client code passed an array float(new Object[] {new Float(3)}).
    This should have caused the exception.

  • SimpleDeserializer encountered a child element, which is NOT expected,

    Hi All,
    I created a webservice using JAVA.
    Got WSDL for a SAP Funtional Module(BAPI_MATERIAL_SAVEDATA) and created Java Classes using (WSDL2Java -t XXX.wsdl ).
    Wrote a Java Client Prog to invoke the services.
    While Invoking the service from a Java Client program by Passing all the parameters,
    and the parameters getting updated in SAP
    BUT Getting the following Exception, not getting the response porperly:
    AxisFault
    faultCode: Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child e
    lement, which is NOT expected, in something it was trying to deserialize.
    faultActor:
    faultNode:
    faultDetail:
            stackTrace:org.xml.sax.SAXException: Simple
    Deserializer encountered a child element, which is NOT expected, in something it
    was trying to deserialize.
            at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDe
    serializer.java:145)
            at org.apache.axis.encoding.DeserializationContext.startElement(Deserial
    izationContext.java:1035)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
    va:165)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
    t.java:1141)
            at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
            at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
            at org.apache.axis.client.Call.invoke(Call.java:2467)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at SAPClient.materialSaveData(SAPClient.java:700)
            at SAPClient.main(SAPClient.java:427)
            hostname:hp-2535
    Cheers, all help would be greatly appreciated
    Vijay

    Hi!
    Resolved it, but don't see "resolved by myself" option. I was calling the wrong service.

  • Org.xml.sax.SAXException: Deserializing parameter

    Hi,
    I am trying to consume a webservice using axis. I am using Spring to call the webservice. When i am doing this i am able to get a response XML, but unfortunately there was an error stating deserializing of the object is failed.
    Here are my logger statements.
    **DEBUG 12:29:52,099 [TP-Processor23] org.apache.axis.transport.http.HTTPSender - <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><counterResponse xmlns="http://www.example.org/vantage/"><checkBox xmlns="">true</checkBox><terms xmlns="">oh my god... check box is clicked ..</terms></counterResponse></soapenv:Body></soapenv:Envelope>** DEBUG 12:29:52,105 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(exit00)
    DEBUG 12:29:52,110 [TP-Processor23] org.apache.axis.transport.http.HTTPSender - Exit: HTTPDispatchHandler::invoke
    DEBUG 12:29:52,115 [TP-Processor23] org.apache.axis.SimpleChain - Exit: SimpleChain::invoke
    DEBUG 12:29:52,120 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(semanticCheck00)
    DEBUG 12:29:52,126 [TP-Processor23] org.apache.axis.handlers.soap.MustUnderstandChecker - Doing SOAP semantic checks...
    DEBUG 12:29:52,131 [TP-Processor23] org.apache.axis.SOAPPart - Enter: SOAPPart::getAsSOAPEnvelope()
    DEBUG 12:29:52,136 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(currForm)
    DEBUG 12:29:52,141 [TP-Processor23] org.apache.axis.SOAPPart - current form is FORM_SOAPENVELOPE
    DEBUG 12:29:52,147 [TP-Processor23] org.apache.axis.client.AxisClient - Exit: AxisClient::invoke
    DEBUG 12:29:52,152 [TP-Processor23] org.apache.axis.SOAPPart - Enter: SOAPPart::getAsSOAPEnvelope()
    DEBUG 12:29:52,157 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(currForm)
    DEBUG 12:29:52,162 [TP-Processor23] org.apache.axis.SOAPPart - current form is FORM_SOAPENVELOPE
    DEBUG 12:29:52,167 [TP-Processor23] org.apache.axis.client.Call - Exit: Call::invoke()
    DEBUG 12:29:52,171 [TP-Processor23] org.apache.axis.SOAPPart - Enter: SOAPPart::getAsSOAPEnvelope()
    DEBUG 12:29:52,176 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(currForm)
    DEBUG 12:29:52,181 [TP-Processor23] org.apache.axis.SOAPPart - current form is FORM_SOAPENVELOPE
    DEBUG 12:29:52,191 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
    DEBUG 12:29:52,197 [TP-Processor23] org.apache.axis.encoding.DeserializationContext - Pushing handler org.apache.axis.message.RPCHandler@f81d1c
    DEBUG 12:29:52,201 [TP-Processor23] org.apache.axis.encoding.DeserializationContext - Enter: DeserializationContext::startPrefixMapping(, http://www.example.org/vantage/)
    DEBUG 12:29:52,206 [TP-Processor23] org.apache.axis.utils.NSStack - NSPush (32)
    DEBUG 12:29:52,211 [TP-Processor23] org.apache.axis.utils.NSStack - NSPush (32)
    DEBUG 12:29:52,215 [TP-Processor23] org.apache.axis.encoding.DeserializationContext - Exit: DeserializationContext::startPrefixMapping()
    DEBUG 12:29:52,220 [TP-Processor23] org.apache.axis.encoding.DeserializationContext - Enter: DeserializationContext::startElement(http://www.example.org/vantage/, counterResponse)
    DEBUG 12:29:52,225 [TP-Processor23] org.apache.axis.message.RPCHandler - Enter: RPCHandler.onStartChild()
    DEBUG 12:29:52,231 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(typeFromAttr00)
    DEBUG 12:29:52,236 [TP-Processor23] org.apache.axis.message.RPCHandler - Type from attributes is: null
    DEBUG 12:29:52,245 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(noDeser01)
    DEBUG 12:29:52,250 [TP-Processor23] org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(exception00)
    ERROR 12:29:52,255 [TP-Processor23] org.apache.axis.client.Call - Exception:
    org.xml.sax.SAXException: Deserializing parameter 'counterResponse': could not find deserializer for type {http://www.example.org/vantage/}counterResponse
    at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:277)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
    at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
    at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
    at org.apache.axis.client.Call.invoke(Call.java:2467)
    Any small help is most appreciated.

    If you have not specified an external WSDL file in your webservice where the arguments (with their types are defined) then you cannot use the type="any" in your webservice arguments.
    If you want to use an external WSDL and define the argument types there you can do this by adding wsdlfile="nameOfExternal.wsdl" style="document" to your cfcomponent tag.

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

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

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

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

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

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

  • Org.xml.sax.SAXException: oracle.AWXML.Index

    i got the following error when i try to create an analytic workspace from a template file, in Analytic workspace manager 10g.
    Unable to create Analytic Workspace From file c:\...\global.xml
    org.xml.sax.SAXException: oracle.AWXML.Index
    at oracle.AWXML.AWHandlerBase.startElement(AWHandlerBase.java:123)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1224)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:311)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:278)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:294)
    at oracle.olap.awm.dataobject.modeler.ModelDO.readBaseObjectFromFile(ModelDO.java:744)
    at oracle.olap.awm.navigator.node.WorkspaceNode$1.construct(WorkspaceNode.java:1084)
    at oracle.olap.awm.ui.SwingWorker$2.run(SwingWorker.java:109)
    at java.lang.Thread.run(Unknown Source)
    this is available in this site under the heading
    "downloading and installing the second global schema for documentation"
    in global_doc.zip file.
    very urgent please..

    If you have not specified an external WSDL file in your webservice where the arguments (with their types are defined) then you cannot use the type="any" in your webservice arguments.
    If you want to use an external WSDL and define the argument types there you can do this by adding wsdlfile="nameOfExternal.wsdl" style="document" to your cfcomponent tag.

  • Org.xml.sax.SAXException error please help me out.............

    hi
    if any one can help me out pls it would be greate favour ...................
    iam new to webservice
    iam getting this error when i run the client program
    C:\jakarta-tomcat-4.1.31\webapps\axis>java AttachmentServiceClient
    org.xml.sax.SAXException: Deserializing parameter 'sku': could not find deserializer for type {http://www.w3.org/2001/XMLSchema}string
    iam using tomcat4.1, axis-1_3
    This is service file
    // SparePartAttachmentService.java
    import javax.activation.DataHandler;
    import java.io.*;
    public class SparePartAttachmentService {
    public SparePartAttachmentService(){}
    public String addImage (String sku, DataHandler dataHandler) {
    try {
    String filepath = "c:/wrox_axis/photo/" + sku +
    "-image.jpg";
    FileOutputStream fout = new FileOutputStream(new File (filepath));
    BufferedInputStream in =
    new BufferedInputStream(dataHandler.getInputStream());
    while (in.available()!= 0) {
    System.out.println("inside while");
    fout.write(in.read());
    } catch (Exception e) {
    return e.toString();
    return "Image: " + sku + " has been added successfully!!";
    This is wsdd file
    <deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
    xmlns:ns1="AttachmentService">
    <service name="AttachmentService" provider="java:RPC">
    <parameter name="className"
    value="SparePartAttachmentService"/>
    <parameter name="allowedMethods"
    value="addImage"/>
    </service>
    <typeMapping qname="ns1:DataHandler"
    languageSpecificType="java:javax.activation.DataHandler"
    serializer="org.apache.axis.encoding.ser.
    JAFDataHandlerSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.
    JAFDataHandlerDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </deployment>
    This is client file
    // AttachmentServiceClient.java
    import java.net.URL;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.encoding.XMLType;
    import java.io.*;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory;
    import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory;
    import javax.activation.FileDataSource;
    import javax.activation.DataHandler;
    public class AttachmentServiceClient {
    public AttachmentServiceClient(){}
    public static void main (String args[]) {
    try {
    String filename = "C:/jakarta-tomcat-4.1.31/webapps/axis/baby.jpg";
    System.out.println("filename " +filename);
    // Create the data for the attached file.
    DataHandler dhSource = new DataHandler (new
    FileDataSource (filename));
    System.out.println("filename " +dhSource);
    // EndPoint URL for the SparePartPrice Web Service
    String endpointURL =
    "http://localhost:8080/axis/services/AttachmentService";
    // Method Name to invoke for the Attachment Web Service
    String methodName = "addImage";
    // Create Call object and set parameters
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress (new java.net.URL(endpointURL));
    call.setOperationName (new QName("AttachmentService",
    methodName));
    call.addParameter("sku", XMLType.XSD_STRING,
    ParameterMode.IN);
    QName qname = new QName("AttachmentService", "DataHandler");
    call.addParameter("image", qname, ParameterMode.IN);
    // register the SparePartBean class
    call.registerTypeMapping(dhSource.getClass(), qname,
    JAFDataHandlerSerializerFactory.class,
    JAFDataHandlerDeserializerFactory.class);
    call.setReturnType(XMLType.XSD_STRING);
    // Setup the Parameters i.e. the Part SKU to be passed as
    // input parameter to the Attachment Web Service
    Object[] params = new Object[] { "SKU-111", dhSource };
    // Invoke the SparePartPrice Web Service
    String result = (String) call.invoke(params);
    // Print out the result
    System.out.println("The response: " + result);
    } catch (Exception e) {
    System.err.println(e.toString());
    }

    hi
    if any one can help me out pls it would be greate favour ...................
    iam new to webservice
    iam getting this error when i run the client program
    C:\jakarta-tomcat-4.1.31\webapps\axis>java AttachmentServiceClient
    org.xml.sax.SAXException: Deserializing parameter 'sku': could not find deserializer for type {http://www.w3.org/2001/XMLSchema}string
    iam using tomcat4.1, axis-1_3
    This is service file
    // SparePartAttachmentService.java
    import javax.activation.DataHandler;
    import java.io.*;
    public class SparePartAttachmentService {
    public SparePartAttachmentService(){}
    public String addImage (String sku, DataHandler dataHandler) {
    try {
    String filepath = "c:/wrox_axis/photo/" + sku +
    "-image.jpg";
    FileOutputStream fout = new FileOutputStream(new File (filepath));
    BufferedInputStream in =
    new BufferedInputStream(dataHandler.getInputStream());
    while (in.available()!= 0) {
    System.out.println("inside while");
    fout.write(in.read());
    } catch (Exception e) {
    return e.toString();
    return "Image: " + sku + " has been added successfully!!";
    This is wsdd file
    <deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
    xmlns:ns1="AttachmentService">
    <service name="AttachmentService" provider="java:RPC">
    <parameter name="className"
    value="SparePartAttachmentService"/>
    <parameter name="allowedMethods"
    value="addImage"/>
    </service>
    <typeMapping qname="ns1:DataHandler"
    languageSpecificType="java:javax.activation.DataHandler"
    serializer="org.apache.axis.encoding.ser.
    JAFDataHandlerSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.
    JAFDataHandlerDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </deployment>
    This is client file
    // AttachmentServiceClient.java
    import java.net.URL;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.encoding.XMLType;
    import java.io.*;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory;
    import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory;
    import javax.activation.FileDataSource;
    import javax.activation.DataHandler;
    public class AttachmentServiceClient {
    public AttachmentServiceClient(){}
    public static void main (String args[]) {
    try {
    String filename = "C:/jakarta-tomcat-4.1.31/webapps/axis/baby.jpg";
    System.out.println("filename " +filename);
    // Create the data for the attached file.
    DataHandler dhSource = new DataHandler (new
    FileDataSource (filename));
    System.out.println("filename " +dhSource);
    // EndPoint URL for the SparePartPrice Web Service
    String endpointURL =
    "http://localhost:8080/axis/services/AttachmentService";
    // Method Name to invoke for the Attachment Web Service
    String methodName = "addImage";
    // Create Call object and set parameters
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress (new java.net.URL(endpointURL));
    call.setOperationName (new QName("AttachmentService",
    methodName));
    call.addParameter("sku", XMLType.XSD_STRING,
    ParameterMode.IN);
    QName qname = new QName("AttachmentService", "DataHandler");
    call.addParameter("image", qname, ParameterMode.IN);
    // register the SparePartBean class
    call.registerTypeMapping(dhSource.getClass(), qname,
    JAFDataHandlerSerializerFactory.class,
    JAFDataHandlerDeserializerFactory.class);
    call.setReturnType(XMLType.XSD_STRING);
    // Setup the Parameters i.e. the Part SKU to be passed as
    // input parameter to the Attachment Web Service
    Object[] params = new Object[] { "SKU-111", dhSource };
    // Invoke the SparePartPrice Web Service
    String result = (String) call.invoke(params);
    // Print out the result
    System.out.println("The response: " + result);
    } catch (Exception e) {
    System.err.println(e.toString());
    }

  • Org.xml.sax.SAXException: Invalid element    error when using code in view project

    I have a SOAP (RPC style) client bundled in a jar. It uses Axis1.4.
    I have created a ADFBC model project with programmatic view & entity objects that uses this soap client for CRUD operations.
    The Model project works fine when I run the Appmodule and a standalone java tester class.
    This model project is then deployed as a library and included in a different ADF web application.
    When running this application, I get the following exception for one method.
    Has anyone faced this issue? Any idea what's going on?
    Surprisingly, "dbAttributes" -the cause of the error is not even in the User class (or any other class in the entire application)!
    I am using JDeveloper 11.1.1.5. Issue occurs in integrated wls.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SomeClass - dbAttributes
    faultActor:
    faultNode:
    faultDetail:
      {http://xml.apache.org/axis/}hostname:localhost.localdomain
    org.xml.sax.SAXException: Invalid element in some.package.User - dbAttributes
      at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
      at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
      at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1359)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:376)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:322)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
      at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
      at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
      at org.apache.axis.client.Call.invoke(Call.java:2767)
      at org.apache.axis.client.Call.invoke(Call.java:2443)
      at org.apache.axis.client.Call.invoke(Call.java:2366)
      at org.apache.axis.client.Call.invoke(Call.java:1812)
      at some.package.ManagerSoapBindingStub.createUser(ManagerSoapBindingStub.java:879)
      at some.package.Proxy.createUser(Proxy.java:294)

    PROBLEM SOLVED.
    org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
    org.xml.sax.SAXException: Invalid element in
    I think this is a very common problem, and the sad thing is there are so many forums with no answers. I was getting this error because I was using client stubs generated by wscompile instead of wsdl2java. Once i used the stubs from wsdl2java, the error vanished****. I think its because the wscompile classes do not have property descriptors for each field in the response class. an example of such descriptors would be:
            typeDesc.setXmlType(new javax.xml.namespace.QName("https://ns.ns.btu", "LoginResponseData"));
            org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
            elemField.setFieldName("sessionID");
            elemField.setXmlName(new javax.xml.namespace.QName("https://ns.ns.btu", "SessionID"));
            elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
            elemField.setNillable(false);
            typeDesc.addFieldDesc(elemField);The wsdl2java classes do have these descriptors for each field.
    Please also look at the following links if you still having problems:
    http://marc.info/?l=axis-user&m=103705794612785&w=2
    http://www.opensubscriber.com/message/[email protected]/1877996.html

  • SimpleDeserializer encountered a child element ... Please HELP!!!!

    Good Morning Everyone,
    I want to thank you for reading my problem and see if you can help me. The deadline for this project is monday and I am struggling to make it work. I am using axis 1.4 .
    I created the web method
    public void GetFilters( javax.xml.rpc.holders.BooleanHolder GetFiltersResult, CCRFiltersHolder CCRFilters,
    javax.xml.rpc.holders.StringHolder Message, javax.xml.rpc.holders.StringHolder XMLData ){
    First, I needed to create the CCRFilters as a CCRFiltersHolder because is an IN/OUT parameter.
    public class CCRFiltersHolder implements javax.xml.rpc.holders.Holder{
    public CCRFiltersList value;
    public CCRFiltersHolder() {
    public CCRFiltersHolder(CCRFiltersList value) {
    this.value = value;
    public class CCRFiltersList implements Serializable{
    private CCRFilters[] filterList;
    public CCRFilters[] getFilterList() {
    return filterList;
    public void setFilterList(CCRFilters[] filterList) {
    this.filterList = filterList;
    public CCRFilters getFilterList(int index) {
    return filterList[index];
    public void setFilterList(int index, CCRFilters filterList) {
    this.filterList[index] = filterList;
    public class CCRFilters implements Serializable {
    private String FieldName;
    private String RelationShip;
    public String getFieldName() {
    return FieldName;
    public void setFieldName(String pFieldName) {
    FieldName = pFieldName;
    public String getRelationShip() {
    return RelationShip;
    public void setRelationShip(String pRelationShip) {
    RelationShip = pRelationShip;
    My wsdd file looks like:
    <service name="CCR" provider="java:RPC" style="wrapped" use="literal" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <parameter name="className" value="com.harris.mercury.gemsccrintegration.CCR"/>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="typeMappingVersion" value="1.2"/>
    <namespace>http://tempuri.org/</namespace>
    <parameter name="schemaUnqualified" value="http://www.gemsgov.com/CCR/"/>
    <parameter name="wsdlServicePort" value="CCRPort"/>
    <operation name="GetFilters" soapAction="http://www.gemsgov.com/CCR/GetFilters" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <parameter name="GetFiltersResult" type="xs:boolean" mode="OUT"/>
    <parameter name="CCRFilters" mode="INOUT" type="rtns:CCRFiltersHolder" xmlns:rtns="http:////www.gemsgov.com/CCR/GetFilters"/>
    <parameter name="Message" type="xs:string" mode="INOUT"/>
    <parameter name="XMLData" type="xs:string" mode="INOUT"/>
    </operation>
    <typeMapping
    xmlns:ns="http://www.gemsgov.com/CCR/GetFilters" qname="ns:CCRFiltersHolder"
    type="java:com.harris.mercury.cashiering.gemsintegration.holder.CCRFiltersHolder"
    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
    encodingStyle=""
    />
    <typeMapping
    xmlns:ns1="http://www.gemsgov.com/CCR/GetFilters" qname="ns1:CCRFiltersList"
    type="java:com.harris.mercury.cashiering.gemsintegration.CCRFiltersList"
    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
    encodingStyle=""
    />
    <typeMapping
    xmlns:ns2="http://www.gemsgov.com/CCR/GetFilters"
    qname="ns2:CCRFilters"
    type="java:com.harris.mercury.cashiering.gemsintegration.CCRFilters"
    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
    encodingStyle=""
    />
    <typeMapping xmlns:soapenc="http://www.gemsgov.com/CCR/GetFilters"
    qname="soapenc:CCRFiltersArray"
    type="java:com.harris.mercury.cashiering.gemsintegration.CCRFilters[]"
    serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
    deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
    encodingStyle=""
    />
    </service>
    Even in my test program, I added the following code :
    Call call = (Call) service.createCall();
    QName qn = new QName( "http://www.gemsgov.com/CCR/GetFilters", "CCRFiltersHolder" );
    call.registerTypeMapping("com.harris.mercury.cashiering.gemsintegration.holder.CCRFiltersHolder".getClass(), qn,
    BeanSerializerFactory.class, BeanDeserializerFactory.class);
    QName qn4 = new QName( "http://www.gemsgov.com/CCR/GetFilters", "CCRFiltersList" );
    call.registerTypeMapping(CCRFiltersList.class, qn4,BeanSerializerFactory.class, BeanDeserializerFactory.class);
    QName qn1 = new QName( "http://www.gemsgov.com/CCR/GetFilters", "CCRFilters" );
    call.registerTypeMapping(CCRFilters.class, qn1, BeanSerializerFactory.class, BeanDeserializerFactory.class);
    QName qn3 = new QName( "http://schemas.xmlsoap.org/soap/encoding", "CCRFiltersArray" );
    call.registerTypeMapping(CCRFilters[].class, qn3, new ArraySerializerFactory(), new ArrayDeserializerFactory());
    But when running, everytime I get the following message : SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    Please any help whould be appreciate it.
    Thanks a lot,
    Martha
    Edited by: Melliza on Sep 25, 2009 10:00 AM

    Hi,
    Regarding to the query which I have posted may have following possibility.
    This error may be due to the arguments which it gives as the output, as some of those arguments are the object of some other class.
    As the web service which I am trying to access is developed in .Net and requires three parameters, out of which one parameter named as "name" is input parameter while the other two are the output parameters, which web service provide as output. And may be the output which it provides may also be developed in .Net only and thats why while passing the input variable, it is not able to convert its output variable into the String.
    Please provide your valuable comments and solution to that.
    Thanks

  • URGENT! SimpleDeserializer encountered a child element, which is NOT expect

    Hi all,
    I am very new to web services.
    I am calling a web service which is developed in .Net
    Please help me out to solve the error as
    "*SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize*"
    My code is as below
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    public class CallingWebServiceClient
         public static void main(String [] args)
              try
                   String endpointURL =
                        "http://10.40.4.76/InSiteWebServices/WSNamedMaint.asmx";
                   String name = "ABC";
                   //Object serviceData = new Object();
                   //Object resultStatus = new Object();
                   Service service = new Service();
                   Call call = (Call) service.createCall();
                   call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
                   call.setOperationName("RequestAllValues");
                   call.addParameter( name, XMLType.XSD_STRING, ParameterMode.IN);
                   //call.addParameter( "serviceData", XMLType.XSD_ANY, ParameterMode.OUT);
                   //call.addParameter( "resultStatus", XMLType.XSD_ANY, ParameterMode.OUT);
                   call.setProperty(call.SOAPACTION_USE_PROPERTY, new Boolean(true));
                   call.setProperty(call.SOAPACTION_URI_PROPERTY, "http://www.xyz.com/WebService/WSNamedMaint/RequestAllValues");
                   call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );
                   String ret = (String) call.invoke( new Object[] { name } );
                   System.out.println("Value is : " + ret);
              catch (Exception e)
                   System.err.println(e.toString());
    }Please let me know the solution as soon as possible.
    Thanks

    Hi,
    Regarding to the query which I have posted may have following possibility.
    This error may be due to the arguments which it gives as the output, as some of those arguments are the object of some other class.
    As the web service which I am trying to access is developed in .Net and requires three parameters, out of which one parameter named as "name" is input parameter while the other two are the output parameters, which web service provide as output. And may be the output which it provides may also be developed in .Net only and thats why while passing the input variable, it is not able to convert its output variable into the String.
    Please provide your valuable comments and solution to that.
    Thanks

  • Org.xml.sax.SAXParseException: The prefix "c" for element "c:set" is not bo

    Hi,
    When deploying the ADF aaplication in glassfish server getting error like,
    [#|2012-12-03T14:21:53.586+0530|INFO|glassfish3.1.2|oracle.j2ee.jsp|_ThreadID=22;_ThreadName=Thread-2;|unable to dispatch JSP page: The following exception occurred:.
    oracle.jsp.parse.JspParseException:
    Error: Validator com.sun.faces.taglib.jsf_core.CoreValidator reports:
    org.xml.sax.SAXParseException: The prefix "c" for element "c:set" is not bound.
         at oracle.jsp.parse.OracleJsp2Java.reportValidationMsgs(OracleJsp2Java.java:777)
         at oracle.jsp.parse.OracleJsp2Java.invokeValidator(OracleJsp2Java.java:755)
         at oracle.jsp.parse.OracleJsp2Java.checkJspTagLibValidator(OracleJsp2Java.java:653)
         at oracle.jsp.parse.OracleJsp2Java.transformImpl(OracleJsp2Java.java:522)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:593)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:691)
         at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:490)
         at oracle.jsp.runtimev2.JspPageCompiler.parseAndGetTreeNode(JspPageCompiler.java:457)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:624)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:645)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:385)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:810)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:734)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
         at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:505)
         at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:476)
         at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:305)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)
         at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)
         at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)
         at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:341)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:990)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:342)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:236)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)
         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
         at com.ge.ohr.dm.ui.sessionHandler.GEDMSessionExpiryHandler.doFilter(GEDMSessionExpiryHandler.java:61)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
         at com.ge.ohr.dm.ui.filter.GEDMSecurityFilter.doFilter(GEDMSecurityFilter.java:173)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    The code which in .jspx page is like;
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns="http://www.w3.org/1999/xhtml">
    <c:set var="gedmuiBundle" value="#{adfBundle['com.ge.ohr.dm.ui.UIBundle']}"/>
    When including the 'xmlns:c="http://java.sun.com/jsp/jstl/core' it shows the error;
    The server encountered an internal error (OracleJSP error: oracle.jsp.parse.JspParseException: <br>Error: Validator com.sun.faces.taglib.jsf_core.CoreValidator reports:<br>org.xml.sax.SAXParseException: The prefix "c" for element "c:set" is not bound.<br>) that prevented it from fulfilling this request.
    Please help me on this.
    Thanks and Regards
    Binsy

    This is an ADF application, so you will probably find more help in the JDeveloper and ADF forum here:
    JDeveloper and ADF
    Best Regards,
    Chris

  • Org.xml.sax.SAXException: System property org.xml.sax.driver not specified

    Hi,
    I am running Jdeveloper 9.0.3.1 and using embedded OC4J.
    Getting following error when trying to run the application. Please help me if you can.
    Thanks
    Tareq
    at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)
         at net.sundog.struts.ActionFinderPlugIn.parseHtmlFiles(ActionFinderPlugIn.java:76)
         at net.sundog.struts.ActionFinderPlugIn.searchDirectory(ActionFinderPlugIn.java:64)
         at net.sundog.struts.ActionFinderPlugIn.init(ActionFinderPlugIn.java:50)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1156)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2750)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    try to look on xml.apache.org for this error. There should be some pages describing how and why setup this property.
    Basically, these properties defines factories for javax extensions. javax defines interfaces and providers than supply implementations, so for example you can use different XML parsers implementations (we use Xalan for one OC4J container and original ORACLE parser for other). To bind this together they use some defined mechanism like setting system property of including special manifest file etc. (I don't know about details)
    Myrra

Maybe you are looking for

  • How can I transfer photos from my iPhone to iPhoto without iCloud getting involved?

    Hi All: I would like to transfer photos to iphoto without iCloud synching.  Last time I synched my iphone to my laptop icloud changed my .mail account setting and moved/added folders within .mail.  It took me a very long time to figure out what happe

  • Adobe Photoshop CC stopped responding

    I get this error code after Photoshop crashes. Faulting application name: Photoshop.exe, version: 14.1.2.427, time stamp: 0x524002c6 Faulting module name: aticfx64.dll, version: 8.17.10.1247, time stamp: 0x52a238cd Exception code: 0xc0000005 Fault of

  • Taking a long time to sync

    iPod 80 GB taking forever to sync with iTunes library. Using OS X 10.7.

  • Help Please: Slow To Restart After Update

    My family member got his Macbook in August 2006 but rarely if ever did any updates. I ran Software Update today and there were a lot of things listed so I decided to do it in steps. First, there were a couple of firmware updates which downloaded then

  • Lost preset  tone curve - Lightroom Default

    I think I deleted by accident. I cannot find any way to restore factory defaults. Surely there must be. Tried right clicking but that does not work. I am running LR 1.1 Any suggestions?