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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -