几何列返回空指针异常

时间:2019-06-29 08:44:55

标签: java sql oracle-sqldeveloper geospatial oracle-spatial

我正在尝试让Spectrum用户使用Spectrum空间分析器返回保留几何的要素集合。我有六个要测试的表。在其中三个表上,我收到了几何图形,在其他三个表上,我没有。对于我没有的三个表,我可以为其中一个表返回低于10的几行,而不能为其他两个表返回。

我已经在oracle中运行了这些查询,它们都完全按照我的期望工作。但是在频谱空间分析仪中却没有。即使在频谱中运行本机oracle查询也不能在所需的所有表上使用。

  1. 我尝试了基本到高级查询。
  2. 我已将查询细分 放入select语句中的各个列中,并在4个中分为3个 列返回数据。
  3. 我已将这些查询删除并重新添加到 光谱。
  4. 我已经比较了oracle中的所有表,它们都是 相同。
  5. 我已经在oracle中运行了这些查询,并且都返回了 结果。

这里是指向日志的链接

https://drive.google.com/open?id=1ZYnIhP0gOMoNDMz62x0dKs-sw8an1C6m

Select map_obj_id, geometry from LANDWEB.FOLIO_EXCL_MAP_OBJ where MAP_OBJ_ID in(110477652)

Select map_obj_id, geometry from LANDWEB.FOLIO_NEXCL_MAP_OBJ where MAP_OBJ_ID in(110477652)

Select map_obj_id, geometry  from LANDWEB.MAP_OBJ_UPDATE where ACTION_STATUS <> 'D' and MAP_OBJ_ID in(110477652)

LRNI层

SELECT * FROM LANDWEB.MAP_OBJ_UPDATE WHERE app_id = 0 AND action_status <> 'D'

SELECT * FROM LANDWEB.MAP_OBJ_UPDATE WHERE action_status <> 'D' AND app_id <> 0 and  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'  and nvl(new_layer_name,layer_name) in ('W','N','E','I','C','T','S','F','X')

Select * FROM LANDWEB.FOLIO_EXCL_MAP_OBJ WHERE  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE' 

Select * FROM LANDWEB.FOLIO_NEXCL_MAP_OBJ WHERE  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'

Select * FROM LANDWEB.INCUM_MAP_OBJ WHERE  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE' 

Select * FROM LANDWEB.INFO_MAP_OBJ WHERE  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'

Select * FROM LANDWEB.TEXT_MAP_OBJ WHERE  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'

