我正在尝试执行以下操作。我在运行时有一个#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feedf911be, pid=4696, tid=4216
#
# JRE version: Java(TM) SE Runtime Environment (8.0_77-b03) (build 1.8.0_77-b03)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.77-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [JNIShm.dll+0x11be]
#
# 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:
# D:\workspace\tejasMinor\hs_err_pid4696.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接口更改表。所以我创建了以下PHP脚本。
mariaDB
代码工作正常并返回以下行。
<?php
include '../db/mysql.php';
$line = mysqli_query($con,"SELECT * FROM `LineDetection`");
$circle = mysqli_query($con,"SELECT * FROM `CircleDetection`");
$lineArray=array();
$circleArray=array();
while($rowline=mysqli_fetch_assoc($line)){
$lineArray[]=$rowline;
}
echo json_encode($lineArray);
echo '<br>';
while($rowcircle=mysqli_fetch_assoc($circle)){
$circleArray[]=$rowcircle;
}
echo json_encode($circleArray);
mysqli_close($con);
我的问题是现在我无法通过get阅读2个javascript对象。 1对象就好了。
[{"threshold":"10","deltaX":"20","minVal":"50","maxVal":"150"}][{"dp":"5","minDist":"20","cannyThreshold":"10","accThreshold":"112","minRadius":"100","maxRadius":"150"}]
答案 0 :(得分:0)
谢谢道格。我用以下代码知道了。
echo '{"LineDetection":',json_encode($rowline),',"CircleDetection":', json_encode($rowcircle),"}";