首页 / 浏览问题 / 组件GIS / 问题详情
idea更换bdt-all-runtime包时,再执行bdt相关方法会报错
4EXP 2024年01月24日
以下是报错详情:
08:47:14 WARN SparkSession$Builder: Using an existing SparkSession; some configuration may not take effect. 08:47:15 INFO BDTLicense$: System.getenv and getProperty licenseText is null 08:47:15 INFO BDTLicense$: [BDTLicense] env registryaddress is null 08:47:15 INFO iObjectsSparkBSLicense$: System.getenv licServer is null 08:47:15 INFO iObjectsSparkBSLicense$: System.getProperty licServer is null 08:47:15 INFO BDTLicense$: [BDTLicense] try iObjectsSparkBSLicense -2 08:47:15 INFO BDTLicense$: [BDTLicense] not a iObjectsSparkBSLicense 08:47:15 INFO iObjectsLicense$: System.getenv productTypesStr is null 08:47:15 INFO iObjectsLicense$: System.getProperty productTypesStr is null 08:47:16 INFO iObjectsLicense$: iobjects license mode COMMONTRAILLICENSE connected Exception in thread "main" java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/geotools/jdbc/JDBCDataStore.mergeEnvelope(Lorg/geotools/geometry/jts/ReferencedEnvelope;Lorg/geotools/geometry/jts/ReferencedEnvelope;)Lorg/geotools/geometry/jts/ReferencedEnvelope; @43: invokevirtual Reason: Type 'org/geotools/geometry/jts/ReferencedEnvelope' (current frame, stack[1]) is not assignable to 'org/locationtech/jts/geom/Envelope' Current Frame: bci: @43 flags: { } locals: { 'org/geotools/jdbc/JDBCDataStore', 'org/geotools/geometry/jts/ReferencedEnvelope', 'org/geotools/geometry/jts/ReferencedEnvelope', 'org/opengis/referencing/crs/CoordinateReferenceSystem', 'org/opengis/referencing/crs/CoordinateReferenceSystem' } stack: { 'org/geotools/geometry/jts/ReferencedEnvelope', 'org/geotools/geometry/jts/ReferencedEnvelope' } Bytecode: 0x0000000: 2bc6 000a 2bb6 04ab 9900 052c b02c c600 0x0000010: 0a2c b604 ab99 0005 2bb0 2bb6 04ac 4e2c 0x0000020: b604 ac3a 042d c700 0a2c 2bb6 04b0 2cb0 0x0000030: 1904 c700 0a2b 2bb6 04b0 2bb0 2d19 04b8 0x0000040: 04b4 9a00 0a2c 2d04 b604 b84d 2b2c b604 0x0000050: b02b b0 Stackmap Table: same_frame(@11) same_frame(@13) same_frame(@24) same_frame(@26) append_frame(@48,Object[#1123],Object[#1123]) same_frame(@60) same_frame(@76) at org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:298) at org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:49) at org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:130) at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:89) at com.supermap.bdt.rddprovider.jdbc.PostGISFeatureRDDProvider.rdd(PostGISFeatureRDDProvider.scala:53) at OperateData.loadPGFrddData(OperateData.scala:309) at MainMethod$.main(MainMethod.scala:44) at MainMethod.main(MainMethod.scala) 08:47:17 INFO SparkContext: Invoking stop() from shutdown hook 08:47:17 INFO AbstractConnector: Stopped Spark@f74e835{HTTP/1.1,[http/1.1]}{0.0.0.0:4040} 08:47:17 INFO SparkUI: Stopped Spark web UI at http://192.168.7.27:4040 08:47:17 INFO MapOutputTrackerMasterEndpoint: MapOutputTrackerMasterEndpoint stopped! 08:47:17 INFO MemoryStore: MemoryStore cleared 08:47:17 INFO BlockManager: BlockManager stopped 08:47:17 INFO BlockManagerMaster: BlockManagerMaster stopped 08:47:17 INFO OutputCommitCoordinator$OutputCommitCoordinatorEndpoint: OutputCommitCoordinator stopped! 08:47:17 INFO SparkContext: Successfully stopped SparkContext 08:47:17 INFO ShutdownHookManager: Shutdown hook called 08:47:17 INFO ShutdownHookManager: Deleting directory C:\Users\SQK\AppData\Local\Temp\spark-e3097678-59c9-4f6d-9758-eb60cb63e139

请问以上报错原因是什么,该怎样解决

1个回答

您好,您那边之前使用的btd版本是多少呢,替换之后的bdt又是哪个版本?是否有对应版本的许可
9,127EXP 2024年01月24日
...