起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4004|回复: 4

[结贴] 标准query查询报错

[复制链接]

63

主题

332

帖子

732

积分

高级会员

Rank: 4

积分
732
QQ
发表于 2017-5-19 14:31:47 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
我在数据库中建立了一个视图,在数据库中用select * 可以查出来,但是现在反向生成本体后,用标准query查询,报错 未明确定义列,query中没有添加任何额外的条件,请问是什么原因
QQ : 447220653
与大家一起学习

63

主题

332

帖子

732

积分

高级会员

Rank: 4

积分
732
QQ
 楼主| 发表于 2017-5-19 14:34:47 | 显示全部楼层
2017-05-19 14:34:09 [SQL Time]sql 执行时间:174ms, exec KSQL: SELECT UDV_X5_ROUTING.*  FROM UDV_X5_ROUTING UDV_X5_ROUTING LIMIT 0, 20
  --> sql:SELECT ROWNUM AS JUSTEP_RN__, JUSTEP_TABLE__.* FROM (SELECT  UDV_X5_ROUTING.CALCAMOUNT AS CALCAMOUNT, UDV_X5_ROUTING.CAR_NUM AS CAR_NUM, UDV_X5_ROUTING.CHARGE_TIME AS CHARGE_TIME, UDV_X5_ROUTING.CHARGE_WEIGHT AS CHARGE_WEIGHT, UDV_X5_ROUTING.CLIENTID AS CLIENTID, UDV_X5_ROUTING.CLIENTNAME AS CLIENTNAME, UDV_X5_ROUTING.CUSTOMER_ID AS CUSTOMER_ID, UDV_X5_ROUTING.CUSTOMER_NICKNAME AS CUSTOMER_NICKNAME, UDV_X5_ROUTING.EXCEPTION_FLAG AS EXCEPTION_FLAG, UDV_X5_ROUTING.GOODS_ID AS GOODS_ID, UDV_X5_ROUTING.GOODS_NAME AS GOODS_NAME, UDV_X5_ROUTING.G_WEIGHT_KIND AS G_WEIGHT_KIND, UDV_X5_ROUTING.PIC_FLAG AS PIC_FLAG, UDV_X5_ROUTING.PRICE AS PRICE, UDV_X5_ROUTING.PRICE_TYPE AS PRICE_TYPE, UDV_X5_ROUTING.PURCHASE_ID AS PURCHASE_ID, UDV_X5_ROUTING.SF AS SF, UDV_X5_ROUTING.SFNAME AS SFNAME, UDV_X5_ROUTING.T_WEIGHT_KIND AS T_WEIGHT_KIND, UDV_X5_ROUTING.PURCHASE_ID, UDV_X5_ROUTING.CLIENTID, UDV_X5_ROUTING.WEIGHTING_RECORD_ID AS WEIGHTING_RECORD_ID FROM UDV_X5_ROUTING UDV_X5_ROUTING) JUSTEP_TABLE__  WHERE ROWNUM<21
--> binds:[]
2017-05-19 14:34:09 excute stream action, params:{"accept":"application/json","action":"queryUDV_X5_ROUTINGAction","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"columns":"CALCAMOUNT,CAR_NUM,CHARGE_TIME,CHARGE_WEIGHT,CLIENTID,CLIENTNAME,CUSTOMER_ID,CUSTOMER_NICKNAME,EXCEPTION_FLAG,GOODS_ID,GOODS_NAME,G_WEIGHT_KIND,PIC_FLAG,PRICE,PRICE_TYPE,PURCHASE_ID,SF,SFNAME,T_WEIGHT_KIND,UDV_X5_ROUTING,WEIGHTING_RECORD_ID","limit":20,"offset":0,"variables":{}},"process":"/zhongliang/echarts/process/eCharts/eChartsProcess","translateParameter":{"cellnameByRelation":false,"dataType":"row-list","includeState":true,"rowsConfig":{"concept":"UDV_X5_ROUTING","sequence":"CALCAMOUNT,CAR_NUM,CHARGE_TIME,CHARGE_WEIGHT,CLIENTID,CLIENTNAME,CUSTOMER_ID,CUSTOMER_NICKNAME,EXCEPTION_FLAG,GOODS_ID,GOODS_NAME,G_WEIGHT_KIND,PIC_FLAG,PRICE,PRICE_TYPE,PURCHASE_ID,SF,SFNAME,T_WEIGHT_KIND,UDV_X5_ROUTING,WEIGHTING_RECORD_ID"},"transformIdcolumn":true,"useNamespace":true}}
java.lang.reflect.InvocationTargetException
        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:497)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT UDV_X5_ROUTING.*  FROM UDV_X5_ROUTING UDV_X5_ROUTING LIMIT 0, 20
