XML serialization vs. normal serialization

Hey all,
Great to see the forums in use! :) One thing I've never been quite clear on -- when does it make sense to use Coherence's XML serialization vs normal object serialization? Any tips would be appreciated.
Thanks,
Matt

To clarify, we have XmlSerializable, which uses XML as a wire format, and ExternalizableLite, which uses DataOutput instead of ObjectOutput, which is significantly less costly (but has less features, such as graph traversal). XmlBean, XmlDocument, etc. all implement both XmlSerializable and ExternalizableLite now. Coherence gives priority to ExternalizableLite because of its efficiency (size and speed) so anything implementing this interface will have its wire format be the ExternalizableLite result.
Peace,
Cameron Purdy
Tangosol, Inc.
Coherence: Easily share live data across a cluster!

Similar Messages

  • No Serializer found to serialize a 'org.w3c.dom.Element' using encoding style ...

    I use oc4j903 and win2k. I write a document style web service following Demo for Stateless Java Document Web Services.
    I Create an EAR file using WebServicesAssembler and deploy it .and my config.xml:
    <web-service>
    <display-name>Stateful Java Document milkdemo Web Service</display-name>
    <description>Stateful Java Document milkdemo Web Service Example</description>
    <!-- Specifies the resulting web service archive will be stored in ./docws.ear -->
    <destination-path>./milkdemo.ear</destination-path>
    <!-- Specifies the temporary directory that web service assembly tool can create temporary files. -->
    <temporary-directory>./temp</temporary-directory>
    <!-- Specifies the web service will be accessed in the servlet context named "/docws". -->
    <context>/milkdemo</context>
    <!-- Specifies the web service will be stateful -->
    <stateful-java-service>
    <interface-name>com.brightdairy.client.sync.SyncServerDoc</interface-name>
    <class-name>com.brightdairy.client.sync.SyncServerDocImpl</class-name>
    <!-- Specifies the web service will be accessed in the uri named "/docService" within the servlet context. -->
    <uri>/milkdemo</uri>
    <!-- Specifies the location of Java class files ./classes -->
    <java-resource>./classes</java-resource>
    <!-- Specifies that it uses document style SOAP messaging -->
    <message-style>doc</message-style>
    </stateful-java-service>
    <!-- generate the wsdl -->
    <wsdl-gen>
         <wsdl-dir>wsdl</wsdl-dir>
    <!-- over-write a pregenerated wsdl , turn it 'false' to use the pregenerated wsdl-->
         <option name="force">true</option>
         <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <!-- generate the proxy -->
    <proxy-gen>
         <proxy-dir>proxy</proxy-dir>
         <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    my webservice java file:
    * Title: BrightDairy SOAP demo
    * Description:
    * Copyright: Copyright (c) 2002
    * Company: ufoasia
    * @author
    * @version 1.0
    package com.brightdairy.client.sync;
    import java.sql.*;
    import java.util.Vector;
    import java.util.Iterator;
    import org.w3c.dom.Element;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.parser.v2.XMLElement;
    //import com.brightdairy.client.object.Product;
    import com.brightdairy.client.sync.SyncServerDoc;
    public class SyncServerDocImpl implements SyncServerDoc {
    public SyncServerDocImpl() {
    public Element getProductIDList() {
    Connection connServer = null;
    PreparedStatement stmtServerProduct = null;
    ResultSet rsServerProduct = null;
    Document doc = new XMLDocument();
    Element elProduct = doc.createElement("product");
    doc.appendChild(elProduct);
    long m_msec;
    m_msec = System.currentTimeMillis();
    try {
    connServer = makeConnection();
    System.out.println("1");
    stmtServerProduct = connServer.prepareStatement(
    "SELECT ID FROM " + SERVER_TABLE_PRODUCT );
    System.out.println("");
    rsServerProduct = stmtServerProduct.executeQuery();
    System.out.println("2");
    while(rsServerProduct.next()) {
    Element elID = doc.createElement("id");
    elID.appendChild(doc.createTextNode(rsServerProduct.getString("ID")));
    elProduct.appendChild(elID);
    System.out.println("3");;
    System.out.println("4");
    return doc.getDocumentElement();
    } catch(SQLException e) {
    e.printStackTrace();
    System.out.println("SQL exception has occured");
    System.out.println(e.getMessage());
    return doc.getDocumentElement();
    }finally {
    try {
    rsServerProduct.close();
    stmtServerProduct.close();
    connServer.close();
    m_msec = System.currentTimeMillis() - m_msec;
    System.out.println("6");
    System.out.println("getProductIDList:It take time:" m_msec/1000 "s");
    } catch(Exception e1) {}
    Now my firts question: when i generate the proxy WebServicesAssembler will failure (couldn't import jar.....) and i had imported all jar files,But if i commented proxy-gen , no error.
    and my second question: I commented proxy-gen and deployed ite and success. when i invoked it through web page , then error:
    java.lang.IllegalArgumentException: No Serializer found to serialize a 'org.w3c.
    dom.Element' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
    at org.apache.soap.util.xml.XMLJavaMappingRegistry.querySerializer(XMLJa
    vaMappingRegistry.java:157)
    at org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Paramet
    erSerializer.java:106)
    at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:265)
    at org.apache.soap.Body.marshall(Body.java:148)
    at org.apache.soap.Envelope.marshall(Envelope.java:203)
    at org.apache.soap.Envelope.marshall(Envelope.java:161)
    at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:309)
    at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:540)
    at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1106)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:803)
    at java.lang.Thread.run(Thread.java:484)
    I took much time and couln't get answer ,please help me!!!!!!!!!!!!

    Yeah!
    I have resolved it .
    It take me one day time!
    my error is 1: Element which I used is no namespace.
    2: no import enough jar files
    just so so .
    sorry! I am poor in English

  • Serialization error: no serializer is registered for class BasicDynaBean

    Hi,
    I have created webservice for the java class i have written. And i was also successful in deploying the webservice on the application server.
    when i was trying to test the webservice, few of the operations were working fine. But i came across such kind of error message when i am trying to invoke one of the methods i have written . Below is the following error message seen from SOAP respone, highlighted with bold.
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://dataaccess/types/" xmlns:ns1="http://www.oracle.com/webservices/internal/literal"><env:Body><env:Fault><faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (serialization error: no serializer is registered for (class org.apache.commons.beanutils.BasicDynaBean, null))</faultstring></env:Fault></env:Body></env:Envelope>
    I am using RowSetDynaClass for representing the results of an SQL query.
    Please let me know if any one could provide me a solution for this error.
    Thanks.

    Hi,
    I have created webservice for the java class i have written. And i was also successful in deploying the webservice on the application server.
    when i was trying to test the webservice, few of the operations were working fine. But i came across such kind of error message when i am trying to invoke one of the methods i have written . Below is the following error message seen from SOAP respone, highlighted with bold.
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://dataaccess/types/" xmlns:ns1="http://www.oracle.com/webservices/internal/literal"><env:Body><env:Fault><faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (serialization error: no serializer is registered for (class org.apache.commons.beanutils.BasicDynaBean, null))</faultstring></env:Fault></env:Body></env:Envelope>
    I am using RowSetDynaClass for representing the results of an SQL query.
    Please let me know if any one could provide me a solution for this error.
    Thanks.

  • Serializing XML Documents(not Java Serialization)

    Hi,
    Iam looking for a class that can serialize the XML documents.
    Heres the problem in detail:
    - I need to create an XML String from scratch taking data from a database.
    - I created the XML Document adding the childs and attributes.
    - I need an XML string from the document. Iam not exactly sure how to do this. But Apache Xerces package provides an XMLSerializer class where we can convert the document into a string.
    Is there any functionality provided. If so where can i find it.
    Thanks,
    -Rao

    Not sure if this is a bug or not (filing one just in case it is) but the following program demonstrates that with 2.0.2.9 the internal subset is serialized correctly if the document was parsed with validationMode set to true. If set to false only the entities show up in the internal subset.
    package xmlbugs;
    import java.io.*;
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    public class TestSerializeLocalSubset {
    private static final String xml =
    "<?xml version='1.0' encoding='UTF-8'?>"+
    "<!DOCTYPE bar ["+
    "<!ENTITY bar 'baz'>"+
    "<!ELEMENT foo EMPTY >"+
    "<!ELEMENT bar (foo) >"+
    "]>"+
    "<bar><foo/></bar>";
    public static void main(String[] a_ ) throws Exception {
    System.out.println("Test with parser in validation mode = false");
    DOMParser d = new DOMParser();
    d.setPreserveWhitespace(false);
    d.setValidationMode(false);
    d.parse( new StringReader(xml));
    Document x = d.getDocument();
    XMLDocument xx = (XMLDocument) x;
    xx.print(System.out);
    System.out.println("Test with parser in validation mode = true");
    DOMParser d2 = new DOMParser();
    d2.setPreserveWhitespace(false);
    d2.setValidationMode(true);
    d2.parse( new StringReader(xml));
    x = d2.getDocument();
    xx = (XMLDocument) x;
    xx.print(System.out);
    }

  • Parse XML produced by C# serializer

    I have the following XML:
    "<?xml version=\"1.0\"?><ArrayOfInvoicesToPay xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><InvoicesToPay><InvoiceNo>1002001</InvoiceNo><Payment>12</Payment></InvoicesToPay><InvoicesToPay><InvoiceNo>1007001</InvoiceNo><Payment>13</Payment></InvoicesToPay></ArrayOfInvoicesToPay>"
    And I want to save it into a table on InvoiceNo numeric(17,0), Payment money. What do I need to do?
    Thanks in advance.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

    Hello Naomi,
    So the issue is solved? Yes, the C# Editor like to add slashes in printouts. BTW, you can shorten the XQuery syntax, it's not nessecary to use text():
    DECLARE @invoicesToPay AS XML =
    '<?xml version="1.0"?>
    <ArrayOfInvoicesToPay xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <InvoicesToPay><InvoiceNo>1002001</InvoiceNo><Payment>12</Payment></InvoicesToPay>
    <InvoicesToPay><InvoiceNo>1007001</InvoiceNo><Payment>13</Payment></InvoicesToPay>
    </ArrayOfInvoicesToPay>';
    SELECT T.n.value('InvoiceNo[1]','numeric(17,0)') AS [invoice_no],
    T.n.value('Payment[1]','money') AS [payment]
    FROM @invoicesToPay.nodes('/ArrayOfInvoicesToPay/InvoicesToPay') AS T(n);
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to parse XML files from normal FTP Servers?

    I want to parse xml files from a normal FTP Servers , NOT the sap application severs itself. How can i do that?
    I know how to use the SAPFTP getting and putting files ,but I don't want to download and then parse it.
    Who knows how to parse it directly? I Just need to read the contents into a database.
    Thanks.

    I want to parse xml files from a normal FTP Servers , NOT the sap application severs itself. How can i do that?
    I know how to use the SAPFTP getting and putting files ,but I don't want to download and then parse it.
    Who knows how to parse it directly? I Just need to read the contents into a database.
    Thanks.

  • Inventory Management Serialize and Non Serialize BI Query

    Dear All,
    Is there any possibility to achieve a Inventory Management report based on Serialized and Non serialize materials.
    The requirement is to develop a report on  serialized materials for which WM is activated  and For serialized materials for which WM is NOT activated.
    Kindly let me know how to achieve this BI Query?
    Thank you
    Regards.

    Hi,
    Check these threads.
    Negative Val Stock
    Inventory Report with negative stock
    Regards.

  • How can I return an xml file to normal print?

    I typed out a list of CD and saved it but it is filed in xml format and I don't know how to return it not normal print so that I can print it out.  As you may realise I am not very computer literate! Please can someone help.Thanks

    coda, textwrangler, textedit should all be able to open and display xml files
    but there is no direct print or word proccessor route from xml it's a broad format it's
    just tags and how those tags are read and write are up to the program which writes and read the file in question
    so you may end up having to fish out the text you want to print from inside X different tags in the file
    xml can be seen as a text version of .dat which is the binary counterpart

  • Object (which has non-serializable attr.) serialization

    i could not solve object serialization problem in anyway. how can this be performed without "java.io.NotSerializableException"?
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    public class Object2ByteArray {
        public static void main(String[] args) {
            Object2ByteArray obj2ba = new Object2ByteArray();
            AnObject anObj = obj2ba.new AnObject();
            try {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                //FileOutputStream fos = new FileOutputStream("C:\\obj.file");
                ObjectOutputStream oos = new ObjectOutputStream(baos); //or (fos)
                baos.writeTo(oos);
                oos.writeObject(anObj);
                oos.flush();
                byte[] objInBytes = baos.toByteArray();
                System.out.println("An object (which has a non-serializable element[Image]) is written to ObjectOutputStream.");
            } catch (IOException e) {
                e.printStackTrace();
        public class AnObject implements Serializable {
            Image img = Toolkit.getDefaultToolkit().getImage("C:\\anil.jpg");
            int c = 10;
            String desc = null;
    }

    Hi,
    No, transient means that the attribute won't be sent over the stream. You usually declare fields that you don't want to send, or can't send as transient.
    /Kaj

  • Include new feature where user can get JSP as XML model or normal HTML

    Hi Creator Team,
    I request you guys to include the below specified feature in future updates.
    Currently, creator is supporting to generate JSPS in XML formats. No doubt this is good feature.
    But some times we may require JSP in which we may not in need of well formed HTML page.
    Because all Designeres and developers are may not aware of XML features and nodoubt they will face the problem in coding or designing.
    It is not necessary that a developer/designer need to accustom the features currently supported. He/She may expect more easier access in studio creator.
    I understand that we can include JSPs into project taht are not well formed. But at the same time it is almost difficult to him/her to design the page (drag/drop process which is main feature of Studio Creator)
    I request and suggest to include both options so that it will become easy for developers/designers to use this good product

    Has this feature been incorporated in the latest SJSC 2 release? I too think that this will be more easier to adapt to as a newbie. Moreover, I haven't found anything on this front anywhere else in the forums or in the technical documentations. Other way around could be to provide decent tutorials on using JSP in XML syntax. I am currently using J2EE tutorial (June 2005 release) to learn this technology.
    I would be glad if someone could point out a decent resource on this front.
    Thanks in advance,
    Dev

  • XML serializer problem

    I am trying to use an XML serializer to get an XML file place in an exist database and store it to the hard drive as an XML file.
    my code in order to do that is
    XMLResource documentbef = (XMLResource)r;
    doc2=(Document) documentbef.getContentAsDOM();
    doc2.normalize();
    OutputFormat format = new OutputFormat(doc2);
    format.setIndenting(true);
    XMLSerializer serializer = new XMLSerializer(new FileOutputStream(new File("C:\\Configuration\\XmlRoomCopy.xml")), format);
    serializer.serialize(doc2); i have included the needed jar files, and did the imports. but i get the following errors
    symbol  : constructor OutputFormat(org.w3c.dom.Document)
    location: class org.apache.xerces.domx.XGrammarWriter.OutputFormatand
    symbol  : method setIndenting(boolean)
    location: class org.apache.xerces.domx.XGrammarWriter.OutputFormat
    format.setIndenting(true);
    symbol  : constructor XMLSerializer(java.io.FileOutputStream,org.apache.xerces.domx.XGrammarWriter.OutputFormat)
    location: class org.apache.xml.serialize.XMLSerializer
    XMLSerializer serializer = new XMLSerializer(new FileOutputStream(new File("C:\\Configuration\\XmlRoomCopy.xml")), format);i'm new at this so I could have done the dumbest mistake.
    thank you

    Hi.
    Check this:
    drop type msm force;
    drop type list_msm force;
    create type msm as object(
    nume VARchar2(20)     --VARCHAR2 NOT CHAR
    create type list_msm as table of msm;
    create table produse
    den char(20)
    INSERT INTO produse VALUES('Prod.1');
    INSERT INTO produse VALUES('Prod.2');
    INSERT INTO produse VALUES('Prod.3');
    COMMIT;
    select xmlserialize (document xmlelement("values",
    cast(multiset(
    select trim(p.den) from produse p) as list_msm
    ) as clob indent size=2
    ) as "xml"
    from dual;
    <values>
      <LIST_MSM>
        <MSM>
          <NUME>Prod.1</NUME>
        </MSM>
        <MSM>
          <NUME>Prod.2</NUME>
        </MSM>
        <MSM>
          <NUME>Prod.3</NUME>
        </MSM>
      </LIST_MSM>
    </values>Hope this helps.

  • *** Serialization in SOAP ***

    Hi,
    I m building a web service with Jdeveloper 9.0.3 . I m trying to pass org.w3c.dom.Document in the function argument but got the following error:
    No Serializer found to serialize a &apos;org.w3c.dom.DOMImplementation&apos; using encoding style &apos;http://schemas.xmlsoap.org/soap/encoding/&apos;. [java.lang.IllegalArgumentException]
    Help,pls.
    Gary

    Ok, at the end of this e-mail see the stub that was generated from the Oracle9iAS side and a main method that calls your Web service - this should get you going. Before the code I will give you the steps I did:
    1. Make sure you delete the Web service you have deployed to OC4J before starting again (e.g. delete the directories <oc4j_home>\j2ee\home\application-deployments\gt-gt-WS, <oc4j_home>\j2ee\home\applications\gt-gt-WS, delete the file gt-gt-WS.ear from the <oc4j_home>\j2ee\home\applications\ directory and edit the file server.xml and remove the line: "<application name="gt-gt-WS" path="../applications/gt-gt-WS.ear" auto-start="true" />"
    2. Delete the stub/proxy you have generated from the JDeveloper WSDL
    3. Build your class as you did with a document parameter and return result
    4. Wrap it as a Web service using the JDev publishing wizard
    5. New step I missed previously: Before deploying to Oracle9iAS, right mouse click on the WebServices.deploy node and:
    * Select settings
    * Navigate to the classes node of the configuration tree
    * De-select the WSDL file
    * Exit from the configuration wizard by clicking on the OK button
    6. Deploy to Oracle9iAS by right mouse clicking on the Webservices.deploy node
    7. Go to the Web service endpoint (in your case: http://<your machine>:8888/gt-gt-context-root/XMLDocWS) in your browser. This can be found by editing the Web service node in JDeveloper and selecting "File Locations" and copying the URL in the field "Web service endpoint"
    8. From the endpoint page, copy the "Service Description" URL (i.e. the WSDL location) (e.g. CTRL-C). On mine, the URL is: http://<my machine>:8888/gt-gt-context-root/XMLDocWS?WSDL
    9. Go back to JDeveloper and in the project right mouse click on the project and select New->Web Service Stub/Skeleton.
    10. In the WSDL location, paste in the WSDL location you copied from the Web Service endpoint (http://<my machine>:8888/gt-gt-context-root/XMLDocWS?WSDL)
    11. Generate the new stub as normal.
    12. For a quick test copy in the main method I built below.
    From this point onwards your servlet you sent me should work.
    For others watching this thread, as this problem is generic, here is the service implementation:
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    public class XMLDocWS
         public XMLDocWS()
         public Document query(org.w3c.dom.Document req)
    Document res = req;
              return res;
    Here is the stub that can be used to test it once you have published the above as a Web Service:
    import java.util.Vector;
    import java.net.URL;
    import java.util.Properties;
    import java.util.HashMap;
    import org.apache.soap.rpc.Call;
    import org.apache.soap.rpc.Parameter;
    import org.apache.soap.rpc.Response;
    import org.apache.soap.Fault;
    import org.apache.soap.SOAPException;
    import org.apache.soap.Constants;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.util.xml.QName;
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import oracle.soap.encoding.soapenc.EncUtils;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import oracle.xml.parser.v2.*;
    * Web service proxy: IXMLDocWS
    * generated by Oracle WSDL toolkit (Version: 1.0).
    public class IXMLDocWSProxy {
    public static void main(String[] args)
    try
    IXMLDocWSProxy stub = new IXMLDocWSProxy();
    XMLDocument doc = new XMLDocument();
    Element elAdd = doc.createElement("employee");
    Element elA = doc.createElement("name");;
    elA.appendChild(doc.createTextNode("Mike"));
    elAdd.appendChild(elA);
    doc.appendChild(elAdd);
    org.w3c.dom.Document in = (org.w3c.dom.Document)doc;
    org.w3c.dom.Document out = stub.query(in);
    XMLDocument out_print = (XMLDocument)out;
    ((XMLElement)out_print.getDocumentElement()).print(System.out);
    } catch (Exception ex)
    ex.printStackTrace();
    public IXMLDocWSProxy() {
    m_httpConnection = new OracleSOAPHTTPConnection();
    _setMaintainSession(true);
    Object untypedParams[] = {
    new String("query"), new String("output"), new QName("http://xmlns.oracle.com/2001/XMLSchema/DOM","org.w3c.dom.Document")
    String operationName;
    String paramName;
    QName returnType;
    SOAPMappingRegistry registry;
    org.apache.soap.util.xml.Deserializer deserializer;
    int x;
    for (x = 0; x < untypedParams.length; x += 3) {
    operationName = (String) untypedParams[x];
    paramName = (String) untypedParams[x+1];
    returnType = (QName) untypedParams[x+2];
    registry = (SOAPMappingRegistry) m_soapMappingRegistries.get(operationName);
    if (registry == null) {
    if (m_soapMappingRegistry != null) {
    registry = new SOAPMappingRegistry(m_soapMappingRegistry);
    } else {
    registry = new SOAPMappingRegistry();
    m_soapMappingRegistries.put(operationName,registry);
    try {
    deserializer = registry.queryDeserializer(returnType,Constants.NS_URI_SOAP_ENC);
    registry.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("",paramName), null, null, deserializer);
    } catch(IllegalArgumentException e) {
    public org.w3c.dom.Document query(org.w3c.dom.Document param0) throws Exception {
    String soapActionURI = "urn:IXMLDocWS/query";
    String encodingStyleURI = "http://schemas.xmlsoap.org/soap/encoding/";
    Vector params = new Vector();
    params.add(new Parameter("param0", org.w3c.dom.Document.class, param0, null));
    Response response = makeSOAPCallRPC("query", params, encodingStyleURI, soapActionURI);
    Parameter returnValue = response.getReturnValue();
    return (org.w3c.dom.Document)returnValue.getValue();
    private Response makeSOAPCallRPC(String methodName, Vector params, String encodingStyleURI, String soapActionURI) throws Exception {
    Call call = new Call();
    call.setSOAPTransport(m_httpConnection);
    SOAPMappingRegistry registry;
    if ((registry = (SOAPMappingRegistry)m_soapMappingRegistries.get(methodName)) != null)
    call.setSOAPMappingRegistry(registry);
    else if (m_soapMappingRegistry != null)
    call.setSOAPMappingRegistry(m_soapMappingRegistry);
    call.setTargetObjectURI(m_serviceID);
    call.setMethodName(methodName);
    call.setEncodingStyleURI(encodingStyleURI);
    call.setParams(params);
    Response response = call.invoke(new URL(m_soapURL), soapActionURI);
    if (response.generatedFault()) {
    Fault fault = response.getFault();
    throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
    return response;
    public String _getSoapURL() {
    return m_soapURL;
    public void _setSoapURL(String soapURL) {
    m_soapURL = soapURL;
    public String _getServiceID() {
    return m_serviceID;
    public void _setServiceID(String serviceID) {
    m_serviceID = serviceID;
    public SOAPMappingRegistry _getSOAPMappingRegistry() {
    return m_soapMappingRegistry;
    public void _setSOAPMappingRegistry(SOAPMappingRegistry soapMappingRegistry) {
    m_soapMappingRegistry = soapMappingRegistry;
    public boolean _getMaintainSession() {
    return m_httpConnection.getMaintainSession();
    public void _setMaintainSession(boolean maintainSession) {
    m_httpConnection.setMaintainSession(maintainSession);
    public Properties _getTransportProperties() {
    return m_httpConnection.getProperties();
    public void _setTransportProperties(Properties properties) {
    m_httpConnection.setProperties(properties);
    public String _getVersion() {
    return m_version;
    private String m_serviceID = "urn:IXMLDocWS";
    private String m_soapURL = "http://mlehmann-lap.us.oracle.com:8888/gt-gt-context-root/XMLDocWS";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_soapMappingRegistry = null;
    private String m_version = "1.0";
    private HashMap m_soapMappingRegistries = new HashMap();
    Mike.

  • Java.rmi.ServerException: Internal Server Error (serialization error....)

    Hi to all.
    I have two classes.
    The first is:
    public class FatherBean implements Serializable {
    public String name;
    public int id;
    /** Creates a new instance of ChildBean */
    public FatherBean() {
    this.name= null;
    this.id = 0;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public int getId() {
    return id;
    public void setId(int id) {
    this.id = id;
    The second is :
    public class ChildBean extends FatherBean implements Serializable {
    public double number;
    /** Creates a new instance of ChildBean */
    public ChildBean() {
    super();
    this.number = 0.0;
    public double getNumber() {
    return number;
    public void setNumber(double number) {
    this.number = number;
    A test client class implements the following method that is exposed as web service:
    public java.util.Collection getBeans() {
    java.util.Collection beans = new ArrayList();
    ChildBean childBean1 = new ChildBean();
    ChildBean childBean2 = new ChildBean();
    childBean1.setId(100);
    childBean1.setName("pippo");
    childBean1.setNumber(3.9);
    childBean2.setId(100000);
    childBean2.setName("pluto");
    childBean2.setNumber(4.7);
    beans.add(childBean1);
    beans.add(childBean2);
    return beans;
    When I invoke the web service to url:
    http://localhost:8080/Prova
    and invoke the correspondent method on jsp client, throws exception:
    java.rmi.ServerException: Internal Server Error (serialization error: no serializer is registered for (class test.ChildBean, null))
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
         at ws.ProvaClientGenClient.ProvaRPC_Stub.getBeans(ProvaRPC_Stub.java:59)
         at ws.ProvaClientGenClient.getBeans_handler.doAfterBody(getBeans_handler.java:64)
         at jasper.getBeans_TAGLIB_jsp._jspService(_getBeans_TAGLIB_jsp.java:121)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Where is the problem? Will be ChildBean that extends FatherBean? Wich settings on Sun Java Studio Enterprise 6 2004Q1?
    Thank you.

    Hi,
    This forum is for Sun Java Studio Creator related questions. Could you pls post your message in the appropriate forum.
    Thank you
    Cheers :-)

  • Trying to Serialize Trial version of Adobe Cs6 Design Standard on Mac

    Hi,
    We have created a Trial package of Adobe Cs6 Design Standard using  AAMEE 3.1 latest version. We followed the guidelines outlined in    
    http://www.adobe.com/devnet/creativesuite/enterprisedeployment.html  to create a Serialization file. However when we try to Run the Command in terminal "AdobeSerialization --tool=VolumeSerialize --provfile=Absolute_Path_of_prov.xml" we get an error which states AdobeSerialization command not found.  Am I missing something here while running the command? Serialization  workflow creates a output folder containing AdobeSerialization executable file  and a prov.xml file. Can't we run the executable directly without using any command on Mac?  We are in the process of using this workflow in order to  streamline the licensing in enterprise. Any help would be much appreciated.
    Thanks,
    Vishnu Kulkarni

    Hi,
    If you are getting the "Adobeserialization command not found" error, it is not able to find the AdobeSerialization at the path you have mentioned. You should give the path of the folder where the AdobeSerialization is kept on your machine. Please retry it and let us know in case of any error. Return code of zero means success.
    If you are using AAMEE 3.1 and if you use imaging, you need got go through the route of creating the trial package, deploying the trial image and then serializaing the client machines using serialization executable after deploying the trial packages on client machines. The machine-to-license binding is removed in AAMEE 3.1, so you just need to create a serialized packge using AAMEE 3.1, take its image and deploy it on client machines. The licensing will not break on client machines and everything will work fine. So there is no need to create a serialization executable.
    If you have already created a master machine (the machine whoose image is created and deployed) with Adobe products installed in trial, create a serialization executable and run it on the master machine using the command line -
    AdobeSerialization --tool=VolumeSerialize--stream --provfile=Absolute_Path_of_prov.xml
    where
    --tool=VolumeSerialize specifies that the tool needs to process the prov.xml file to serialize.
    --provfile specifies the absolute file path to the prov.xml file,
    By default, the tool looks for the prov.xml file in the same directory as the executable file and so
    typically you do not need to specify this option. (Specify this option only if the prov.xml file is in some other location.) .
    This will serialize your trial products and you can take its image and deploy it on client machines. Again, the licensing will not break on client machines and there is no need to run the serialization executable on all client machines seperately.
    if you have already deployed Adobe products on client machines in trial mode, you need to serialize all the machines using the AdobeSerialization tool. Please run this tool with command line -
    AdobeSerialization --tool=VolumeSerialize --provfile=Absolute_Path_of_prov.xml.
    This will serialize the Adobe Products.
    While taking the above routes, make sure that the package is created using AAMEE 3.1 only. The machine-to-license binding of CS6 is removed only in AAMEE 3.1 release version. This will not work for packages created using AAMEE 3.0 or AAMEE 3.1 beta version.
    Thanks,
    Saransh Katariya | Member of technical Staff | Adobe Systems.

  • FOP Serializer, PDF File generation

    In attempting to generate PDF files from XSQL: Any ideas which jar files from the Apache FOP-0.20.5 release need to be included in the classpath of the XSQL servlet (XDK 9.2.0.2.0) to make the emptablefo.xsl demo function? Are there other jar files required (other than xsqlserializers.jar)? The docs seem to want w3c.jar, which doesn't come with that release. Where does one find it, if needed?
    I keep turning up with
    XSQL-017: Unexpected Error Occurred
    java.lang.NoSuchMethodError
    at oracle.xml.xsql.serializers.XSQLFOPSerializer.serialize(XSQLFOPSerializer.java:19)
    Is my Adobe plugin meant to fire up if this works correctly?
    Cheers

    Hi All,
    I got the latest FOR version and have all the orther jars in my class path. I am using XSQL and with the previous version of FOP, my PDF display was fine.
    With the new version of FOP i am having the problems mentined on this forum.
    As 12... suggested, i got the XSQLFORSerializer , compiled and added it in the jar(xsqlserializers.jar) and added the jar in my class path, added the other mentioned jar(except xercesImpl-2.2.1.jar since xerces1-2.3.jar is in the class path and adding xercesImpl-2.2.1.jar causes JRun not to start with some kind of weird Null TLD string "--" cannot be in the comments error).
    Everything looks fine ,just that the pdf does not show and the message is
    07/01 10:47:23 user CacheFilesServlet: Processing XSQLRequest...
    [INFO] java.lang.NullPointerExceptionbuilding formatting object tree
    at org.apache.fop.pdf.PDFDocument.outputHeader(PDFDocument.java:1321)
    at org.apache.fop.render.pdf.PDFRenderer.startRenderer(PDFRenderer.java:
    237)
    at org.apache.fop.apps.StreamRenderer.startRenderer(StreamRenderer.java:
    188)
    at org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:240)
    at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:454)
    at org.apache.fop.apps.Driver.render(Driver.java:498)
    at org.apache.fop.apps.Driver.render(Driver.java:518)
    at oracle.xml.xsql.serializers.XSQLFOPSerializer.serialize(XSQLFOPSerial
    izer.java:38)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:257)
    at oracle.xml.xsql.XSQLRequest.process(XSQLRequest.java:304)
    at oracle.xml.xsql.XSQLRequest.process(XSQLRequest.java:198)
    at com.cleverdevices.util.CacheFilesServlet.generateReport(CacheFilesSer
    vlet.java:1045)
    at com.cleverdevices.util.CacheFilesServlet.doGet(CacheFilesServlet.java
    :372)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
    yFilter.java:102)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
    241)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
    527)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
    l.java:348)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
    ava:451)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
    java:294)07/01 10:48:04 user CacheFilesServlet: output length = 0
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    com.cleverdevices.util.ReportGenerationException: No output from XSQL
    at com.cleverdevices.util.CacheFilesServlet.generateReport(CacheFilesSer
    vlet.java:1065)
    at com.cleverdevices.util.CacheFilesServlet.doGet(CacheFilesServlet.java
    :372)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
    yFilter.java:102)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
    241)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
    527)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
    l.java:348)07/01 10:48:04 user CacheFilesServlet: Deleting bad cache file: C:\JR
    un4\servers\default\tatools\main\reports\cache\whc_kneel_bu
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
    ava:451)
    at jrunx.scheduler.ThreadPool$UpstreamMetrsdepot_dd_1,,_20040630.pdf
    ics.invokeRunnable(ThreadPool.java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    com.cleverdevices.util.ReportGenerationException: IO Error: com.cleverdevices.ut
    il.ReportGenerationException: No output from XSQL
    at com.cleverdevices.util.CacheFilesServlet.generateReport(CacheFilesSer
    vlet.java:1076)
    at com.cleverdevices.util.CacheFilesServlet.doGet(CacheFilesServlet.java
    :372)
    Any pointers will help.
    I am using XSQL and JRun server.
    Thanks

Maybe you are looking for