java - Why does j8583 Configparser fails with no default value to template fields? -



java - Why does j8583 Configparser fails with no default value to template fields? -

i using j8583 build , parse iso messages. have template , parse config.xml in place, when there no default values specified template fields fails nullpointerexception.

below template fails nullpointerexception.

field 3 doesn't have default value.

<template type="0200"> <field num="3" type="numeric" length="6"></field> <field num="32" type="llvar">456</field> <field num="35" type="llvar">4591700012340000=</field> <field num="43" type="alpha" length="40">solabtest test-3 df mx</field> <field num="49" type="alpha" length="3">484</field> <field num="60" type="lllvar">b456pro1+000</field> <field num="61" type="lllvar"> 1234p</field> <field num="100" type="llvar">999</field> <field num="102" type="llvar">abcd</field>

well you're specifying field 3 numeric field of 6 digits , didn't set value. it's weird npe, should numberformatexception when tries parse empty string.

please file issue on github.com/chochos/j8583 , i'll (i'm author of j8583).

in meantime, seek setting value 0. or, if don't need field, omit template.

java iso8583 j8583

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -