Not able to expand Treetable structure programmatically

We had implemented expanding Treetable structure programmatically. But when we are uptaking our UI to PS4, the expand operation is not working and we are getting exceptions.
We are expanding Treetable through program, for example when try to expand first child of first node, we are passing Disclosed keys like 0,0 to the Treetable using the setDisclosedRowKeys() method.
While trying to expand we are getting the following exception:
No data found for key 0, 0
ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #5
Please correct me if I miss anything.

this code works for me..
disclosedRowKeys="#{pageFlowScope.orderBean.disclosedTreeRowKeySet}"
rowDisclosureListener="#{pageFlowScope.orderBean.rowDisclosureListener}">
public void rowDisclosureListener(RowDisclosureEvent rowDisclosureEvent)
Iterator added = rowDisclosureEvent.getAddedSet().iterator();
if (added!=null)
while (added.hasNext())
Object rowKey = added.next();
//disclosedTreeRowKeySet.clear();
List path = (List)rowKey;
for( int i=0; i< path.size(); i++ )
List<Object> nodePath = new ArrayList<Object>();
for( int j=0; j<i; j++ )
nodePath.add( path.get( j ) );
disclosedTreeRowKeySet.add( nodePath );
disclosedTreeRowKeySet.add( rowKey );
System.out.println( "disclosed Keys...... " + disclosedTreeRowKeySet );
private void expandSelectedFundingNode(RowKeySet addedObj) {
if (sourceTreeTable != null) {
Iterator added = (Iterator)addedObj.iterator();
if (added!=null)
while (added.hasNext())
Object rowKey = added.next();
List path = (List)rowKey;
for( int i=0; i< path.size(); i++ )
List<Object> nodePath = new ArrayList<Object>();
for( int j=0; j<i; j++ )
nodePath.add( path.get( j ) );
disclosedTreeRowKeySet.add( nodePath );
disclosedTreeRowKeySet.add( rowKey );
sourceTreeTable.setDisclosedRowKeys(disclosedTreeRowKeySet);
}

Similar Messages

  • Not able to save keyfigure structure

    Hi All,
    Iam not able to save keyfigure structure which is used in specific query only and Iam able to save characteristic structure.
    Regards
    S

    Hello,
    firstly run a check in the query designer to check for syntactical errors.
    make sure that you are having only 2 structures in the query.System will not allow to define third structure.
    In the keyfigure structure,see if you have defined your selections and formulas correctly.
    If you have cell definitin, do check for correctness of the same.
    Please provide the exact error message you are getting when you are saving.
    Regards,
    Dhanya.

  • Not able to expand tool button in Acrobat 9.0

    I have implemented a plugin which contain two Tool buttons using Acrobat SDK 7.0.
    I created a "Flyout" using function AVToolBarNewFlyout(). I am adding those two tool buttons into this Flyout using function
    AVToolBarAddButton() and at last I am doing AVToolButtonSetFlyout().
    When I load this Plugin into Acrobat version 7 and 8 the flyout is working fine (where I can expand tool button) with or without opening any document in Acrobat window.
    The problem is when I load the same Plugin into Acrobat version 9 the Flyout is working fine (where I can expand tool button) only when the document is opened in Acrobat window.
    I am not able to expand tool button if active document is not present.
    Please help me..

    Hi Leonard,
    Please find the below Source code:
    Creating toolbar using AVToolBarNew function.
    AVToolBarPositionRec positionRec;
    memset(&positionRec, 0, sizeof(AVToolBarPositionRec));
    positionRec.size = sizeof(AVToolBarPositionRec);
    positionRec.inDoc = true;
    positionRec.dockPosition = kAVToolBarDockTop;
    positionRec.stackNum = 1;
    positionRec.offset= ASMAXInt32;
    positionRec.order = ASMAXInt32;
    positionRec.hidden = false;
    CreateButtonsFromDescriptors (toolBar);
    AVAppRegisterToolBarPosition("Our Plugin Toolbar", false, &positionRec);
    //This is the function to create flyout for toolbutton.
    static void CreateButtonsFromDescriptors (AVToolBar target)
    PIButtonDesc *buttonInfo = gButtonInfo;
    ASInt32 *buttonOrder = gButtonOrder;
    AVExecuteProc commonExecCallback;
    AVComputeEnabledProc commonEnableCallback;
    // Create our toolbuttons.
    while (*buttonOrder != 0)
    // Create the main toolbutton.
    AVToolButton toolButton = AVToolButtonNew (ASAtomFromString("Button 1")/*(buttonInfo->buttonName)*/, NULL, false, false);
    // Creating our common callbacks.
    AVToolButtonSetHelpText (toolButton, "Button 1");
    buttonInfo++;
    // Create the rest of the buttons in the section on a flyout toolbar.
    if (*buttonOrder > 1)
    AVToolBar flyout = AVToolBarNewFlyout();
    for (ASInt32 i = 1; i < *buttonOrder; i++)
    AVToolButton tButton = AVToolButtonNew (ASAtomFromString( "Button 2"/*buttonInfo->buttonName*/), NULL, false, false);
    //Creating our common callbacks.
    AVToolButtonSetHelpText (tButton,"Button 2");
    AVToolBarAddButton (flyout, tButton, false, NULL);
    buttonInfo++;
    // Add flyout to button.
    AVToolButtonSetFlyout (toolButton, flyout);
    // Finally, add button to target toolbar.
    AVToolBarAddButton (target, toolButton, true, NULL);
    buttonOrder++;
    With the above Source code I am creating a Plugin.When I added this Plugin into Acrobat 7 and 8 I am able to expand the ToolButton( i.e flyout ) with or without active document.
    But when I load the same Plugin into Acrobat 9 I am able to expand Toolbutton( i.e Flyout ) only when the active document is Present.If active document is not present in Acrobat window I am not able to expand the Tool Button( i.e Flyout ).
    Thank you,
    Santhosh

  • TS1702 Selection handles in pages app not working.I am only able to select. Not able to expand .What should I do?

    Selection handles in Pages App is not working suddenly. I can select a word or cell,but I am not able to drag it.What to do?

    Hi mafiose15,
    Thanks for visiting Apple Support Communities.
    Restoring your iPod to factory settings is the best way to try and get it back to working order. You can use the instructions below to restore it:
    How to restore iPod
    Verify that you have an active Internet connection, because you may need to download new versions of the iTunes and iPod Software.
    Download and install the latest version of iTunes if necessary.
    Open iTunes. Connect your iPod to your computer using the USB or FireWire cable that came with your iPod.
    After a few moments, your iPod will appear in the Source panel in iTunes.
    Select your iPod in the Source panel. You will see information about your iPod appear in the Summary tab of the main iTunes window.
    Click Restore.
    If you are using a Mac, you will be asked to enter an administrator’s name and password.
    A progress bar will appear on the computer screen, indicating that stage one of the restore process has begun. When this stage is done, iTunes will present one of two messages with instructions specific to the iPod model you are restoring.
    Disconnect iPod and connect it to iPod Power Adapter (typically applies to older iPod models).
    Leave iPod connected to computer to complete restore (typically applies newer iPod models).
    During stage two of the restore process, the iPod displays an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remain connected to the computer or iPod power adapter during this stage.
    Note: The progress bar may be difficult to see, because the backlight on the iPod display may be off.
    After stage two of the restore process is complete, the iTunes Setup Assistant window will appear. It will ask you to name your iPod and choose your syncing preferences, as it did when you connected your iPod for the first time.
    You can find the instructions in this article:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    All the best,
    Jeremy

  • Not able to clear return structure in BAPI_ALM_ORDER_MAINTAIN

    Hi,
    I'm having a problem with the return structure in BAPI_ALM_ORDER_MAINTAIN where it's keeping all the records and I can't seem to clear the structure. I've tried sending in a blank return table from webdynpro, but the bapi still remembers any messages from the same session and returns them back. Does anyone know how to clear this structure so that it only returns the messages for the current call? Thanks.
    Joanna

    Joanna,
    When you us BAPI its normally unidirectional as far as return is concerned. You have to ge the return values from R/3. When you map the BAPI to context in the component controller the data from the BAPI is transferred to the controller context on the invalidate method of the node. If you want the controller context node to consist some other value then you can write into that node manually and the value will remain there till you invalidate the node. Remember if you want new values in Return then you need to run the BAPI again.
    I hope this answers your question.
    Regards,
    Anand

  • Not able to see hierarchial org structure by clicking on Expand this branch

    Dear experts,
    I am currently using the Online data extraction via sap for Nakisa Integration with SAP Landscape.
    I have completed the configuration of Nakisa with the help of configuration guide and administrator guide - After completing administrator steps the org chart is visible - When i navigate to the org structure i can see the org unit under the org structure root that i configured as an administrator in the general settings section.
    When i click the + sign ie on expand this branch i am not able to see all teh org units under the displayed branch.
    Can you please guide me regarding how one can view the org structure below the selected branch when i click on expand this branch section.
    Manager Personnel Id is not maintained for this org unit - Should the user clicking on the expand this branch be the manager of the org unit to see the org structure.
    Regards
    HKishan

    Dear Luke,
    I am not able to see that navigation icons within an org chart box - The org unit that is displayed on clicking the orgchart does have branches in SAP but i am not able to see these navigation icons that lead me to these branches.
    Is there any specific step that needs to be done to see these branches.
    By the way what is the log file you are refering to is it the "PresentationResources.xml " or is it any other log file.
    Regards
    Hkishan

  • Iam not able to find Header, Navigation and Structure options in. I am using Dreamweaver CS6

    Iam not able to find Header, Navigation and Structure options in Insert Panel. I am using Dreamweaver CS6

    I've updated and now the problem solved. Thank you very much Ben...

  • Complaint - Structured Product - Not able to see the componentitem details.

    Hi.
    <b>First Question:</b>
    I have a Structured Product (For eg. a Structured Producted is called Desktop Computer. It has two items say Monitor, Mouse.) In my complaint transaction, when I add this product, I dont see the components within it which are associated in the SAP GUI.
    Note: In the Item Category determination for the header product, I have chosen the option 'Single Level explosion of structured products'.
    But still I am not able to see the items when I add this Structured product to the complaint transaction. Can anybody throw any light as to what could be missing ?
    <b>Second Question:</b>
    Will the component items be visible in the ICSS. I am only seeing the product header  but not seeing the items within it. What could be mising here ?

    Hi,
    For marketing there is a standard Busines rolle MARKETINGPRO with
    PFCG Rolle  SAP_CRM_UIU_MKT_PROFESSIONAL. Please check whether it is also valid for
    Utilities.
    I dont see any Marketing workcenters and Links in the "SAP_CRM_UIU_UTIL_IC_LEAN_AGENT" Rolles.
    Regards,
    Usman

  • Not able to see the navigation structure in 'System Administration'

    Hello All
    I have installed CE7.1 SR3, now I want to SSO between the ECC system.
    I am not able to find the navigation under 'System Administration' >> 'System configuration' >>.....KEY STORE ADMINISTRATION......
    Can anyone help me in making SSO with CE and ECC6.0
    Thanks

    Hi
    access this url
    http://<host>:<port>/webdynpro/dispatcher/sap.com/tclmitsamuimainframe~wd/FloorPlanApp?applicationID=com.sap.itsam.cfg.sec.keystore&isLocal=true
    OR
    1. http://<host>:<port>/nwa
    2. Configuration Management
    3. Cerificate and keys
    Regards
    Shridhar Gowda
    p.s: close the thread if issue is solved.

  • After system restore ,we are not able to activate the windows,while login to systems getting an error 0x800700B7

    after system restore ,we are not able to activate the windows, while login to systems getting an error 0x800700B7
    Cont-8096688758

    hi Jain,
    you may need to check the transfer structures,
    right click infosource and 'change', click 'comm.structure'/expand,
    click 'transfer', move the 0BASE_UOM from left to right side,
    or if you wont use the comm structure anymore, you can right click infosource and 'delete comm structure'
    hope this helps.

  • Not able to find the related datasources ,, help..

    Hi Experts ,
    BI with CRM
    I am trying to find the relavent Datasources for the below mentioned Tables in CRM ,,plz help to find out the relavent Datasources ,,,I tried in all forms ,but not able to find ,, need your help.
    Thanks in advance
    Table ::
    CRMD_MKTATTR_SET----->>> Datasource???
    COMD_PAYPLAN_DC----->>> Datasource???
    COMD_PAYPLAN_D------->>> Datasource???
    TB033----
    >>> Datasource???
    ZUCORDSET----
    >>>>>Datasource???
    Regards
    Ramana

    package com.elevenworks.swing.treetable;
    //Here i dont have this dependency code
    //So i want a jar file for that
    import org.jdesktop.swingx.JXTreeTable;
    import javax.swing.*;
    import javax.swing.tree.TreeCellRenderer;
    import java.awt.*;
    public class BrushedMetalTreeCellRenderer implements TreeCellRenderer
         protected JLabel label;
         public BrushedMetalTreeCellRenderer()
              label = new JLabel();
         public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
              label.setForeground(Color.BLACK);
              if (selected)
                   Component vRenderPane = tree.getParent();
                   if (vRenderPane != null)
                        JXTreeTable vTable = (JXTreeTable)vRenderPane.getParent();
                        if (vTable != null)
                             if (vTable.hasFocus())
                                  label.setForeground(Color.WHITE);
              label.setText(value.toString());
              return label;
    }

  • Not able to functions in the expression editor

    Hi,
    I have Installed ODI "11.1.1.5".
    While doing the column mapping I am not able to see any default functions (which will be on bottom left side) like string functions,math functions.....etc in the expression editor....but I am able to see the all the tree structure on the right side like global variables,local variables,odiref functions....etc....
    Please help me out on this......
    regards,
    Sai.

    Hi Sai,
    In mapping property (when you select a mapping column in interface) > implementation tab > you can find pencil image, click the same icon it will open a Expression Edition window where you can find string functionality, math function etc
    Eg: in Expression Edition window you can find functions for String, expand String and you can find String functions. For Math, expand Operators and you can find Math operators like +, _, * etc.,
    Regards,
    Phanikanth

  • Not able to activate the transfer rule and change the transfer rule plz adv

    hello friuends..
    i m not able to change my transfer rule . i m getting below msg.
    InfoObject 0BASE_UOM of communication structure still being used
    Message no. RSAR741
    Diagnosis
    The deletion of the communication structure for InfoSource 8ZPOS_O13 is not possible. InfoObject 0BASE_UOM of the communication structure is still being used. This use must be undone first.
    Concretely the communication structure of an InfoSource can only be deleted if there are no update rules for InfoCubes and no transfer structures for source systems for this InfoSource.
    System response
    Activity was finished without database change.
    Procedure
    Check the use of your InfoSource 8ZPOS_O13 in the transfer structures. Delete all existing transfer structures of your InfoSource 8ZPOS_O13.
    Check the use of your InfoSource 8ZPOS_O13 in update rules for InfoCubes. Delete all existing update rules for your InfoSource 8ZPOS_O13.
    Afterwards, you can delete your communication structure for InfoSource 8ZPOS_O13.
    where as i have deleted all update rule for the infosource ZPOS_O13 . but still i m not able to change it .
    I have check ed it and it not lock in any req . so please let me know how can i proceed .
    Thanks in advance.

    hi Jain,
    you may need to check the transfer structures,
    right click infosource and 'change', click 'comm.structure'/expand,
    click 'transfer', move the 0BASE_UOM from left to right side,
    or if you wont use the comm structure anymore, you can right click infosource and 'delete comm structure'
    hope this helps.

  • Not able pass the data from component to other component.

    Hello All
    I am not able pass the data from component to other component.
    I have done like this.
    1 Main Component (Parent component ) having below  two child components.Embeded as used components.
    2)     Search Component  and Details Component
    3)     In the Search Component having buttons,  Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
    4)     When I am clicking above button u201CXu201D raising the event to call the parent   business logic method, there I am getting  Structure with values and binded this structure to the node and Mapped this node to the Details component  interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
    5)     In the Details component node data is not coming mean empty.
    Thanks in Advance.
    Br-
    CW
    Edited by: CarlinWilliams on Jul 4, 2011 9:21 AM

    Hi,
    When you use input Ext. check that the parent component should not be used as used component in child component.
    Only in the parent component the child components should be used as used components and the usage has to be created for the
    Child Components and the binding of the Node should be done from comp. controller of parent component to child node
    by which you will be able to see double arrow against the node.This should work
    Thanks,
    Shailaja Ainala.

  • OC4J: marshalling does not recreate the same data structure onthe client

    Hi guys,
    I am trying to use OC4J as an EJB container and have come across the following problem, which looks like a bug.
    I have a value object method that returns an instance of ArrayList with references to other value objects of the same class. The value objects have references to other value objects. When this structure is marshalled across the network, we expect it to be recreated as is but that does not happen and instead objects get duplicated.
    Suppose we have 2 value objects: ValueObject1 and ValueObject2. ValueObject1 references ValueObject2 via its private field and the ValueObject2 references ValueObject1. Both value objects are returned by our method in an ArrayList structure. Here is how it will look like (number after @ represents an address in memory):
    Object[0] = com.cramer.test.SomeVO@1
    Object[0].getValueObject[0] = com.cramer.test.SomeVO@2
    Object[1] = com.cramer.test.SomeVO@2
    Object[1].getValueObject[0] = com.cramer.test.SomeVO@1
    We would expect to see the same (except exact addresses) after marshalling. Here is what we get instead:
    Object[0] = com.cramer.test.SomeVO@1
    Object[0].getValueObject[0] = com.cramer.test.SomeVO@2
    Object[1] = com.cramer.test.SomeVO@3
    Object[1].getValueObject[0] = com.cramer.test.SomeVO@4
    It can be seen that objects get unnecessarily duplicated – the instance of the ValueObject1 referenced by the ValueObject2 is not the same now as the instance that is referenced by the ArrayList instance.
    This does not only break referential integrity, structure and consistency of the data but dramatically increases the amount of information sent across the network. The problem was discovered when we found that a relatively small but complicated structure that gets serialized into a 142kb file requires about 20Mb of network communication. All this extra info is duplicated object instances.
    I have created a small test case to demonstrate the problem and let you reproduce it.
    Here is RMITestBean.java:
    package com.cramer.test;
    import javax.ejb.EJBObject;
    import java.util.*;
    public interface RMITestBean extends EJBObject
    public ArrayList getSomeData(int testSize) throws java.rmi.RemoteException;
    public byte[] getSomeDataInBytes(int testSize) throws java.rmi.RemoteException;
    Here is RMITestBeanBean.java:
    package com.cramer.test;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.util.*;
    public class RMITestBeanBean implements SessionBean
    private SessionContext context;
    SomeVO someVO;
    public void ejbCreate()
    someVO = new SomeVO(0);
    public void ejbActivate()
    public void ejbPassivate()
    public void ejbRemove()
    public void setSessionContext(SessionContext ctx)
    this.context = ctx;
    public byte[] getSomeDataInBytes(int testSize)
    ArrayList someData = getSomeData(testSize);
    try {
    java.io.ByteArrayOutputStream byteOutputStream = new java.io.ByteArrayOutputStream();
    java.io.ObjectOutputStream objectOutputStream = new java.io.ObjectOutputStream(byteOutputStream);
    objectOutputStream.writeObject(someData);
    objectOutputStream.flush();
    System.out.println(" serialised output size: "+byteOutputStream.size());
    byte[] bytes = byteOutputStream.toByteArray();
    objectOutputStream.close();
    byteOutputStream.close();
    return bytes;
    } catch (Exception e) {
    System.out.println("Serialisation failed: "+e.getMessage());
    return null;
    public ArrayList getSomeData(int testSize)
    // Create array of objects
    ArrayList someData = new ArrayList();
    for (int i=0; i<testSize; i++)
    someData.add(new SomeVO(i));
    // Interlink all the objects
    for (int i=0; i<someData.size()-1; i++)
    for (int j=i+1; j<someData.size(); j++)
    ((SomeVO)someData.get(i)).addValueObject((SomeVO)someData.get(j));
    ((SomeVO)someData.get(j)).addValueObject((SomeVO)someData.get(i));
    // print out the data structure
    System.out.println("Data:");
    for (int i = 0; i<someData.size(); i++)
    SomeVO tmp = (SomeVO)someData.get(i);
    System.out.println("Object["+Integer.toString(i)+"] = "+tmp);
    System.out.println("Object["+Integer.toString(i)+"]'s some number = "+tmp.getSomeNumber());
    for (int j = 0; j<tmp.getValueObjectCount(); j++)
    SomeVO tmp2 = tmp.getValueObject(j);
    System.out.println(" getValueObject["+Integer.toString(j)+"] = "+tmp2);
    System.out.println(" getValueObject["+Integer.toString(j)+"]'s some number = "+tmp2.getSomeNumber());
    // Check the serialised size of the structure
    try {
    java.io.ByteArrayOutputStream byteOutputStream = new java.io.ByteArrayOutputStream();
    java.io.ObjectOutputStream objectOutputStream = new java.io.ObjectOutputStream(byteOutputStream);
    objectOutputStream.writeObject(someData);
    objectOutputStream.flush();
    System.out.println("Serialised output size: "+byteOutputStream.size());
    objectOutputStream.close();
    byteOutputStream.close();
    } catch (Exception e) {
    System.out.println("Serialisation failed: "+e.getMessage());
    return someData;
    Here is RMITestBeanHome:
    package com.cramer.test;
    import javax.ejb.EJBHome;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    public interface RMITestBeanHome extends EJBHome
    RMITestBean create() throws RemoteException, CreateException;
    Here is ejb-jar.xml:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateful )</description>
    <display-name>RMITestBean</display-name>
    <ejb-name>RMITestBean</ejb-name>
    <home>com.cramer.test.RMITestBeanHome</home>
    <remote>com.cramer.test.RMITestBean</remote>
    <ejb-class>com.cramer.test.RMITestBeanBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    And finally the application that tests the bean:
    package com.cramer.test;
    import java.util.*;
    import javax.rmi.*;
    import javax.naming.*;
    public class RMITestApplication
    final static boolean HARDCODE_SERIALISATION = false;
    final static int TEST_SIZE = 2;
    public static void main(String[] args)
    Hashtable props = new Hashtable();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    props.put(Context.PROVIDER_URL, "ormi://lil8m:23792/alexei");
    props.put(Context.SECURITY_PRINCIPAL, "admin");
    props.put(Context.SECURITY_CREDENTIALS, "admin");
    try {
    // Get the JNDI initial context
    InitialContext ctx = new InitialContext(props);
    NamingEnumeration list = ctx.list("comp/env/ejb");
    // Get a reference to the Home Object which we use to create the EJB Object
    Object objJNDI = ctx.lookup("comp/env/ejb/RMITestBean");
    // Now cast it to an InventoryHome object
    RMITestBeanHome testBeanHome = (RMITestBeanHome)PortableRemoteObject.narrow(objJNDI,RMITestBeanHome.class);
    // Create the Inventory remote interface
    RMITestBean testBean = testBeanHome.create();
    ArrayList someData = null;
    if (!HARDCODE_SERIALISATION)
    // ############################### Alternative 1 ##############################
    // ## This relies on marshalling serialisation ##
    someData = testBean.getSomeData(TEST_SIZE);
    // ############################ End of Alternative 1 ##########################
    } else
    // ############################### Alternative 2 ##############################
    // ## This gets a serialised byte stream and de-serialises it ##
    byte[] bytes = testBean.getSomeDataInBytes(TEST_SIZE);
    try {
    java.io.ByteArrayInputStream byteInputStream = new java.io.ByteArrayInputStream(bytes);
    java.io.ObjectInputStream objectInputStream = new java.io.ObjectInputStream(byteInputStream);
    someData = (ArrayList)objectInputStream.readObject();
    objectInputStream.close();
    byteInputStream.close();
    } catch (Exception e) {
    System.out.println("Serialisation failed: "+e.getMessage());
    // ############################ End of Alternative 2 ##########################
    // Print out the data structure
    System.out.println("Data:");
    for (int i = 0; i<someData.size(); i++)
    SomeVO tmp = (SomeVO)someData.get(i);
    System.out.println("Object["+Integer.toString(i)+"] = "+tmp);
    System.out.println("Object["+Integer.toString(i)+"]'s some number = "+tmp.getSomeNumber());
    for (int j = 0; j<tmp.getValueObjectCount(); j++)
    SomeVO tmp2 = tmp.getValueObject(j);
    System.out.println(" getValueObject["+Integer.toString(j)+"] = "+tmp2);
    System.out.println(" getValueObject["+Integer.toString(j)+"]'s some number = "+tmp2.getSomeNumber());
    // Print out the size of the serialised structure
    try {
    java.io.ByteArrayOutputStream byteOutputStream = new java.io.ByteArrayOutputStream();
    java.io.ObjectOutputStream objectOutputStream = new java.io.ObjectOutputStream(byteOutputStream);
    objectOutputStream.writeObject(someData);
    objectOutputStream.flush();
    System.out.println("Serialised output size: "+byteOutputStream.size());
    objectOutputStream.close();
    byteOutputStream.close();
    } catch (Exception e) {
    System.out.println("Serialisation failed: "+e.getMessage());
    catch(Exception ex){
    ex.printStackTrace(System.out);
    The parameters you might be interested in playing with are HARDCODE_SERIALISATION and TEST_SIZE defined at the beginning of RMITestApplication.java. The HARDCODE_SERIALISATION is a flag that specifies whether Java serialisation should be used to pass the data across or we should rely on OC4J marshalling. TEST_SIZE defines the size of the object graph and the ArrayList structure. The bigger this size is the more dramatic effect you get from data duplication.
    The test case outputs the structure both on the server and on the client and prints out the size of the serialised structure. That gives us sufficient comparison, as both structure and its size should be the same on the client and on the server.
    The test case also demonstrates that the problem is specific to OC4J. The standard Java serialisation does not suffer the same flaw. However using the standard serialisation the way I did in the test case code is generally unacceptable as it breaks the transparency benefit and complicates interfaces.
    To run the test case:
    1) Modify provider URL parameter value on line 15 of the RMITestApplication.java for your environment.
    2) Deploy the bean to the server.
    4) Run RMITestApplication on a client PC.
    5) Compare the outputs on the server and on the client.
    I hope someone can reproduce the problem and give their opinion, and possibly point to the solution if there is one at the moment.
    Cheers,
    Alexei

    Hi,
    Eugene, wrong end user recovery.  Alexey is referring to client desktop end user recovery which is entirely different.
    Alexy - As noted in the previous post:
    http://social.technet.microsoft.com/Forums/en-US/bc67c597-4379-4a8d-a5e0-cd4b26c85d91/dpm-2012-still-requires-put-end-users-into-local-admin-groups-for-the-purpose-of-end-user-data?forum=dataprotectionmanager
    Each recovery point has users permisions tied to it, so it's not possible to retroacively give the users permissions.  Implement the below and going forward all users can restore their own files.
    This is a hands off solution to allow all users that use a machine to be able to restore their own files.
     1) Make these two cmd files and save them in c:\temp
     2) Using windows scheduler – schedule addperms.cmd to run daily – any new users that log onto the machine will automatically be able to restore their own files.
    <addperms.cmd>
     Cmd.exe /v /c c:\temp\addreg.cmd
    <addreg.cmd>
     set users=
     echo Windows Registry Editor Version 5.00>c:\temp\perms.reg
     echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\ClientProtection]>>c:\temp\perms.reg
     FOR /F "Tokens=*" %%n IN ('dir c:\users\*. /b') do set users=!users!%Userdomain%\\%%n,
     echo "ClientOwners"=^"%users%%Userdomain%\\bogususer^">>c:\temp\perms.reg
     REG IMPORT c:\temp\perms.reg
     Del c:\temp\perms.reg
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

