JayPoser
unread,Jan 5, 2009, 8:51:25 PM1/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jPOS Users
In pack(), at what would line-78 in the euro packager, a
NullPointerException is experienced with "byte[] b = fld[i].pack(f);",
when packing DE48.
However, the issue is that the NPE happens in one env, but not in the
other.
We've compared code and settings many times and came up empty.
NPE @ MySubFieldPackager.pack(MySubFieldPackager.java:55)
at org.jpos.iso.ISOMsgFieldPackager.pack(ISOMsgFieldPackager.java:57)
at org.jpos.iso.ISOBasePackager.pack(ISOBasePackager.java:119)
at org.jpos.iso.ISOMsg.pack(ISOMsg.java:331)
at org.jpos.iso.BaseChannel.send(BaseChannel.java:504)
at CustomNACChannel.send(CustomNACChannel.java:114)
The DE48 definition omits some fields on purpose, meaning only
subfields 0/11/33/34.. are defined,
but again it seems to work in env-1, but fails in env-2:
<isofieldpackager
id="48" length="100" name="FIELD 48"
class="org.jpos.iso.IFA_LLLBINARY"
packager="MySubFieldPackager">
<isofield id="0" length="1" name="TCC"
class="org.jpos.iso.IF_CHAR"/>
<isofield id="11"...
<isofield id="33"...
The NPE seems to come from this fact that not all fields are defined,
so one obvious correction would be is to
defined all the sub-fields. However, that might mess up the format of
DE48, so I'm hesitant on it.
Obviously, I realize that this is custom code, so good luck to me,
still, I was hoping for some helpful suggestions.
The custom sub-fld packager differs from its euro brother by name and
a minor mod to unpack().
The jpos systems in question are running under weblogic 9.2,
jrockit910 on Windows XP SP2.
Thanks for your help in advance,
Karl