org.xml.sax.SAXException:SimpleDeserializer met a child element...

Hi all

I created a following program using the '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 more
Thank you for giving this problem at a glance.
-Sookie

Hello Sookie,

I found the problem, it is with two or three child settings are not saved the deserializer. There are two or three extra classes must 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?

Thank you.
Yang

Tags: Business Intelligence

Similar Questions

  • Nested exception on the SOAP webservice in Orchestrator calls - org.xml.sax.SAXException: element not valid in ch.dunes.vso.webservice.WorkflowToken - businessState?

    I created a java client program to call Orchestrator webservice for the execution of a workflow.

    When executing my code, the workflow is executed in Orchestrator with new token generated workflow.

    But my client side receives SAX exception. All trace is as below:

    WARNING: Could not find the required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

    20 sep 2013 13:02:23 org.apache.axis.client.Call invoke

    SEVERE: Exception:

    • org.xml.sax.SAXException: element not valid in ch.dunes.vso.webservice.WorkflowToken - businessState

    at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)

    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 ch.dunes.vso.webservice.WebserviceSoapBindingStub.executeWorkflow(WebserviceSoapBindingStub.java:744)

    at ch.dunes.vso.webservice.VSOWebControlProxy.executeWorkflow(VSOWebControlProxy.java:95)

    at com.vmware.client.LaunchWorkflow.main (unknown Source)

    ; nested exception is:

    org.xml.sax.SAXException: invalid element in ch.dunes.vso.webservice.WorkflowToken - businessState [Ljava.lang.StackTraceElement;@793d7a

    Any suggestions?

    You can check the version of the WSDL file that you use in your java application? Looks like it's outdated, perhaps to an old version 4.1

  • org.xml.sax.SAXParseException in sessions.xml

    Hello

    Recently, I've migrated a 10.1.3.4 11.1.1.3, then 11.1.2.4 project. When I deploy the project on IntegratedWeblogicServer org.xml.sax.SAXParseException exceptions are thrown about the items in the sessions.xml.

    session. XML

    <? XML version = "1.0" encoding = "UTF-8"? >
    < version toplink-sessions = "11 g Release 1 (11.1.1.5.0)" = "http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    < session xsi: type = "Server-session" >
    default < name > < / name >
    < project-primary xsi: type = "xml" > META-INF/kiMap.xml < / primary-project >
    < connection xsi: type = "database-login" >
    oracle.toplink.platform.database.oracle.Oracle11Platform < platform-class > < / platform >
    oracle.jdbc.driver.OracleDriver < class driver > < / driver-class >
    < datasource > jdbc/AlfaDS < / datasource >
    < bind-all-settings > false < / bind-all-parameters >
    false < byte array-link > < / Binder bytes-table >
    < optimize conversion of data > false < / optimize-data conversion >
    false < trim-String > < / trim-String >
    false < jdbc-batch-write > < / jdbc-batch-write >
    < / login >
    < / session >
    < / toplink-sessions >

    Exceptions

    org.xml.sax.SAXParseException: line 9, column 22 >: 24534-XML: (doing) element "datasource" is niet verwacht.
    ***
    org.xml.sax.SAXParseException: line 10, column 31 >: 24534-XML: (doing) 'bind all parameters' is niet verwacht.
    ***
    org.xml.sax.SAXParseException: line 11, column 30 >: 24534-XML: (doing) element 'byte-array-binding' is niet verwacht.
    ***
    org.xml.sax.SAXParseException: line 12, column 36 >: 24534-XML: (doing) "maximize conversion of data" is niet verwacht.
    ***
    org.xml.sax.SAXParseException: line 13, column 24 >: 24534-XML: (doing) element 'trim-strings' is niet verwacht.
    ***
    org.xml.sax.SAXParseException: line 14, column 30 >: 24534-XML: (doing) element 'jdbc-batch-write' is niet verwacht.
    ***
    org.xml.sax.SAXParseException: line 15, column 15 >: XML-24521: element (care) is niet voltooid: "login".

    Translation
    is niet verwacht = not expected
    is niet voltooid = not complete

    Please help me with this configuration.

    With greetings

    Martin

    Published by: Martin Schaap on May 17, 2013 02:52

    Published by: Martin Schaap on May 20, 2013 22:31

    In the session.xml scheme, it's a choice between data source and driver-class/url, you will need to remove the label from the class driver that you are using a data source.

    oracle.jdbc.driver.OracleDriver
    JDBC/AlfaDS

    replalce

    JDBC/AlfaDS

  • Error of org.xml ACS 5.3 Exception when executing reports

    Hello

    5.3 GBA running on a device of 1121

    When you run a report's RADIUS authentication, accounting, etc. is all report, I get the error attached image (org.xml.sax.SAXParseException...). I have not yet found a solution. I'm running another ACS 5.2 device that does not have this error

    If the upgrade to a newer version will solve this problem, the license (5.3) will suffice.

    Any help is appreciated

    Kind regards

    MOE Shea

    Hello Mo,

    I have this error either a browser problem, I recommend you watch the ACS 5.3 release notes and confirm if you are currently using a supported browser:

    http://www.Cisco.com/c/en/us/TD/docs/net_mgmt/cisco_secure_access_contro...

    A restart of services can take care of it as well in case you are using a supported browser.

    Note: Please mark as answer as appropriate

  • Get XML child elements

    Dear Indesign scripting,

    This script is made of all the tags XML ParagraphStyles.

    But he refuses to take the child to the elements. What do I have to use the XPath expression? And how?

    function main() {  
      var xes, n, doc, ps, xe;  
      if ( !app.documents.length ) return;  
      doc = app.activeDocument;
      xes = doc.xmlElements[0].xmlElements;  
      n = xes.length;  
      while ( n-- ) {  
      xe = xes[n]; 
      st = doc.paragraphStyles.itemByName (xe.markupTag.name );  
      !st.isValid && doc.paragraphStyles.add({name:xe.markupTag.name});  
      }  
    }  
      
      
    main(); 
    

    The XML code

    <Workbook>  
         <Element_A_01>  
              <Element_A_01></Element_A_01>  
         </Element_A_01>  
         <Element_B_02>  
              <Element_B_02></Element_B_02>  
         </Element_B_02>  
    </Workbook> 
    

    Greetings from Holland

    The code creates two paragraph styles namely Element_A_01 and Element_B_02. These two are created for the immediate child nodes of the workbook node. Now, it seems you are trying to create pstyles for all nodes in the XML document, which in your case would be even these two as Element_A_01 has a child node that is also named Element_A_01 and what is the case for Element_B_02.

    If I get your straight stitch then you need to create 4 pstyles if all nodes have different names, but who doesn't. For that you recursively through each node that you receive from the fixed code [n].

    The code to be something like this

    1. main() {} function
    2. fixed var n, doc, ps, xe;
    3. If (! app.documents.length) return;
    4. doc = app.activeDocument;
    5. fixed = doc.xmlElements [0] .xmlElements; This gives the immediate children nodes of the workbook node, where the length in the next statement 2
    6. n = xes.length;
    7. While (n)-{}
    8. XE = set [n];   Here you need to recursively through the xe node
    9. The number of child elements of the xe can be obtained as xe.xmlElements.length
    10. First element can be obtained by xe.xmlElements [0]
    11. }
    12. }
    13. main();

    Hope this fixes the problem

  • Header child element 'WSCorIDSOAPHeader' must be namespace qualified.

    I have two machines. The first machine have a managed server and server administrator OSB. The second device with a SOA managed server, the server administrator and the enterprise manager.
    Call for service in OSB is redirect do SOA Server (BPEL process).
    After the drive, the following error message show in SOA server log.

    INFO: Platform SOA FabricProviderServlet.stateChanged is running and is accepting applications
    javax.xml.soap.SOAPException: parse envelope error: probably because of an invalid SOAP message. : header child element 'WSCorIDSOAPHeader' must be the namespace qualified!
    at oracle.j2ee.ws.saaj.soap.AbstractSOAPImplementation.createEnvelope(AbstractSOAPImplementation.java:137)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:95)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:64)
    at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody (MessageImpl.java:1572)
    at oracle.j2ee.ws.common.soap.SoapUtils.getSOAPBodyFirstChildQName(SoapUtils.java:249)
    at oracle.j2ee.ws.server.mgmt.runtime.model.WebServiceOperationModelHelper.getOperationModelFromInputMessage(WebServiceOperationModelHelper.java:139)
    at oracle.j2ee.ws.server.provider.ProviderPort.getOperationModelFromInputMessage(ProviderPort.java:986)
    at oracle.j2ee.ws.server.mgmt.runtime.SuperServerInterceptorPipeline.handleRequest(SuperServerInterceptorPipeline.java:132)
    at oracle.j2ee.ws.server.provider.management.AbstractProviderInterceptorPipeline.executeRequestInterceptorChain(AbstractProviderInterceptorPipeline.java:563)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.executeInterceptorRequestChain(ProviderProcessor.java:921)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:231)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:193)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: javax.xml.soap.SOAPException: header child element 'WSCorIDSOAPHeader' must be the namespace qualified!
    at oracle.j2ee.ws.saaj.soap.HeaderImpl.createChildElement(HeaderImpl.java:213)
    at oracle.j2ee.ws.saaj.soap.ElementImpl.createAndAppendChildElement(ElementImpl.java:827)
    at oracle.j2ee.ws.saaj.soap.StaxHandler.startElement(StaxHandler.java:222)
    at oracle.j2ee.ws.saaj.soap.StaxHandler.staxParse(StaxHandler.java:82)
    at oracle.j2ee.ws.saaj.soap.StaxHandler.staxParse(StaxHandler.java:70)
    at oracle.j2ee.ws.saaj.soap.AbstractSOAPImplementation.getStaXParsedEnvelope(AbstractSOAPImplementation.java:204)
    at oracle.j2ee.ws.saaj.soap.AbstractSOAPImplementation.createEnvelope(AbstractSOAPImplementation.java:58)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:95)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:64)
    at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody (MessageImpl.java:1572)
    at oracle.j2ee.ws.common.soap.SoapUtils.getSOAPBodyFirstChildQName(SoapUtils.java:249)
    at oracle.j2ee.ws.server.mgmt.runtime.model.WebServiceOperationModelHelper.getOperationModelFromInputMessage(WebServiceOperationModelHelper.java:139)
    at oracle.j2ee.ws.server.provider.ProviderPort.getOperationModelFromInputMessage(ProviderPort.java:986)
    at oracle.j2ee.ws.server.mgmt.runtime.SuperServerInterceptorPipeline.handleRequest(SuperServerInterceptorPipeline.java:132)
    at oracle.j2ee.ws.server.provider.management.AbstractProviderInterceptorPipeline.executeRequestInterceptorChain(AbstractProviderInterceptorPipeline.java:563)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.executeInterceptorRequestChain(ProviderProcessor.java:921)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:231)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:193)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    >

    What is WSCorIDSOAPHeader?

    Temporarily Introscope agent configuration of your managed servers and call to try the service.
    It is the cause of your problem.
    Contact your Administration Introscope and task on the problem of Introscope + OSB + BPEL (SOA server).

    Workaround solution:
    Temporarily Introscope agent configuration of your managed servers and call to try the service.

  • creating xmltype excluding child elements view

    stuck with:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi   
    I'm writing an xmltype view that shows only the project, review (latest version) and item elements and their attributes. but exclude something more. Purpose: quick / high level search/filter on the demand side.
    <project name="test">
       <revision version="1">
          <item id="some:id:100">
             <excludeme />
          </item>
          <item id="some:id:101">
             <excludeme />
          </item>
          <item id="some:id:102">
             <excludeme />
          </item>
       </revision>
       <revision version="2">
          <item id="some:id:100">
             <excludeme />
          </item>
          <item id="some:id:101">
             <excludeme />
          </item>
          <item id="some:id:102">
             <excludeme />
          </item>
       </revision>
    </project>
    I can't figure out how all the items in the list and also to exclude all child elements:
    create or replace view "v_filter" of xmltype as
    select 
      XMLELement("project",
        XMLAttributes(extractValue(object_value,'/project/@name') AS "name"),
        XMLElement("revision",
          XMLAttributes(extractValue(object_value,'/project/revision[not(@version <= preceding-sibling::revision/@version) and not(@version <= following-sibling::revision/@version)]/@version') AS "version"),
          -- unsure as to what to do here, usually I end up with an ORA-00937: not a single-group group function
          --XMLAgg(
          --  ..............
          --  )
          )
        )
      )
    from ftdb_projects;
    Hoping for:
    <project name="test">
       <revision version="2">
          <item id="some:id:100"/>
          <item id="some:id:101"/>
          <item id="some:id:102"/>
       </revision>
    </project>

    Guess the XMLAGG order by clause not usable...?

    Where do you want to see it used?

    You might try to avoid the conversion of type of data may simply by setting VERSION such as VARCHAR2 or better probably referring via xdb annotations in the schema XML for the version xdb:SQLType = varchar2

    Well, I would say that something is missing as XMLCast function to correctly get the version of a numeric data type, so that it is consistent with the schema when injected in the XQuery.

    Out of curiosity, I was testing on 11.2 too with more or less the same parameters (storage of GOLD, REGISTER_NT_AS_IOT option) and well... Let's say it's day and night.
    Applications shown above fully rewritten, even one with the XMLQuery call :)

  • HTML Parsing error: Cannot edit the item container parent before the child element is closed (KB927917).

    Original title: HTML Parsing Error:

    When I go on this particular Web page, I can open the page, but with errors.  The error I get is: HTML Parsing Error: impossible to edit the item container parent before the child element is closed (KB927917).  Can someone out there help me solve this problem.  Also, it is the only Web page devoted to this particular site that does this.

    Hi Debbie9089,

    ·         What browser do you use?

    ·         Have you been able to access this site much earlier?

    If you use Internet Explorer, you can follow this link and check if the problem persists.

    Why do I get an "Operation aborted" error message when I visit a Web page in Internet Explorer?

    Hope the helps of information.

    Please post back and we do know.

  • Cannot access a Web site, HTMLParsingError unable to change the container element parent before the child element closed

    When I go to Geaowarehouse a site to check the properties and assessments

    I can't get the information

    This message appears when I click on the yellow triangle at the bottom LHS

    HTMLParsingError unable to edit the item container parent before the child element is closed

    http://answers.Microsoft.com/en-us/IE/Forum/IE8-windows_other/HTML-parsing-error-unable-to-modify-the-parent/e64759e0-D344-42d6-b1d8-0ce27504dd71

  • In good company the child elements of the element without terminals are not visible.

    Hi all

    Jdev version 11.1.1.7.0

    I am facing a company in good standing question...

    Scenario: I create approval Service (BPEL) with flow of human labor and the Bunises rule.

    I'm assingning HW participating using the rule based (HW and BR connection).

    Problem is:

    Shema has element 'unbounded '.

    < name of item = "ExpenseItem" maxOccurs = "unbounded" >

    < complexType >

    <>sequence

    < element name = "ItemID" type = "string" / >

    < element name = "ItemName" type = "string" / >

    < element name = "ItemPrpjectID" type = "string" / >

    < element name = "ItemStatus" type = "string" / >

    < / sequence >

    < / complexType >

    < / item >

    Whenever I have create a Busines to configure rules.

    ExpenseItem rules setting up the child elements are not visible. But those who are required to configure rules.

    If you can help solve me would be useful.

    What is a behavior bedault of the BR? If yes how can I do this?

    Thank you

    David

    Solution found:

    Click on set of rules that you have created.

    Expand rule in there.

    Select the Advanced mode and mode tree, and then click OK.

    Select the root task, click insert pattren and create pattren based on unrelated element (here actually destiny)
    Once you create pattren, will be elements of access under item boundless for the configuration of business rules.

  • Error while building project with XML SAX treatment.

    I develop a treatment that uses the XML parser in a manner very similar to that used by the example saxbookmarks.  I am struggling to get this to build

    The first number is displayed in the header - documentation says, for example, for QXmlDefaultHandler, I need to include:

    #include

    However that is not found, and the compilation fails.  To remedy this, I use

    #include

    that seems to work.

    However when I build and copy the following code I get messages like this in the console log:

    XMLTableHandler.o: reference undefined symbol "_ZNK18QXmlParseException7messageEv".

    XMLTableHandler is my code

    I can build the sample and compared the different parameters I can think off (file pro, level generation SDK and so on) to ensure that they are the same.  But nothing prevents this.

    I can remove the error by rebuilding without the XMLTableHandler class.  I'll try to cut out as much of its code as I can by causing still the error and then after this code, but I suspect it's something in the configuration that is causing the problem. I hope someone can tell me what.

    TIA.

    Looks like QtXml libs are not related.

    Is the line
    QT += xml
    present in the .pro file?

  • XMLquery xmlns in child elements

    Hello world!

    I try to insert item xml and get it with included namespaces. I have need xmlns to the element.  Where is my mistake?

    Best regards, Mikle.

    declare

    t_xml xmltype: = xmltype)

    ' ' < root xmlns = " http://www.nosite/a "xmlns:r =" " http://www.nosite/r ">

    < name = "aaa" tId = '1' r: id = "aaa" / >

    < name = "ccc" tId = '2' r: id = "aaa" / >

    < name = "bbb" tId = '4' r: id = "aaa" / >

    (< / root > ');

    Start

    Select

    XMLQUERY)

    "xquery version '1.0 ';

    declare default element namespace " " http://www.nosite/a ";

    declare namespace r = " " http://www.nosite/r " ;

    copy $tmp: $x = change insert

    node < name s = tId "{$snm}" = "{$nid}" r: id = "aaa" / > after

    $tmp/root/s[@tId=$sid]

    return $tmp '

    from t_xml as 'x', 2 as 'sid', 'ggg' as 'MNS', 12 in the "nest".

    return content)

    in double t_xml.

    dbms_output.put_line (t_xml.getclobval ());

    end;

    " < root xmlns =" http://www.nosite/a "xmlns:r =" " http://www.nosite/r ">

    < name = "aaa" tId = '1' r: id = "aaa" / >

    < name = "ccc" tId = '2' r: id = "aaa" / >

    " < name ="ggg"tId = '12' xmlns:r = ' http://www.nosite/r ' r: id = "aaa" xmlns = " http://www.nosite/a "/>

    < name = "bbb" tId = '4' r: id = "aaa" / >

    < / root >

    post processing of the xml using regexp_replace clob...

    How dare you?

    I have also tried many different things for post-processing of XML or used a method of completely different (DOM, XMLPatch) update and it seems that voila post-processing using an identity XSLT transformation:

    SQL> declare
      2
      3    t_xml xmltype:=xmltype(
      4  '
      5    
      6    
      7    
      8  ');
      9
     10    xsl   xmltype := xmltype(
     11    '
     12    
     13      
     14        
     15      
     16    
     17  ');
     18
     19  begin
     20    select xmltransform(
     21             xmlquery(
     22              ' xquery version "1.0";
     23                declare default element namespace "http://www.nosite/a";
     24                declare namespace r = "http://www.nosite/r" ;
     25                copy $tmp := $x  modify insert
     26                   node  after
     27                   $tmp/root/s[@tId=$sid]
     28                return $tmp '
     29              passing  t_xml as "x", 2 as "sid", 'ggg' as "snm", 12 as "nid"
     30              returning content
     31             )
     32           , xsl
     33           )
     34    into t_xml
     35    from dual;
     36
     37    dbms_output.put_line(t_xml.getclobval(1,2));
     38
     39  end;
     40  /
    
    
      
      
      
      
    
    
    PL/SQL procedure successfully completed
    
  • Hide child element LOV cascading


    Hi all

    I have two selection lists set up in cascade LOV s, using the point of LOV cascading parameters.  Selects a Select1 element updates Select2 with child options available.  It works very well.

    What I also want to do, is to hide the Select2 element when no options are available. I guess I can use a dynamic action to hide/show the item, but I can't work on how to get a number of available options and hide/show when it is required. Should be simple but good?

    The apex is 4.2.5.00.08

    Thank you!

    ~ L

    OK think I worked this one, if will post it here for other peoples reference.

    Create a single dynamic action:

    Event: change

    Type: element

    Articles: List of child selection

    Condition: Expression of Javascript

    Value: this.triggeringElement.length - 1 > 0 (counting of list entries,-1 for a display null value)

    Real Action: The child show selection list

    False Action: Hide the child selection list

  • Need help to read a _fmb. XML and write the properties of the element to a table

    We want to retrieve all the properties of elements of forms at a table.
    Table has this format:
    Describing oracle_forms_item_list....
    NAME                            Null?     Type
    ------------------------------- --------- -----
    FORM_NAME                       NOT NULL  VARCHAR2(100)
    ITEM_NAME                       NOT NULL  VARCHAR2(50)
    ITEM_TYPE                       NOT NULL  VARCHAR2(50)
    PROPERTY                        NOT NULL  VARCHAR2(50)
    PROPERTY_VALUE                            VARCHAR2(500)
    We want to get all D_e_p_a_r_t_m_e_n_t_s.fmb items (blocks, paintings, text etc.). So first convert us it to XML and we get the D_e_p_a_r_t_m_e_n_t_s_fmb.xml file which is shown below.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <Module version="101020002" xmlns="http://xmlns.oracle.com/Forms">
       <FormModule Name="D_E_P_A_R_T_M_E_N_T_S" ConsoleWindow="WINDOW1" DirtyInfo="true" MenuModule="DEFAULT&amp;SMARTBAR" Title="MODULE5">
          <Coordinate CharacterCellWidth="7" CoordinateSystem="Real" CharacterCellHeight="14" RealUnit="Point" DefaultFontScaling="true"/>
          <Alert Name="ALERT6" DirtyInfo="true" DefaultAlertButton="Button 2" AlertMessage="Do you want to save ???" Button2Label="No" AlertStyle="Caution" Title="Saving........................... &lt;>" Button1Label="Yes"/>
          <Block Name="DEPT" ScrollbarTabPageName="" DirtyInfo="true" QueryDataSourceName="dept" ScrollbarWidth="14" ScrollbarYPosition="39" ShowScrollbar="true" ScrollbarCanvasName="CANVAS4" ScrollbarLength="70" RecordsDisplayCount="5" ScrollbarXPosition="237">
             <Item Name="DEPTNO" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="14" Width="27" ColumnName="DEPTNO" DataType="Number" YPosition="39" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="3" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Deptno"/>
             <Item Name="DNAME" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="41" Width="101" ColumnName="DNAME" YPosition="39" Tooltip="Dep name goooes here." DataLengthSemantics="BYTE" Hint="Entter the department name" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="14" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Dname"/>
             <Item Name="LOC" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="142" Width="95" ColumnName="LOC" YPosition="39" DataLengthSemantics="BYTE" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="13" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Loc"/>
             <DataSourceColumn Type="Query" DSCType="NUMBER" DSCNochildren="false" DSCLength="0" DSCPrecision="2" DSCName="DEPTNO" DSCScale="0" DSCMandatory="false"/>
             <DataSourceColumn Type="Query" DSCType="VARCHAR2" DSCNochildren="false" DSCLength="14" DSCPrecision="0" DSCName="DNAME" DSCScale="0" DSCMandatory="false"/>
             <DataSourceColumn Type="Query" DSCType="VARCHAR2" DSCNochildren="false" DSCLength="13" DSCPrecision="0" DSCName="LOC" DSCScale="0" DSCMandatory="false"/>
          </Block>
          <Canvas Name="CANVAS4" ViewportHeight="324" DirtyInfo="true" Height="324" WindowName="WINDOW1" Width="540" ViewportWidth="540" CanvasType="Content">
             <Graphics Name="FRAME5" GraphicsText="" FrameTitleOffset="14" Height="108" VerticalMargin="14" GraphicsFontColor="" GraphicsFontSpacing="Ultradense" Width="251" GraphicsFontSize="0" GraphicsFontWeight="Ultralight" StartPromptOffset="7" FillPattern="none" GraphicsFontColorCode="0" HorizontalObjectOffset="0" EdgeBackColor="white" FrameTitle="Departments" ShowScrollbar="true" RecordsDisplayCount="5" LayoutStyle="Tabular" DirtyInfo="true" XPosition="7" Bevel="Inset" GraphicsFontStyle="0" ScrollbarWidth="14" HorizontalMargin="7" FrameTitleSpacing="7" EdgePattern="solid" YPosition="15" GraphicsType="Frame" GraphicsFontName="" LayoutDataBlockName="DEPT"/>
          </Canvas>
          <ProgramUnit Name="ASK_FROM_USER" ProgramUnitType="Function" ProgramUnitText="FUNCTION ask_from_user RETURN BOOLEAN IS&amp;#10; v_button number;&amp;#10;BEGIN&amp;#10;  v_button := SHOW_ALERT('ALERT6');&amp;#10;  &amp;#10;  if v_button = ALERT_BUTTON2 THEN&amp;#10;       RETURN false;&amp;#10;  ELSE&amp;#10;       RETURN TRUE;&amp;#10;  END IF;&amp;#10;END;"/>
          <Trigger Name="POST-DATABASE-COMMIT" TriggerText="/*&amp;#10;   Created by ABC de Silva&amp;#10;   &lt;&lt;&lt;&lt;&lt;..>> &amp;#10;   testing for special characters &lt; rock &amp; roll &amp;#10;*/&amp;#10;BEGIN&amp;#10;     MESSAGE('*** Records successfully &lt;&lt;&lt;> commmited to the DB. ***');&amp;#10;     PAUSE;&amp;#10;END;" DirtyInfo="true"/>
          <Window Name="WINDOW1" Height="324" Width="540"/>
       </FormModule>
    </Module>
    Now, we want to read this file with UTL_FILE (in a PL/SQL stored procedure) and fill in the chart above like this:
    FORM_NAME                  ITEM_NAME   ITEM_TYPE  PROPERTY         PROPERTY_VALUE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
    ----------------------------------------------------------------------------------------------------------
    D_e_p_a_r_t_m_e_n_t_s.fmb  ALERT6      Alert      Title            Saving........................... <>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    D_e_p_a_r_t_m_e_n_t_s.fmb  DEPTNO      Text Item  Prompt           Dname                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    D_e_p_a_r_t_m_e_n_t_s.fmb  DEPTNO      Text Item  MaximumLength    3                                                                                                                                                                                                                                                                                                                                     
    It's, I went through Google, nobody can give a complete solution. All are partial solutions.

    Any help will greatly be apprectiated.

    Published by: Channa on 30 Sep 2011 06:31

    Here goes:

    select x1.item_name
         , x1.item_type
         , x2.property
         -- to convert back entities such as 
     to their character values :
         , utl_i18n.unescape_reference(x2.property_value) as property_value
         -- parent information :
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
            }'
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
            }'
           passing x1.item
           columns property       varchar2(50)  path 'name'
                 , property_value varchar2(500) path 'value'
        ) x2
    ;
    

    To make it easier, instead of calculating an ID, the information of the parent are given as (parent_name, parent_type).

  • Import XML removes a space after the xref element

    Hello

    FM10 is not patched, WinXP SP3

    I stumbled on a very serious problem that I am unable to replicate, but not solve. When I import XML (custom), no spaces < xref > following is deleted. I don't know if it's exclusive to elements of reference or any element without content... but for sure, it happens with xrefs.

    Here's a zip with the example files with which I am able to reproduce this. The XML file has two < xref > s, separated by 'and '. When you import the XML (using the DTD, the rules and template provided), the space before the "and" is deleted.

    http://www.weststreetconsulting.com/downloads/test.zip

    I disabled all my personal plugins and all DITA plugins I could find, same thing.

    I don't know if anyone has the time to watch it, but I would be very grateful if someone could confirm the problem. This caused a real mess in my source files I can't correct using nonbreaking spaces, but it's really a pain and very suboptimal.

    Thank you

    Russ

    Hi Russ...

    This is a known issue for the DITA files and can also be the cause of the problem that you see. This has been fixed in the latest patch, as long as you use a client of import and export which was rebuilt with latest libraries FDK. (No doubt if you use the client by default, it should "work" once you install the update.) I posted this to the framemaker-dita some time ago Yahoo Group...

    ----------------------

    If you use a FM10 DITA (with DITA-FMx or not), you may have noticed that after conrefs inline spaces are missing. Apparently the FM10 introduced certain areas of standardization, which was a little too aggressive.

    This can be corrected in a future update, but until you can fix it by doing the following change to the maker.ini file. In the Preferences section, you can change that...

    RemoveExtraWhiteSpacesOnXMLImport = we

    for this...

    RemoveExtraWhiteSpacesOnXMLImport = Off

    And all is right with the world once more.

    ---------------------

    I hope this will fix your problems... but I would install the update anyway, since it solves a number of other bugs.

    See you soon,.

    .. .Scott

Maybe you are looking for