smslib使用的问题,监听一个串口没问题,监听多个串口JVM就异常退出了

发布于 2022-01-03 03:02:24 字数 1778 浏览 788 评论 2

win10 64位 jdk7 64位,集成测试监听一个串口没问题,可以收发短信,当监听多个的时候启动就报异常的,不解,请问有人遇到过吗?貌似是底层调用的rxtxSerial.dll出的问题。

看API监听多个很简单,add进去就可以了,不知道为何会出错

gateway.setInbound(true);//先循环new gateway然后add进去service.addGateway方法里面是一个list所以应该是支持多个的
                gateway.setOutbound(true);
                gateway.setProtocol(Protocols.PDU);

                //加入到网关服务队列
                service.setInboundMessageNotification(inboundNotification);
                service.setCallNotification(callNotification);
                service.setGatewayStatusNotification(statusNotification);
                service.setOrphanedMessageNotification(orphanedMessageNotification);
                service.addGateway(gateway);
然后service.startService();

 

 

[thread 16080 also had an error][thread 16080 also had an error]

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180008790, pid=5272, tid=14664
#
# JRE version: Java(TM) SE Runtime Environment (7.0_80-b15) (build 1.7.0_80-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.80-b11 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [rxtxSerial.dll+0x8790]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# G:SoftmytestsmslibProjecths_err_pid5272.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陌上芳菲 2022-01-08 00:27:17

私信

一人独醉 2022-01-07 23:19:13

楼主,这个问题现在解决了吗, 我这出现了相同的问题。卡了很久了,  求帮助

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文