ViewRowImpl.removeRow() of an Initialized Row Results in a NullPointerException (Doc ID 414852.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: 10.1.3.0.4 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms


When executing the method ViewRowImpl.removeRow() strange things happen if you have added and
removed more than 70 rows.
Some of the rows that were deleted with the removeRow() are in fact not deleted.
In your real application, no error is displayed.
You can see a difference in the BC4J Diagnostics when it happens:
when the row is effectively deleted, a line
[926] QueryCollection: afterRemove(0)
is added in the Console.

In other cases, this line is missing, what means the row hasn't been deleted.

When trying to simulate the problem in a simplified testcase, the problem may look different
as it may show as a NullPointerException when removing a row:
Exception in thread "main" java.lang.NullPointerException
at oracle.jbo.server.ViewRowImpl.doRemove(ViewRowImpl.java:1810)
at oracle.jbo.server.ViewRowImpl.remove(ViewRowImpl.java:1852)
(...)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms