TableSorter with WD in NW7.1

Hello Community,
i'am testing with the table ui-component. now i want to realize sorting. for that i found here that one should use TableSorter.java as an utility-class for sorting.
doing so far works fine, but i have some additionals problems and maybee one of you could help me.
what is done so far:
with
  IWDTable table = (IWDTable) view.getElement("Table");
  wdContext.currentContextElement().setTableSorter(new TableSorter(table, wdThis.wdGetSortAction(),
                      null));     
  in the wdDoModifyView Method of my view controller i instantiate my TableSorter and bind it to a context-attribute.
and with:
wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeReturn());
in my OnSort-Action  sorting takes place.
The problems:
1.)
doing above with the mentioned TableSorter-Class my table in unsorted at the beginning. the user has to click on a header to sort the data on that colum.
What i need is an initial sort, also showing the sort-icons correctly in the header
2.)
i have a detail view for the current-context-node. this is implemented by an additional view controller, which i connected via plugs and appropriate actions. When i return from a detail-view view-controller to the table-view-controller via plugOut, plugIn the data then is not correctly sorted.
Does anybody know how to achive this?
regards
Matthias

Hello,
the method sortTable is not known in my TableSorter-Class, which is i discovered for nw04s in sdn. theres only one sort-method which expects an Event as addtional-parameter (as you can see in step 2 in my question).
my idea as a workaround was to call the sort-method after inistantiating the TableSorter-Class in wdModifyView. but i didn't know to create an event with the neccessary parameters for the event. but looking into the TableSort-Class and the Method sort i discovered that the method extracts the columnname and sortdirection as strings out of the event. so i created a copy of the Sort-Method in the TableSorter-Class with the same name but the parameters columname and sortdirection as string. Then it does the same then the original sort-method.
This works fine so far when calling this new method in wdModifyView after instantiating the TableSorter-Class. But unfortunatly, it does not show the sort-icons in the column header
Do you have any ideas how to show the icons from the first rendering of the view?
regards
Matthias