--> sql: SELECT ROWNUM AS JUSTEP_RN__, JUSTEP_TABLE__.* FROM (SELECT  UDV_X5_ROUTING.CALCAMOUNT AS CALCAMOUNT, UDV_X5_ROUTING.CAR_NUM AS CAR_NUM, UDV_X5_ROUTING.CHARGE_TIME AS CHARGE_TIME, UDV_X5_ROUTING.CHARGE_WEIGHT AS CHARGE_WEIGHT, UDV_X5_ROUTING.CLIENTID AS CLIENTID, UDV_X5_ROUTING.CLIENTNAME AS CLIENTNAME, UDV_X5_ROUTING.CUSTOMER_ID AS CUSTOMER_ID, UDV_X5_ROUTING.CUSTOMER_NICKNAME AS CUSTOMER_NICKNAME, UDV_X5_ROUTING.EXCEPTION_FLAG AS EXCEPTION_FLAG, UDV_X5_ROUTING.GOODS_ID AS GOODS_ID, UDV_X5_ROUTING.GOODS_NAME AS GOODS_NAME, UDV_X5_ROUTING.G_WEIGHT_KIND AS G_WEIGHT_KIND, UDV_X5_ROUTING.PIC_FLAG AS PIC_FLAG, UDV_X5_ROUTING.PRICE AS PRICE, UDV_X5_ROUTING.PRICE_TYPE AS PRICE_TYPE, UDV_X5_ROUTING.PURCHASE_ID AS PURCHASE_ID, UDV_X5_ROUTING.SF AS SF, UDV_X5_ROUTING.SFNAME AS SFNAME, UDV_X5_ROUTING.T_WEIGHT_KIND AS T_WEIGHT_KIND, UDV_X5_ROUTING.PURCHASE_ID, UDV_X5_ROUTING.CLIENTID, UDV_X5_ROUTING.WEIGHTING_RECORD_ID AS WEIGHTING_RECORD_ID FROM UDV_X5_ROUTING UDV_X5_ROUTING) JUSTEP_TABLE__  WHERE ROWNUM<21
--> binds: []
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.BizData.query(Unknown Source)
        at BizProcedure.query(BizProcedure.java:12)
        ... 27 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: SELECT ROWNUM AS JUSTEP_RN__, JUSTEP_TABLE__.* FROM (SELECT  UDV_X5_ROUTING.CALCAMOUNT AS CALCAMOUNT, UDV_X5_ROUTING.CAR_NUM AS CAR_NUM, UDV_X5_ROUTING.CHARGE_TIME AS CHARGE_TIME, UDV_X5_ROUTING.CHARGE_WEIGHT AS CHARGE_WEIGHT, UDV_X5_ROUTING.CLIENTID AS CLIENTID, UDV_X5_ROUTING.CLIENTNAME AS CLIENTNAME, UDV_X5_ROUTING.CUSTOMER_ID AS CUSTOMER_ID, UDV_X5_ROUTING.CUSTOMER_NICKNAME AS CUSTOMER_NICKNAME, UDV_X5_ROUTING.EXCEPTION_FLAG AS EXCEPTION_FLAG, UDV_X5_ROUTING.GOODS_ID AS GOODS_ID, UDV_X5_ROUTING.GOODS_NAME AS GOODS_NAME, UDV_X5_ROUTING.G_WEIGHT_KIND AS G_WEIGHT_KIND, UDV_X5_ROUTING.PIC_FLAG AS PIC_FLAG, UDV_X5_ROUTING.PRICE AS PRICE, UDV_X5_ROUTING.PRICE_TYPE AS PRICE_TYPE, UDV_X5_ROUTING.PURCHASE_ID AS PURCHASE_ID, UDV_X5_ROUTING.SF AS SF, UDV_X5_ROUTING.SFNAME AS SFNAME, UDV_X5_ROUTING.T_WEIGHT_KIND AS T_WEIGHT_KIND, UDV_X5_ROUTING.PURCHASE_ID, UDV_X5_ROUTING.CLIENTID, UDV_X5_ROUTING.WEIGHTING_RECORD_ID AS WEIGHTING_RECORD_ID FROM UDV_X5_ROUTING UDV_X5_ROUTING) JUSTEP_TABLE__  WHERE ROWNUM<21, binds: []出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.ksql.KSQLUtils.execSqlSelect(Unknown Source)
        ... 32 more
