How to pass the object of one class to the another class?

Hello All,
My problem is i am sending the object of serializable class from one class to another class but when i collection this class into another it is transfering null to that side even i filled that object into the class before transfer and the point is class is serializable
code is below like
one class contain the code where i collecting the object by calling this function of another class:-
class
lastindex and initIndex is starting and ending range
SentenceStatusImpl tempSS[] = new SentenceStatusImpl[lastIndex-initIndex ];
tempSS[i++] = engineLocal.CallParser(SS[initIndex],g_strUserName,g_strlanguage,g_strDomain);
another class containg code where we transfering the object:-
class
public SentenceStatusImpl CallParser(SentenceStatusImpl senStatus, String strUserName, String strLanguage, String strDomain)
*//here some code in try block*
finally
System.+out+.println("inside finally...........block......"+strfinaloutput.length);
senStatus.setOutputSen(strfinaloutput);//strfinaloutput is stringbuffer array containg sentence
fillSynonymMap(senStatus);
senStatus.setTranslateStatus(*true*);
return senStatus;
Class of which object is serialized name sentenceStatusimpl class:-
public class SentenceStatusImpl implements Serializable
///Added by pavan on 10/06/2008
int strSourceSenNo;
String strSourceSen = new String();
String strTargetSen = new String();
StringBuffer[] stroutputSen = null;
HashMap senHashMap = new HashMap();
HashMap dfaMarkedMap = new HashMap();
boolean bTargetStatus = false;
public SentenceStatusImpl(){
public void setOutputSen(StringBuffer[] outputSen){
stroutputSen = outputSen;
public StringBuffer[] getOutputSen(){
return stroutputSen;
public void setTranslateStatus(*boolean* TargetStatus){
bTargetStatus = TargetStatus;
}//class

ok,
in class one
we are calling one function (name callParser(object of sentenceStatusImpl class,.....argument.) it return object of sentenceStatusImple class containg some extra information ) and we collecting that object into same type of object.
and that sentenceStatusImple classs implements by Serializable
so it some cases it is returning null
if you think it is not proper serialization is please replay me and suggest proper serialization so that my work is to be done properly (without NULL)
hope you understand my problem

Similar Messages

  • How to move an object from one Transport Request to another TR

    Hi,
    I have created an object under one TR instead of Required TR.
    Now i need to move that object to apropriate TR.
    Please suggest me the way.
    Thanks,
    Sekhar.J

    Go to SE10 select the Request and press Include Objects button( a box with a arrow above it) and select freely selected objects and add your object to the request. Before doing this you may be required to delete the object entry from the source request.
    Regards
    Karthik D

  • How to pass an object from jsp to other jsp using SendRedirect

    How to pass an object from one jsp to the other jsp using ssendRedirect with out using the session
    I am having 2 jsps
    x.jsp and y.jsp
    From x.jsp using sendRedirect iam going to y.jsp
    From x.jsp i have pass an object to the y.jsp
    Is it possible without putting the object in session
    Is it possible using EncodeUrl
    Please help me Its Urgent

    Is it possible without putting the object in sessionAnything is possible. Would you accept that it is very difficult?
    When you send a redirect, it tells the browser to send a new request for the target page. That means any request parameters/attributes are lost.
    Is it possible using EncodeUrl response.encodeURL() puts the session id into a url if the browser does not support cookies. It is purely for retaining the session.
    There are two ways that you can communicate across a sendRedirect.
    1 - use the session
    2 - pass a parameter in the url.
    parameters are string based, so passing objects is almost out of the question.
    Potentially you could serialize your object, encode it in base64 (so it is composed completely as characters) and pass it as a parameter to the other page, where you retrieve it, unencode it, and then load the serialized object.
    Or you can just use the session.

  • How to transport CU02 objects from one system to another?

    Hi,
    How to transport CU02 objects from one system (Development) to another (Quality)?

    You need to set up the object dependency IDOC in the partner profile.Message type is KNOMAS. The transaction to send is CLD2.

  • Problem while migrating the extensions from one instance to the other.

    Hi,
    We are using kintana workbench to migrate the objects from one instance to the other. But after migrating From Instance1 to Intance2 it ws fine. Working properly in Instance2. But when the same package is migrated to Instance3, all are migrated successfully and log files are showing proerly. But when i access the pages in Instance3, I am getting the errors on the page above like this:
    ViewObject attribute is null; ViewUsageName: (ScorecardSummaryVO1); RegionItem: (LastUpdateLogin)
    Can some let me know what could be the problem.
    Thanks.

    user555006,
    Error shows that LastUpdateLogin item on the page has no proper VO attribute attached. Hence it seems that the MDS data is not updated properly. Upload the page again and test.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Change object from one transport request to another

    Hi,
    I have a requirement wherein i need to change the object from one transport request to another. The thing is that i have saved
    one in one transport request and when i am trying to transport it , it is not allowing me to transport as this transport request
    contains some inactive object. I have also tried to delete that object from this transport request and put in another one
    but when i tried to do that i was only allowing me to create sub task within the same request .
    Kindly suggest me
    Thanks
    Parag

    Hi,
    you can either just delete the object from the object item list of the first transport request (just click away all warnings and hints). Then put it into a new request, lock it and transport it. You might ned to overtake the responsibility for the first request but with the appropriate authorization this should be no issue.
    Other solution is using a transport of copies. This will tell you the object is locked in another request when you release it but still allow to transport it.
    In all solutions you have to be sure that transporting the object without all other stuff in the request is possible as the objects are independent from each other. Otherwise you will not be able to import the request in the destination system.
    Rgds.
    Roman

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?

    I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?

    Hi Don,
    DON RICE wrote:
    I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?
    Which password are you referring to in your statement? You can download flash player using this Link - https://get2.adobe.com/flashplayer/
    Regards,
    Rahul

  • Pass a object from one jar to another jar file

    I have a common jar file which will communicate to the server for data validation purpose.But after validation it has to invoke different different jar file based on its response from the server.So, I might have a object which has to pass from the common jar file to a specific jar file.So, I like to know what will be the best procedure to achieve it.
    Please help me out.

    arpitak wrote:
    Yes,jar file holds class files.one of class files wants to trigger a method of a class file which resides in different jar file.this is the situation I tried to describe.Let consider there are three jar files like JAR A,JAR B ,JAR C.Here JAR A is a common jar where other two jar could be used as a plug in. So based on the condition any one of them (JARS) will be triggered by the common jar(JAR A).this is the situation.The class file of JAR A will trigger some method or main method of the JAR B/JAR C.So,here how could I pass a object from one jar to another is my main question.
    Is it clear now?
    I need a solution for this very urgently.Are you looking for a plug-in framework? That is, dynamically discovering and loading plugins. I am not experienced in developing or using plugins. However Googling "java plugin" brings up JPF.
    If you just have multiple jars that have different classes, the JVM will load the appropriate classes if it can find the jars through the standard classloader on the classpath or through a customer classloader.

  • How to send an object from one application to another?

    Hi all,
    I have two applications over the same server. The first application needs to send an object to the other application.
    I try to put the object as a session attribute, but in the moment that the second application tries to get the attribute, the attribute doesn't exist.
    Does anybody now how can pass an object from the one application to the other?

    You can also use JMS

  • How to pass back object to client?

    Forgive me if i ask too stupid question, but I really confuse what is really happen when it is not working.
    Firstly, client A pass several objects to the server one by one, and the server will have to wait untill another client (let call it client b) able to process this object, and pass it back to the client a.
    This object include some data that need to compute and save the result back to the object.
    In this case, I have write the code to enable the server to callback client a, when the object is processed. Rather then put it in a while loop to wait the result coming back.
    But I have difficult to trace back the original client. It cannot find client A and update the object.
    I already read the Stock, Time example (which is in Sun website), and follow it to develop my program, but I still cannot get it right.
    Does anyone know have any reference that I can look at or give some suggestion that can help.
    Thank in advance and wish you have a good day.
    Regards,
    Tai Tan

    Really thank you for your help.
    But i still unable to get it right.
    Can I ask you few more questions. thank.
    Can I know what the 'this' in the your example mean?
    try
       UnicastRemoteObject.exportObject( this );  //what is 'this' mean?
       obj = (Hello)Naming.lookup("//" + ser + ":5000/Server");
       message = obj.sayHello( this );  //what is 'this' mean?
    catch (Exception e)
         System.out.println("HelloApplet exception: " +
          e.getMessage());
         e.printStackTrace();
    }because the client program is not extends Applet, so if i put 'this' in the above 2 lines, it will not accept by the compiler.
    one more question, I put the client class in the first 'this' means:
    UnicastRemoteObject.exportObject( jobClient jc );  and passing second object in the second 'this':
    //message = obj.sayHello( this );
    mytemp.submitJob(jb1);
    // Note: mytemp is : 'static mainServer mytemp';
    // which is a remote object of the serverSo, is this the correct way to export the stub and object?
    (In the example that you give, the 'this' is the same. But in my program, the second 'this', I have to call submitJob(jb1) in the server, and passing the jb1 ( is a serialize object name call jobThread.)
    Thank again and sorry for giving you such trouble.

  • Hi,how can i transport objects from one server to other like (Dev To Qty)

    Hi Sir/madam,
       Can u explain how can i transport objects from one server to other like (Development To Quality To Production).
    Regards,
    Vishali.

    Hi Vishali,
    Step 1: Collect all Transports(with Packages) in Transports Tab(RSA1)- CTO
    Step 2: Release the subrequests first and then the main request by pressing Truck button
    Step 3: STMS or Customized transactions
    Object Collection In Transports:
    The respective Transports should have the following objects:
    1. Base Objects -
    a. Info Area
    b. Info object catalogs
    c. Info Objects
    2. Info Providers u2013
    a. Info Cubes
    b. Multi Providers
    c. Info Sets
    d. Data Store Objects
    e. Info Cube Aggregates
    3. Transfer Rules u2013
    a. Application Components
    b. Communication Structure
    c. Data Source replica
    d. Info Packages
    e. Transfer Rules
    f. Transformations
    g. Info Source Transaction data
    h. Transfer Structure
    i. Data sources (Active version)
    j. Routines & BW Formulas used in the Transfer routines
    k. Extract Structures
    l. (Note) If the transfer structures and related objects are being transferred without preceding
    Base Objects transport (e.g. while fixing an error) it is safer to transport the related Info
    Objects as well.
    4. Update Rules u2013
    a. Update rules
    b. Routines and formulas used in Update rules
    c. DTPs
    5. Process Chains u2013
    a. Process Chains
    b. Process Chain Starter
    c. Process Variants
    d. Event u2013 Administration Chains
    6. Report Objects u2013
    a. Reports
    b. Report Objects
    c. Web Templates
    Regards,
    Suman

  • Moving the object from one dimension to other in the cube in BI7.0

    Hi Gurus,
    I am new to BI7.0
    We have a requirement wherein we need to move the object from one dimension to other dimension within same Infocube.I tried doing 'cut' and 'insert' from the context menu of the dimensions, but it didnt work.
    Please let me know how do we do that..
    Thanks,
    Shalaka.

    Hi,
    Use Remodelling opttion avialable .For more info, earch the forum and go through SAP standard help.
    With rgds,
    Anil Kumar Sharma .P

  • How to pass a parameter from one action1 in block1 to action2 in block2.

    Dear Experts,
    How to pass a parameter from one action1 in block1 to action2 in block2.
    My Process Structure is as follows..
           Process
                Sequential Block
                     Action 1
                     Parallel Dynamic Block
                             Sequential Sub Block
                             Action 2.
    while i am  trying to execute the action1 the following error is shown below:
    Cannot complete action: The activity could not be read.
    Please suggest me how to do?
    Regards,
    Rajesh N

    Hello Rajesh!
    I think you are talk about the mapping parameters of your process.
    This case in design time of your workflow, you have the vision of your blocks and actions, you have on action 1 the output parameter and you have the action 2 an input parameter.
    So you have that make a group mapping on your process, map in this group the action1 outpu parameter with the action2 input parameter.
    Regards, Ronaldo Rampelotti

  • How to load few objects in one sence ?Please help.

    Is there any one know how to load few object into one sence ?
    I have some code , It can load one object one the sence .Please any one know how to change it . Thanks so much .
    -------------------------- model loading --------------
    private void loadModel(String fn)
        /* Load the model from fn into the scene graph using a NCSA
           Portfolio loader. Rotate and scale it to make it easier to see.
           Store the loaded model's scene in the global loadedScene,
           and its branch group in loadedBG.
          FileWriter ofw = null;
          System.out.println( "Loading: " + fn );
          try {
            ModelLoader loader = new ModelLoader();    // the NCSA portfolio loader
            // System.out.println("Loader flags: " + loader.getFlags());
            loadedScene = loader.load(fn);             // the loaded scene
            // Rotate and scale the model
            if(loadedScene != null ) {
              loadedBG = loadedScene.getSceneGroup();    // the model's BG
              Transform3D t3d = new Transform3D();
              t3d.rotX( -Math.PI/2.0 );    // models are often on their face; fix that
              Vector3d scaleVec = calcScaleFactor(loadedBG, fn);   // scale the model
              t3d.setScale( scaleVec );
              TransformGroup tg = new TransformGroup(t3d);
              tg.addChild(loadedBG);
              sceneBG.addChild(tg);   // add (tg->loadedBG) to scene
            else
              System.out.println("Load error with: " + fn);
          catch( IOException ioe )
          { System.err.println("Could not find object file: " + fn); }
        } // end of loadModel()
      private Vector3d calcScaleFactor(BranchGroup loadedBG, String fn)
      // Scale the model based on its original bounding box size
         BoundingBox boundbox = new BoundingBox( loadedBG.getBounds() );
         // System.out.println(boundbox);
         // obtain the upper and lower coordinates of the box
         Point3d lower = new Point3d();
         boundbox.getLower( lower );
         Point3d upper = new Point3d();
         boundbox.getUpper( upper );
         // store the largest X, Y, or Z dimension and calculate a scale factor
         double max = 0.0;
         if( (upper.x - lower.x ) > max )
           max = (upper.x - lower.x );
         if( (upper.y - lower.y ) > max )
           max = (upper.y - lower.y );
         if( (upper.z - lower.z ) > max )
           max = (upper.z - lower.z );
         double scaleFactor = 10.0/max;    // 10 is half the width of the floor
         System.out.println("max dimension: " + df.format(max) +
                            "; scaleFactor: " + df.format(scaleFactor) );
         // limit the scaling so that a big model isn't scaled too much
         if( scaleFactor < 0.0005 )
             scaleFactor = 0.0005;
         return new Vector3d(scaleFactor, scaleFactor, scaleFactor);
      }  // end of calcScaleFactor()

    i mean , how to load few objects in one scene. not sence ..sorry .
    if u knwo how to load few objects in . please please give me some help .......Thanks so much

Maybe you are looking for

  • Problems installing Net::AIM with CPAN

    I've been trying to install Net::AIM but hit a dead end when trying to use the perl command "make Makefile" so I thought to try installing through CPAN and after reading through various posts to learn how I still am not able to install. Here is my la

  • Mac iTunes account x Apple TV iTunes account = Integration???

    I rented the film Savages, through my Mac iTunes Store account. When I tried to see the film in my Apple TV, the Savages wasn't available. This has alredy happened in an apposite way: I Rented "Abraham Lincoln" film, through the iTunes Store account

  • How to set a page item to either of two sources?

    Hello Folks, I would like some advice with the following: On P1 there is a text field, say p1_text. The users enters a value into p1_text. This is validated. If the p1_text value validates OK, and the next button is pressed, there is a branch to page

  • BI dual landscape for upgrades

    We recently built a dual / parallel landscape for our BI system to support a support stack upgrade.   I've used the dual landscape concept for many years when doing ERP upgrades, and it has worked very well.   We thought a dual landscape for BI would

  • Help!..Urgentfixed Screen Resolution with Graphics Configuration

    Hello, i am try to make our swing application resolution fixed. whatever is system resolution does't matter. my application always running on 1024 *768 mode. But i face some problem when i run the project with is feature and open any dialog by clicki