I’ve created a Jira Ticket:
https://issues.apache.org/jira/browse/NIFI-9991

Thanks Tamás Pálfy for taking care of the problem :-). I’m curious about the 
outcome.

Cheers Josef


From: Tamás Pálfy <[email protected]>
Reply to: "[email protected]" <[email protected]>
Date: Thursday, 5 May 2022 at 14:07
To: "[email protected]" <[email protected]>
Subject: Re: JASN1Reader (nifi-asn1-nar) RecordReader does process only the 
very first record

Hi Josef,

I participated in the development of the JASN1Reader.
Would it be possible for you to attach the schema (asn) and a sample data file?

On Thu, May 5, 2022 at 11:27 AM 
<[email protected]<mailto:[email protected]>> wrote:
Hi guys

Since NiFi 1.14.0 there is an ASN1 decoder called JASN1Reader included into 
NiFi and we are testing it now for the first time.

We have created a ConvertRecord processor and added the JASN1Reader with the 
configurations below. As RecordWriter we use JSON or CSV, but NiFi always 
successfully writes only the very first record. All other records from the same 
ASN1-File will be ignored without any error or warning. Has anybody else 
experience with this RecordReader? Is this a bug or are we doing something 
wrong?

Cheers Josef


[Graphical user interface, application    Description automatically generated]

[Graphical user interface, application, website    Description automatically 
generated]

Our ASN1 Schema for this example:
M2M DEFINITIONS IMPLICIT TAGS ::=
BEGIN
GPRSRecord ::= CHOICE
{
    pgwRecord [79] PGWRecord
}

PGWRecord ::= SET
{
    recordType [0] RecordType,
    servedIMSI [3] IMSI,
    p-GWAddress [4] GSNAddress,
…

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to