My Oracle Support Banner

Unexpected Output From Jre Of NM511 With Jre6 On Linux (Doc ID 1683130.1)

Last updated on MARCH 11, 2019

Applies to:

Oracle Communications Offline Mediation Controller - Version 5.1.1 to 5.1.1 [Release 5.1]
Information in this document applies to any platform.

Symptoms

There is a compiler issue with jre6 bundled with NM511-eFix27(Linux) version, Basically its giving wrong values after the compilation. This was tested and confirmed with the following test case.

Following is an example:

We have a program that subtract between two numbers, taken by substring-ing last 2 digits from two string values.
If we compile and run it in NM511-eFix27(Linux) version, intermittently it gives different value where it runs fine in NM511-eFix24(HP-UX).
Attaching the program here. We have also noticed NM511-eFix27(Linux) uses JRE6 to run java programs whereas NM511-eFix24(HP-UX) uses JRE5.

Below are the steps to reproduce and outputs as well.

1. Have attached the TestJreIssue.java and TestSubstr3.java can can compile them and execute with the jre present in /NM511/jre/bin (of NM511-eFix27(Linux) version).
2. Execute it with /NM511/jre/bin/java TestJreIssue or /NM511/jre/bin/java TestSubstr3
3. You will see the out put as
$ /apps/NM511/jre/bin/java TestJreIssue
Started with the program..wait till it exists
Not MultiThreaded *************centidiff value is: 85
Not MultiThreaded *************end_centi value is: 87
Not MultiThreaded *************ans_centi value is: 32
Wrong value calculated for centidiff.. Expected is 53 and got 85 why ???
Error at iteration no 17328
Not MultiThreaded *************centidiff value is: 149
Not MultiThreaded *************end_centi value is: 87
Not MultiThreaded *************ans_centi value is: 34
Wrong value calculated for centidiff.. Expected is 53 and got 149 why ???
Error at iteration no 34019

4. where as the code should always get 53 as the result.

Note: Attached java sample java test code 

 

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.