Multiple paintCell calls

I have a performance problem in an application using a large JTable. During debugging I noticed that paintCell() for each field of the table is called multiple times, and that each row is repainted as a whole even though only one cell has changed in that row.
Does anyone know why Swing seems to want to repaint each cell multiple times? Is there a way to stop this, and is there a way to repaint only certain columns in a row?

I have a performance problem in an application using a large JTable.The size of the table shouldn't matter. As you said only the entire row is repainted. So if it that that long to repaint 10 cells, then there is something wrong with your renderer.
Is there a way to stop this, and is there a way to repaint only certain columns in a row?I'm sure there is but you would need to rewrite the table UI.

Similar Messages

  • How to loop through single XML File and send multiple RFC calls?

    I am looking for the best approach to use for making multiple RFC calls (can be sequential) using a single XML file of data.  I have been attempting to get a BPM loop working, but to no avail.  My RFC only accepts a single set of delivery input and I have been told to try to work with it as is.
    input xml sample:
    <?xml version="1.0" encoding="UTF-8"?>
    I need to make a synchronous RFC call for each set of POD data.
    Thanks in advance!

    Thanks for the inputs.
    I tried with a BPM and multi-mapping transformation before a ForEach block.  I am getting this error:
    Work item 000000028028: Object FLOWITEM method EXECUTE cannot be executed
    Error during result processing of work item 000000028029
    Error: Exception CX_MERGE_SPLIT occurred (program: CL_MERGE_SPLIT_SERVICE========CP, include: CL_
    Probably because I am not making/using the container objects properly.  Here is a screenshot of my BPM.  Can anyone spot my issue or point me to an example on this sort of container use?

  • Multiple BAPI calls in RFC Adapter

    Hi, Dear Friends!
    I have asynchronous scenario File to RFC(BAPI).
    File contains raws. For each raw I need to execute BAPI.
    With the help of each raw I need to construct one document in R/3 database with the help of BAPI.
    But now my scenario provide only one document (only one BAPI is executed).
    I read file to xml structure. This structure contains elements. The elements represent raws of file. But BAPI is executed only for the first element.
    How to explain to XI that I want it impement BAPI <b>N times</b> - as number of raws in file (or elements in xml structure).
    So how to implement multiple BAPI calls. Have you any idea?
    Thank you in advance.
    Natalia Maslova.

    Hi Natalia
    have a look on these links
    Best Design : for a SOAP -XI - BAPI ( Multiple )
    Re: RFC adapter...How it handles multiple calls...
    Re: Multiple BAPIs and COMMIT in BPM
    Re: Is it possible to compose XML in BPM from responses of multiple BAPI calls?
    Multiple BAPI calls in RFC Adapter
    may be helpful
    Thanks !!!

  • Help with multiple httpservice calls

    I need help with multiple httpservice call back to back, doing 10 different mysql query at startup of the app loading results into 14 datagrids/combobox all queries are to different tables.

    I think what Grizzzzzzzzzz means is the following:
        <mx:HTTPService id="serviceOne"
            url="here goes url"
        <mx:HTTPService id="serviceTwo"
            url="here goes url"
        <mx:HTTPService id="serviceThree"
            url="here goes url"
         // Result handler 1
         private function resultHandler1(event:ResultEvent):void{
              //Here do something with the results
             xmlCollection = event.result as XML;
             //then call the next service
          // Result handler 2
          private function resultHandler2(event:ResultEvent):void{
              //Here do something with the results
             xmlCollection = event.result as XML;
             //then call the next service
    I hope this helps,

  • Session between multiple Webservice calls from PI7.0

    Hello XI SDNers,
    I am unable to overcome my Webservice session problem using SOAP (Axis) adapter. My scenario is as follows:
    I am calling a external Webservice deployed in Axis webservice engine from PI7.0, during my first call:  I call synchronous "Login" webservice and I became the response "User is Logged in"
    during my second synchronous call "GetItem", the webservice returns "The user doesn't have valid session". The two synchronous calls are executed from same scenario one after another!
    I lost my session after the "Login". Is there any way in PI 7.0 to maintain the session?
    Note: I tried the same scenario using XML SPY SOAP client, it is working!!!  it is maintaining the session between multiple webservice calls.
    Is there any suggestions to overcome this problem?
    Thanks and regards,

    Hi Satish,
       We are working on the same sort of scenarios, where we have to call more than one webservice in a sequential fashion using the same session id details.
        What we did was we built new xsds adding session details node using the webserive request and response xsds. And we are maintaining a sessions table which contains session id and  status fields in PI. So we send webservice request with the session id details. We wrote an UDF to get the session details from PI and set the status field as busy so that no other request uses the same session details.
       Webserive response again contains the sessions details which can be used for the next webservice request.
      Finally after all the calls set back the status to Active in PI table.
    Webservice Calls From a User Defined Function
    Hope this helps.

  • Multiple Service called doesn't work as expected

    I have been trying to do this.
    callresponder id="test"
    SomeService properly imported through Flash Builder 4
    for (var i:int=0;i< pool.length;i++)
    test.token = SomeService.getSomething(pool[i].someValue);
    Only the first one would be successful. It seems that while result event has not occurred the service is busy and cannot be used. Is there a way to workaround this?
    Help! I don't want to call after result event!

    The point is I want to avoid waiting for each service to complete, although what you suggest would work I finally figured it out how to solve this problem.
    Problem: The problem is one call responder cannot be used by multiple service call.
    Solution: Make more call responders....
    var c:CallResponder;
    before each iteration begins
    c = new CallResponder();
    c.addEventListener(ResultEvent.RESULT, resultHandler);
    c.token = SomeService.whatEver(something);

  • How to differentiate multiple aRFC calls into the same session.

    Hi experts,
    I have following problem:
    I start multiple aRFC calls in the same remote session by using the same task ID for each call and use
    KEEPING TASK when receiving the results.
    The calls are all of the same RFM (e.g get_status of obj), just calling parameters changes ( in the generic example, the parameter: obj).
    In the receive method, I differentiate to which obj the result is related by exporting the obj_id on success of the RFM.
    My problem is when the status call fails. I just get an error message explaining what the problem is. But I don't get the exporting parameters.
    Do you have any idea how to solve this problem?
    kind regards,

    This is actually the workaround I made to go on.
    Actually the underlying logic in the RFM for getting the status is based on a synchronous call, as to say when you get the exception you know of which request it comes from.
    Therefore the exception messages and their parameters are well defined and according to the error situation filled with necessary data explaining the exception situation.
    Unfortunately the excpetion class used is based on the message T100 interface and has the limitations of just four message parameters and each of 50 charcter length.
    I overwrite the last message parameter with the needed obj parameter, taking the risk to overwrite valuable system responses explaining the situation.
    I thought there could be a more elegant solution from the framework itself.
    kind regards,

  • Is there a way to process multiple asynchronous calls individually (instead of all at once)?

    I have a function that saves a record using a RPC call (asyncToken with a new responder).  When I save an individual record (pressing "s" key), it works fine.  However, when I attempt to save multiple records simultaneously (bound to "v" key) (I have a for loop running through the selectedItems in the datagrid), it performs strangely.
    For anyone who hasn't experienced this, the successive calls seem to get stacked (literally - i.e. using a stack) and processed at the end of all operations in that block of code (I had trace functions before and after the call that were executed before I saw the result confirming this).
    What I would like to do is to simulate multiple AsyncToken usages with a single click, but still have them all occur individually since right now, the function saves the last item in the stack 8 times instead of saving each of the 8 items separately.
    Is there another means of RPC using something like "interruptToken" as opposed to asyncToken?  (In most other areas I've seen, asynchronous calls are performed as interrupts and dealt with immediately, thats why this procedure confused me for a bit)
    Thanks in advance,

    The second paragraph you posted is definitely worthwhile - still figuring out some of the inner workings of Flex calls (not just RPC stuff) that I use as I am pretty new to flex.
    I don't have the code with me at the moment, but I think I have to use separate calls to the save function.  My situation is this (and I plan on updating with code on Monday if necessary):
    I have a datagrid that is populated using a single RPC (which is loaded into an arrayCollection first then the datagrid).  Changes are made to the datagrid through a copy/paste function that I made, but these changes are only reflected on the datagrid (i.e. not in the dataprovider).  When the user hits "save", the selected line (selectedItem actually - i.e. not an index but the object itself) is passed to another class which contains a modified version of my "modify data" function (brings up a dialog after choosing a given line allowing editting/validation of certain fields regarding the selectedItem).  This changed version of "modify data" is then called and immediately closed effectively saving this record (without allowing the user to alter fields - so they don't have to hit save twice).
    With the copy/paste function, I make all of these changes en masse and then have a loop that goes something like
    for each (_object:Object in myDatagrid.selectedItems)
         callSaveFunction(this, _object);
    which ideally loops through the data and saves each item that has been changed.  If there is a way to save all of the data in the datagrid simultaneously, I would appreciate a bit of help there (perhaps dealing with the bindings - right now I have the object I save as the destination and the source is myDatagrid.selectedIndex.[field name]).
    Good to know about the other stuff, though - my understanding was a little bit lacking before

  • Regarding creation of multiple jobs calling same program

    Hai anand,
    To improve the performance of the report, i think i want to make a try of your new strategy.
    Could you pls give me oultine code of how to create each job for each P_monat by calling
    same program multiple times.
    by the by i have two points to confirm with this.
    1-if we call same program at a time using different job wont it gets data confused with data manipulation
      inside the internal table?
    2-you want me to call each job simultaneously or one after another?

    hey guys,
    Thanks for your reply.
    As my next step tried to do like this. but leads to short dump. could you pls guide me in submit decleration.
                P_MONAT LIKE BSIS-MONAT OBLIGATORY,  " Current period
    jobname = 'ZUSRTEST'.
    call function 'GET_PRINT_PARAMETERS'
        no_dialog = 'X'
       valid = l_valid
       out_parameter = ls_params.
              JOBNAME          = jobname
             JOBCOUNT         = jobcount
              CANT_CREATE_JOB  = 1
              INVALID_JOB_DATA = 2
              JOBNAME_MISSING  = 3
              OTHERS           = 4.
    if sy-subrc ne 0.
    lets assume that my prod system has 6 background work process.
    Here if i input p_monat is 6months then 6 jobs will be created right
    and job p_monat will be as index for jobs job1,job2 job3..job6 etc.
    *job p_monat will be my job names right.
    *I am trying to pass parameter also from main program to calling program
    *but it leads to shortdump error why.
    could you pls help me if my way of declaration in submit can be done or not.
    wk_monat = 01.
    do wk_monat times.
    <b>submit zfipr_vat_report_p1 with s_bukrs = s_bukrs
                               with p_gjahr = p_gjahr
                               with p_monat = wk_monat
                               with p_bukrs = p_bukrs
                               with p_total = p_total
                            via job p_monat
                            number jobcount
             to sap-spool without spool dynpro
               spool parameters ls_params and return.</b>
    wk_monat = wk_monat + 1.
    if wk_monat = p_monat.
    sdate = sy-datum.
    stime = sy-uzeit + 30.
            EVENT_PERIODIC              = ' '
              JOBCOUNT                    = jobcount
              JOBNAME                     = jobname
             STRTIMMED                   = 'X'
    Also when i execute the main program in background i could not see jobs declared in SM37. i was expecting jobnames job1,job2 till job 6.

  • Dynamic CSV file name in target (Multiple workflow calling same dataflow with new global variable value)

    Hi their,
    I have multiple data flows doing 90% of the process same. The difference is in source query where clause and target flat file.
    I used the global variables to dynamically change the query where clause easily, but I need help in dynamically changing the target flat file (CSV file).
    What I want to do is have multiple workflows, which will first set the global variable to new value in the script box and then call the same data flow.
    Please let me know if you have any solution or any idea which might put me in the direction to my quest for solution.
    thank you,

    Hi Raj - in your content conversion for lineitem .. read the additional attribute as well.
    Change your source strcture and additional field company_code
    As you are already sending the filename for each line item using the UDF.. it's just you need to modify your UDF to take another input i.e. Company Code.
    If your PI version is > 7.1 use the graphical variable to hold the filename..
    and while sending the company code information for every item just use the concat function to append filename & company code..

  • Flat File-to-RFC question, multiple RFC calls for one file.

    Hi guys,
    I'm quite new to XI / PI and I have a question regarding a File-to-RFC scenario we're trying in NW PI 7.1.
    We have a flat file which has two lines with two fields each, let's take this as an example :
    The files needs to be converted to XML and then transferred to the RFC program which will update a table with the values above.
    In the ESR I've created 3 data types (z_row1,z_record1 and z_fileinput1), 1 message type (z_file2rfc_ob_mt), 1 message mapping (z_file2rfc_mm), 2 Service Interface (z_file2rfc_ob_si and z_file2rfc_ib_ztestpi) and 1 operation mapping (z_file2rfc_om).
    In the Integration Builder (ID) I've created everything required (The sender and receiver communication channels, sender and receiver agreement, receiver determination and interface mapping).
    We're also using content conversion to convert the flat file to XML, this does seem to work because I see all the lines/field in the message when it gets into PI. The problem is that the RFC can only accept two fields at a time and only the first line gets updated. I see that only the first line gets sent to the RFC.
    How can I make the RFC call for each and every line ?
    Thanks !!

    Create the RFC with table, which takes multiple lineitem as input and update the table in single call.
    If you want response back then call RFC as synchrounous else in Asynchrounous mode.
    By doing this in single call it will update the complete table.
    Gaurav Jain
    Reward Points if answer is helpful

  • Transaction Handling - JDBC Receiver Adapter - Multiple SP Calls

    I have the following scenario:
    I send an XML-SQL structure with multiple statment elements (each of them calling a different stored procedure). A stored procedure raises an error back to the JDBC Receiver Adapter in case of error.
    Is it possible to have transaction handling in the JDBC Receiver to ensure:
    - Commit only after ALL stored procedures where succesful (no error risen during calls)
    - Rollback of ALL already called stored procedures in case an error has been risen
    How can I implement these requirements in the JDBC Receiver Adapter?

    One more comment, I have found the following info for JDBC Drivers:
    <i> "JDBC driver's default is to autocommit, meaning that the result of every SQL statement is permanent as soon as it is executed. This is why the course hasn't had to be concerned with transactions so far, and is perfectly acceptable in many cases."</i>
    So I think that each SP-Call is automatically commited in case autocommit on JDBC Driver Level is set to "true". Does anyone know where I can change these settings? Directly on JDBC Receiver Adapter or do I have to go to Visual Admin for those changes?

  • Multiple RFC calls in same session

    Hi All,
    I'm looking for a way to execute multiple RFCs (one after the other) within the same "session".  The reason I need to execute them within the same session is because the initial RFCs store information in ABAP memory (EXPORT x TO MEMORY ID y) and subsequent ones will use that information (IMPORT x FROM MEMORY ID y) for further processing.  I thought I could do it all as a transactional RFC call but as one of the RFCs invokes the GUI, it seems to cause complications.  I don't think tRFCs are the correct solution because it invovles client interaction from the GUI in one of the calls.
    Has anyone tried to do this with the .NET Connector before?  I've tried reusing the connection but it seems to get reset after the first call.  Please help!

    Hi Tim,
    How are you doing ?
    A session [when using NCo] is the length of time that the connection is open.
    please let me know why the connection is being reset.
    the client number is a mandatory attribute in any connection string, it is a part of a composite key which uniquely identifies the user
    please let me know how you would like to proceed ?
    with respect,

  • Multiple RFC calls in one LUW

    Hi Guys,
    Is it possible to do multiple RFC(receiver) calls in a single LUW(Logical Unit ofWork) in PI 7.0??
    If yes, can any1 pls tell me from which SP level has this been enabled??Also what settings do i need to do to create the scenario??

    i think its possible.please refers to the link hope it will help u.

  • Problem with multiple Ajax calls to the same Servlet

    I am new to AJAX. I have a requirement where in, i have to make ajax calls to the same servlet in an infinite loop and check for an application context attribute to refresh the contents in the JSP.I am using the following script in JSP. The problem is i am not able to invoke the servlet more than one time.But I am able to go through the script at specific time interval using setInterval() function of Javascript and able to get alerts.But the problem is with"Get", url, true);. Its not getting called more than one time, even though i make multiple calls to the function.
    *<script type="text/javascript">*
    var xmlhttp
    var resp
    function fAjax()
    // code for Mozilla, etc.
    if (window.XMLHttpRequest)
    xmlhttp=new XMLHttpRequest();
    // code for IE
    else if (window.ActiveXObject)
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (xmlhttp!=null)
    alert("Your browser does not support XMLHTTP.")
    function state_Change()
    // if xmlhttp shows "loaded"
    if (xmlhttp.readyState==4)
    // if "OK"
    if (xmlhttp.status==200)
         if (resp=="CALL"){
    alert("Problem retrieving XML data")
    function callTimer(){
    *Code for Servlet here:*
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException
    ServletContext objContext= getServletContext();
         String value;
         synchronized (objContext) {
                   value=(String) objContext.getAttribute("Flag");
                        else if(value.equals("Done")){
                             PrintWriter out = null;
                                  try {
                                       out = response.getWriter();
                                  } catch (IOException e) {
                                       // TODO Auto-generated catch block
                                                                } catch (NullPointerException npe) {
                                       // TODO Auto-generated catch block
    Can someone figureout the problem or mistake and help me out.Its urgent and please help me in this regard.Thanks in Advance !

    I'm not sure I'm following you. The mapping from URL to servlet can contain anything you want. So you could have the URL /blah/blah/blah that, with a mapping something like /blah/* would pass all requests with that URL pattern to your servlet - no one has to know it is a servlet. Your servlet could then parse the URL to see what it has to do or you could pass parameters as part of the URL or as hidden fields.

Maybe you are looking for

  • The next-generation Java Plug-in

    I really need to disable the next-generation Java Plug-in on the Advanced tab of the Java control Panel, but it is grayed out.  I have admin rights. I tried to uninstall/install Java, but that did not work.  Any suggestions?  Thank you

  • Error7 (windows error 127) when launching iTunes 11.1.4

    I tried the complete uninstall of iTunes (HT1923), but get the same error after re-install.  This really blows...and all for a "minor" update.  Any other suggestions?

  • IE border / outline problem.

    I'm having a spot of bother with a Flash site I've done for a client. It should be white with a white background, but on Windows + IE the flash part gets a border around it, as though windows thinks it's a big button. A caption also pops up saying 'p

  • KDEmod=unstable? + What WM/DE would you reccomend for me

    Hi guys. I don't want to start a flame war, please. I am using Arch with KDEmod and I have the impression that this combination is a lot less stable than my previous Ubuntu+Gnome+Compiz (mind you, I am NOT running compiz on Arch anymore). I don't kno

  • Flash media live encoder 3.2  no input sound after stopping encoding

    Hello, We have adobe media live encoder 3.2 in Windows 7 64 Bits. We use a usb adquisition interface. We start streaming every thing is ok. i we click on stop the imput sound is no longer available. In order to have the sound again we have to remove