简体   繁体   English

j8583无法处理字段128

[英]j8583 cannot handle field 128

I've been using j8583 to parse and construct ISO 8583 message in Java. 我一直在使用j8583来解析和构建Java中的ISO 8583消息。 All seems well until one of the message has field 128 in it. 一切似乎都很好,直到其中一条消息中包含字段128。 That field is always missing when I construct or parse a message that has bit 128, but the other bit (2...127) are fine. 当我构造或解析具有位128的消息时,该字段总是丢失,但是另一位(2 ... 127)很好。

I've double check the xml configuration, and nothing wrong there. 我仔细检查了xml配置,没有错。

Is it just me or there are actually a bug in j8583? 它只是我还是j8583中确实存在错误? anybody know how to solve this? 谁知道怎么解决这个问题? I'm on a really tight schedule, so changing library for iso 8583 is very unlikely 我的时间表非常紧张,因此更换iso 8583的库是不太可能的

I'm the author of j8583. 我是j8583的作者。 I just reviewed the code and there is indeed a problem with MessageFactory.newMessage() where it won't assign field 128 to new messages. 我刚刚查看了代码,MessageFactory.newMessage()确实存在问题,它不会将字段128分配给新消息。 I just committed the change, so you can get the latest source from the repository and your new messages will include field 128. 我刚刚提交了更改,因此您可以从存储库中获取最新的源,并且您的新消息将包含字段128。

I also reviewed the parsing code and I couldn't find anything wrong there. 我还查看了解析代码,我找不到任何错误。 If you parse a message with field 128 and it's in your parsing guide, the message should contain it. 如果您使用字段128解析消息并且它在解析指南中,则消息应包含它。

However, I've encountered certain ISO8583 implementations in which a message has the 128 field set in the bitmap but it's really not in the message. 但是,我遇到了某些ISO8583实现,其中消息在位图中设置了128个字段,但它实际上不在消息中。 In these cases j8583 can't parse the message because there's missing data. 在这些情况下,j8583无法解析消息,因为缺少数据。 I'm still trying to figure out how to handle this. 我还在试图弄清楚如何处理这个问题。

When you find any bugs in j8583 please post them in the project page, so I get notified and solve them. 当您在j8583中发现任何错误时,请将它们发布在项目页面中,以便我收到通知并解决它们。 I don't usually look for j8583 tagged questions in this site (but I should probably start doing so). 我通常不会在这个网站上寻找j8583标记的问题(但我应该开始这样做)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM