jfinal + Hbase 封装出错

Sql: upsert into shencai_supervision.t_bus_workcondition_data_wc_real("monitorTime", "wMonitorSiteCode", "monitorVal", "monitorTimeLong", "dataFlag", "updatetime", "spCode", "wConCode", "wParameterCode") values(?, ?, ?, ?, ?, ?, ?, ?, ?)

10:47:02,278 ERROR com.analysis.wc.reverse.service.HbaseDateService:49 - 对象封装出错

com.jfinal.plugin.activerecord.ActiveRecordException: java.sql.SQLFeatureNotSupportedException

at com.jfinal.plugin.activerecord.Model.save(Model.java:533)

at com.analysis.wc.reverse.service.HbaseDateService.formatWCReal(HbaseDateService.java:79)

at com.analysis.wc.reverse.service.HbaseDateService.dataRevers(HbaseDateService.java:44)

at com.analysis.wc.reverse.MultiProcessReleaseDateToPhoenixThread$1.run(MultiProcessReleaseDateToPhoenixThread.java:47)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.sql.SQLFeatureNotSupportedException

at org.apache.phoenix.jdbc.PhoenixStatement.getGeneratedKeys(PhoenixStatement.java:1403)

at com.alibaba.druid.pool.DruidPooledStatement.getGeneratedKeys(DruidPooledStatement.java:616)

at com.jfinal.plugin.activerecord.dialect.Dialect.getModelGeneratedKey(Dialect.java:143)

at com.jfinal.plugin.activerecord.Model.save(Model.java:529)



image.png


评论区

JFinal

2019-06-26 15:13

注意根据异常解决:
Caused by: java.sql.SQLFeatureNotSupportedException

热门反馈

扫码入社