Caused by: java.sql.SQLException: ORA-00918: 未明确定义列

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
        at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
        at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:796)
        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1031)
        at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:836)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1124)
        at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
        at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3329)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        ... 33 more
QQ : 447220653
与大家一起学习
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-5-19 15:29:57 | 显示全部楼层
Caused by: java.sql.SQLException: ORA-00918: 未明确定义列是oracle数据库报错的
SELECT ROWNUM AS JUSTEP_RN__, JUSTEP_TABLE__.* FROM (SELECT  UDV_X5_ROUTING.CALCAMOUNT AS CALCAMOUNT, UDV_X5_ROUTING.CAR_NUM AS CAR_NUM, UDV_X5_ROUTING.CHARGE_TIME AS CHARGE_TIME, UDV_X5_ROUTING.CHARGE_WEIGHT AS CHARGE_WEIGHT, UDV_X5_ROUTING.CLIENTID AS CLIENTID, UDV_X5_ROUTING.CLIENTNAME AS CLIENTNAME, UDV_X5_ROUTING.CUSTOMER_ID AS CUSTOMER_ID, UDV_X5_ROUTING.CUSTOMER_NICKNAME AS CUSTOMER_NICKNAME, UDV_X5_ROUTING.EXCEPTION_FLAG AS EXCEPTION_FLAG, UDV_X5_ROUTING.GOODS_ID AS GOODS_ID, UDV_X5_ROUTING.GOODS_NAME AS GOODS_NAME, UDV_X5_ROUTING.G_WEIGHT_KIND AS G_WEIGHT_KIND, UDV_X5_ROUTING.PIC_FLAG AS PIC_FLAG, UDV_X5_ROUTING.PRICE AS PRICE, UDV_X5_ROUTING.PRICE_TYPE AS PRICE_TYPE, UDV_X5_ROUTING.PURCHASE_ID AS PURCHASE_ID, UDV_X5_ROUTING.SF AS SF, UDV_X5_ROUTING.SFNAME AS SFNAME, UDV_X5_ROUTING.T_WEIGHT_KIND AS T_WEIGHT_KIND, UDV_X5_ROUTING.PURCHASE_ID, UDV_X5_ROUTING.CLIENTID, UDV_X5_ROUTING.WEIGHTING_RECORD_ID AS WEIGHTING_RECORD_ID FROM UDV_X5_ROUTING UDV_X5_ROUTING) JUSTEP_TABLE__  WHERE ROWNUM<21

到数据库运行看看什么地方不对
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

63

主题

332

帖子

732

积分

高级会员

Rank: 4

积分
732
QQ
 楼主| 发表于 2017-5-19 15:37:31 | 显示全部楼层
jishuang 发表于 2017-5-19 15:29
Caused by: java.sql.SQLException: ORA-00918: 未明确定义列是oracle数据库报错的
SELECT ROWNUM AS JUSTE ...

我之前说清楚了,在数据库中查询,用select * ,完全可用,就是反向生成本体后再用标准query就报错了,queryAction中没有加任何限制条件,完全等于 select *
QQ : 447220653
与大家一起学习
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-5-19 16:19:54 | 显示全部楼层
先把平台生成的sql那到数据库中执行看看具体哪个列有问题啊
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 22:10 , Processed in 0.055207 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表