This discussion is archived
3 Replies Latest reply: Jun 5, 2013 3:49 AM by Steven Davelaar RSS

Disconnect Application Module Upon Release and LOV NPE

spooker Newbie
Currently Being Moderated
Environment
Jdeveloper 11.1.1.4.0
Jheadstart Release 11.1.1.4.26

There seems to be some sort of incompatibility with some LOVs when I enable Disconnect Application Module Upon Release.
I have an LOV based on an updatable VO with a bind parameter.
When I first log on the application an try to use the LOV I get a NPE when I select the row from the LOV popup and press OK.
If I navigate to another page and return the LOV starts working correctly

The NPE occurs in line
keyList.add(getIterBinding().getCurrentRow().getKey());
of LovItemBean
getIterBinding().getCurrentRow() is null it this case.
Do you have any hints?

public void copyReturnValues(Map selectedRowData, Row baseRow, boolean copyToUI, boolean commaSeparated)
{
// first clear any dependent items, if they exist
if (getTableBean() != null)
{
List keyList = new ArrayList();
keyList.add(getIterBinding().getCurrentRow().getKey());
getTableBean().getTable().setRowKey(keyList);
}

Edited by: spooker on May 31, 2013 9:28 AM
  • 1. Re: Disconnect Application Module Upon Release and LOV NPE
    Steven Davelaar Employee ACE
    Currently Being Moderated
    Hmm, we obviously can fix the NPE by checking for the current row not being null, but I guess the LOV then wouldn't work either.

    Why do you want to use "Disconnect Application Module Upon Release"? It is very unusual to use this setting.

    Steven Davelaar,
    JHeadstart Team.
  • 2. Re: Disconnect Application Module Upon Release and LOV NPE
    spooker Newbie
    Currently Being Moderated
    I was using Disconnect Application Module Upon Release to overcome an issue I had with multiple duplicated rows being generated in a table under certain circumstances.
    What I had is a button which reads the rows of a table and creates new rows in another table (other viewobject) which have a foreign key to the rows of the first table.

    If I issue multiple requests on the first table (5rows) by clicking different rows very fast and at the same time I press the button to create new rows to the second table the results are undefined. Instead of getting 5 new rows I get 10 or even 15 or 20. I don't know if this is a bug or if I am doing something wrong but I managed to overcome this by using the Entity RowSet instead of the ViewObject RowSet.

    so now I am not using Disconnect Application Module Upon Release any more.

    Edited by: spooker on Jun 3, 2013 7:38 AM
  • 3. Re: Disconnect Application Module Upon Release and LOV NPE
    Steven Davelaar Employee ACE
    Currently Being Moderated
    OK, so we can close this issue then?

    Steven Davelaar,
    JHeadstart team.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points