PIN_ERR_STREAM_EOF Error During Pin_cycle_fees With Purchase Option

(Doc ID 1471551.1)

Last updated on JUNE 14, 2017

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.3.0.0.0 to 7.5.0.0.0 [Release 7.3.0 to 7.5.0]
Information in this document applies to any platform.
***Checked for relevance on 23-MAY-2014***

Goal

Issue:

PIN_ERR_STREAM_EOF error is reported during pin_cycle_fees with purchase option.

Scenario:

Step1: Three accounts created on 15/06/2011, with some basic offer.
Step2: Change of main offer for those three accounts by 25/06/2011. Here, three accounts are moved to another plan which is valid from next billing cycle(15/7/2011)
Step3: set pvt as bill date (15/07/2011)
Step4: Run pin_cycle_fees -purchase -verbose

>./pin_cycle_fees -purchase -verbose
Thread (2) begins ...
Fetched units per step: (3)
Total Fetched (3) units, err 0
Fetched (3) units in Total.
Thread (2) exits ...
Thread (3) begins ...
Thread (3) exits ...
Total number of records processed = 3.
Number of data errors encountered = 0.
Total number of errors encountered = 1.

As per the pin_cycle_fees mta log :

Three accounts are picked up for processing :

1     PIN_FLD_POID           POID [0] 0.0.0.101 /account 1717915 25
1     PIN_FLD_POID           POID [0] 0.0.0.101 /account 1730390 25
1     PIN_FLD_POID           POID [0] 0.0.0.101 /account 1746302 25

 

The first two accounts are processed fine while the third one failed.

See below error in the same mta log :

~~~~
E Fri Jul 15 05:00:43 2011  mypin  pin_cycle_fees:19504
pcp_xdrst.c(46):3020 1:mypin:pin_cycle_fees:19504:2:924:1335515796:6
received PIN_ERR_STREAM_EOF, closing socket
E Fri Jul 15 05:00:43 2011  mypin  pin_cycle_fees:19504
pcp_xdrst.c(46):3034 1:mypin:pin_cycle_fees:19504:2:924:1335515796:6
pcpxdr_op_decode: bad xdr: PinErr=50 - PIN_ERR_STREAM_EOF
E Fri Jul 15 05:00:43 2011  mypin  pin_cycle_fees:19504
pcp_xdrst.c(46):3173 1:mypin:pin_cycle_fees:19504:2:924:1335515796:6
XDR buffer length(16384) at position(0x4000):
[000000]  00 00 00 0E 00 00 00 50  00 00 01 08 00 00 00 02 |
.......P........
[000010]  00 00 00 00 00 00 00 65  00 00 00 00 00 00 00 01 |
.......e........
...
...
[003FE0]  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |
................
[003FF0]  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |
................

W Fri Jul 15 05:00:43 2011  mypin  pin_cycle_fees:19504  pcpst.c(72):4147
1:mypin:pin_cycle_fees:19504:2:924:1335515796:6
Server connection(ip mypin 40711) ready to failover (no trans)
E Fri Jul 15 05:00:43 2011  mypin  pin_cycle_fees:19504  pcm.c(54):875
1:mypin:pin_cycle_fees:19504:2:924:1335515796:6
Op (PCM_OP_SUBSCRIPTION_PURCHASE_FEES) receive failed in pcm_op
<location=PIN_ERRLOC_PCP:2 class="PIN_ERRCLASS_SYSTEM_RETRYABLE":3
errno=PIN_ERR_STREAM_EOF:50>
<field num=opsflds:0,0 recid=0 reserved=0 reserved2=1 time(sec:usec)=0:0>
<facility=0 msg_id=0 version=0>
~~~~

Now in the corresponding cm pinlog we can see that op_subscription_purchase_fees is called 3 times and it fails for the 3rd one :

There is also a Signal 11 shown as below :

~~~
Received Signal 11
(0)  0x60000000cb206590  printExceptionReport + 0x240 at unix_exception.c:112
[/home03/users/pin107/testenv/brm/prd/730/pin/lib/libcm_main.so]
(1)  0x60000000cb1f79c0  sigsegv_handler + 0x40 at ../cm_main.c:132
[/home03/users/pin107/testenv/brm/prd/730/pin/lib/libcm_main.so]
(2)  0xe00000012068e900  ---- Signal 11 (SIGSEGV) delivered ----
(3)  0x60000000c01be430  _tfind + 0xa0 at
../../../../../core/libs/libc/shared_em_32_perf/../core/gen/tfind.c:30
[/usr/lib/hpux32/libc.so.1]
    (inlined)           _ZN16PcmPoidTypeTable8FindTypeEPKc at
../pcm/PcmPoidTypeTable.cpp:104
(4)  0x60000000caef0c40  pin_poid_find_type + 0x120 at
../pcm/PcmPoidTypeTable.cpp:223
[/home03/users/pin107/testenv/brm/prd/730/pin/lib/libcmpin.so]
(5)  0x60000000caf30800  pcpxdr_poid + 0x1b80 at ../pcp/pcp_xdrst.c:3484
[/home03/users/pin107/testenv/brm/prd/730/pin/lib/libcmpin.so]
(6)  0x60000000caf2a930  pcpxdr_fld_list + 0x8f0 at ../pcp/pcp_xdrst.c:4896
[/home03/users/pin107/testenv/brm/prd/730/pin/lib/libcmpin.so]
...
~~~

Notes:
=====
*  If pin_cycle_fees (- purchase) is run for 2 accounts only, there is no error. The error occurs when there are 3 accounts or more.
*  The error is coming only for the PURCHASE option and not for the CANCEL option.

Solution

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