求rxtxcomm在一个web页面循环读取多个串口数据的方法
首先,我用jquery 的ajax方式调用servlet来实现对一个串口的数据实时读写,测试是没问题的。
但是当我在jsp页面用两个ajax分别调用两个不同的servlet(每个servlet都读取不同的com口返回数据)以后,java控制台会很快提示如下错误:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000001800087dd, pid=6952, tid=7564
#
# JRE version: 6.0_43-b01
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.14-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [rxtxSerial.dll+0x87dd]
#
# An error report file with more information is saved as:
# D:\JAVA\eclipse4\hs_err_pid6952.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
说明:我的每一个servlet在单独测试的时候都可以很好的返回数据,但是两个一起循环的时候就开始出现以上错误了。
我使用的是:eclipse4.2 + jdk1.6+tomcat7+rxtxcomm2.2
我的项目需要在一个web页面上同时显示3个串口的实时数据,请教是哪里出了问题?
兄弟我非常着急,在线等