Similar Messages

  • Solution manager with MaxDB 64bit NW7

    I am able to successfully complete ABAP stack and getting erro in "creating java user" step
    INFO 2009-11-03 06:59:36.582
    Output of F:\usr\sap\CBM\DVEBMGS02\exe\jlaunch.exe UserCheck.jlaunch com.sap.security.tools.UserCheck "C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\install\lib;C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\install\sharedlib;C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\install" -c sysnr=02 -c ashost=TDSM -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u J2EE_GUEST -r SAP_J2EE_GUEST -locked -message_file UserCheck.message is written to the logfile C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/ADA/CENTRAL/AS/UserCheck.log.
    WARNING 2009-11-03 06:59:39.247
    Execution of the command "F:\usr\sap\CBM\DVEBMGS02\exe\jlaunch.exe UserCheck.jlaunch com.sap.security.tools.UserCheck "C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\install\lib;C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\install\sharedlib;C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\install" -c sysnr=02 -c ashost=TDSM -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u J2EE_GUEST -r SAP_J2EE_GUEST -locked -message_file UserCheck.message" finished with return code -3. Output:
    Usage : F:\usr\sap\CBM\DVEBMGS02\exe\jlaunch.exe [-options] <arg0> <arg1> ... <argn>
    Launch the specified java program
    options : [-file=<property file>] (default=jlaunch.properties)
            [-nodename=<node name>] (default=jlaunch)
            [-app=<application name>] Standalone application
               -> <property file> = <application name>.properties
               -> <SAP profile>      = <application name>.pfl
            [pf=<SAP profile>] (default=jlaunch.pfl)
            [-parent=<pid of the parent process>] (default=0)
            [-tracefile=<filename>] (default=dev_jlaunch)
    Critical Error
    Can't read program properties
    -> Internal program error (rc = -1)
    INFO 2009-11-03 06:59:39.258
    Removed file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ADA\CENTRAL\AS\dev_UserCheck.
    ERROR 2009-11-03 06:59:39.265
    CJS-30197  . DIAGNOSIS: For more details see output of log file:
    Applied sapnote 1126481
    Manually created sapjsf id and try to skip error step (sapinst SAPINST_SKIP_ERRORSTEP=true
    ) by changing keydb file, doesn't help
    OS: Windows 2008 Enterprise (SAP not supported) still trying - Is this reason? seems sapjsf is known issue
    Any other checks I should be doing?
    Thanks for your help

    Here is the user check log:
    Usage : F:\usr\sap\CBM\DVEBMGS02\exe\jlaunch.exe [-options] <arg0> <arg1> ... <argn>
    Launch the specified java program
    options : [-file=<property file>] (default=jlaunch.properties)
            [-nodename=<node name>] (default=jlaunch)
            [-app=<application name>] Standalone application
               -> <property file> = <application name>.properties
               -> <SAP profile>      = <application name>.pfl
            [pf=<SAP profile>] (default=jlaunch.pfl)
            [-parent=<pid of the parent process>] (default=0)
            [-tracefile=<filename>] (default=dev_jlaunch)
    Critical Error
    Can't read program properties
    -> Internal program error (rc = -1)
    *I forgot to mention: When I logged into ABAP, I am getting SICK dump about operating system compatible.* Is this causing java user failure? Is there anyway we can acknowledge, so that dump won't occur.
    Runtime Errors         START_CALL_SICK
    Date and Time          03.11.2009 16:11:57
    Short text
    Database inconsistency: Start Transaction SICK.
    What happened?
    The current program had to be terminated because of an
    error when installing the R/3 System.
    The error occurred when initializing the R/3 System.
    What can you do?
    Please call the Transaction SICK. The list generated here
    contains an installation error.
    Note which actions and input led to the error.
    For further help in handling the problem, contact your SAP administrator
    You can use the ABAP dump analysis transaction ST22 to view and manage
    termination messages, in particular for long term reference.
    Error analysis
    The error probably occurred when installing the
    R/3 system.
    Error text of the first reported error:
    "OS release Windows NT 6.1 7600 4x AMD64 Level 6 (Mod 30 Step 5) is not
    supported with this kernel (700)".
    Edited by: Nagendra Dandeboyina on Nov 4, 2009 1:05 PM

  • Error installing Oracle 10.2.0.4 with CRM 7 / NW7.01

    I am in the process of installing CRM 7 with Netweaver on 7.01 on a Windows 2008 64-bit system.  I would have preferred a windows 2003 system, but according to an OSS note (1326698 and 1320013) CRM 7.0 isn't supported on Windows 2003.
    SAPInst runs just fine until it discovers that oracle is not installed.  I go to the right directory and find the sapserver.cmd script.  When I run it, it fails returning an error saying that the operating system isn't supported by the installer.
    Checking operating system version: must be 5.1 or 5.2.    Actual 6.0
    At that point the Oracle Universal Installer halts.
    I found the oparams.ini file where I included 6.0 in the list of supported operating systems.  Not surprisingly, the universal installer failed shortly afterwards complaining that it couldn't modify the registry.
    I found an OSS note (1303262) that says I have to install 10.2.0.4 (part #51036975), which exactly the disc I used.  I am installing the 64 bit version and not the 32 bit version.
    Can anyone suggest what the problem might be?

    > I am in the process of installing CRM 7 with Netweaver on 7.01 on a Windows 2008 64-bit system.  I would have preferred a windows 2003 system, but according to an OSS note (1326698 and 1320013) CRM 7.0 isn't supported on Windows 2003.
    The statement in the note is valid for CRM 7.0 SR1 only!
    > Can anyone suggest what the problem might be?
    Did you disable UAC?
    Markus

  • TableSorter with Custom JTable

    I need some straight thinking here.
    I would like to add the TableSorter to a customised JTable (MyJTable).
    MyJTable extends JTable and uses a customsised Model (MyJTableModel) which extends DefaultTableModel.
    Both MyJTable and MyJTableModel are established components which work fine together and have been in use for a long period.
    The TableSorter class from the tutorial expects the Model to be a TableModel and appears to the JTable as a TableModel.
    So
              // Introducing the Sorter
              // TableSorter normally takes a DefaultTableModel
              // The mainModel is a MyJTableModel which Extends DefaultTableModel
              // So This is OK
              TableSorter mainSortModel = new TableSorter(mainModel);
              // mainTable is a MyJTable which normally takes a MyJTableModel
              // but the TableSorter is based on AbstractTableModel
              // So Here I Have a Mis-Match
              mainTable = new MyJTable(mainSortModel);
              // I Tried to Adapt TableSorter to extend MyJTableModel (which extends DefaultTableModel)
              // but this led to other errors in TableSorter
              mainSortModel.setTableHeader(mainTable.getTableHeader());How do I introduce the TableSorter ?

    I am somewhat new, but I was able to use the
    TableSorter without creating my own mouse-event... I
    believed the TableSorter does it automatically for
    you...You right. The TableSorter does normally. Unfortuantely in my case this isn't working because I have a customised table and model. Actually I'm unsure why it doesn't and I'm trying to diagnose where the problem lies. These reason I have focussed on the mose behaviour is because I can see it isn't working. Maybe that is the only problem but I was trying to figure out how to localise the problem more. Hence my last post.
    Thanks

  • Upgrade to Netweaver 730 with add-on lsofe 602

    Hi All,
    I am upgrading a BI 7.0 to 7.3. I have been stuck at IS-select phase. State of decision for L-sofe is undecided yet.
    i have tried to provide upgrade package and installation package of 603,604, and 605, it did not work.
    Provided ERP 6.0 CD as well.
    Vendor key is not available for NW 7.3 on marketplace, for lsofe.
    Please help me with solution, as deadline has already reached. Please provide vendor key if availailble with anybody for NW7.3.

    Hi Abhi,
    Try this key. Refer to note - 1298878.
    If the above key didn't work try to raise OSS message, In our upgrade of PI 7.11 SAP has provided key which was not available in Market place.
    Regards,
    Arjun

  • Dependent Values read only or all possible values

    Hello
    I have read the following instructions.
    [How to Configure Predefined Properties with Dependent Values (NW7.0)]|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b1ec90-0201-0010-6192-d3de721f8ae4?quicklink=index&overridelayout=true]
    I need this scenario in the Portal search.
    So my question is:
    Is it possible, if Country is empty, that the field City is read only.
    In the How to guide you can see , if no city is selected the property city is a text field(not Dropdown) and you can enter a sting.
    Or it is possible, if no country is selected that the field city shows all possible cities, not restricted by countries.
    For example no country is selected and the field city shows all cities.
    or no country is selected and the field city is read only.
    The html code of dropdown list country is
    <option value="&lt;empty&gt;"><option value="Germany">Germany<option value="France">France
    Value of no selection
    &lt;empty&gt = <empty>
    If no country is selected the selected value is &lt;empty&gt or <empty>.
    I tried this:
    "dependon=Country,*=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,<empty>=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,&lt;empty&gt=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    without success
    Can some one help?
    Edited by: Dirk Wiegele on Jan 23, 2011 12:21 PM
    Edited by: Dirk Wiegele on Jan 23, 2011 12:22 PM

    Hi
    Yes, it is possible to generate an excel file in SAP. You can use any of the following FM's for the same:
    1. EXCEL_OLE_STANDARD_DAT
    2. GUI_DOWNLOAD
    3. XXL_FULL_API
    Hope it will help.
    Regards,
    Nikita

  • How to retrieve Data in a JTable, When you click on the specified line?

    I Have a JTable. When I click on a line, I want to retrieve the value of the last column of the selected line.
    I do that:
    int selectedRow = lsm.getMinSelectionIndex();
    int selecRow = lsm.getMaxSelectionIndex();
    String res="";
    if (selectedRow == selecRow)
    System.out.println("number of colomns="+nbCol);
    indiceDoc=(String)(data[selectedRow][1]);
    res = " Row "+selectedRow + " selected"+"Indice =:"+indiceDoc;
    else res = " Rows "+selectedRow + " to "+selecRow + " selected";
    When the table is not sorted, it's ok, but when I sort one or more colomns, it don't return the correct value. It returns the value of an other line.
    "Data" is my original table, but I think that it don't change when sorting.There is the Problem I thinK.
    I think its because the index of the lines is reinitialize after each sorting.
    Do you have an Idea?

    The problem seems to be the sorter. You will have to ask the sorter for the sorted row number.
    I have modified my TableSorter with a new method:
    public int getJTableRowToModelRow(int index) {
         return indexes[index];
    So in my class which holds the tablemodel, table & sorter if I want to get hold of an row I write:
    int selectedRow = table.getSelectedRow();
    int sorterRow = sorter.getJTableRowToModelRow(selectedRow);
    Object data = tableModel.getData(sorterRow);
    tableModel.getData(int row) is an added method to the tablemodel. It only, in your case, returns data[row][1];
    I hope this wasn't to messy for you... ;-)
    //David

  • Maintaining JCO Destination

    Hi Experts,
    After Installing EP and connecting through our BW System, i got stuck in maintaining JCO destination through Content Administration.
    Initially on the screen of maintaining JCO Destination, the Status is RED for all the Data sources, now when i click on create. it shows an Error Message which is
    500 Internal Server Error - Failed to process request. Please contact your system administrator.
       java.lang.NullPointerException
    I searched a lot on the Forums and on service marketplace, and based on the search result i did some changes like,
    1) Upgrading all the SP's from SP09 to SP10
    2) changing the J2EE Admin HTTP Provider properties
             a) ServletInputStreamTimeout
             b) ServletsLongDataTransferTimeout
             c)  ServletsLongDataTransferCallbackSize
    3) I also changed the Explorer from Internet Explorer to Mozilla.
    The Environment is Windows 2000 Server with Oracle10.
    NW7.0 SR2 SP10
    Still not able to hit the right stone. Please help me in this regards.
    Regards
    Puneet

    Hey Deepu,
    Thanks for the quick reply. What to maintain in the Host file ?
    Only IP and Host name is there.
    One more thing it worked once yesterday, but after filling all the required information and clicking on Finish it displayd the same error.
    The Windows is also 2003 Server and not 2000. Sorry for the mistake.
    Regards
    Puneet

  • Cannot create SAPJSF

    Hi Gurus
    I'm installing Solution Manager EHP1 on Win2008 MSSQL.  I'm getting this error:
    Usage : D:\usr\sap\BSM\DVEBMGS00\exe\jlaunch.exe [-options] <arg0> <arg1> ... <argn>
    Launch the specified java program
    options : [-file=<property file>] (default=jlaunch.properties)
            [-nodename=<node name>] (default=jlaunch)
            [-app=<application name>] Standalone application
               -> <property file> = <application name>.properties
               -> <SAP profile>      = <application name>.pfl
            [pf=<SAP profile>] (default=jlaunch.pfl)
            [-parent=<pid of the parent process>] (default=0)
            [-tracefile=<filename>] (default=dev_jlaunch)
    Critical Error
    Can't read program properties
    -> Internal program error (rc = -1)
    ****also****
    ERROR      2010-11-02 17:11:01.914 [sixxcstepexecute.cpp:950]
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|4|0|createJSF was executed with status ERROR .
    Can anyone help
    Thanks,
    Jim

    Hi jim,
    Many people as per the below therad face the same error while installtion SAP on windows 2008.
    Solution is apply the latest kernel patch and then retry the installation.
    Re: Solution manager with MaxDB 64bit NW7
    Thanks
    Anil

  • Pb connecting to any application

    Hi Experts,
    I hope someone could help me.
    I worked with sap bpc nw7.5 sp06.
    I was working fine in SAP BPC for excel.
    then, evdre failed. and stop running. so that, i needed to force the excel and bpc shut down.
    since that, i cannot access to sap bpc for excel, with that message :
    "Variable object or object block not defined".
    then, i can access reports, as I have access to those 4 bpc menus :
    epublish
    etools
    eanalyse
    esubmit
    but, the entire bpc toolbar does not appear, and i cannot make any report, or refesh, or simply use the EvdRE() function
    any help?
    thanks a lot,
    olivia.

    Hi Olivia,
    Can you try the following and see if BPC for Excel works.
    In Excel 2007, Go to Excel Options --> Add-Ins > Manage> COM Add-ins and 
    look for "BPC" if it is in disabled mode you need to enable BPC for it to work.
    Regards,
    Raghu

  • How to use TableSorter class with DefaultTableModel

    Hi Friends
    Please tell me how to use TableSorter Class which is in the Java. Tutorials with DefaultTableModel.
    i saw in a thread there it was given that we have to pass the DefaultTableModel to the TableSorter Class.
    I tried to use like that. But i am getting Error Like Exception occurred during event dispatching:
    I am posting the part of Code where i use the DefaultTableModel
         private void displayavailablity(String selectedAuthor)
                   try
                        Vector columnNames = new Vector();
                        Vector data1 = new Vector();
                        String bname,bauthor,bcategory,bref1,bavail,bid;
                        int bref,mid,num;
                        rs = st.executeQuery("SELECT BId,BName,BAuthorName,BAuthorandPublisher,BCat FROM Books where BAuthorandPublisher='" +selectedAuthor+"'");     
                        ResultSetMetaData md= rs.getMetaData();
                        int columns =md.getColumnCount();
                        String booktblheading[]={"NUMBER","BOOK NAME","AUTHOR","CODE","CATEGORY"};
                        for(int i=1; i<= booktblheading.length;i++)
                             columnNames.addElement(booktblheading[i-1]);
                        while(rs.next())
                             Vector row = new Vector(columns);
                             for(int i=1;i<=columns;i++)
                                  row.addElement(rs.getObject(i));
                             data1.addElement(row);
                             //System.out.println("data is:"+data);
                        ((DefaultTableModel)table.getModel()).setDataVector(data1,columnNames);
                        TableSorter sorter = new TableSorter((DefaultTableModel)table.getModel());
                        rs.close();
                   catch(SQLException ex)
                        System.out.println("ERROR IS HERE");
                        ex.printStackTrace();
         }Please help me on this issue Otherwise Please give me some Sample coding to implement this sorting. with DefaultTableModel
    Thank you for your service
    Cheers
    Jofin

    I don't know about any TableSorter class, but I suppose you mean javax.swing.table.TableRowSorter.
    The TableRowSorter is to be attached to the JTable, not to the data model. Here's a cut'n'paste from the last time I used it:
    RowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tableModel);
    myTable.setRowSorter(sorter);
    And heres from the JDK1.6 documentation:
    TableModel myModel = createMyTableModel();
    JTable table = new JTable(myModel);
    table.setRowSorter(new TableRowSorter(myModel));
    Check out http://java.sun.com/javase/6/docs/api/javax/swing/table/TableRowSorter.html. I find it to be good documentation.

  • CRM 5.0 Compatibility with backend upgraded to EHP4 FOR SAP ERP 6.0 / NW7.0

    Hello,
    What are the  compatibility issues for EHP4 FOR SAP ERP 6.0  Upgrade with CRM 5.0 ? Are there any OSS notes to address upgrade specific issues?
    Following are the System Details:
    Upgraded EHP4 FOR SAP ERP 6.0 / NW7.01
    Component: SAP_APPL 
    Release:      604
    Support Pack: SAPKH60402
    Level:  0002
    Existing CRM 5.0
    Component:     BBPCRM
    Release: 500
    Support Pack: SAPKU50006
    Level: 0006
    Thanks,
    AG
    Edited by: Arijeet Ganguly on Sep 15, 2009 11:49 PM

    Hi Amirsd,
    You will need to use your Solution manager system to apply EHP 4 to your newly installed system.
    Use MOPZ to generate XML file which contains the packages to be downloaded to upgrade your current system to EHP 4.0
    After that download EHPI tool from SAP Marketplace and use EHPI tool to install downloaded packages.
    It would run in 7 phases including downtime phase.
    Let me know if you have any queries. !!!!
    Regards,
    Shobhit Garg

  • Curious ITS issue with NW7

    This is an odd one to me, but I am fearing it is a limitation of the HTTP plugin and/or Integrated ITS. Sooooo here is the situation...
    Our NW7 portal is connected to our ECC6 (EhP4) backend through TWO system objects...
    1. SAPLogonTicket based system for all users
    2. user-mapped system to use for some of our existing "generic" user ITS services...lets call it the "GENERIC" service with user mapped to user "sys_user"
    All other information between the system objects is the same except the SAPLogonTicket vs. usermapping settings.
    Here is what happens....
    1. user visits one of the other ITS services...let's say "XYZ"...ran aginst system 1 above
          - in SMO4, I can see the actual user id, the IP address and the XYZ service being hit though plugin HTTP
                  john_smith   10.1.30.1   xyz          plugin HTTP
    2. user visits the "GENERIC" service...ran against system 2 above
           -in SM04, I still see the previous userid and IP but service/program is blank
                    john_smith  10.1.30.1    (blank)    plugin HTTP
           - SM04 also show the gneric user, same IP running the GENERIC service though plugin HTTP
                   sys_user     10.1.30.1   generic     plugin HTTP
    3. clicks the "exit" button (kills ITS session)
           -session for generic user, IP and service disappears from SM04
           -prev. session still shows in SM04
                    john_smith  10.1.30.1    (blank)    plugin HTTP
    4. User visits ITS service "ABC" tied to system 1 above (a service they had not visited before the other "exit" happened).
           -user gets a pop-up for LOGIN to backend system 1 (does not seem to use/care about LogonTicket
    5. User visit ITS service "XYZ" that they had been to before
            -user is able to run service again (no popup for login)
            -SM04 shows the "old" session "reused" for the user running the same service before
                    john_smith   10.1.30.1   xyz          plugin HTTP
    Sooo it seems that if a user has visited other services, their session is "held" even when navigating away. If they use a service through the same IP address but as a different user and exit/close the session, it not only KILLS any further ITS sessions for the "generic" user, but they can not start connections as themselves either....unless they go back to services they had been to BEFORE they killed the other one.
    Weird right?!?!?

    I just did some further testing with the ADVC110 and discovered that it also only captures from my DVR in reduced size (even though in the viewer it fills the screen). The same thing happens when I capture using the suggested Quicktime Save Movie operation.
    At first I kept asking myself; "Why will it not save full HD off the DVR, which as far as I know, is 1080i? Is it a copy protection thing? Is there a setting I'm missing?" Then I realized, the ADVC110 box uses either a single RCA cable for the video, or an S-Video cable, which do not support HD. I also read that a capture box with HDMI will not capture protected programs, so I'm going to have to live with the reduced size when I want to work with broadcast captures.
    (My brother and I like to watch TV series construction show, so I'm going to save the series, then edit them together and cut out all the superfulous material so we can watch just the actual construction.)

  • JTable (yes, again) with TableSorter - exception in the second request.

    While using the TableSorter the data is populated correctly and I manage to sort the items (beautiful)
    say I ask for a list of items and the return result is 20 and the second time I'll ask for a list of items where the return result is greater than 20 items an error will occur with reference to: java.lang.ArrayIndexOutOfBoundsException : 10
    com.softme.jtable.Renderer.TableSorter.modelIndex(TableSorter.java:207)
    com.softme.jtable.Renderer.TableSorter.getValueAt(TableSorter.java:249)
        public int modelIndex(int viewIndex)
             return getViewToModel()[viewIndex].modelIndex;         
        }any idea why this happens?

    I am also getting this same Exception... I have tried various things to prevent this from happening. I can state that in my case I am running table model updates in a SwingWorker Thread to create a visual effect on the screen (rows are being processed and updated as the user watches)
    Could this be a problem of the JTable object accessing the getValue method to update the screen at the same time as the Thread is accessing it for the test value locking the model index object?
    Just a thought.
    This problem is very annoying to the user as it only happens once-in-a-while. Thanks for any help on this problem.
    Here is the changes I made to the code and the error I get... As you can see I test for NULL before running the line, it passes and then STILL gives a NullPointerExcpetion... this is why I am thinking Thread issue...
    public int modelIndex(int viewIndex) {
             Row[] row = getViewToModel();
             if (row == null) System.out.println("?: " +viewIndex);
             if (row != null) {
                  return row[viewIndex].getModelIndex(); //this line is throwing the NPE
             else
                  return -1;
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at com.adriansteel.rpg.rpgSubfileSorter.modelIndex(rpgSubfileSorter.java:323)
         at com.adriansteel.rpg.rpgSubfileSorter.getValueAt(rpgSubfileSorter.java:363)
         at javax.swing.JTable.getValueAt(Unknown Source)
         at javax.swing.JTable.prepareRenderer(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
         at javax.swing.plaf.ComponentUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
         at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Does NW7.4 ABAP stack still not support usernametoken with digest password?

    Hello, experts,
    I got the message from here Username Token with digest password on AS ABAP that NW7.0 ABAP STACK can't support usernametoken with digest password.
    Does NW7.4 ABAP stack still not support usernametoken with digest password?
    or can I custom the method VERIFY_USERNAME_TOKEN in CL_WS_SECURITY_PROFILE to support usernametoken with digest password?
    or does sap have any plan to support this security requirement?
    Many thanks.
    fangzj

    I asked my experts about your question. On the client side we support this. We cannot support digest passwords on the server side. We save passwords in hashed format on the server side. To support digest passwords, the client would either need to send the password in clear text so that the digest can be calculated or the server would have to store the password in clear text, so that the digest password can be calculated. From a security standpoint these are questionable ideas. Either an eavesdropper is picking up the passwords from the traffic or the attacker who breaks the server suddenly has all the passwords in clear text.
    You can modify the method VERIFY_USERNAME_TOKEN, but if an upgrade comes along that changes this package, you'll be prompted for a correction import. Then you will either have to skip the upgrade or lose your customization.
    -Michael

Maybe you are looking for

  • Syntax error in GP_ERR_RSAPTD1 row 27 encountered

    Hi I encountered this error 'Syntax error in GP_ERR_RSAPTD1, row 27 ' when I was trying to create an InfoPackage which I intend to run the initialise with data transfer.  The diagnosis message doesnt really give a clue saying 'Field "/BIC/CCZDM_PAR00

  • In ibooks con ios7 sono spariti tutti i libri

    Dopo l'aggiornamento all'ultima versione di iBooks in ios7.0.3 sono spariti tutti i libri e i pdf. E' possibile recuperarli?

  • Photoshop CC: Is it possible to turn a color logo in to a brush?

    I am trying to make a fairly simple color logo in to a brush in order to easily put it over a large number of photos. Is this possible? I have created a brush but can only get it in greyscale. I have also tried the pattern stamp but don't want multip

  • TS2634 photos not uploading on instagram or facebook

    My photos won't upload to Instagram or Facebook. All systems are up to date and they are turned on in Settings. I don't know why it's not working.... help!

  • Problem Updating Ipod from Itunes

    Dont know how popular this problem is, but when i plug my iPod to my comouter, i get a message: "Attempting to copy to the disk <iPod name> failed. The disk could not be read from or written to." I've looked on the site, but havent had much help. Jus