flyjndi | 1 Jul 2004 10:04
Picon
Favicon

How does MAC Create?

hi, I'm a newer of JPOS, also I'm a newer of Pos. So i have some 
silly question .
An ISO8583 Package has 64 or 128 fields. The 64 or 128th field is 
MAC field.
one of these questions is how can I get MAC validate? Is there any 
class about it?

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
     jpos-dev-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/

Caryn Schreuder | 1 Jul 2004 16:41
Picon

Problem using PostPackager

Hello

I have just recently started working with JPOS and thus assume I am
doing something stupid :)

Postilion v4.2 Realtime Framework

PostBridge v6

I am trying to capture ISO8583 from Postbridge, listening with
Postchannel.

I used ISO87APackagerBBitmap packager and successfully unpacked ISOMsg.

However realized that Postilion 127 private structured data was
difficult to get a handle on, and I need to populate 127.2 switch to
reply to postbridge.  Thus switched to PostPackager() (on receive and
send, at the moment send message is simply a clone of receive - for test
purposes).

Upon receiving input I get the following stack trace

<log realm="iso-server.session/10.20.72.101" at="Thu Jul 01 16:29:01 CAT
2004.66

2">

  <session-error>

    <iso-exception>
(Continue reading)

Alejandro Revilla | 1 Jul 2004 21:36
Favicon
Gravatar

Re: Problem using PostPackager

> 
> If I hack PostPackage & make field 127 to be same as
> ISO87APackagerBBitmap, it works fine. 
> 
You may want to use GenericPackager with a suitable configuration 
(see src/config/packager/*.xml). It's really easier to customize.

--Alejandro

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
     jpos-dev-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/

baracuda247 | 2 Jul 2004 01:43
Picon
Favicon

Re: Unpacking Error

--- In jpos-dev@..., Alejandro Revilla
<apr@...> wrote:
> Probably something wrong with the definition of these fields.
> I'm afraid you'll have to unpack it 'by hand' checking every field 
> according to the specification and verifying that the matching 
field in
> GenericPackager's configuration matches.
> 
> --Alejandro

The problem with postpack is that the bitmap from postilion is 16 
bytes instead of the 8bytes defined in postpack.xml. Using iso87ascii-
binary-bitmap.xml, I'm able to unpack field 102 and 123 but 127 still 
remains unpacked. However, manual unpacking shows the present 
subfields of field 127 in the message received from postilion.

Is there anyway round this rather than "hand unpacking" these 
subfields?

Regards

A'

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links
(Continue reading)

Alejandro Revilla | 2 Jul 2004 02:32
Favicon
Gravatar

Re: Re: Unpacking Error

> 
> Is there anyway round this rather than "hand unpacking" these 
> subfields?
> 
Have you tried to modify src/config/packager/postpack.xml to
read like this:

      <isofield
          id="1"
          length="16"   <-- Please note 16 instead of 8 
          name="BITMAP"
          class="org.jpos.iso.IFB_BITMAP"/>

Please let us know if that works for you so we can update the
CVS version.

--Alejandro

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/jpos-dev/

(Continue reading)

baracuda247 | 2 Jul 2004 09:11
Picon
Favicon

Re: Unpacking Error


> Have you tried to modify src/config/packager/postpack.xml to
> read like this:
> 
>       <isofield
>           id="1"
>           length="16"   <-- Please note 16 instead of 8 
>           name="BITMAP"
>           class="org.jpos.iso.IFB_BITMAP"/>

The above unpacks till 127th field and throws errors afterwards (See 
below. The stack unpacked message is similar to the one I sent in my 
earlier mail.

...
...

<unpack fld="102" packager="org.jpos.iso.IFA_LLCHAR">

      <value>from account</value>

    </unpack>

    <unpack fld="123" packager="org.jpos.iso.IFA_LLLCHAR">

      <value>000010000001090</value>

    </unpack>

    <iso-exception>
(Continue reading)

baracuda247 | 2 Jul 2004 09:29
Picon
Favicon

Re: Unpacking Error

Forgot to include this in my earlier post, here is the full error log

error unpacking field 127

org.jpos.iso.ISOException: java.lang.ArrayIndexOutOfBoundsException: 
0 (java.lang.ArrayIndexOutOfBoundsException: 0)

	at org.jpos.iso.packager.GenericSubFieldPackager.unpack
(GenericSubFieldPackager.java:128)

	at org.jpos.iso.ISOMsgFieldPackager.unpack
(ISOMsgFieldPackager.java:107)

	at org.jpos.iso.ISOBasePackager.unpack
(ISOBasePackager.java:229)

	at org.jpos.iso.ISOMsg.unpack(ISOMsg.java:322)

<log realm="debug" at="Fri Jul 02 08:15:40 BST 2004.71">

  <unpack>303.....
     <bitmap>{1, 2..., 123, 127}</bitmap>
     <unpack fld="2" packager="org.jpos.iso.IFA_LLNUM">
        <value>.......</value>
.....
.....
.....

<unpack fld="102" packager="org.jpos.iso.IFA_LLCHAR">
      <value>.........</value>
(Continue reading)

Alejandro Revilla | 2 Jul 2004 15:24
Favicon
Gravatar

Re: Re: Unpacking Error

Oh... I see... field 127 is not ISO-8583 compliant, it doesn't use
3 bytes to represent the field length, it seems to use 6 bytes (up to 
999999 bytes - wow!) instead.

I've created a new IFA_LLLLLLBINARY field packager (that was easy
using Jonathan's interpreters) and modified src/config/postpack.xml
to use it as the wrapper iso-field-packager for field 127.

In addition to that, I found a misconfiguration in field 1 (bitmap),
it should read 16 instead of 8.

Using that, I've managed to unpack your message, field 127 looks
like this:

-->   <isomsg id="127">
-->     <field id="3" value="XXXXXXXXsrc YYYYYYsnk   NNNNNNNNNNNNZZZDebitGrp "/>-->     <field id="6" value="24"/>
-->     <field id="20" value="20040625"/>
-->   </isomsg>

(bank names removed)

Everything is in CVS.

Good luck, and let us know if that works for you.

--Alejandro

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
(Continue reading)

baracuda247 | 2 Jul 2004 17:02
Picon
Favicon

Re: Unpacking Error

> I've created a new IFA_LLLLLLBINARY field packager (that was easy
> using Jonathan's interpreters)

How did you do that?

> -->   <isomsg id="127">
> -->     <field id="3" value="XXXXXXXXsrc YYYYYYsnk   
NNNNNNNNNNNNZZZDebitGrp "/>-->     <field id="6" value="24"/>
> -->     <field id="20" value="20040625"/>
> -->   </isomsg>
> 
> (bank names removed)

You are right, that was the message in field 127. Thanks for removing 
the bank name. 

A'

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
(Continue reading)

Alejandro Revilla | 2 Jul 2004 17:23
Favicon
Gravatar

Re: Re: Unpacking Error

>
> > I've created a new IFA_LLLLLLBINARY field packager (that was easy
> > using Jonathan's interpreters)
> 
> How did you do that?
> 
http://tinyurl.com/2ykss (hit download there)

--Alejandro

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    jpos-dev-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Gmane