首页 / 浏览问题 / 三维GIS / 问题详情
vue使用iserver服务后,出现404错误
qzg
38EXP 2020年04月13日

使用产品:iserver 10i 操作系统:win10
数据类型: 文件型
问题详细描述:最近创建的一个vue项目,需要调用本地发布的iserver 3D服务,但是调用之后,iserver本地服务确出现404错误:

<template>
    <div>
        <!-- 欢迎来到首页 -->
        <!-- 超图三维地球viewer -->
        <sm-viewer @ready=ready navigation fullscreenButton>
        </sm-viewer>
    </div>
</template>
 
<script>
export default {
  methods: {
    ready (cesiumInstance) {
        var Cesium = cesiumInstance.Cesium;
        var viewer= cesiumInstance.viewer;
        var scene = viewer.scene;
        viewer.imageryLayers.addImageryProvider(new Cesium.BingMapsImageryProvider({
                url : 'https://dev.virtualearth.net',
                mapStyle : Cesium.BingMapsStyle.AERIAL,
                key : 'AhLx52IuZUuca_C3zK2TzBG2eu1vihUkayqc_e4MISbXZyn5Zw_X--odRqrweVap'
            }));
            var urlStr = 'http://www.supermapol.com/realspace/services/3D-suofeiya_church/rest/realspace';
            scene.open(urlStr);
            scene.camera.setView({
                //将经度、纬度、高度的坐标转换为笛卡尔坐标
                destination : new Cesium.Cartesian3(-2653915.6463913363,3571045.726807149,4570293.566342328),
                orientation : {
                    heading : 2.1953426301495345,
                    pitch : -0.33632707158103625,
                    roll : 6.283185307179586
                }
            });
    }
  }
}
</script>

图片中的Cesium我是直接复制的iserver中webapps文件夹下的webgl的内容,以上vue代码倒是能运行,但是不能使用本地iserver服务,还请赐教。

1个回答

java.lang.IllegalStateException: org.sqlite.SQLiteException: [SQLITE_BUSY]  The database file is locked (database is locked)
	at com.supermap.server.impl.RequestPerformanceRecordDAO.a(SourceFile:129)
	at com.supermap.server.impl.RequestPerformanceRecordDAO.<init>(SourceFile:59)
	at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:179)
	at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:80)
	at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:123)
	at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:120)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.supermap.services.util.DelegatingErrorHandlingCallable$ReflectInvoker.a(SourceFile:177)
	at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(SourceFile:102)
	at com.supermap.server.host.webapp.ApplicationFilter.init(SourceFile:158)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:283)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4546)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5191)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.sqlite.SQLiteException: [SQLITE_BUSY]  The database file is locked (database is locked)
	at org.sqlite.core.DB.newSQLException(DB.java:941)
	at org.sqlite.core.DB.newSQLException(DB.java:953)
	at org.sqlite.core.DB.throwex(DB.java:918)
	at org.sqlite.core.NativeDB._exec_utf8(Native Method)
	at org.sqlite.core.NativeDB._exec(NativeDB.java:94)
	at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:109)
	at com.supermap.server.impl.RequestPerformanceRecordDAOInitializer.init(SourceFile:36)
	at com.supermap.server.impl.RequestPerformanceRecordDAO.a(SourceFile:127)
	... 28 more

以上为iserver.log中的报错信息

qzg
38EXP 2020年04月13日
...