Select * FROM LANDWEB.SC_NEXCL_MAP_OBJ WHERE  mdsys.SDO_Relate(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE' 

Select * FROM LANDWEB.SC_TEXT_MAP_OBJ WHERE  mdsys.SDO_Relate(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE' 

Select * FROM LANDWEB.SC_INFO_MAP_OBJ WHERE  mdsys.SDO_Relate(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'

OSNI层

Select LANDWEB.PI_MB_BUILDING_MAP_OBJ.geometry,  MB_MAP_OBJ_ID, LANDWEB.PI_MB_BUILDING_MAP_OBJ.text, LANDWEB.PI_MB_BUILDING_MAP_OBJ.feat_code 
from LANDWEB.PI_MB_BUILDING_MAP_OBJ
where  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE';


Select LANDWEB.PI_MB_PARCEL_MAP_OBJ.geometry,  MB_MAP_OBJ_ID, LANDWEB.PI_MB_PARCEL_MAP_OBJ.text, LANDWEB.PI_MB_PARCEL_MAP_OBJ.feat_code 
from LANDWEB.PI_MB_PARCEL_MAP_OBJ 
where  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'  

Select LANDWEB.PI_MB_TEXT_MAP_OBJ.geometry,  MB_MAP_OBJ_ID, LANDWEB.PI_MB_TEXT_MAP_OBJ.text, LANDWEB.PI_MB_TEXT_MAP_OBJ.feat_code 
From LANDWEB.PI_MB_TEXT_MAP_OBJ
Where  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'     

Select LANDWEB.PI_MB_MISC_MAP_OBJ.geometry,  MB_MAP_OBJ_ID, LANDWEB.PI_MB_MISC_MAP_OBJ.text, LANDWEB.PI_MB_MISC_MAP_OBJ.feat_code from 
LANDWEB.PI_MB_MISC_MAP_OBJ
where  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'    


Select LANDWEB.PI_MB_LEGAL_MAP_OBJ.geometry,  MB_MAP_OBJ_ID, LANDWEB.PI_MB_LEGAL_MAP_OBJ.text, LANDWEB.PI_MB_LEGAL_MAP_OBJ.feat_code 
from LANDWEB.PI_MB_LEGAL_MAP_OBJ
where  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'  

Select LANDWEB.PI_MB_OTHER_MAP_OBJ.geometry,  MB_MAP_OBJ_ID, LANDWEB.PI_MB_OTHER_MAP_OBJ.text, LANDWEB.PI_MB_OTHER_MAP_OBJ.feat_code 
from LANDWEB.PI_MB_OTHER_MAP_OBJ
where  mdsys.SDO_filter(geometry,mdsys.SDO_GEOMETRY(3,82086,NULL,mdsys.sdo_elem_info_array(1,3,3), mdsys.sdo_ordinate_array(315712.844623126,350257.711914652,316760.143362419,350896.147343216)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'  

我希望每个查询都返回一个有效的结果集。 实际结果是6个查询中只有3个返回结果集。

这是日志中的重要片段。

com.mapinfo.midev.service.feature.ws.v1.ServiceException: null
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.service.feature.ws.v1.FeatureServiceProxy.toServiceException(FeatureServiceProxy.java:1110)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.service.feature.ws.v1.FeatureServiceProxy.searchBySQL(FeatureServiceProxy.java:281)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.pb.spectrum.spatial.component.feature.FeatureComponent.searchBySQL(FeatureComponent.java:162)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.pb.spectrum.spatial.component.remote.SpatialRemoteComponent.searchBySQL(SpatialRemoteComponent.java:505)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

INFO   | jvm 1    | 2019/06/28 10:26:11 |     at java.lang.reflect.Method.invoke(Method.java:498)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.pb.spectrum.platform.server.runtime.core.component.invoker.stream.MethodSerializer.invoke(MethodSerializer.java:249)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.pb.spectrum.platform.server.runtime.core.component.invoker.stream.SynchronousResponseStrategy.getResponse(SynchronousResponseStrategy.java:15)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.pb.spectrum.platform.server.runtime.core.component.invoker.stream.StreamMethodInvokerListener.listen(StreamMethodInvokerListener.java:82)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.pb.spectrum.platform.server.runtime.core.component.invoker.stream.MethodInvokerRunner.run(MethodInvokerRunner.java:111)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at java.lang.Thread.run(Thread.java:748)
INFO   | jvm 1    | 2019/06/28 10:26:11 | Caused by: java.lang.NullPointerException: null
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.geometry.impl.Polygon.getEnvelope(Polygon.java:209)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.geometry.impl.MultiPolygon.getEnvelope(MultiPolygon.java:157)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.feature.jaxb.v1.FeatureCollectionMarshaller.marshalFeature(FeatureCollectionMarshaller.java:405)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.feature.jaxb.v1.FeatureCollectionMarshaller.marshalFeatureCollection(FeatureCollectionMarshaller.java:157)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     at com.mapinfo.midev.service.feature.ws.v1.FeatureServiceProxy.searchBySQL(FeatureServiceProxy.java:272)
INFO   | jvm 1    | 2019/06/28 10:26:11 |     ... 13 common frames omitted
INFO   | jvm 1    | 2019/06/28 10:34:28 | <REMOTE>>Exception in thread "jackrabbit-pool-1" java.lang.OutOfMemoryError: GC overhead
     超出

个限制       信息| jvm 1 | 2019/06/28 10:34:28 | >在java.util.concurrent.locks.AbstractQueuedSynchronizer $ ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1855)       信息| jvm 1 | 2019/06/28 10:34:28 | >在java.util.concurrent.locks.AbstractQueuedSynchronizer $ ConditionObject.await(AbstractQueuedSynchronizer.java:2035)       信息| jvm 1 | 2019/06/28 10:35:33 |错误[ExceptionLoggingAspect]超出了GC开销限制       信息| jvm 1 | 2019/06/28 10:35:33 | java.lang.OutOfMemoryError:超出了GC开销限制

0 个答案:

没有答案