OSEProgressListener That Shows The Current Status NEVER GIVES PROGRESS (Doc ID 1613382.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Lite - Version 10.3.0.3.0 and later
Information in this document applies to any platform.

Symptoms

On : 10.3.0.3.0 version, When using hte OSEProgressListener

ACTUAL BEHAVIOR
---------------
The progress is only :

- Step: 4,1,2,3,0 (which is wrong)
- Percentage – either 0, either 100.

EXPECTED BEHAVIOR
-----------------------
- Step: 0,1.2.3.4.
- Percentage – from 10 To 100


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. add the following code to simple sync


mSess.setProgress(new OSEProgressListener() {

public void progress(int state, int val) {
Log.d("CLOWN", String.format("State: %d Value: %d", state, val));
}

});

2. compile and run it:
No feedback until 20 seconds:


OSEProgressListener.PREPARE:
03-30 11:46:39.601: D/SynchronizeTask(14076): State: 1 Value: 0
03-30 11:46:39.621: D/SynchronizeTask(14076): State: 1 Value: 5
03-30 11:46:39.621: D/SynchronizeTask(14076): State: 1 Value: 5
03-30 11:46:39.631: D/SynchronizeTask(14076): State: 1 Value: 5
03-30 11:46:39.631: D/SynchronizeTask(14076): State: 1 Value: 5
03-30 11:46:39.631: D/SynchronizeTask(14076): State: 1 Value: 5
03-30 11:46:39.631: D/SynchronizeTask(14076): State: 1 Value: 5
03-30 11:46:39.631: D/SynchronizeTask(14076): State: 1 Value: 8
03-30 11:46:39.641: D/SynchronizeTask(14076): State: 1 Value: 8
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 8
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 8
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 8
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 9
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 9
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 9
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 9
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 1 Value: 100

OSEProgressListener.SEND:
03-30 11:46:39.671: D/SynchronizeTask(14076): State: 2 Value: 0
03-30 11:46:39.701: D/SynchronizeTask(14076): State: 2 Value: 95
03-30 11:46:39.711: D/SynchronizeTask(14076): State: 2 Value: 100

OSEProgressListener.RECEIVE:
03-30 11:46:42.083: D/SynchronizeTask(14076): State: 3 Value: 0
03-30 11:46:42.113: D/SynchronizeTask(14076): State: 3 Value: 49
03-30 11:46:42.143: D/SynchronizeTask(14076): State: 3 Value: 74
03-30 11:46:42.153: D/SynchronizeTask(14076): State: 3 Value: 86
03-30 11:46:42.153: D/SynchronizeTask(14076): State: 3 Value: 86
03-30 11:46:42.203: D/SynchronizeTask(14076): State: 3 Value: 89
03-30 11:46:42.223: D/SynchronizeTask(14076): State: 3 Value: 94
03-30 11:46:42.233: D/SynchronizeTask(14076): State: 3 Value: 97
03-30 11:46:42.253: D/SynchronizeTask(14076): State: 3 Value: 98
03-30 11:46:42.263: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.313: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.343: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.343: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.353: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.353: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.353: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.373: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.373: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.373: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.373: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.373: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.424: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.424: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.424: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.424: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.424: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.454: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.454: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.454: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.454: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.454: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.454: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.464: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.464: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.464: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.474: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.484: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.484: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.484: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.484: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.524: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.534: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.554: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.564: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.574: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.574: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 99
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 100
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 100
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 100
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 100
03-30 11:46:42.614: D/SynchronizeTask(14076): State: 3 Value: 100

And then keeps on showing 100 for 2 minutes.


case OSEProgressListener.PROCESS:
This shows accurate percentage increase.

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