Handle NULL values in BPEL

Hello

What follows is my payload-
< variableentree >
-part name = "payload" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
-ns1:CancelCollectionRequest xmlns:ns1 = "http://xmlns.uns.com/SoaCcb/StartService" >
< ns1:TransactionId > 123 < / ns1:TransactionId >
< ns1:ExistingCustomerAccountId / >
< ns1:ForceDateAppointment > true < / ns1:ForceDateAppointment >
< ns1:PreAccountManagerCustomer > true < / ns1:PreAccountManagerCustomer >
< / ns1:CancelCollectionRequest >
< / part >

If the value of ExistingCustomerAccountId is NULL - I should perform certain tasks
and another series of tasks if the value of ExistingCustomerAccountId is NOT NULL

Inside a switch block, I was hoping to make use of the Sub statement to check if the value is NULL
bpws:getVariableData('inputVariable','payload','/client:CancelCollectionRequest/client:ExistingCustomerAccountId') = "

And statement above does not correctly handle scenario NULL.

I was hoping that ora: countNodes('inputVariable','payload','/client:CancelCollectionRequest/client:ExistingCustomerAccountId') will return zero, but it returns the value 1.

No idea how to catch NULL condition in the above switch block?

Appreciate any help.

Thank you
Shakur

Hello

Use something like below in the switch activity

string-length(normalize-space(bpws:getVariableData('inputVariable','payload','/client:CancelCollectionRequest/client:ExistingCustomerAccountId')))>0 

Kind regards

Published by: Oraacler on July 20, 2010 11:56

Tags: Fusion Middleware

Similar Questions

  • Handle null values in the aggregate function

    Dear Experts,

    Here's my query

    SELECT sum (nvl (amount, 0)) + 50 AS TXN_PER_DAY_AMNT,

    COUNT (*) AS TRAN_LOG_TABLE TXN_CNT_PER_DAY

    (TRUNC (TXNDATETIME) = TO_DATE (SYSDATE, 'DD-MM-YY'));

    Exit from the MINE

    ------------------

    TXN_PER_DAY_AMNTTXN_CNT_PER_DAY
    NULL VALUE2

    Desired output

    ------------------------------

    TXN_PER_DAY_AMNTTXN_CNT_PER_DAY
    500

    I want to treat the null value,

    If my amount is null, it should replace 0 and add my 50 amount.

    Result must be 0 + 50 = 50;

    Help, please

    Maybe

    SELECT nvl (sum (sum() 50) AS TXN_PER_DAY_AMNT,

    -case when sum(amount) is null then 0 else end of COUNT (*) AS TXN_CNT_PER_DAY

    OF TRAN_LOG_TABLE

    Concerning

    Etbin

  • How to handle null values in the RTF models

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the model that I used the code to print a section below or not.

    <? If: number (CF_ELE_CNT + CF_ELE_CNT1) > 0? >

    The problem is when no data in the second group it was created not the tag XML for CF_ELE_CNT1, if CF_ELE_CNT has 13, it does not always print this partucular article. If I remove the CF_ELE_CNT1 in the State, it works fine. I was wondering how to handle this.

    Any help would be appreciated!

    Thank you
    RAV

    Hey Rav,.

    Check my profile, you will find.

    purpose of fusion {point} [AT] gmail [dOt] com

  • REGEXP_SUBSTR for the list delimited by commas with null values

    Hello

    I have a column that stores a list of values comma-delimited. Some of these values in the list may be null. I'm having some trouble trying to extract the values using the REGEXP_SUBSTR function when null values are present. Here are two things I've tried:
    SELECT
       REGEXP_SUBSTR (val, '[^,]*', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS P POS P P
    --- - --- - -
    AAA   BBB
    SELECT
       REGEXP_SUBSTR (val, '[^,]+', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS POS POS POS P
    --- --- --- --- -
    AAA BBB DDD FFF
    As you can see that neither calls work correctly. Anyone know how to change the regular expression pattern to handle null values? I tried various other models but could not get anyone to work in all cases.

    Thank you

    Martin
    -----
    http://www.ClariFit.com
    http://www.TalkApex.com

    Hi, Martin,.

    That's what you want:

    SELECT
       RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 1), ',') pos1
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 2), ',') pos2
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 3), ',') pos3
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 4), ',') pos4
      ,RTRIM (REGEXP_SUBSTR (val || ','
                          , '[^,]*,', 1, 5), ',') pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The query above works in Oracle 10 or 11, but in Oracle 11, you can also do it with only REGEXP_SUBSTR, without using RTRIM:

    SELECT
       REGEXP_SUBSTR (val, '([^,]*),|$', 1, 1, NULL, 1) pos1
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 2, NULL, 1) pos2
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 3, NULL, 1) pos3
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 4, NULL, 1) pos4
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 5, NULL, 1) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The problem with your first request was that he was looking for sub channels of 0 or more non-virgules. There was as a substring. consisting of 3 characters starting at position 1, he returned "AAA", as expected. Then there was an another substring, the 0 characters, starting at position 4, so it returned NULL. Then, there was a substring of 3 characters starting at position 5, so he returned 'BBB '.

    The problem with your 2nd request was that he was looking for 1 or more non-virgules. 'DDD' is the 3rd this substring.

    Published by: Frank Kulash, on February 16, 2012 11:36
    Added Oracle 11 example

  • NULL values in service management LESS

    Hello

    I have the query unless you return through two date fields date... NULL values should be ignored in the calculation. I used the service LESS with NVL but not able to resolve the issue until I used the function REPLACE top of it to show the value NULL if the query returns date of NVL. Please find the tables and queries that I used...
    CREATE TABLE TEST_LEAST
    (RECORD NUMBER,
    DATE1 DATE,
    DATE2 DATE,
    DATE3 DATE);
    INSERT INTO TEST_LEAST VALUES (1, '1 AUG 2009', '23 JUN 2009', '4 APR 2009');
    INSERT INTO TEST_LEAST VALUES (2, '20 JAN 2009', '16 FEB 2009', '7 MAY 2009');
    INSERT INTO TEST_LEAST VALUES (3, NULL, '31 MAR 2009', '19 JUL 2009');
    INSERT INTO TEST_LEAST VALUES (4, NULL, NULL, NULL);
    COMMIT;
    To return date less date1 and date2, date3, I used the function LESS, but the result was not as expected with the following query:
    SELECT RECORD, LEAST(DATE1, DATE2, DATE3) FROM TEST_LEAST;
    Statement 3 should show a date of March 31, 2009.

    I changed the query to use NVL to handle NULL values...
    SELECT CASENBR, LEAST(NVL(DATE1, TO_DATE('31 DEC 9999')), NVL(DATE2, TO_DATE('31 DEC 9999')), NVL(DATE3, TO_DATE('31 DEC 9999'))) FROM TEST_LEAST;
    .. but now, the result shows that record 4 is December 31, 2009, instead of NULL.
    and finally, I replaced the date 31 DEC 2009' with null with this query...
    SELECT CASENBR, REPLACE(LEAST(NVL(DATE1, TO_DATE('31 DEC 9999')), NVL(DATE2, TO_DATE('31 DEC 9999')), NVL(DATE3, TO_DATE('31 DEC 9999'))), TO_DATE('31 DEC 9999'), NULL) FROM TEST_LEAST;
    I am not convinced with query then thought to ask THE GURUS for help. Please guide me how I can better handle nulls with LESS function.

    Thanks in advance!

    Use COALESCE with the first expression that column:

    SQL> SELECT RECORD, LEAST(COALESCE(DATE1,DATE2,DATE3),COALESCE(DATE2,DATE3,DATE1),COALESCE(DATE3,DATE1,DATE2))FROM TEST_LEAST;
    
        RECORD LEAST(COA
    ---------- ---------
             1 04-APR-09
             2 20-JAN-09
             3 31-MAR-09
             4
    
    SQL> 
    

    SY.

  • How to handle the null value

    Hi all

    Can someone tell me how to handle null.

    I have a radio button, I need to capture the worth and inspiring I have a search criterion.

    If I select the radio button without problem. If I did not choose the option button it gives me the error.

    OAMessageRadioButtonBean var1 = (OAMessageRadioButtonBean) webBean.findChildRecursive ("job");
    If (var1! = null)
    {
    S1 = var1.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    }

    Please suggest.

    Kind regards

    Sangu

    S1 = (String) var1. GetValue (PageContext);

  • Properties: Treatment of NULL values

    I wanted to ask you how you deal with NULL values, on the properties of JavaFX.

    Properties of the wrapper for the primitive data types like SimpleIntegerProperty or SimpleBooleanProperty Don t accepts NULL values.

    Example:

    1. IntegerProperty integerProperty = new SimpleIntegerProperty() )
    2. integerProperty. setValue (null) ;
    3. System. out. println () integerProperty. getValue ());

    Output is 0 (default value for "int").

    I think the primitive property wrappers (IntegerProperty, BooleanProperty and friends) as of the wrappers for primitive types. Probably they shouldn't really inherit WritableValue as which allows the call to setValue with a type reference, but I think that indigestion API would be worse than the implementation of setValue with a slightly incorrect signature. I would just avoid defining a wrapper of primitive type to null property: If you want to restrict yourself using set (.) instead of setValue (...) you are forced to spend in the primitive type: either you cannot pass null.

    If you want an integer property where null values are handled in an intuitive manner, use ObjectProperty .

    The test below shows that call setValue (null) on IntegerProperty assigns the default value. (Although I don't see the behavior documented anywhere).

    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    
    public class PrimitivePropertyWrapperTest {
    
        public static void main(String[] args) {
            IntegerProperty integerProp = new SimpleIntegerProperty();
            integerProp.addListener(new ChangeListener() {
    
                @Override
                public void changed(ObservableValue observable,
                        Number oldValue, Number newValue) {
                    System.out.println("integerProperty changed value from "+oldValue+" to "+newValue);
                }
            });
    
            ObjectProperty objectProp = new SimpleObjectProperty<>();
            objectProp.addListener(new ChangeListener() {
    
                @Override
                public void changed(ObservableValue observable,
                        Integer oldValue, Integer newValue) {
                    System.out.println("objectProperty changed value from "+oldValue+" to "+newValue);
                }
            });
    
            integerProp.setValue(null);
            integerProp.setValue(1);
            System.out.println("setting integerProp back to null:");
            integerProp.setValue(null);
            System.out.println("setting integerProp to 0:");
            integerProp.setValue(0);
            integerProp.setValue(null);
    
            objectProp.setValue(null);
            objectProp.setValue(1);
            objectProp.setValue(null);
            objectProp.setValue(0);
            objectProp.setValue(null);
    
        }
    
    }
    
  • Replace NULL values for PIVOT query

    Hello

    I'm working a table for sales, for certain values, when now columns, finishing with a null value. How can I handle these values 0 (zeros).

    WITH (AS PIVOT_DATA)
    SELECT S.ZONE_CODE, Z.ZONE_NAME, S.YEAR, S.PERIOD, S.SALES
    OF STAT_TABLE_SALES ADV
    AREAS OF JOIN Z ON S.COMP = Z.COMP AND S.ZONE_CODE = Z.ZONE_CODE
    WHERE S.COMP = '001'
    AND S.BRAND_CODE = '001'
    )
    SELECT *.
    OF PIVOT_DATA
    PIVOT)
    SUM (SALES) FOR THE PERIOD (YEAR) TO ((20091),
    (2009,2),
    (2009,3),
    (20094)
    (2009,5),
    (2009,6),
    (2009,7),
    (2009.8),
    (2009,9),
    (2009.10)
    (2009,11),
    (2009.12),
    (2010,1),
    (20102)
    (2010,3),
    (2010,4),
    (2010,5),
    (2010,6),
    (2010.7))
    )
    ORDER BY DESC NULLS LAST 14;

    This query returns the following:

    COD_ZONA NOM_ZONA 2009_3 2009_2 2009_1
    -------- ------------------------------ ---------------------- ---------------------- --------------------
    01 YEDUSIJH. 1382367.75 1559943.27 1441279.64
    02 C, ASKAK 711897.82 865854,05 1583232.3
    ASDFG 03 130443.03 205409,84 178633.69
    04 OSOIDSD 320118.32 439008,83 409251.18
    05 ODFSDF 300908.21 276301,59 260188.53
    06 CH 242749.65 325196,71 464938.9
    SOA 07 610312.31 606312,93 754569.82
    08 SAN 89426.8 81360,04 61649.27
    09 YP 284487.79 328281,31 267210.85
    10 TC 87043.28 158594,43 85195.8
    11 BAGNN 76778.78 68180,76 118530.04
    12 CRT 122023.7 143442,21 134744.85
    13 ABC 209992.79 196477,03 185222.14
    IDLIB 14
    15 ARE 23870.41 4137,33 16660.53

    * These are not all the columns and rows, but it is a piece of what it returns.

    How can I replace the NULL values with 0 (zeros).

    Still not sure why nvl shouldn't meet your needs:

    SQL> select ename, nvl (clerk_20, 0) clerk_20, nvl (sal_30, 0) sal_30
      from emp pivot (sum (sal)
               for (job, deptno)
               in ( ('CLERK', 20) clerk_20, ('SALESMAN', 30) sal_30))
    /
    ENAME             CLERK_20          SAL_30
    ---------- --------------- ---------------
    WARD                     0            1250
    JONES                    0               0
    TURNER                   0            1500
    ADAMS                 1100               0
    ALLEN                    0            1600
    SMITH                  800               0
    CLARK                    0               0
    KING                     0               0
    BLAKE                    0               0
    JAMES                    0               0
    FORD                     0               0
    SCOTT                    0               0
    MARTIN                   0            1250
    MILLER                   0               0
    
    14 rows selected.
    
  • SQL Loader with null values

    Dear friends,

    I have comma-delimited .dat files. Here is the example.
    abc, xyz, 456
    ase, asd, 890
    I have no problem loading using sql loader under normal circumstances.

    When a null value somewhere, for example:
    abc, , 456
    ase, asd, 890
    or
    , xyz, 456
    ase, asd, 890
    I could not load them.

    How can I fix this error?

    Any suggestion?

    I am using Oracle 10 g R2 running on Windows Server 2003

    That's how I connect
    $sqlldr userid=userid/password control=d:\load\controlfile\table_name.ctl log=D:\load\log\tablename.log resumable = true errors=0
    It is a way the contorl file looks like
    LOAD DATA INFILE 'D:\load\dat\tablename.dat' BADFILE 'D:\load\bad\tablename.bad' DISCARDFILE 'D:\load\dat\discard\tablename.dsc' 
    INSERT INTO TABLE tablename FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS( col1, col2, col3)
    {code}
    
    How can I handle this?
    
    Please advice.
    
    Thanks in advance.
    
    Nith
    
    Edited by: user645399 on Jun 14, 2010 1:38 PM
    
    Edited by: user645399 on Jun 14, 2010 1:38 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Try column_name '' in the control file.

  • How to handle nulls through oracle forms?

    Hello

    I have a column check box on the form (request mode) and it always display the check box selected even underlying column is null.

    Please can tell me how can I show checkbox only enabled when colum data has value Y and all other cases should be unchecked (even with null values from database)

    Thank you
    VB

    VB,
    Make sure that you set the following properties of the checkbox.

    * Functional
         * Value when checked = 'Y'
         * Value when unchecked = 'N'
         * Check box mapping of other values = 'Unchecked'  (Default = Checked)
    * Data
         * Initial Value = 'N'
    

    The important property is the 'check box, mapping of other values". This property indicates how to handle values that are not expected to Oracle Forms. This is what causes the box to be checked when the value is NULL.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

  • problem of null values

    Hello

    I have a summary form that displays data from more than 10 tables, so I wrote manual sql query for each field to extract data from the database. but I got error "no data found" if one field was not filled or be null.
    So, how can I handle this null values so that the other data will be displayed and only certain fields will be null, which has no data.

    Because only extraction of form will be no insertion will be held but I can not use "SQL" as a Source because the sequence of data extraction is different from the display sequence of fields on the user interface, so some data get never recovered.

    Thanks in advance
    Rupesh

    Rupesh,

    Try to avoid the "while OTHERS THEN". Use "WHEN NO_DATA_FOUND THEN." This will prevent you other unexpected errors of masking.

    Kind regards
    Dan

    http://danielmcghan.us
    http://www.skillbuilders.com

    You can reward this answer by marking as being useful or correct ;-)

  • NPE for rows with null values in the table of the adv

    I created the table adv, 2 columns, equipped with two text fields. Initially the col2 is empty,
    say that the structure is as follows:
                  col1          col2
    Hdr         Question    Answer
    row1       abc           zxc
    row2       pdd           null (user doesnt enter anything)
    row3       zxc            lkj
    
    APPLYBUTTON
    When the user clicks on apply button I want to update these values in the table.

    I don't know how to do that, but that's what I'm trying to do. Please guide me the right way if its wrong.

    in LICS, I took the APPLYBUTTON action, got all lines of the object corresponding to the view, consulted with everyrow and I'm checking if there are values in the fields in the table, if the value zero, are simply print null. (we would not update on this line). . I could get o the part update, due to null pointer exception
    I get on the row line null pointer exception [1].getAttribute("Answer") for row2, it prints the value of row1 however.

    Here is the code I wrote:
    Set of rows from the rowset = (RowSet) vo.getRowSet ();
    Rank rank [] = vo.getAllRowsInRange ();
    System.out.println ("row.length" + row.length);
    for (int i = 0; i < row.length; i ++) {}
    String question = row.getAttribute("Question").toString ();
    String response = row [i].getAttribute("Answer").toString ();
    If (question! = null & &!("".)) Equals (question. Trim()))
    {
    System.out.println ("Question line" + i + "-" + question);
    }
    on the other
    {
    System.out.println ("Question line" + i + "is null");
    }

    If (response! = null & &!("".)) Equals (Answer.Trim ()))
    {
    System.out.println ("Response line" + i + "-" + response);
    }
    on the other
    {
    System.out.println ("Response line" + i + "is null");
    }

    Why the NPE survey code, I'm checking for null value and you want to print the value null in the logfile... I can not to getAttribute() on the null field, why can not just give me null in the variable I'm assigning to?

    You can guide me what approach to take, if it is not correct.
    I must examine DataDictionary and collect data there?
    Thanks in advance.

    Hello

    handle the exception of null on these two statements like this pointer

    String question = "";
    String response = "";

    Try
    {
    question = row.getAttribute("Question").toString ();
    }
    catch (NullPointerException e)
    {
    question = "";
    }

    Try
    {
    answer = row.getAttribute("Answer").toString ();
    }
    catch (NullPointerException e)
    {
    response = "";
    }

    Si ( !("". Equals (question. Trim()))
    {
    System.out.println ("Question line" + i + "-" + question);
    }
    on the other
    {
    System.out.println ("Question line" + i + "is null");
    }

    Si ( !("". Equals (Answer.Trim ()))
    {
    System.out.println ("Response line" + i + "-" + response);
    }
    on the other
    {
    System.out.println ("Response line" + i + "is null");
    }

    Thank you
    Gerard

  • You can not call a method on a null value expression.

    Hello

    We are working on the tool of basic hygiene WMI for windows 2008 server of health check of the scent system but in error during the run automation tool

    "Cannot call a method on a null expression."

    LE000561ERROR: You can not call a method on a null value expression.
    ERROR: The value of the argument cannot be an empty string.

    Please suggest the same

    Hi Diakité Srivastava,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • NULL values for some elements of the XML reading tree

    I am confirming that I interpret correctly all the elements of a custom data XML structure defined by my application (the schema is completely under my control).  Some of the elements in my XML tree are read as NULL values, even if similar items are readind as expected.  I have checked some obvious things like misspelling the names of keys, but have not yet find the problem.  Anyone who has debugged similar questions - what else could cause this?

    Example XML:

    
        1.0.0.0
        1000
        MyAppsName
        
            
                1000
                userDefined
                StructName
            
        
    
    

    And extracted C++ w/comments at the end of each line about what I see (DataManager is my class of CRUD operations):

    In DataManager.hpp:

    QVariant mCustomDataStructsTopLevel;
    QVariantMap mCustomDataStructsTopLevelMap;
    

    In DataManager.cpp:

    mCustomDataStructsTopLevel = mXda.load(Utils::dataFilePath(customDataStructsFileName));  // XmlDataAccess; verified loading w/no errors
    mCustomDataStructsTopLevelMap = mCustomDataStructsTopLevel.toMap();
    
    qDebug() << "appName element value: " << mCustomDataStructsTopLevelMap["appName"]; // Outputs "MyAppsName" as expected
    qDebug() << "lastId element value: " << mCustomDataStructsTopLevelMap["lastId"]; // Outputs null (specifically: QVariant(, ) ) - this is NOT expected
    qDebug() << "appVersion element value: " << mCustomDataStructsTopLevelMap["appVersion"]; // Outputs null (specifically: QVariant(QString, "") )  - this is NOT expected
    

    OK, I got the feeling (and actually hoped) it was a silly mistake of face-palm on my part (compared to a problem of BB10 who had little chance of getting fixed).

    The problem is that I copy the structure of custom data from Starter to my Active dir to my data directory to first install but do not crush him on subsequent launches, as the copy in the data directory is what the user changes and relies on.  I was not a delete and reinstall on each of my iterations, so I wasn't really loading the modified versions of my XML I wanted--just, I was getting a day old stale version which was actually for the items I didn't expect NULL values for nulls.  DOH!

  • PersistentStore.getPersistentObject returns the null value?

    I use a random key to retrieve a shape of the object PersistentStore

    persist is PersistentStore.getPersistentObject (KEY);.

    Works fine on the Simulator (OS 5), when I take the code signed to the device (BB OS 5.0 Bold 8900)

    For some reason, it returns null, without exception. Thereafter any API I inoke on PersistentStore / persist returns null without exception persist even when the null value.

    I don't know if it's one thing to eclipse debugger, but even if the debugger shows that objects are null. Controls null applied in the code seems to fail, what does code see these objects as non-null. Pheww! How is it possible.

    In this code still shows up as null, then safetyTable and orderedkeys. However, the value null check in the failure code.

    At a later stage in the code, when I try to access orderedkeys are null again! Are struggling with this problem for two days, all the pointers would be very comfortable.

                        persist = PersistentStore.getPersistentObject( KEY );
                        persistOrderedKeys = PersistentStore.getPersistentObject(KEY_ORDERED_KEYS);
                        safetyTable = (Hashtable)persist.getContents();
                        orderedKeys = (Vector)persistOrderedKeys.getContents();
                        if (safetyTable == null)
                        {
                            safetyTable = new Hashtable();
    
                            persist.setContents(safetyTable);
                            persist.commit();
                        }
    
                        if (orderedKeys==null)
                        {
                            orderedKeys=new Vector();
    
                            if (safetyTable.size()>0)
                            {
                                Enumeration addressKeys = safetyTable.keys();
                                while(addressKeys.hasMoreElements())
                                {
                                    orderedKeys.addElement((String)addressKeys.nextElement());
                                }
                            }
                            persistOrderedKeys.setContents(orderedKeys);
                            persistOrderedKeys.commit();
    
                        }
    

    "I don't know if it's one thing to eclipse debugger.

    I had problems of this kind when I don't have a level of operating system for the device I am debugging on.

Maybe you are looking for