Bussiness object serialization problem

Hi, I have a little problem with serialization, when I want to create xml from Business object. Example:
MyBoObject obj = new MyBoObject ();
obj.atr1 = "aaa";
obj.atr2 = "bbb";
String xml = DynamicXml.createXmlTextFor(object : obj, topLevelTag : "something");
display(xml);
And displayed result is:
<something>
<atr2>bbb</atr2>
</something>
atr1 is attribute, which is inherited from db table.
atr2 is atribute, which I created (it is not inherited from db table)
Whole problem is, that it only serialize atr2 - from some reason it completely ignores atr1 and his value.
Like I can't serialize attributes, which are inherited from db table.
But when I created new attribute atr2 in my Business Object (which is not inherited from db table), everything work ok. Where's the problem? I read docs, but found nothing...
Edited by: user12189610 on Nov 9, 2009 2:42 AM
Edited by: user12189610 on Nov 9, 2009 2:46 AM

If you need a simple project that duplicates this problem for customer support, here's where I put one: http://www.4shared.com/file/181611971/d21e9444/_2__DynamicXMLBug.html.
Have them import the project, start Studio's Engine, login as "test" and start the Workspace. Create a work item instance and then run the work item when it reaches the "Test" activity. When you run the logic, you'll see this displayed:
<?xml version="1.0" encoding="UTF-8"?>
<poHeir xmlns="http://bea.com/albpm/DynamicXml/version/2.0">
    <nameForPO>Dan</nameForPO>
</poHeir>They should note that only the "nameForPO" tag is created by the DynamicXml.createXmlTextFor() method. "nameForPO" is an attribute I manually added to the XML Heir BPM Object. The attributes of the inherited heir (e.g. "poHeir.orderDate" and "poHeir.billTo") are not included as tags in the generated XML even though these attributes have been set in the logic.

