Serialization in pieces

As part of a distributed database application, I'm often in the situation of having to deal with lots of results from a query. I'd like the server to split those results into "pieces", so that the client can start processing them as they come along. Is there any way to handle this? I could possibly overwrite writeObject and divide up the object on the server side for serialization of each piece, but how can I collect those pieces on the client, if this is part of a remote method invocation (supposed to return an object to the invoking method)?

Doesn't sound like RMI. However something you might do is
Make your call using RMI.
Use the RMI return to ell the client what to expect.
Use another socket to serialize/unserialize the data.
I'm not sure I like this all that much - possible race condition between the RMI return and real data being received.

Similar Messages

  • Domain design causing full object graph serialization

    Hello,
    I work on a project, based on 3-layer-architecture. We have rich client developed on swing, application server and we persist our domain objects in the database.
    We map the domain objects using hibernate, send the same objects (means, we use POJOs and don't use DTO) via spring from application server to the server and visa versa in case the objects are to be saved, deleted etc.
    We use an object identity store on the client side, in which all already loaded objects are stored.
    My challenge is as follows:
    - Since an object is stored in the object store, the same certain object is used in every GUI module. Imagine, we have customer, account and a list of transactions per account. In practice, let's say:
    1 customer
    2 accounts
    1000 transactions per account which ever exist
    - In one of the modules, the used loaded all list of transactions. So, at that moment, 1 customer object, 2 accounts and 2000 transaction objects are bound to each other via java references (object graph).
    - On another module, the user wants to edit a very small attribute of customer object, say he corrects his birthday date and saves it.
    - Saving operation sends the customer object to the server. But the problem is, a very big object graph hangs on this one little customer object and are serialized to the server, although the
    service.save(customer);is called, and this costs extremely much time for our application.
    boldSOLUTION:*bold* We solved the problem with a hack, as we used the serialization over XStream framework from Thoughtworks in xml-format. We could set a cut in the serialization and have serialized only the customer object for that use case.
    So the problem for the save-use case was solved. This has a disadventage: the loading time (server-client (de-)serialization) using xml is longer than the java standard, especially remarkable if you load a big number of objects.
    I've read many articles about the enterprise architectures which are related to domain objects, dto, serialization. It is not uncommon to avoid DTOs and use POJOs on the server and client as well, if the domain objects don't contain business logic. So, I just wonder, how the problem above should be solved smartly, if the non-DTO, say POJO alternative is chosen.
    I appreciate your opinions.
    I hope my question is not too long. Thanks in advance,
    A sample code:
    (The concrete case in our application requires the navigability from customer to account)
    public class Customer implements Serializable {
         private Set<Account> acounts = new HashSet<Account>();
         // Getters, setters
    public class Account implements Serializable {
         private Set<AccTransaction> acounts = new HashSet<AccTransaction>();
         // Getters, setters
    public class AccTransaction implements Serializable {
         private String operation;
         private Timestamp timestamp;
         // Getters, setters
    }Alper

    acelik wrote:
    Thanks for the quick answer.
    The numbers are just wildly guesses, in order to keep the sample simple.
    Actually we develop a system for automobile industry. So, instead of customer, you may think of a company, like Ford. Account would be then Fiesta. Instead of AccTransaction we may think a huge number of car pieces (clima, motor, radio, etc.).
    So hierarchically we have
    Company (Ford, Opel, etc)
    Model (Fiesta, Astra, etc.)
    Piece (1000 pieces per model, so Fiesta, Opel have 1000 different pieces each)
    The problem is, if I loaded the Ford->Fiesta->1000x pieces for one view and then switch to another view. In the second view, I rename Fiesta to Fiesta II, and want to save this renaming operation using:
    What exactly does that represent?
    If you want to rename an existing car then you need logic to do exactly that. You do not copy the entire tree.
    If however you do want to copy the entire tree then that is in fact what you must do. Although I seriously doubt that there is a valid business requirement for that. In terms of efficiency though you could write a proc that did that rather than propogating the tree.
    Although further if you do in fact have two cars which use the same inventory item(s) then, again, you do not copy the entire tree because you are not creating a brand new inventory item. Instead you should only be pointing to an existing item.
    I wonder how this problem is solved smartly, if you guys share domain objects between the client and server, and avoid DTO.The first step is to start with actual business requirements.

  • Serialization of DOM Tree+calling POST method in servlet

    Hi all,
    I am trying to serialize a DOM tree and send it from an applet to a servlet..I am having difficulty in calling the post method of the servlet..can anyone please tell me how the POST method in the servlet is called from the applet...I am using the code as seen on the forum for calling the POST method as below:
    URL url = new URL("http://localhost:8080/3awebapp/updateservlet");
    HttpURLConnection con = (HttpURLConnection)url.openConnection();
    con.setUseCaches(false);
    con.setRequestProperty("Content-Type","application/octet-stream");
    System.out.println("Connected");
    con.setDoOutput(true);
    con.setRequestMethod("POST");
    System.out.println("do output called");
    con.setDoInput(true);
    System.out.println("do Input called");
    ObjectOutputStream objout = new ObjectOutputStream(con.getOutputStream());
    yet the post method in the servlet does not seem to be called....
    another problem I had was trying to serialize a DOM document and send it to the servlet. I am using the following code to write the DOM document on an output stream..would this work:
    OutputFormat format = new OutputFormat(document);
    XMLSerializer serializer = new XMLSerializer( objout, format );
    System.out.println("XML Serializer Started");
    DOMSerializer newSerializer=serializer.asDOMSerializer();
    newSerializer.serialize( document );
    objout.flush();
    objout.close();
    ...since the doPost method of the servlet is not being called I do not whether the above code would be sent to the servlet..
    Any advice on the above two matters would be highly appreciated..
    Fenil

    perhaps my piece of code may help You - relevant parts marked //<--,
    but I have a problem when reading my object - which is a serialized DomTree :
    Variant 1 : sending XML-data as string will arrive as should be, but parser says org.xml.sax.SAXParseException (missing root-element)
    Variant 2 : readObject says java.io.OptionalDataException, but the DomTree will be parsed and displayed
    -- snipp --
    import java.io.InputStream;
    import org.w3c.dom.Document;
    import java.net.*;
    import com.oreilly.servlet.HttpMessage; //<--
    import java.util.*;
    import java.io.ObjectInputStream;
    myApplet :
    try {
         URL url = new URL(getCodeBase(),"../../xml/FetchDocument");
         HttpMessage msg = new HttpMessage(url);
         Properties props = new Properties();
         props.put("InputFeldName","FeldWert");
         InputStream in = msg.sendGetMessage(props);
    //<-- alt : sendPostMessage
         ObjectInputStream result = new ObjectInputStream(in);
         try {
         Object obj = result.readObject();
    myServlet :
    public void doGet(HttpServletRequest req,HttpServletResponse res)
         throws ServletException, IOException {
    TreeCreator currentTree = new TreeCreator();
    ObjectOutputStream out = new ObjectOutputStream(res.getOutputStream());
    -- variant 1 :
    out.writeObject(currentTree.skillOutputString());
    out.flush();
    out.close();
    -- variant 2 :          
    OutputFormat( TreeCreator.cdi ); //Serialize DOM
    OutputFormat format = new OutputFormat( currentTree.getCDI() ); format.setEncoding("ISO-8859-1");
    XMLSerializer serial = new XMLSerializer( out, format );
    serial.asDOMSerializer(); // As a DOM Serializer
    serial.serialize( currentTree.getCDI().getDocumentElement() );
    serial.endDocument();
    out.flush();
    out.close();

  • Simple(?) serialization

    I am a Java newbie, and I'm trying to use Swing to create some very simple forms, but I want to be able to persist those forms so they can be pulled up later. I've done lots of reading about serialization, but there's something I don't understand: If I have a "top" form, like a JFrame, that contains my buttons, text fields, etc., do I have to explicitly save every element into the object stream? Why can't I just save the top JFrame to the object stream, and let serialization grab all the pieces?
    Here is a very simple example I generated in NetBeans 5.5. It's just three radio buttons on a JFrame. Everything except the little function at the bottom where I try to save to an object output stream is NetBeans generated, and shouldn't be the source of the trouble. When I try to save the JFrame on closing the window, I get a NotSerializableException on GroupLayout.
    Any suggestions on how I can make this work?
    * NewJFrame.java
    import java.io.*;
    public class NewJFrame extends javax.swing.JFrame implements Serializable {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
            /* A LISTENER FOR THE CLOSING OF THE JFRAME  */
                         addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    formWindowClosing(evt);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jRadioButton1 = new javax.swing.JRadioButton();
            jRadioButton2 = new javax.swing.JRadioButton();
            jRadioButton3 = new javax.swing.JRadioButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jRadioButton1.setText("jRadioButton1");
            jRadioButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jRadioButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jRadioButton2.setText("jRadioButton2");
            jRadioButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jRadioButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jRadioButton3.setText("jRadioButton3");
            jRadioButton3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jRadioButton3.setMargin(new java.awt.Insets(0, 0, 0, 0));
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(86, 86, 86)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jRadioButton3)
                        .addComponent(jRadioButton2)
                        .addComponent(jRadioButton1))
                    .addContainerGap(229, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(83, 83, 83)
                    .addComponent(jRadioButton1)
                    .addGap(16, 16, 16)
                    .addComponent(jRadioButton2)
                    .addGap(16, 16, 16)
                    .addComponent(jRadioButton3)
                    .addContainerGap(140, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        /*  THE CODE IN THIS FUNCTION IS REALLY THE ONLY THING I ADDED RATHER
         *  THAN LEAVING TO NETBEANS.  IF I WRITE OUT THE RADIO BUTTONS SEPARATELY
         *  AS COMMENTED OUT BELOW, THE PROGRAM AT LEAST RUNS.  AS IT IS WRITTEN, SIMPLY
         *  TRYING TO WRITE THE JFRAME TO THE OBJECT STREAM, THERE IS A NONSERIALIZABLE
         *  ERROR.   */
         private void formWindowClosing(java.awt.event.WindowEvent evt)  {
         try{  ObjectOutputStream output =
                            new ObjectOutputStream(new FileOutputStream("simple.dat"));
         //  output.writeObject(jRadioButton1);
         //  output.writeObject(jRadioButton2);
         //  output.writeObject(jRadioButton3);
           output.writeObject(this);
    output.flush();
    output.close();
         catch (IOException ex1){
    ex1.printStackTrace();
        // Variables declaration - do not modify                    
        private javax.swing.JRadioButton jRadioButton1;
        private javax.swing.JRadioButton jRadioButton2;
        private javax.swing.JRadioButton jRadioButton3;
        // End of variables declaration 

    Why can't I just save the top JFrame to the object stream, and let serialization grab all the pieces?You can. But all the pieces have to be Serializable too.

  • Server design (multithreading, serialization, and performance)

    (I'm not asking for anyone to design my software for me, I'm just looking for a response along the lines of "That's called XYZ server design, look for books on this topic" sort of thing.)
    Summary:
    I have a Server application (S) that accepts connections from many Clients (C). The clients request pieces of a large internal data structure, *"Data"* (D). The clients are totally passive with respect to Data, they only read (from the Server) and do not initiate any modification.
    D is really a structure of structures: it's hashtables of hashtables, with objects that hold other hashtables and vectors, etc. etc., down a few levels. The clients don't read the entire structure, just parts of it.
    The Server is multi-threaded, with threads handling client communications, and a very important thread that modifies Data by processing messages from an external source. I call this part of the software the Message Processor (P). These messages are what drives manipulation of the data structure.
    [**CLICK HERE FOR A DIAGRAM**|http://imgur.com/sb5ZU]
    There are a couple of design questions I'm wondering about:
    The data structure D is a shared resource between the Client threads and the Message Processor thread within the Server, with the Client threads only reading from the data structure (and writing over TCP/IP), and the Message Processor both reading and modifying it.
    Right now I am using locks to lock the structure when a client requests data, so that the processor cannot modify the data while it is being serialized.
    I also lock the data structure when a message is received and the structure has to be modified by P, to prevent the structure from being serialized while it is being modified.
    My question is, is this the only design pattern I can use in this situation? It looks like the only way to improve performance is to
    a) make sure I only lock when necessary (to prevent data corruption or inconsistency)
    b) lock the data for as short a time as possible
    c) make sure the parts of the data structure being sent to clients are serialized as fast as possible (write my own writeObject/readObject methods)
    Any insight is appreciated, the shorter and more candid, the better. Don't be afraid to say I'm in over my head and should read a few books by author so-and-so, that's a good starting point :)

    jta23 wrote:
    (I'm not asking for anyone to design my software for me, I'm just looking for a response along the lines of "That's called XYZ server design, look for books on this topic" sort of thing.)
    Summary:
    I have a Server application (S) that accepts connections from many Clients (C). The clients request pieces of a large internal data structure, *"Data"* (D). The clients are totally passive with respect to Data, they only read (from the Server) and do not initiate any modification.
    Are you using Servlets? That should facilitate the development of your server immensely (e.g., maintains sessions, handles multi-threading, implements HTTP out of the box, dozens of additional frameworks available, etc.)
    D is really a structure of structures: it's hashtables of hashtables, with objects that hold other hashtables and vectors, etc. etc., down a few levels. The clients don't read the entire structure, just parts of it.
    You can get away with using Map of Map or Map of List or whatever level of nesting you want. Generally, however, it is better to implement a canonical and rich domain model. [http://www.eaipatterns.com/CanonicalDataModel.html]. [http://www.substanceofcode.com/2007/01/17/from-anemic-to-rich-domain-model/].
    The Server is multi-threaded, with threads handling client communications, and a very important thread that modifies Data by processing messages from an external source. I call this part of the software the Message Processor (P). These messages are what drives manipulation of the data structure.
    [**CLICK HERE FOR A DIAGRAM**|http://imgur.com/sb5ZU]
    There are a couple of design questions I'm wondering about:
    The data structure D is a shared resource between the Client threads and the Message Processor thread within the Server, with the Client threads only reading from the data structure (and writing over TCP/IP), and the Message Processor both reading and modifying it.
    Right now I am using locks to lock the structure when a client requests data, so that the processor cannot modify the data while it is being serialized.
    I also lock the data structure when a message is received and the structure has to be modified by P, to prevent the structure from being serialized while it is being modified.
    My question is, is this the only design pattern I can use in this situation? It looks like the only way to improve performance is to
    a) make sure I only lock when necessary (to prevent data corruption or inconsistency)This can easily be handled by a Servlet. I think the best way to do this would be to create a Singleton. [www.javacoffeebreak.com/articles/designpatterns/index.html]. Be careful, however. Singletons are like global variables. They can easily be abused. If you did not want a singleton, create a lock table in your database. The RDBMS will handle synchronization for you, and it is an elegant solution. You can perform a similar feat using a filesystem lock that you create. Up to you. Whether in the JVM, in the database or in the filesystem.
    b) lock the data for as short a time as possibleWrite an efficient method to insert or update or delete the data. If you are dealing with a large amount of data, consider using a native tool like Oracle's SqlLoader or using vendor-specific JDBC syntax. If you need to support multiple types of databases, use bulk JDBC operations.
    c) make sure the parts of the data structure being sent to clients are serialized as fast as possible (write my own writeObject/readObject methods)
    Take a look at JBoss serialization. It is much more compact that Java's. Or do some experimenting. JSON is much more compact than XML normally, and it can be read by a Javascript client to facilitate any Ajax you might want to use for some flash and sizzle.
    Any insight is appreciated, the shorter and more candid, the better. Don't be afraid to say I'm in over my head and should read a few books by author so-and-so, that's a good starting point :)No, take it in bite sized pieces. Start with the server. Then work on the client. Play around with your locking strategy. Optimize your update of the data. Don't do everything at once.
    - Saish

  • Serializable class throwing class cast exception.

    All,
    I have a serializable class name 'Owner' and while login to the application, i put the object of this class in the session. Later in my application, when i am trying to retrieve this obejct from the session using the following code, throwing class cast exception.
    Owner owner =(Owner)request.getSession().getAttribute(     WebKeys.LOGGEDINOWNER_OWNER_KEY)
    This piece of code works fine in test enviornment(single server), but fails in production which is clustered enviornment.
    Any help will be appreciated

    What could be the problem with class loader ? How can
    i confirm that ? What is the solution ?Change it into:
    Object owner = request.getSession().getAttribute(WebKeys.LOGGEDINOWNER_OWNER_KEY);
    System.out.println(owner.getClass() + " : " + Owner.class);And see what it prints..

  • Serializable question

    I am trying to learn the concept of serializable in Java.
    I tried few tutorials and searched google, however i am
    still not cleared about it.
    Maybe my english is bad.
    what is the use of serializable? in simple english please

    Serialization is a way of writing an Object in to a byte stream. Seriazable object means an object of a class that implements the java.io.Seriazable interface. If an object is serializable it canbe written in to a stream through an java.io.ObjectOutputStream.
    This is usefull if you want to save the data of an object in to a file and read them later. Also very usefull if you want to send objects of one application to another through sockets (Network programming)
    Here is an small example
    //serializable class
    public class MySerializable implements Serializable{
       String data;
       public MySerializable(String data){
          this.data = data;
       public String toString(){
          return data;
    //writing to a file
    MySerializable obj = new MySerializable ("We gonna write this to a file");
    ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("filename.ext"));
    oos.writeObject(obj);
    oos.close();
    //Reading
    ObjectInputStream ois = new ObjectInputStream(new FileInputStream("filename.ext"));
    MySerializable obj = (MySerializable)ois.readObject();
    ois.close();
    System.out.println(obj);Note: This is just the basics. Serialization is a large piece of java

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • Serialization error while invoking a Java web service

    Hi,
    I've a requirement where I need to create a Java web service, which returns a collection (a set of records).
    The way I've created a web service is by having a Java Class, which internally calls a Pl/sql package returning Ref cursors and a bean Class, which wraps the method of the Java Class, to return the collection. I could create the web service successfully and could invoke the end point. The end point looks like this: http://localhost:8988/MyJavaWebService-New_JWS-context-root/MyWebService_finalSoapHttpPort
    The method exposed for the web service in my Java class is of type ArrayList, to fetch the collection element.
    After giving the input at the end point, while I say invoke, for the web service, I get the following error:
    <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://mypkg/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 mypkg.EmpBean, null))</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I've tried making my exposed method of type Vector as well and re-generated the web service. But still I face the same issue at invocation.
    Can anybody help me out and hint me on how I should proceed? I'm not sure if my approach is correct and so please correct me if I'm wrong.
    Thanks in Advance,
    Gayathri

    Hi,
    do you use 10.1.2 or 10.1.3?
    Take a look at:
    Re: How to create a web service with ArrayList or Collection

  • 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

  • Discount in pieces

    Hi Experts,
                      What is the provisions in SAP B1 2007 B for managing discount in pieces of items in SO , delivery and A/R Invoice.
    For Ex- in SO, item1  with quantity 10 and free quantity is 2or 3 , how do we manage this process in the system.
    Thanks and Regards
    Piyush

    Hi
    Enable the Field "Type" in Form Setting and include the text as Free items in So then call the item and give the discount 100 or put the unit price is o.
    For Ex:  Item X   10Qty   100rs  tax-vat4- total 1000-tax amount 40
                 next line test - free items
                 item x   2Qty   100rs  discount 100 -
    or unit price 0rs as per wish of client
    Giri

  • Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache of sent text?

    Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache sent the text?
    For example, I posted an article on a news site, but found that only a small part of my article was posted.

    I'm not sure whether Firefox saved that information. There is a chance that it is in the session history file, especially if you haven't closed that tab yet. To check that:
    Open your currently active Firefox settings folder (AKA your Firefox profile folder) using
    Help > Troubleshooting Information > "Show Folder" button
    Find all files starting with the name sessionstore and copy them to a safe working location (e.g., your documents folder). In order to read a .js file, it is useful to rename it to a .txt file. Or you could drag it to Wordpad or your favorite word processing software.
    The script will look somewhat like gibberish, but if you search for a word in your article that doesn't normally appear in web pages, you may be able to find your data.
    Any luck?
    For the future, you might want to consider this add-on, although I don't know how long it saves data after you submit a form: [https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-recovery/].

  • I am unable to hear anything on my iphone 4 nor can the person i call hear anything when i speak - I think that my ear piece and mike have both got magnetised how do fix the problem

    I am unable to hear anything on my iphone 4 nor can the person i call hear anything when i speak -
    I think that my ear piece and mike have both got magnetised how do fix the problem
    Please help

    I have the same problem!! It lead to many other problems with my phone
    I just arranged a repair with apple. Yes its inconvenient to be without a phone for a while but if your phone is in warranty its good to get it looked at professionally!

  • Return Code = 19 , Adobe Serialization

    Hey all. I downloaded Creative Suite 6 for Windows last year from the University of Maryland Terpware service and need to serialize it. They offer these instructions:
    Download the 2 files, prov.xml and adobe_prtk
    Save files to an easy found location
    Open command prompt: Win – Click start menu, type cmd into search box, right click on cmd and click run as administrator
    Navigate to file location
    put in the following command:   adobe_prtk --tool=VolumeSerialize --stream --provfile=prov.xml
    Your CS6 package should now be active
    However, when I input the command it offers this response:
              Copyright 2014 Adobe Systems Incorporated
              All rights reserved.
    Return Code = 19
    And the Serialization is incomplete. I've tried placing the two files into a folder and moving it to System32, but no luck? How can I rectify this? Thanks.

    Not sure if you have generated the prov.xml file for CS 6 using unique product identification (LEID). Please try generating the prov file using below command.
    adobe_prtk --tool=Serialize --leid=LEID --serial=serialNum --adobeid=AdobeID
    You may visit the link below for more information on this.
    http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/AdobeProvisionin gToolkitEnterpriseEditionTechN…
    Let us know in case you would need any further assistance on this.
    Thanks,
    Ashish

  • CS6, AAMEE 3.1 - serialization file still prompts to sign in

    So I've had the same issue I've seen other's dealing with - pretty much exactly the same as http://forums.adobe.com/message/4467285.  I've placed AAMEE 3.1 trial packages of my volume-licensed suite into a master image and deployed it to other computers (using WDS).  I created the serialization file with AAMEE 3.1 and have tried to run those on the computers with the trial packages.  I am running:
    AdobeSerialization.exe --tool=VolumeSerialize
    The prov.xml file is in the same folder, but just for the sake of being thorough I added the --provfilie=[path] bit.  I also saw a reference to a "--stream" parameter.  I have no idea what it does but I tried it to.  All of these attempts result in a result code of 0 and the programs in the suite open.  However, the program immediately requests that the user signs in with an Adobe ID.  It's ridiculous because it reports that I now have approximately 90 years until the software stops working.  This is super obnoxious that my users have to dismiss this message each time they wish to load an Adobe product.  What am I missing here?  How can I just make my programs run with no pop-ups like they always used to?  Thanks.

    Hi I have the same problem in that after using the previously created prov file, the software insists that I sign in with an Adobe ID, and like tomferratt, I do not intend to ask my uses to dismiss this message everytime they wish to use your products, I have tried this so called fix you have mentioned above but to no avail, surely there must be an easier way to license your products for users who do not, nor ever will be able to connect to the internet. It seems that Adobe are trying to dictate that all users who have the misfortune to require their products to do a job need to be internet connected, well in the real world this is not an option for everyone, so please please please come up with a solution that is easy and stress free for us poor users who cannot connect to the intenet from our office enviroment.

Maybe you are looking for

  • Multiple repeating SubForms binding to the same data node

    Having multiple repeating SubForms binding to the same data node : In our documents, many times we need to display information from same table in multiple locations. For example, if document displays information of Insureds on one page and informatio

  • Dynamic columns in ALV

    Dear Experts, I want to display dynamc columns in ALV, how it possible. venkey

  • OCI-22303 in by OCITypeByName

    Hi, I am getting an error OCI-22303 when trying to use OCITypeByName method. Basically I am trying to use publish-subscribe notification mode to get get notification whenever a new message comes in the queue. I am able to register my callback functio

  • Problem with EHPi SDT display

    Hi, We are doing EHP4 Upgrade from a EHP4 Ready SR1 system on AIX 5.3/DB2 UDB. While running EHPi with SDT version 7.00 and using the command ./STARTUP guistart=on it is invoking the SDT Gui initial screen(the famous SAPinst Gui first screen with fac

  • HTML and how Flash can handle this???

    Hello everyone, A while ago now I  can across a component that you could place in flash and it would let you view html web pages from within flash. Now the  frustrating this is that i cannot remember where I saw it and what the name of the component