CCB: Error java.nio.BufferUnderflowException encountered when trying to Audit CI_ADJ_CALC_LN (Doc ID 1419343.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle Utilities Customer Care and Billing - Version 2.2.0 to 2.2.0 [Release 2.2]
Information in this document applies to any platform.

Symptoms

System error encountered when trying to audit CI_ADJ_CALC_LN:
 

java.nio.BufferUnderflowException
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:142)
at java.nio.ByteBuffer.get(ByteBuffer.java:689)
at
com.splwg.base.support.cobol.CobolByteBuffer.readString(CobolByteBuffer.java:2
67)
at
com.splwg.base.support.cobol.CobolStringField.readFrom(CobolStringField.java:8
1)
at
com.splwg.base.support.cobol.CobolFieldContainerField.readFrom(CobolFieldConta
inerField.java:97)
at
com.splwg.base.support.auditing.CobolToJavaAudit.javaAudit(CobolToJavaAudit.ja
va:47)
at sun.reflect.GeneratedMethodAccessor2334.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDi
spatcher.dispatchToRequestedMethod(CobolToJavaGateway.java:337)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDi
spatcher.access$300(CobolToJavaGateway.java:255)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.dispatch
ToRequestedMethod(CobolToJavaGateway.java:250)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.access$0
00(CobolToJavaGateway.java:232)
at
com.splwg.base.support.cobol.CobolToJavaGateway.callJava(CobolToJavaGateway.ja
va:65)
at
com.splwg.base.support.cobol.host.command.CobolToJavaGatewayCommand.invoke(Cob
olToJavaGatewayCommand.java:33)
at
com.splwg.base.support.cobol.host.PerformCommandExecuter.invoke(PerformCommand
Executer.java:68)
at
com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketRea
der.readRequestExecuteAndRespond(OptimizedRemoteExecuterSkel.java:157)
at
com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketRea
der.run(OptimizedRemoteExecuterSkel.java:91)
at
com.splwg.base.support.cobol.host.SocketThreadPool$WrappingParentRunnable.run(
SocketThreadPool.java:204)
at cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:811)
FROIG - 161050-1874-1 2011-09-29 11:23:06,713 [Parent Reader:Thread-142]
ERROR (support.cobol.CobolToJavaGateway) Error invoking method javaAudit
FROIG - 161050-1874-1 2011-09-29 11:23:06,717 [Parent Reader:Thread-142]
ERROR (support.cobol.CobolToJavaGateway) A system error occurred calling
method javaAudit on class com.splwg.base.support.auditing.CobolToJavaAudit
com.splwg.shared.common.LoggedException:
The following stacked messages were reported as the LoggedException was
rethrown:
java.lang.reflect.Method.invoke(Method.java:618): Error invoking method
javaAudit

The root LoggedException was: Error reading cobol field: ADJ_ID
at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:198)
at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:85)
at
com.splwg.base.support.cobol.CobolFieldContainerField.readFrom(CobolFieldConta
inerField.java:100)
at
com.splwg.base.support.auditing.CobolToJavaAudit.javaAudit(CobolToJavaAudit.ja
va:47)
at sun.reflect.GeneratedMethodAccessor2334.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDi
spatcher.dispatchToRequestedMethod(CobolToJavaGateway.java:337)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDi
spatcher.access$300(CobolToJavaGateway.java:255)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.dispatch
ToRequestedMethod(CobolToJavaGateway.java:250)
at
com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.access$0
00(CobolToJavaGateway.java:232)
at
com.splwg.base.support.cobol.CobolToJavaGateway.callJava(CobolToJavaGateway.ja
va:65)
at
com.splwg.base.support.cobol.host.command.CobolToJavaGatewayCommand.invoke(Cob
olToJavaGatewayCommand.java:33)
at
com.splwg.base.support.cobol.host.PerformCommandExecuter.invoke(PerformCommand
Executer.java:68)
at
com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketRea
der.readRequestExecuteAndRespond(OptimizedRemoteExecuterSkel.java:157)
at
com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketRea
der.run(OptimizedRemoteExecuterSkel.java:91)
at
com.splwg.base.support.cobol.host.SocketThreadPool$WrappingParentRunnable.run(
SocketThreadPool.java:204)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:811)
Caused by: java.nio.BufferUnderflowException
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:142)
at java.nio.ByteBuffer.get(ByteBuffer.java:689)
at
com.splwg.base.support.cobol.CobolByteBuffer.readString(CobolByteBuffer.java:2
67)
at
com.splwg.base.support.cobol.CobolStringField.readFrom(CobolStringField.java:8
1)
at
com.splwg.base.support.cobol.CobolFieldContainerField.readFrom(CobolFieldConta
inerField.java:97)

Changes

1) Install Patch 12698502 ( SYSTEM ERROR DUE TO AUDIT WHEN ACTIVATING NEW SA AND ADJUSTMENT BEING AUTOGENERA)

2) Turn on JAVA audit for the following tables:
CI_ADJ
CI_ADJ_CALC_LN
CI_FT
CI_SA

3) Configure SA Type SA Activation Algorithm to create and freeze an
adjustment

4) When SA is activated, error is logged (see spl.service.log):

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