Similar Messages

  • 2D objects Serialization problem

    Welcome!
    I'm making a net game using RMI and I have this problem.
    When I'm trying to join my client with the server an error occures:
    Error: error marshalling arguments; nested exception is:
         java.io.NotSerializableException: java.awt.geom.Ellipse2D$Double
    My client contains an Object extending a JPanel class. There are 2D object used to make the map, and that's why this error occures.
    It's a funny thing, cause I'm not sending a whole Object of my client, but only it's refference (using "this" in the join() method) so I dont know why does the 2D object need to be serialized and sent :|?
    Any way, my question is how to make 2D objects serializable!? I have jdk1.5.0_06 and as far as I remember they should be srializable in this version. Mabey I'm dooing something wrong!? Mabey it's nessesary to ad an appropreate code-line or import sth... i don't know
    please help me... I have little time to finish my project, and this thing is blocking my work.
    Big thanks to anybodey who will help.
    regards floW

    I'll tel u the whole story then, my problem is as follows:
    public class BounceThread{
       public static void main(String[] args)   {
          JFrame ramka = new BounceFrame();
             ramka.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             ramka.setVisible(true);
    class BounceFrame extends JFrame{
    public BounceFrame()
          setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
          setTitle("MiniGolf v 1.0");
          panel = new BallPanel(); // this contains maps made with 2D objects
          panel.setBackground(Color.green);
          panel.setVisible(panel.czy_wida&#263;_panel());
          add(panel, BorderLayout.CENTER);
    // I add a menu bar, that starts a net game:
    JMenuBar pasekMenu = new JMenuBar();
              setJMenuBar(pasekMenu);
              JMenu menuGra = new JMenu("Game");
           // and so on... and finaly I add an option:
              menuGame_Nowa.add(new
                        AbstractAction("Net game")
                             public void actionPerformed(ActionEvent event)
                                  net_game(panel);
    // here i write my net_game method:
    public void net_game(BallPanel aPanel)
         //here, i make an Client object, and connect him with my server
         client = new mgClient(panel);
         client.join();
         // I give panel as a paramete, cause I cant think of another way of leting my server to uce it's (panels) methods
         // If I join only a name of my client, then how can I change the panel in my BounceFrame from the Clients method
         // "shouted" by the server!? It has to be a field in the client's object.
         // Is there any other way out!?
    // Class BouceFrame holds the panel as a field:
    private mgClient client;
    private BallPanel panel;
    //and so on...
    }and that's the real problem I'm facing here. Is there any solution!? I think, that making a Client's field out of my panel is the only way ot. And that means I need those 2D objects serialized... :(
    Please help if u can.
    Regards floW

  • Applet-servlet communication, object serialization, problem

    hi,
    I encountered a problem with tomcat 5.5. Grazing the whole web i didn't find any solution (some guys are having the same problem but they also got no useful hint up to now). The problem is as follows:
    I try to build an applet-servlet communication using serialized objects. In my test scenario i write a serialized standard java object (e.g. a String object) onto the ObjectOutputStream of the applet/test-application (it doesn't matters wheter to use the first or the latter one for test cases) and the doPost method of the servlet reads the object from the ObjectInputStream. That works fine. But if i use customized objects (which should also work fine) the same code produces an classnotfound exception. When i try to read and cast the object:
    TestMessage e = (TestMessage)objin.readObject();
    java.lang.ClassNotFoundException: TestMessage
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ...That seems strange to me, because if i instantiate an object of the same customized class (TestMessage) in the servlet code, the webappclassloader doesn't have any problems loading and handling the class and the code works fine!
    The class is located in the web-inf/classes directory of the application. I've already tried to put the class (with and without the package structure) into the common/classes and server/classes directory, but the exception stays the same (I've also tried to build a jar and put it in the appropriate lib directories).
    I've also tried to catch a Throwable object in order to get information on the cause. But i get a "null" value (the docu says, that this will may be caused by an unknown error).
    I've also inspected the log files intensively. But they gave me no hint. Until now I've spend a lot of time on searching and messing around but i always get this classnotfound exception.
    I hope this is the right place to post this problem and i hope that there is anyone out there who can give me some hint on solving this problem.
    Kindly regards,
    Daniel

    hi, thanks for the reply,
    all my classes are in the web-inf/classes of the web-app and have an appropriate package structure. thus the TestMessage class is inside a package.
    i tried some names for the testclass but it didn't matter. the exception stays the same. I also tried to put the jar in the common/lib but the problem stays.
    Well the problem with loaded classes: As i mentioned in the post above i can instantiate an object of TestMessage in the code without any problems (so the classloader of my webapp should know the class!!)
    only when reading from the objectinputstream the classloader doesn't seem to know the class?? maybe theres a parent classloader resposible for that and doesn't know the class?
    strange behaviour...
    p.s. sending the same object from the servlet to the client works well
    regards
    daniel
    Message was edited by:
    theazazel

  • Bussiness Object Mobile Error

    Hi,
    I am a newbie to Bussiness Object Mobile .Though i have succesfully set up the environment while login i get
    jvm 104 Uncaught exception
    I am using MDS 4.1.4
    SmartPhone Simulator 5.0.0
    BO Enterprise XI SP3
    Bo Mobile
    Regards,
    Abhishek Ranjan
    Amadeus Labs

    Hi Oscar,
    No there is some problem when i try to start the services it gives
    The XI3MobileAuthServer started and then stopped.Some services stop automatically if they have no work to do,for example
    ,The Performance Log and alert services.
    The above is the message i get when i try to start the services.
    I am also not sure about the connection settings in the Simulator.
    For the time being have given this
    CMS name:BLRARANJAN:6400(This is my machine name)
    Mobile Server:(This i dont know what to give)
    Port Nbr:10011
    Auth Method:Enterprise
    Please let me know wat to give for mobile server name and if we are supposed to make any changes in the JAD file.
    Regards,
    Abhishek Ranjan
    Amadeus Labs

  • SetAttribute() makes object serializable Recursively ?

              Hi everyone,
              could anyone answer me whether httpSession.setAttribute(key, very big object)
              makes the object serializable recursively.
              What I mean is, I am storing an object bigObject in http session using setAttribute().
              This bigObject contains several other objects which are not serialized.
              But I have read that setAttribute() makes the object serializable.
              So, does it mean that all the objects stored in bigObject also will be serialized
              thanks,
              jyothi
              

    But you can't serialize an Object that isn't Serializable somewhere in it's
              inheritance. A method can't make an Object Serializable.
              "jyothi" <[email protected]> wrote in message
              news:[email protected]...
              >
              > But i read clearly some where in bea online manual that use
              setAttribute() which
              > makes the object searializable. So I wonder whether this
              setAttribute() does
              > the searlization recursively ?
              >
              > thanks,
              > jyothi
              >
              > "justin" <[email protected]> wrote:
              > >
              > >Cluster requirement is that all objects placed in a session should be
              > >serializable.
              > >So your Big objects with small object which are not serializable is going
              > >to be
              > >a problem.
              > >
              > >"jyothi" <[email protected]> wrote:
              > >>
              > >>Hi everyone,
              > >>
              > >>could anyone answer me whether httpSession.setAttribute(key, very
              > >>big object)
              > >> makes the object serializable recursively.
              > >>
              > >>What I mean is, I am storing an object bigObject in http session using
              > >> setAttribute().
              > >> This bigObject contains several other objects which are not serialized.
              > >>
              > >>But I have read that setAttribute() makes the object serializable.
              > >>
              > >>So, does it mean that all the objects stored in bigObject also will
              > >>be serialized
              > >>?
              > >>
              > >>thanks,
              > >>jyothi
              > >
              >
              

  • Serialization problem with FlashPlayer 10.1

    Hi,
    here is a message that I have post in the AS3 section (http://forums.adobe.com/message/2938096), but someone gave the hint that this section should be more appropriate.
    A call in remote method, using amf/BlazeDS, is failing for the following reason :
    "The expected argument types are  (int, myPackage.MyClassVO[])  but the supplied types were (java.lang.Double, java.lang.Object[]) and converted to (java.lang.Integer, null).
    Cannot convert typeflex.messaging.io.amf.ASObject with remote type specified as 'null' toan instance of class myPackage.MyClassVO"
    So the serialization is failing.
    MyClassVO have only int variables, so nothing fancy.
    The point is that it works perfectly with previous versions of Flash, except 10.1
    So the definitions of the VOs are not the problem.
    Does any change have been done in the new flash player, with the serialization ? Does someone have also experience serialization problems with this new flash player ?
    Thanks for any help.
    M.
    Environment : Windows 32bits (but happens on Mac OS as well)
    Flash version : WIN 10,1,53,64
    Browser : Firefox, Opera, IE... they all have the problem

    Hi,
    by digging more and more, it appears that the problem is really on flash side.
    This error appears on java side :
    "Cannot convert type flex.messaging.io.amf.ASObject with remote type specified as 'null' to an instance of class myPackage.MyClassVO
    flex.messaging.io.amf.translator.decoder.DecoderFactory.invalidType(DecoderFact ory.java:369)"
    So after a look on the function invalidType in DecoderFactory, it apprears that
    object.getClass().getName();
    returns "flex.messaging.io.amf.ASObject" instead of "myPackage.MyClassVO"
    So Java don't recieve the correct type MyClassVO, but ASObject.
    And that only in FlashPlayer 10.1, but not FlashPayer 9 or FlashPlayer 10, where Java recieve the correct type, MyClassVO.
    Any help will be gladly appreciated, I'm running out of idea !
    Thanks !
    M.

  • Create Bussiness Object in ECC 6.0

    Dear all,
    can any body tell me the detail.
    How we create a bussiness object if i have only ECC 6.0 version.
    have any another tool or licence is required.
    i m new in this field.
    Plz. help me.
    Shalini

    Hi
    When you have said ECC, it suggests a transactional system and Business Objects Offer Crystal Reports as industry standard and of course best reporting tool.
    To use Crystal Reports on top ECC transaction system, SAp Integration Kit should be installed on the system where we have installed Crystal reports. CRystal reports is a client tool.
    On installation of Integration Kit necessary drivers to connect to ECS will be installed and you can coonect to ECS and develop reports in Crystal reports.
    Now distribution of reports, if the distribution of reports is in some PDF format or crystal natve format and end uses view using Adobe r Crytsal Reports Viewer.
    But if you plan to publish the reports and distribute the reports, then you may need to go for either Crystal reports Server or Business Objects Enterprise/Edge server
    Hope this clarifies your doubt. Let me know if more information is required
    Gangadhar

  • JNDI NIS object access problem

    JNDI NIS object access problem:
    Hi all,
    After long fight, i'm now able to connect to my NIS server on my network. the initial context factory is 'com.sun.jndi.nis.NISCtxFactory' and provider url are given and i obtain namingennumeration of items in the NIS directory.
    purpose of my project:
    using ypcat command we can view the services,passwd,host... objects in unix.
    my project requirement is that i shd open this 'services' object in java (using JNDI probably) and shd access its content.
    i'm able to obtain the object and the type of this object is 'NISCtxServices' defined in 'com.sun.jndi.nis.NISCtxFactory' package, but all the classes and methods except some are not public and so im not able to use almost all the methods in this class 'NISCtxServices' .
    Can any one help me in accessing the information inside this object.
    Thanks in advance! and i'm waiting!

    It's because JFrame does not have a public progessbar variable, only your subclass has that.
    //change this
    JFrame frame = new ProgressBarDemo();
    //to this
    ProgressBarDemo frame = new ProgressBarDemo();

  • Bussiness object

    hi all
    i am looking for answers for the followings
    1) what is the bussiness object for purchase order ?
    2) how can we get the list of idoc contains an errors ?
    3)use of control form in function module ?
    thanks

    Hi,
    1. Goto Bapi tcode u can find list of all objects . For purchase order goto material mgmt and in that goto purchasing then click on purchase order , U can so purchase order object screen and method of that.
    2. For idoc error see we02 and we05.
    Rewards points if it is useful.

  • Servlet and Object Serialization

    Hi,
    I am developing a routing server in Java
    2 Instances of the same server will be running in 2 different data centers.
    The servers have a Jetty server embedded with a Servlet inside.
    Server 1 will use a GET method to talk to the Server 2 -> Servlet which will write the state of an object back which will read by Server 1 and reconstruct the object back.
    Do you find any issues in Object Serialization/DeSerialization in the Servlet.
    What are the factors that I need to consider in this case?
    Regards,
    Jana

    Make sure that your servlet handles the transaction in the same thread that doPost() or doGet() is called in.
    I ended up porting some old ServerSocket based code to a servlet, and was handing off the request and response objects to a handler thread on the server side. I ended up with a ton of intermittent errors like this.
    Once I started handling the transactions in the same thread things worked heartbreakingly well.

  • Bussiness Objects connection with R3 systems

    Hi,
    I would like to connect Bussiness Objects with R3 systems, does anyone have a tutorial or refer any note?
    Best Regards,
    Nuno Silva

    Dennis is right, the connectivity option youo have today is limited to Crystal (unless you wanted to do something purely at the DB layer), but Webi/Universes for ERP are coming in a future release.  A prototype is availble at the Innovation Center
    SAP BusinessObjects Web Intelligence Reporting for SAP ERP [original link is broken]
    Very weird.  I only posted this once, but two posts appear??????
    Edited by: Pizzaman on Oct 1, 2009 10:57 AM

  • AMF3 serialization problems, 0 instead of NaN or null

    Hi,
    When I serialize to AMF3 a BigDecimal which it's value is null, on the client Flex app side I recieve 0 instead of null or NaN.
    What I would like is that when a java variable pointed to null is serialized, on the client Flex app I recieve null or NaN(if it's a Number on the client side).
    Also when I serialize NaN from flex client I would like it to be deserialized to null on the Java side.
    Is there any way to customize that specific object serialization?
    I'm using BalzeDS AMF3 serialization classes.
    thanks in advance,
    Polaco.

    Hi,
    When I serialize to AMF3 a BigDecimal which it's value is null, on the client Flex app side I recieve 0 instead of null or NaN.
    What I would like is that when a java variable pointed to null is serialized, on the client Flex app I recieve null or NaN(if it's a Number on the client side).
    Also when I serialize NaN from flex client I would like it to be deserialized to null on the Java side.
    Is there any way to customize that specific object serialization?
    I'm using BalzeDS AMF3 serialization classes.
    thanks in advance,
    Polaco.

  • Object deserialization problems?

    A bit of a crosspost perhaps but not really sure if new to java or java programming is really the right place..anyway..i have a resultset containing object serializations..in the code below rs is a ResultSet;
    while(rs.next()){
           ObjectInputStream in = new ObjectInputStream(rs.getBinaryStream(1));
           productionRule rule = (productionRule)in.readObject();
           answer.add(rule);
         }this works on the first time round and returns the properly deserialized object in rule..which is then added to the LinkedList answer but on the second iteration the line;
           ObjectInputStream in = new ObjectInputStream(rs.getBinaryStream(1));produces an IOException with a getMessage() of Invalid Stream header
    I have no idea why this is occurring..does any one have any idea?

    The ResultSet.getBinaryStream() says the following
    Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getXXX method implicitly closes the stream. Also, a stream may return 0 when the method InputStream.available is called whether there is data available or not.
    Maybe, when you leave the first row, it is closing down the inputstream on the second row before you can read it ? Strange... but fits the symptoms.
    Could it be, that the inputstream you receive is valid for the entire resultset ? Ie. you can read multiple objects from one getBinaryStream() call on a resultset, outside of your while loop ???
    regards,
    Owen

  • Customizing Forte object serialization

    Forte supports serialization of arbitrary object graphs into streams.
    However, there do not seem to be any well documented ways to customize
    this serialization, e.g. by using a different encoding scheme. It would
    seem there must be some support in there somewhere. I suppose at the
    very least, one could parse a serialized object (once one decoded the
    Forte encoding scheme) and do the conversion from that. That seems
    suboptimal, though.
    Has anyone done this? Any thoughts on how it might be done?
    Regards,
    Coty
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/forte>

    JavaFunda wrote:
    Object serialization is the process of saving an object's state to a sequence of bytes. Does it saves only the instance variable or also the object methods(like getter and setter methods) ? Only the state--the instance variables. It doesn't save the class definition. That has to be available separately (via classloader) at deserilaization time. In other words, you cannot deserialize an instance of a class that is not on your classpath.
    Once we we write the object to outputstream or some text file, how does it get transmitted over network?The same way any other bytes get transmitted. You have a Socket. You get its OutputStream. You wrap that in an ObjectOutputStream. When you write to the ObjectOutputStream, that writes through to the Socket's OutputStream, which is responsible for putting the bytes on the wire.
    Does we write the java object to text file only duuring serialization?We write the objects to wherever the other end of the ObjectOutputStream is connected to. Just like any other I/O.

  • Runtime Object serialization

    Hi,
    Could someone explain the concept of Runtime Object Serialization with a simple example?
    Thanks

    import java.io.*;
    /* you NEED to make the class implement Serializable */
    class Client implements Serializable {
        private String name;
        private String address;
        public String getName() { return name; }
        public String getAddress() { return address; }
        public void setName(String name) { this.name = name; }
        public void setAddress(String address) { this.address = address; }
        public String toString() { return "name='" + name + "' and address= " + address + "'"; }
    public class Test17 {
        public static void main(String[] args)  throws Exception {
            ObjectOutputStream oos = new ObjectOutputStream (new FileOutputStream ("test.bin"));
            Client myClient = new Client();
            myClient.setName("Steve Jobs");
            myClient.setAddress("1 Infinite Loop; Cupertino, CA 95014");
            System.out.println (myClient);
            oos.writeObject (myClient);
            oos.close();
            ObjectInputStream ois = new ObjectInputStream (new FileInputStream ("test.bin"));
            Client yourClient = (Client) ois.readObject();
            System.out.println (yourClient);
    }Run the program above. It creates an object of the class "Client", serializes it into a file named "test.bin" and recreates the object reading it from the same file.
    Dumping the binary file you get this:
    0000    AC ED 00 05 73 72 00 06  43 6C 69 65 6E 74 F1 D7   ....sr..Client..
    0010    74 76 C4 64 FD 43 02 00  02 4C 00 07 61 64 64 72   tv.d.C...L..addr
    0020    65 73 73 74 00 12 4C 6A  61 76 61 2F 6C 61 6E 67   esst..Ljava/lang
    0030    2F 53 74 72 69 6E 67 3B  4C 00 04 6E 61 6D 65 71   /String;L..nameq
    0040    00 7E 00 01 78 70 74 00  24 31 20 49 6E 66 69 6E   .~..xpt.$1 Infin
    0050    69 74 65 20 4C 6F 6F 70  3B 20 43 75 70 65 72 74   ite Loop; Cupert
    0060    69 6E 6F 2C 20 43 41 20  39 35 30 31 34 74 00 0A   ino, CA 95014t..
    0070    53 74 65 76 65 20 4A 6F  62 73                     Steve JobsYou can see a lot of things in the serialization of the object Client - the name of the class is written, the names of the fields, the type (java/lang/String), and the values of the fields as UTF-8 encoded strings.

Maybe you are looking for

  • How do I set up pages and the rest of iWork to work with multiple users on the same iMac?

    I have iWork '09 on my new iMac.  It works fine on my my admin account, but I am trying to set up a user account for my wife on the same computer and I am having problems getting it to allow her to use it on her account. When I open it while logged i

  • Disk problem in MacBook Pro (hardware or corrupted files?)

    I am running Mac OS X 10.6.8 on a 15" MBP 2.33 GHz Intel Core 2 Duo with 3 GB RAM (added 1 to the original setup.) A few months ago I replaced the original 120 GB hard drive, as it was getting full and making my computer slower. The new one is a 350

  • Cash Journal (Withholding tax)

    Hi guru While making payment to vendor through cash journal i am unable to deduct the wihholding tax, the withholding tax screeen is in grey view. I have maintian W tax key  for Inv and Pay and tick on liable but still i am unable to deduct the w tax

  • Deploying EAR files in PI 7.1

    Hello, we are currently upgrading our XI 3.0 system to PI 7.1. We had developed some adapter modules for XI 3.0 and we have compiled them with new libraries for using in PI 7.1. But how can we deploy the created EAR-files in PI 7.1 now? In XI 3.0 we

  • SPA122 with 1.2.1 won't save certain DTMF settings

    Upon upgrading the SPA122 to firmware 1.2.1 I found that outbound DTMF tones were no longer being seen properly by remote systems.  Using the device web interface and changing the Line 1 "DTMF Tx Method" to "InBand" (using "Submit") successfully fixe