Getting xml serializer exception

dont know what this mean, did anybody got this exception before.
Searched on google but got few results only which were not helpful.
Frustrated posting this here . if anybody has seen this and resolved this , give me tips on how to get this working or atleast what could be cause of this problem.
java.lang.NullPointerException
at org.apache.xml.serialize.OutputFormat.whichMethod(Unknown Source)
at org.apache.xml.serialize.OutputFormat.<init>(Unknown Source)
at com.tibco.portalservices.administrator.AbstractDOMDeploymentDescriptorEditor.update(AbstractDOMDeploymentDesc
riptorEditor.java:125)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.administrator.consoles.deploymentconfiguration.ServiceDetailPane.update(ServiceDetailPane.java:94)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractFrame.update(AbstractFrame.java:101)
at com.tibco.wfc.FramesetComponent.update(FramesetComponent.java:186)
at com.tibco.wfc.AbstractContainer.update(AbstractContainer.java:32)
at com.tibco.wfc.AbstractFrame.update(AbstractFrame.java:101)
at com.tibco.wfc.FrameManager.a(FrameManager.java:235)
at com.tibco.wfc.FrameManager.service(FrameManager.java:142)
at com.tibco.administrator.AdministratorServlet.service(AdministratorServlet.java:843)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:595)

There is no HashMap in your ArrayList. Take a look at this line:
selectedDataList.add(searchList);I think a object f type SearchBean is added to the list here. This is no HashMap I presume.
Please use code tags when posting code. This looks lke this:
public String getSelectedItems() {
// Get selected items.
HashMap map = new HashMap();
DeleteContentDialog deleteContentDialog = new DeleteContentDialog();
selectedDataList = new ArrayList();
for (SearchBean searchList : searchResultdetails) {
System.out.println("Inside getSelectedItems.........Inside for"+searchList);
if (searchList.isSelected()) {
System.out.println("Inside getSelectedItems........searchList."+searchList);
selectedDataList.add(searchList);
searchList.setSelected(false); // Reset.
try {
for(int i=0;i<selectedDataList.size();i++){
System.out.println("Inside the delete Method");
System.out.println("selectedDataList is "+selectedDataList.get(i));
if (selectedDataList.size() != 0)
System.out.println("Array List is having = "selectedDataList.size()" records");
//printValuesTest(medianList);
System.out.println("**************THESE ARE THE VALUES OF THE HASHMAP AT THE INDEX = "+i);
map = (HashMap)selectedDataList.get(i);
if (map.size() != 0)
Iterator iterator = map.keySet().iterator();
while (iterator.hasNext())
String key = (String) iterator.next();
String value = (String) map.get(key);
System.out.println("Key = "key " and Value = "+value);
deleteContentDialog.init(map);
else
System.out.println("Hashmap is empty");
catch(Exception e){
e.printStackTrace();
return "deletedFile"; // Navigation case.
}

Similar Messages

  • Serialization Exception for : CachedRowSet

    Hi ..
    I have populated my CachedRowSet with as follows
    // lRst is a SCROLLABLE ResultSet
    javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
    lCachedRowSet.setPageSize(mPageSize);
    lCachedRowSet.populate(lRst,10);While i try to serialize CachedRowSet , I get a Serialization Exception.
    for 'weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_ScrollableResultSet'
    However if i try to populate the same as follows It works fine:
    javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
    lCachedRowSet.setPageSize(mPageSize);
    lCachedRowSet.populate(lRst);I am using Oracle 8i and Weblogic 8.1.
    I have to take the first approach. Please let me know if there is any solution for the first approach.

    Hi ..
    I have populated my CachedRowSet with as follows
    // lRst is a SCROLLABLE ResultSet
    javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
    lCachedRowSet.setPageSize(mPageSize);
    lCachedRowSet.populate(lRst,10);While i try to serialize CachedRowSet , I get a Serialization Exception.
    for 'weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_ScrollableResultSet'
    However if i try to populate the same as follows It works fine:
    javax.sql.rowset.CachedRowSet lCachedRowSet = new com.sun.rowset.CachedRowSetImpl();
    lCachedRowSet.setPageSize(mPageSize);
    lCachedRowSet.populate(lRst);I am using Oracle 8i and Weblogic 8.1.
    I have to take the first approach. Please let me know if there is any solution for the first approach.

  • Getting the JAXB exception like "Two classes have the same XML type name-"

    Getting the JAXB exception like "Two classes have the same XML type name...",
    Here is the exception details:
    Exception in thread "main" com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Two classes have the same XML type name "city". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.model.City at public com.model.City com.model.Address.getCurrentCity() at com.model.Address this problem is related to the following location: at com.common.City at public com.common.City com.model.Address.getPreviousCity() at com.model.Address
    at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at com.PojoToXSD.main(PojoToXSD.java:17)
    I took the example like:
    package com.model; ---->this package contains 'Address' class and 'City' class
    public class Address {
    private String areaName; private City currentCity; private com.common.City previousCity;
    package com.model;
    public class City {
    private String cityName;
    Another city class in "com.common" package.
    package com.common;
    public class City {
    private String pinCode;
    We need to create XSDs and needs to do the Marshalling and unmarshalling with the existing code in our project(like as above example code), code does not have any annotations like "@XmlRootElement/@XmlType" and we can not able to change the source code.
    I would like to know is there any solution to fix the above issue or any other ways to create XSDs and marshaling/unmarshalling(like MOXy..etc)?
    It would be great if i can get the solution from any one....May thanks in advance.
    Thanks,
    Satya.

    Getting the JAXB exception like "Two classes have the same XML type name...",
    Here is the exception details:
    Exception in thread "main" com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Two classes have the same XML type name "city". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.model.City at public com.model.City com.model.Address.getCurrentCity() at com.model.Address this problem is related to the following location: at com.common.City at public com.common.City com.model.Address.getPreviousCity() at com.model.Address
    at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at com.PojoToXSD.main(PojoToXSD.java:17)
    I took the example like:
    package com.model; ---->this package contains 'Address' class and 'City' class
    public class Address {
    private String areaName; private City currentCity; private com.common.City previousCity;
    package com.model;
    public class City {
    private String cityName;
    Another city class in "com.common" package.
    package com.common;
    public class City {
    private String pinCode;
    We need to create XSDs and needs to do the Marshalling and unmarshalling with the existing code in our project(like as above example code), code does not have any annotations like "@XmlRootElement/@XmlType" and we can not able to change the source code.
    I would like to know is there any solution to fix the above issue or any other ways to create XSDs and marshaling/unmarshalling(like MOXy..etc)?
    It would be great if i can get the solution from any one....May thanks in advance.
    Thanks,
    Satya.

  • XML Serialization

    Ok so im at a loss, can anyone point me in the right direction:
    Im trying to serialize to XML a simple object node (see below). Im using archiver
    (http://java.sun.com/products/jfc/tsc/articles/persistence/index.html) to do this.
    Heres the code im using to serialize:
        public static void main(String[] args) {
            try {
                Node n = new Node("Frying pan","N1",Node.MAIN);
                ObjectOutput os = new XMLOutputStream(System.out);
                os.writeObject(n);
                os.close();
            catch (Exception e) {
                e.printStackTrace();
        }(so Node.Main is simply an integer)
    the output:
    <JAVA-OBJECT-ARCHIVE VERSION="0.1">
    <CLASS ID="Node" NAME="SmartTicket.Server.Network.Node"/>
    <CLASS ID="Integer" NAME="java.lang.Integer"/>
    <OBJECT ID="Node0" CLASS="Node">
    <OBJECT PROPERTY="type" CLASS="Integer" VALUE="2"/>
    </OBJECT>
    </JAVA-OBJECT-ARCHIVE>
    which is close but definately no cigar: im missing group and id ("Fring pan" and "N1" respecively).
    Now it took me a while to get this far, I was just getting errors until I read that objects had to have a no args constructor, so I put one in.
    But i dont really understand this XML serialization and cant seem to find out much. I keep getting thrown around to differant things:
    SAX
    XMLEncoder
    JAXP
    X-Stream
    Archiver
    something to do with IBM that I wont download.......
    I mean is there a way to alter how the object is serialized?
    (like overriding writeObject(java.io.ObjectOutputStream out) when using .io.Serialization).
    what makes an object XMLSearializable?
    Im at a loss.
    Any links, pointing in the right direction greatly appretiated.
    Chris
    The constructors and variable of Node object (methods not shown);
        public static int HIDDEN = 1;
        public static int MAIN = 2;
        private String group;
        private final String idSt;
        private int type;
        private Vector leavingEdges;
        private Vector incomingEdges;
        public Node(String group, String idSt, int type) {
            this.group = group;
            this.idSt = idSt;
            this.type = type;
            this.leavingEdges = new Vector();
            this.incomingEdges = new Vector();
        public Node(String group,String name) {this(group,name,HIDDEN);}
        public Node(String st, int type) {this(st,st, type);}
        public Node(String name) {this(name,name,HIDDEN);}
        public Node() {this("test","test",HIDDEN);}

    Further investigation by me shows that I was way off the mark and should have been using XMLEncoder/XMLDecoder. This right?
    Well I got things half working, can't quite seem to get the hang of these PersistenceDelegate methods.
    How exactly should JavaBeans be constructed? I can't seem to find aclear definition anywhere.
    In my objects I dont have and I dont want to add get/set methods for each field. Yet even if I give the defaultPersistenceDelegate the field names of the main constructor I get erros when reading the file:
    unknown method Edge.new(Node0)
    where Edge is indeed my object but at no point have I ever said that its constructor takes 1 argument.
    I've looked through the code for defaultPersistenceDelegate and I can't see a reason why it would reduce the number of constructor parameters than those I gave it.
    Where am I going wrong?
    Also the whole Beans concpet always seesm geared towards GUI applications, am I looking at the wrong thing if i just want to store normal data as XML?
    Any pointers?
    Thanks
    Chris

  • Import org.apache.xml.serialize.*;

    .java:66: package org.apache.xml.serialize does not exist
    import org.apache.xml.serialize.*;
    ^
    i am getting this error while running a java program, which i downloaded from a open source.
    i am using J Creator.
    i suppose i need to add a class path or package.
    can anybody tell me how to do this.
    and where can i find that package.
    if i can't find that in my system, where can i get it on net.

    .java:66: package org.apache.xml.serialize does notThe org.apache.xml.serialize.* package is part of Xerces:
    http://xml.apache.org/xerces-j/
    http://xml.apache.org/xerces2-j/index.html

  • Get('XML') doesn't work, but get() does in javascript - CASCADING LOVs

    I'm trying to get cascading LOVs working in Apex 3.1.0 in Oracle 11g. When I call get.get('XML') it returns null in firefox and empty string in IE6. If I change it to call get.get() then it returns the XML as a string into Javascript.
    The Application process is getting called in both scenarios as i've put PL/SQL logging to disk in order to prove it. The XML being returned is very basic so i'm sure it's not a problem with formatting. I'm not getting any exceptions thrown in javascript either.
    Is it possible to use get.get() and then convert the text into an XML object which is returned as per get.get('XML') which at least will allow me to get something working ?
    thanks
    &lt;script language="JavaScript" type="text/javascript"&gt;
    function getBusinessFieldJS(pThis, pSelect)
    alert('getBusinessFieldJS');
    try
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_DATA_FIELDS_XML', 0);
    /*get.add('F120_GETBUSINESSFIELD_ITEM',pThis.value);*/
    gReturn = get.get('XML');
    alert('gReturn=' + gReturn);
    alert('gReturn.value=' + gReturn.value);
    if (gReturn == null)
    alert('gReturn is null');
    if(gReturn && l_Select)
    var l_Count = gReturn.getElementsByTagName("option").length;
    alert('l_count='+l_Count);
    l_Select.length = 0;
    for(var i=0;i&lt;l_Count;i++)
    var l_Opt_Xml = gReturn.getElementsByTagName("option")+;+
    + appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),+
    + l_Opt_Xml.firstChild.nodeValue)+
    + }+
    + }+
    +
    get = null;+
    + }+
    + catch (e)+
    + {+
    + alert('Exception : ' + e);+
    +
    }+
    +}+

    Hi,
    I've been trying to replicate your problem here: [http://apex.oracle.com/pls/otn/f?p=37055:1]
    My application process is:
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p('Cache-Control: no-cache');
    HTP.p('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn('<select>');
    HTP.prn('<option value="-1">Please Select</option>');
    HTP.prn('</select>');
    END;(Just copied from your post and XML changed to xml, otherwise untouched)
    And my page has a simple HTML region with the source of:
    &lt;div id="XMLOUTPUT" style="border:1px solid blue; width:200px; height:200px;"&gt;&lt;/div&gt;
    &lt;div id="XMLOUTPUT2" style="border:1px solid blue; width:200px; height:200px;"&gt;&lt;/div&gt;
    &lt;script type="text/javascript"&gt;
    function getMyXML()
    var l_Return = null;
    var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=RETURN_XML', 0);
    gReturn = get.get('XML');
    var d = html_GetElement('XMLOUTPUT');
    d.innerHTML = gReturn;
    var d2 = html_GetElement('XMLOUTPUT2');
    d2.innerHTML = get.get();
    var s = gReturn.getElementsByTagName("select");
    alert(s.length);
    &lt;/script&gt;
    &lt;a href="javascript:getMyXML();"&gt;Click&lt;/a&gt;Click on Click at the bottom of the page. The first DIV gets the get.get('XML') object and the second one the get.get() and a popup message tells you how many "select" items are in the XML version.
    As far as I can see, this works fine.
    Andy

  • XML Serialization Error- While testing BAPI turned Web service

    I have a requirement to create sales order in SAP R/3 from an e-commerce site. I went through many forums suggesting "exposing FMs into Web Service". I wrapped BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT into one FM and exposed as Web Service. I did a successful test-sequence.
    When I tested the web service without giving values I got a response asking for "Sold-to Party or Ship-To Party". While testing the Web service with some values, I got the below error -
    XML Serialization Error. Object content does not correspond to Schema restrictions of type [urn:sap-com:document:sap:rfc:functions][numeric4].
    The e-commerce team tried to hit the Web service and got the below error-
    IWAB0383E Error validating parameters
    Note: Our servers does not have any ENHPacks. Only ECC 6.0.
    Please suggest what might have gone wrong and how to resolve this.
    Thanks!

    Hi Gourav Khare,
    I have created WSDL file through function module in SAP-ECC 5.0v.
    I have followed below steps:
    Crated FM (SE37)
    Crated Web-service (SE37)
    Generated WSDL file using (WSADMIN)
    And consumed WSDF file in SOAP UI (SOAP UI 4.5.2 Trailer version)
    Problem is: while consuming WSDL file in  SOAP UI I getting  ‘Serialisation failed’
    For your reference I have furnished xml string below.
    SOAP UI Input:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
    <!--Optional:-->
    <PWR_INVOICE>
    <INVOICE_SHIPPED_LINE>
    <!--Zero or more repetitions:-->
    <item>
    <POSITION1></POSITION1>
    <SALES_PART></SALES_PART>
                      <PART_DESC></PART_DESC>
    <PRICE></PRICE>
    <QUANTITY></QUANTITY>
    <CUSTOMER_TAX_NO></CUSTOMER_TAX_NO>
    <PROD_NONINVENTORY></PROD_NONINVENTORY>
    <PROD_TAXABLE></PROD_TAXABLE>
    <TAX_LEVEL></TAX_LEVEL>
    </item>
    </INVOICE_SHIPPED_LINE>
    <INVOICE_NO></INVOICE_NO>
    <ORDER_NO></ORDER_NO>
    <DATE_PRINTED></DATE_PRINTED>
    <DIV_CD></DIV_CD>
                <LAST_COST_INVOICE></LAST_COST_INVOICE>
    <DELETE_ZERO_COST></DELETE_ZERO_COST>
    <DELETE_NON_SHIPPED></DELETE_NON_SHIPPED>
    <GLOBALREF></GLOBALREF>
    <ORIGIN></ORIGIN>
    <ORIGINID></ORIGINID>
    </PWR_INVOICE>
    </urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
    </soapenv:Body>
    </soapenv:Envelope>
    SOAP UI Output:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body>
    <soap-env:Fault>
    <faultcode>soap-env:Client</faultcode>
    <faultstring xml:lang="en">Serialisation failed</faultstring>
    <detail>
    <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
    <MainName>/1BCDWB/WSS0130716111624448000</MainName>
    <ProgName>/1BCDWB/WSS0130716111624448000</ProgName>
    <Line>8</Line>
    <Valid>X</Valid>
    <ReferenceFault>
    <DescriptionText>Error accessing the ref. node 'INVOICE_ID'</DescriptionText>
    <RefName>INVOICE_ID</RefName>
    </ReferenceFault>
    <Caller>
                      <Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
    <Method>IF_SXML_PART~DECODE</Method>
    <Positions>1</Positions>
    </Caller>
    </n0:SimpleTransformationFault>
    </detail>
    </soap-env:Fault>
    </soap-env:Body>
    </soap-env:Envelope>
    And one more things are
    I don't know the exact reason, but now the WSDL is working fine. No Idea, will it be consistent.
    No changes in import and export parameters of RFC and no change in code, even if the logic is changed it should not affect the output on SOAP UI but in my case it does.
    Wonder why all this happens, I cannot explain the exact reason technically because my RFC works fine every time, only issue is with SOAP UI.
    From SAP point of view FM is working fine, and input parameter of FM is optional, validations are done by the programming logic and it will capture the message and its details with respect to input data.
    I am not sure SOAP will work consistently and we are using ECC 5.0 most of the t-code not there like "SOAMANAGER" and all.  
    Kindly help me on this
    Thanks & Regards,
       Akshath.L.T

  • While deploying the soa components using ANT getting the 404 exception

    HI
    I am trying to deploy the soa composites using ANT i am getting the below exception.
    Please help me as it is need very urgert for client.
    Appriciate for the quick help
    Exception:
    ant -f build.xml deployOnlyApplication
    [WARN ][codegc ] Could not acquire large pages for 256Mbytes code (at 0xffffffff60000000).
    [WARN ][codegc ] Falling back to normal page size.
    Buildfile: build.xml
         [echo] property file   = /opt/oracle/SampleCode
    deployOnlyApplication:
        [input] Please enter Application Name:
    HelloWorld
         [echo] In deployOnlyApplication ApplicationName HelloWorld
         [echo] Application Name HelloWorld
         [echo] property file   = /opt/oracle/SampleCode
    deployApplication:
         [echo] deploy application HelloWorld
         [echo] /opt/oracle/SampleCode/code/HelloWorld/build.properties
         [echo] property file   = /opt/oracle/SampleCode
    deployProject:
         [echo] deploy project HelloProject for environment SIT
         [echo] partition default compositeName HelloProject compositeDir /opt/oracle/SampleCode/code/HelloWorld
         [echo] build sar package
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [input] skipping input as property compositeDir has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
    clean:
         [echo] deleting /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
    init:
    scac-validate:
         [echo] Running scac-validate in /opt/oracle/SampleCode/code/HelloWorld/HelloProject/composite.xml
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [input] skipping input as property compositeDir has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
    scac:
         [scac] Validating composite "/opt/oracle/SampleCode/code/HelloWorld/HelloProject/composite.xml"
         [scac]  info: File to validate does not exist fault-policies.xml
         [scac]  info: No test suites available
    package:
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [input] skipping input as property compositeDir has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
    compile-source:
        [mkdir] Created dir: /opt/oracle/SampleCode/code/HelloWorld/HelloProject/dist
         [copy] Copying 17 files to /opt/oracle/SampleCode/code/HelloWorld/HelloProject/dist
         [copy] Warning: /opt/oracle/SampleCode/code/HelloWorld/HelloProject/src not found.
          [jar] Building jar: /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
       [delete] Deleting directory /opt/oracle/SampleCode/code/HelloWorld/HelloProject/dist
         [copy] Copying 1 file to /opt/oracle/SampleCode/builds/${build.number}
         [echo] deploy on http://10.51.80.64:7005 with user weblogic
         [echo] deploy sarFile /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
    deploy:
        [input] skipping input as property serverURL has already been set.
        [input] skipping input as property sarLocation has already been set.
        [input] skipping input as property password has already been set.
    [deployComposite] setting user/password..., user=weblogic
    [deployComposite] Processing sar=/opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
    [deployComposite] Adding sar file - /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
    [deployComposite] INFO: Creating HTTP connection to host:10.51.80.64, port:7005
    [deployComposite] INFO: Received HTTP response from the server, response code=404
    [deployComposite] SEVERE: Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404
    [deployComposite] ---->response code=404, error:null
         [echo] stop activate HelloProject
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    activateComposite:
        [input] skipping input as property host has already been set.
        [input] skipping input as property port has already been set.
        [input] skipping input as property user has already been set.
    [secure-input] skipping secure-input as property password has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    compositeMgrTask:
         [java] [WARN ][codegc ] Could not acquire large pages for 256Mbytes code (at 0xffffffff60000000).
         [java] [WARN ][codegc ] Falling back to normal page size.
         [java] Connecting to: service:jmx:t3://10.51.80.64:7005/jndi/weblogic.management.mbeanservers.runtime
         [java] java.io.IOException: Unhandled exception in lookup
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
         [java]     at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
         [java]     at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerHelper.createJMXConnector(CompositeManagerHelper.java:91)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManager.initConnection(CompositeManager.java:48)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.execute(CompositeManagerAntWrapper.java:221)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.main(CompositeManagerAntWrapper.java:275)
         [java] Caused by: javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No]
         [java]     at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:291)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:227)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:179)
         [java]     ... 6 more
         [java] Caused by: org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         [java]     at java.lang.Class.newInstance0(Class.java:357)
         [java]     at java.lang.Class.newInstance(Class.java:310)
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
         [java]     at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:471)
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:358)
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
         [java]     at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
         [java]     at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:80)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:267)
         [java]     ... 9 more
         [echo] unit test HelloProject
         [echo] finish
         [echo] property file   = /opt/oracle/SampleCode
    deployProject:
         [echo] deploy project Project1 for environment SIT
         [echo] partition default compositeName Project1 compositeDir /opt/oracle/SampleCode/code/HelloWorld
         [echo] build sar package
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [input] skipping input as property compositeDir has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
    clean:
         [echo] deleting /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
    init:
        [mkdir] Created dir: /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy
    scac-validate:
         [echo] Running scac-validate in /opt/oracle/SampleCode/code/HelloWorld/Project1/composite.xml
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [input] skipping input as property compositeDir has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
    scac:
         [scac] Validating composite "/opt/oracle/SampleCode/code/HelloWorld/Project1/composite.xml"
         [scac]  info: File to validate does not exist fault-policies.xml
         [scac]  info: No test suites available
    package:
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [input] skipping input as property compositeDir has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
    compile-source:
        [mkdir] Created dir: /opt/oracle/SampleCode/code/HelloWorld/Project1/dist
         [copy] Copying 15 files to /opt/oracle/SampleCode/code/HelloWorld/Project1/dist
         [copy] Warning: /opt/oracle/SampleCode/code/HelloWorld/Project1/src not found.
         [copy] Copying 2 files to /opt/oracle/SampleCode/code/HelloWorld/Project1/dist/SCA-INF/classes
          [jar] Building jar: /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
       [delete] Deleting directory /opt/oracle/SampleCode/code/HelloWorld/Project1/dist
         [copy] Copying 1 file to /opt/oracle/SampleCode/builds/${build.number}
         [echo] deploy on http://10.51.80.64:7005 with user weblogic
         [echo] deploy sarFile /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
    deploy:
        [input] skipping input as property serverURL has already been set.
        [input] skipping input as property sarLocation has already been set.
        [input] skipping input as property password has already been set.
    [deployComposite] setting user/password..., user=weblogic
    [deployComposite] Processing sar=/opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
    [deployComposite] Adding sar file - /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
    [deployComposite] INFO: Creating HTTP connection to host:10.51.80.64, port:7005
    [deployComposite] INFO: Received HTTP response from the server, response code=404
    [deployComposite] SEVERE: Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404
    [deployComposite] ---->response code=404, error:null
         [echo] stop activate Project1
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    activateComposite:
        [input] skipping input as property host has already been set.
        [input] skipping input as property port has already been set.
        [input] skipping input as property user has already been set.
    [secure-input] skipping secure-input as property password has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    compositeMgrTask:
         [java] [WARN ][codegc ] Could not acquire large pages for 256Mbytes code (at 0xffffffff60000000).
         [java] [WARN ][codegc ] Falling back to normal page size.
         [java] Connecting to: service:jmx:t3://10.51.80.64:7005/jndi/weblogic.management.mbeanservers.runtime
         [java] java.io.IOException: Unhandled exception in lookup
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
         [java]     at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
         [java]     at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerHelper.createJMXConnector(CompositeManagerHelper.java:91)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManager.initConnection(CompositeManager.java:48)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.execute(CompositeManagerAntWrapper.java:221)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.main(CompositeManagerAntWrapper.java:275)
         [java] Caused by: javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No]
         [java]     at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:291)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:227)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:179)
         [java]     ... 6 more
         [java] Caused by: org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
         [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
         [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:51
         [java]     at java.lang.Class.newInstance0(Class.java:357)
         [java]     at java.lang.Class.newInstance(Class.java:310)
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.get
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_
         [java]     at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSy
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherIm
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherIm
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke
         [java]     at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457
         [java]     at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.jav
         [java]     ... 9 more
         [echo] unit test Project1
         [echo] finish
         [echo] finished Composite HelloWorld deployment
    BUILD SUCCESSFUL
    Total time: 1 minute 7 seconds
    Note : All the server name and port no are depfined properly.
    Regards,
    Anilkumar P

    Hi,
    I was getting exactly same error. I have resolved it by putting the
    <target name="enterPassword" >
            <input message="Please enter Weblogic password:" addproperty="passwd">
                <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
            </input>      
    in my build.xml
    It means that it was not able to read password properly in bin/ant-sca-mgmt.xml
    Password was the issue in my case. it is working now.
    Thanks,
    Arun Jadhav

  • XML Serializer....!

    Hi guys...!
    I'm writting a program in Java that prints out the content of an XML file. I imported different classes, but some of the class that I imported do not work. I don't know why.
    Since some of the classes do not work, I can't compile my java program.
    Here are the classes that give me error....
    import org.apache.xml.serialize; .============> ERROR
    import org.apache.xml.serialize.OutputFormat; ===========> ERROR
    import org.apache.xml.serialize.Serializer; ===============>ERROR
    import org.apache.xml.serialize.DOMSerializer; ===========>ERROR
    import org.apache.xml.serialize.SerializerFactory; =========>ERROR
    import org.apache.xml.serialize.XMLSerializer; ===========>ERROR
    and here are the codes that don't compile within my java program..
    OutputFormat format = new OutputFormat (doc); ==========>ERROR
    StringWriter stringOut = new StringWriter ();
    XMLSerializer serial = new XMLSerializer (stringOut, format); ==>ERROR
    serial.serialize(doc);
    System.out.println(stringOut.toString());
    Can you guys please help me finding out what is going on in my codes????
    Any help will be appreciated...
    Thanks...
    --- Spirit_Away

    While this problem is simple to someone who's battled classpath problems many, many times, it's frustrating as hell to those who haven't.
    You have a run time classpath and a compile time classpath.
    A compile-time classpath is used by javac or your IDE to find the classes that you're referencing when your code is compiled.
    If you compile a simple class from the command-line with javac, you'd use the -classpath option to specify to the Java compiler where it needs to look to find the classes you've referenced in your class.
    If you use an IDE, you need to tell your IDE where to find the classes you're referencing in your class -- each IDE does this slightly differently. In Eclipse, it's referred to as your "build path" and it contains either folders of classes or JAR files. As you add JARs or folders of classes to your build path, you make those classes available at compile time to your classes that you're compiling.
    If you manage to include those properly, you'll end up with YourClass.class -- a compiled version of your class.
    Now, to invoke your class, you need to make sure that the same classes/JARs that you put in your build path are also available to the Java Virtual Machine when you execute your class -- this is done through the CLI with the -classpath option to the java command.
    There are a few ways to get those classes in your runtime classpath.
    You can:
    a) set an environment variable called CLASSPATH which includes the JARs/class folders so that every time the jvm is invoked (e.g. prompt$ java MyClass ) those classes are included in the runtime classpath
    b) throw all of your dependent JARs/classes into $JAVA_HOME/jre/lib/ext so that anytime anyone on that machine executes the JVM, those dependent classes are included in the system-wide classpath
    c) include the JARs/class folders in the classpath argument when invoking the JVM (e.g. prompt$ java -classpath=".:HelperClasses.jar" MyClass )
    Personally, I find a) and b) to be bad ideas. Especially if you build Java apps to distribute. It makes it far too easy to forget to include dependent JARs and classes, because while they work for you on your system, they won't work on another system, unless that system also has the dependent JARs/classes installed properly in the classpath -- either for that system or the executing user.
    Another drawback is that by silently including classes in your runtime classpath, you can unknowingly create class conflicts as you can end up accidentally loading multiple copies of the same class -- sometimes different versions -- and you don't realize that the one you THINK is executing is actually not the one that ACTUALLY is.
    For this reason, I strongly suggest keeping your system class path and CLASSPATH variables empty and using option C -- until you have a strong handle on how classpaths work.
    Some people will throw all of their dependent classes/jar files into $JAVA_HOME/jre/lib/ext to avoid having to add them to their runtime classpath.
    In your case, you'd need to include the JAR files as options to the -classpath argument when you invoke the JVM.

  • XML Loader Exception

    I get the following exception whenever I run the XMLLoader class.
    Error loading stylesheet file:/C:/Documents and Settings/mfortner/jbproject/MedlineXMLLoader/medline.xslt
    oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'INSERT'.
    at oracle.xml.parser.v2.XSLStylesheet.error(XSLStylesheet.java:1403)
    at oracle.xml.parser.v2.XSLStylesheet.processResult(XSLStylesheet.java:615)
    at oracle.xml.parser.v2.XSLStylesheet.initStylesheet(XSLStylesheet.java:421)
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:217)
    at XMLLoader.main(XMLLoader.java:21)
    00001: Inserted.
    Processed 1Documents
    I've tried moving the xsl:version attribute, putting it in it's own <?xsl-stylesheet ?> tag didn't work either. I've tried removing it, same problem. I've tried switching xmlparserv2.jar files (there are two files with different file sizes that come in the xdk) -- that didn't work either.
    I'm running the XMLLoader with the following parameters:
    -file sampmed2.xml -connName medline -transform medline.xslt -docTag MedlineCitationSet
    Any suggestions????
    The XSLT I'm using looks like this.
    <?xml version="1.0"?>
    <INSERT xsl:version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform">
    <!-- Process Medline Records -->
    <ROWSET table="medline_records">
    <xsl:for-each select="MedlineCitation">
    <ROW>
    <MedlineID><xsl:value-of select="MedlineID"/></MedlineID>
    <PMID><xsl:value-of select="PMID"/></PMID>
    <DateCreated><xsl:apply-templates select="DateCreated" mode="processDateCreated"/></DateCreated>
    <DateCompleted><xsl:apply-templates select="DateCompleted" mode="processDateCompleted"/></DateCompleted>
    <DateRevised><xsl:apply-templates select="DateRevised" mode="processDateRevised"/></DateRevised>
    <Journal><xsl:apply-templates select="Journal" mode="processJournal"/></Journal>
    <ArticleTitle><xsl:value-of select="ArticleTitle"/></ArticleTitle>
    <AuthorList><xsl:value-of select="AuthorList"/></AuthorList>
    <Country><xsl:value-of select="MedlineJournalInfo"/></Country>
    <MedlineTA><xsl:value-of select="MedlineJournalInfo/MedlineTA"/></MedlineTA>
    <MedlineCode><xsl:value-of select="MedlineJournalInfo/MedlineCode"/></MedlineCode>
    <NlmUniqueID><xsl:value-of select="MedlineJournalInfo/NlmUniqueID"/></NlmUniqueID>
    <CitationSubset><xsl:value-of select="CitationSubset"/></CitationSubset>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    <!-- Process Date Elements (DateCreated, DateCompleted, and DateRevised -->
    <xsl:template select="DateCreated" mode="processDateCreated">
    <xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
    </xsl:template>
    <xsl:template select="DateCompleted" mode="processDateCompleted">
    <xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
    </xsl:template>
    <xsl:template select="DateRevised" mode="processDateRevised">
    <xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
    </xsl:template>
    <!-- Process Journal Elements -->
    <xsl:template select="JOURNAL" mode="processJournal">
    ISSN<xsl:value-of select="ISSN"/> VOLUME<xsl:value-of select="Volume"/> PAGES<xsl:value-of select=""/>
    </xsl:template>
    <!-- Process Medline Abstract Records -->
    <ROWSET table="medline_abstracts">
    <xsl:for-each select="MedlineCitation">
    <MedlineID><xsl:value-of select="MedlineID"/></MedlineID>
    <Abstract><xsl:value-of select="AbstractText"/></Abstract>
    </xsl:for-each>
    </ROWSET>
    </INSERT>
    And the XML I'm loading looks like this:
    <MedlineCitationSet>
    <MedlineCitation>
    <MedlineID>96264942</MedlineID>
    <PMID>8655018</PMID>
    <DateCreated>
    <Year>1996</Year>
    <Month>07</Month>
    <Day>30</Day>
    </DateCreated>
    <DateCompleted>
    <Year>1996</Year>
    <Month>07</Month>
    <Day>30</Day>
    </DateCompleted>
    <DateRevised>
    <Year>2000</Year>
    <Month>12</Month>
    <Day>18</Day>
    </DateRevised>
    <Article>
    <Journal>
    <ISSN>0017-0011</ISSN>
    <JournalIssue>
    <Volume>67</Volume>
    <Issue>1</Issue>
    <PubDate>
    <Year>1996</Year>
    <Month>Jan</Month>
    </PubDate>
    </JournalIssue>
    </Journal>
    <ArticleTitle>[Effect of fetal and neonatal growth on the occurrence of some diseases in adults]</ArticleTitle>
    <Pagination>
    <MedlinePgn>34-6</MedlinePgn>
    </Pagination>
    <Abstract>
    <AbstractText>The findings of many authors show that reduced fetal growth is followed by increased mortality from cardiovascular disease in adult life. They are further evidence that cardiovascular disease originates, among other risk factors, through programming of the bodies structure and metabolism during fetal and early post-natal life. Wrong maternal nutrition may have an important influence on programming.</AbstractText>
    </Abstract>
    <Affiliation>Katedry i ZakEadu Chemii i Analizy LekC3w, AM w Katowicach.</Affiliation>
    <AuthorList>
    <Author>
    <LastName>Jendryczko</LastName>
    <FirstName>A</FirstName>
    <Initials>A</Initials>
    </Author>
    <Author>
    <LastName>Poreba</LastName>
    <FirstName>R</FirstName>
    <Initials>R</Initials>
    </Author>
    </AuthorList>
    <Language>pol</Language>
    <PublicationTypeList>
    <PublicationType>Journal Article</PublicationType>
    <PublicationType>Retracted Publication</PublicationType>
    <PublicationType>Review</PublicationType>
    <PublicationType>Review, Tutorial</PublicationType>
    </PublicationTypeList>
    <VernacularTitle>WpEyw przebiegu rozwoju pEodu i noworodka na ujawnienie sie niektC3rych chorC3b okresu dorosEego.</VernacularTitle>
    </Article>
    <MedlineJournalInfo>
    <Country>POLAND</Country>
    <MedlineTA>Ginekol Pol</MedlineTA>
    <MedlineCode>FR3</MedlineCode>
    <NlmUniqueID>0374641</NlmUniqueID>
    </MedlineJournalInfo>
    <CitationSubset>IM</CitationSubset>
    <CommentsCorrections>
    <CommentIn>
    <RefSource>Ginekol Pol. 1998 Jul;69(7):561</RefSource>
    </CommentIn>
    <RetractionIn>
    <RefSource>Ginekol Pol 1998 Jul;69(7):559-60</RefSource>
    </RetractionIn>
    </CommentsCorrections>
    <MeshHeadingList>
    <MeshHeading>
    <Descriptor>Adult</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Cardiovascular Diseases</Descriptor>
    <SubHeading>etiology</SubHeading>
    <SubHeading MajorTopicYN="Y">mortality</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Child Development</Descriptor>
    <SubHeading MajorTopicYN="Y">physiology</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>English Abstract</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Fetal Development</Descriptor>
    <SubHeading MajorTopicYN="Y">physiology</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Fetal Growth Retardation</Descriptor>
    <SubHeading>complications</SubHeading>
    <SubHeading MajorTopicYN="Y">physiopathology</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Human</Descri ptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Infant, Newborn</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Nutrition</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Risk Factors</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Survival Rate</Descriptor>
    </MeshHeading>
    </MeshHeadingList>
    <NumberOfReferences>11</NumberOfReferences>
    </MedlineCitation>
    <MedlineCitation>...</MedlineCitation>
    </MedlineCitationSet>

    You have a typo in your namespace declaration:
    xmlns:xsl="http://www.w3.org/XSL/Transform"
    should be
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  • When passing Node to parse() method get NULL pointer exception.

    All,
    I trying to pass a Node to parse method to get the NodeType object back and getting
    null pointer exception.
    Example
    xml
    <root>
    <Test>
    <someData>ABC</someData>
    </Test>
    </root>
    if pass the Test node to get Test object back I am getting null pointer exception.
    Thanks for all ur help
    Shoeb

    file 2
    ~~~~
    import javax.swing.*;
    public class ExtendedPage extends BasePage
    private JTextField objJTextField = null;
    private JButton objJButtonBrowse = null;
    Change the line in bold to
    private JTextField objJTextField;
    And everything works.

  • Getting class cast exception in Web application.

    I have a web application deployed using standard specs for deployment. I
              have and web-inf directory with a web.xml file set up. All the servlet
              classes are in the classes sub-directory of web-inf.
              If I deploy this application using the Tomcat application server,
              everything works as expected. When I deploy this application using the
              Weblogic software, I can get to the initial page, put once I select a
              link that calls the main servlet, I get a classcast exception. Both the
              Tomcat and Weblogic software point to the same directory for the
              application.
              I double checked and made sure that no other instances of my servlet
              classes exist anywhere else in the class path.
              Any one have any thoughts or suggestions. I am perplexed that this web
              app runs fine under the Tomcat software and yet...
              Thanks.
              Paul Garduno
              

    Thanks for your reply. I am not using any EJBs. From what I have
              gathered since writing my message, this may be the "dreaded" class cast
              exception (although I don't know why since it runs under Tomcat).
              Basically, the initial page is displayed. When you select the SEARCH
              button (for example), the request goes to a servlet which puts a vector
              of custom classes into a session parameter. The request is then
              forwarded to the JSP page which uses the information in the classes to
              help build some information on the page. The first line in the JSP is
              processed (a simple output line to the system console) and then the
              classcast exception occurs.
              According to the info that I have seen, this shouldn't happen since I am
              not changing either the servlet or JSP files which would mean that
              nothing should be re-compiled.
              I have a call into tech support. I will post their answer and copy you
              on the message.
              Thanks.
              Paul
              Cameron Purdy wrote:
              >
              > Are you using EJBs hosted on the same instance of WebLogic? If so, delete
              > the home/remote interfaces from your web deployment. Otherwise, post the
              > exception listing ....
              >
              > Cameron Purdy, LiveWater
              >
              > "Paul Garduno" <[email protected]> wrote in message
              > news:[email protected]...
              > > I have a web application deployed using standard specs for deployment. I
              > > have and web-inf directory with a web.xml file set up. All the servlet
              > > classes are in the classes sub-directory of web-inf.
              > >
              > > If I deploy this application using the Tomcat application server,
              > > everything works as expected. When I deploy this application using the
              > > Weblogic software, I can get to the initial page, put once I select a
              > > link that calls the main servlet, I get a classcast exception. Both the
              > > Tomcat and Weblogic software point to the same directory for the
              > > application.
              > >
              > > I double checked and made sure that no other instances of my servlet
              > > classes exist anywhere else in the class path.
              > >
              > > Any one have any thoughts or suggestions. I am perplexed that this web
              > > app runs fine under the Tomcat software and yet...
              > >
              > > Thanks.
              > >
              > > Paul Garduno
              

  • XML transform exception

    Hi
    I am trying to transform a shopping cart to display from an XSL.
    But I get the following exception
    javax.xml.transform.TransformerException: Content is not allowed in prolog.
    Transformer transformer = tFactory.newTransformer(new StreamSource(xslPath));
                             transformer.transform(new StreamSource(new StringReader(cart.getItemsAsXml().trim())), new streamResult(html));
                             out.println(html);
    What does this indicate ?
    Thx
    aRN

    I think that you are missing
    <?xml version="1.0"?>
    cart.getItemsAsXml()
    you are posting very little information for answering

  • XML UTFDataFormat Exception

    Hi,
    I am trying to create an XML Dataset from a PHP file that has
    been exported as XML. I've had no trouble with this before. But
    now, when I click on "DISPLAY SCHEMA", I am getting an
    UTFDataFormat exception. The one difference is that this recordset
    consists of joined tables. But I think I've done this before so I
    can't figure out what is different. When I view the PHP page, I see
    my xml data and it looks alright.
    Is there something that I am missing?

    DaggerLily wrote:
    > I discovered the problem...which of course raises
    another question. I had names
    > in the data that had non-english letters. One had a ?
    and the other had an ?.
    > As soon as I had changed those, it worked.
    Unfortunately, I can't see which characters you're referring
    to, because
    they're converted to question marks by the NNTP server.
    > So that brings up the question, can I change it in some
    way to be able to have
    > these characters?
    Since you're using the XML Export extension, it should work
    if you
    select UTF-8 as the encoding. However, your database encoding
    needs to
    be UTF-8 as well.
    One alternative is to pass your data to the PHP
    htmlentities() function
    before storing it in the database.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Xml/serialize/XMLSerializer error in weblogic 7.0 SP6 app

    I am using weblogic 7.0sp6 and solaris 9
    We recently migrated app to another physical server but the same weblogic version.
    Once the application is deployed when we try to access that application it give us an exception.....
    java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
    The same code/app is running successfull on the old server (solaris 9 and weblogic 7.0sp6)
    I compared the weblogic "lib" folder on both the servers and they looks identical...
    Any thoughts on why this is happening?

    We faced with the similar issue in WLS 7.X after below Assertion error after restoring services we were able to resolve this issue for time being as per the weblogic there is a patch provided by BEA and this sort of issue is resolved.
    This issue has been identified and updated under cars CR103525
    Regards,
    CSR
    BEA Analyst

Maybe you are looking for