Maybe you are looking for

  • Animated Gif as an ICNS

    Hi Everyone, please could you help me, i am trying to change my External USB hard drive icon to a Animated gif with a flashing blue light i have created the gif and put it through img2icns but that doesn't seem to work, so my question is 1 if it is p

  • Bamboo tablet stops working? USB uses too much power?

    Dear sirs, Converted to macbook a year ago and so far I haven't had any problems, until this happened... I bought my new bamboo tablet less than three months ago and recently it has stopped working at random times- and then, this message pops up. "US

  • Library items/javascript/paths

    i am rebuilding a company website which uses a library item for their navigation: http://www.curiouspictures.com/ i am simply cleaning up the html and all unnecessary files/folders/etc. i have a new navigation layout that was built from this particul

  • GL_JE_HEADER table : Posted date not update properly

    Hi All, I have seen that for few of the journals created inside GL,  The posted date inside the GL_JE_HEADER table is update with a date instead of time stamp. i.e  the posted date column is updated as '7/08/2013'  instead of  '7/08/2013 4:40:39 AM'

  • Other Macs Can't Connect To My Shared Folders...

    I have 3 macbook pros in my house, all running 10.5.4 Leopard, and only one has this problem and I don't know why: The other 2 computers can see my computer under "Shared" in the Finder, and clicking on it connects the computers successfully as "gues