springboot应用服务,请求第二次,jvm Crash
springboot应用服务,请求第二次,jvm Crash
idea编辑器,利用spring boot发布应用服务,其中有第三方应用架包,发布服务后,第一次请求服务没有问题;第一次执行完,立马请求第二次,jvm就会崩溃
相关代码
private void CreateNetwork3D(Workspace workspace, String networkName, DatasetVector dv3DLine,DatasetVector dv3DPoint) {
try {
Datasource datasource = workspace.getDatasources().get(0);
String availableName = datasource.getDatasets().getAvailableDatasetName(networkName,DatasetType.NETWORK3D);
List<String> lineFieldNames = new ArrayList<>();
List<String> pointFieldNames = new ArrayList<>();
FieldInfos lineFieldInfos = dv3DLine.getFieldInfos();
for(int i=0;i<lineFieldInfos.getCount();i++)
{
String fieldName = lineFieldInfos.get(i).getName();
if(!fieldName.toUpperCase().contains("SM"))
{
lineFieldNames.add(fieldName);
}
}
FieldInfos pointFieldInfos = dv3DPoint.getFieldInfos();
for(int i=0;i<pointFieldInfos.getCount();i++)
{
String fieldName = pointFieldInfos.get(i).getName();
if(!fieldName.toUpperCase().contains("SM"))
{
pointFieldNames.add(fieldName);
}
}
String[] tempLineFields=lineFieldNames.toArray(new String[lineFieldNames.size()]);
String[] temppointFields=pointFieldNames.toArray(new String[pointFieldNames.size()]);
NetworkBuilder3D.buildNetwork(dv3DLine,dv3DPoint,tempLineFields,temppointFields,datasource,availableName, NetworkSplitMode3D.LINE_SPLIT_BY_POINT,0.00001);
datasource = null;
}
catch (Exception ex)
{
ex.getMessage();
}
}
崩溃日志部分信息
Stack: [0x000000008cc30000,0x000000008cd30000], sp=0x000000008cd2bc08, free space=1007k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x00007ffdea0420b0
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 8650 com.supermap.data.ToolkitNative.jni_GetBooleanHandle(J)Z (0 bytes) @ 0x0000000003351b01 [0x0000000003351ac0+0x41]
J 9547 C2 com.supermap.realspace.networkanalyst.NetworkBuilder3D.steppedCallBack(IJLjava/lang/String;Ljava/lang/String;J)V (56 bytes) @ 0x00000000041a378c [0x00000000041a3760+0x2c]
v ~StubRoutines::call_stub
j com.supermap.realspace.networkanalyst.NetworkBuilder3DNative.jni_BuildNetwork([J[J[Ljava/lang/String;[Ljava/lang/String;JLjava/lang/String;ID)J+0
j com.supermap.realspace.networkanalyst.NetworkBuilder3D.buildNetwork(Lcom/supermap/data/DatasetVector;Lcom/supermap/data/DatasetVector;[Ljava/lang/String;[Ljava/lang/String;Lcom/supermap/data/Datasource;Ljava/lang/String;Lcom/supermap/realspace/networkanalyst/NetworkSplitMode3D;D)Lcom/supermap/data/DatasetVector;+367
j z.s.cache.service.cacheSrv.CreateNetwork3D(Lcom/supermap/data/Workspace;Ljava/lang/String;Lcom/supermap/data/DatasetVector;Lcom/supermap/data/DatasetVector;)V+226
j z.s.cache.service.cacheSrv.CreateDataSets(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Lcom/supermap/data/Workspace;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V+330
j z.s.cache.service.cacheSrv.Vectoring(Ljava/lang/String;Ljava/lang/Integer;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z+317
j z.s.cache.service.cacheSrv.publishServices(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V+289
j z.s.cache.thread.CacheThread.run()V+23
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
你期待的结果是什么?实际看到的错误信息又是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是windows平台还是linux平台,这中底层错误一般都是环境问题,你可以换一台计算机试试