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

QQ登录

只需一步,快速开始

查看: 8400|回复: 12

[结贴] 反向生成本体报表设计时没有表的字段

[复制链接]

26

主题

95

帖子

141

积分

初级会员

Rank: 2

积分
141
QQ
发表于 2017-7-31 09:26:06 | 显示全部楼层 |阅读模式
版本: BeX5V3.5 小版本号: 3.6
数据库: MySQL 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 其它 浏览器: Chrome
使用mysql数据库通过数据库里面的表进行反向生成本体后,在进行报表设计时数据源里面没有字段如图field:

报表数据设置了,但是不显示字段,求指点,是哪儿错了。

field.jpg

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-31 10:12:47 | 显示全部楼层
reportData具体怎么设置的?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

26

主题

95

帖子

141

积分

初级会员

Rank: 2

积分
141
QQ
 楼主| 发表于 2017-7-31 10:20:33 | 显示全部楼层
本帖最后由 fwdfn 于 2017-7-31 10:27 编辑

我将东西全部删除后又重新配置了一下就好了,步骤都是一样的,但是现在的又有新的问题了
network里面是没问题的,

network.jpg
breport.jpg
回复 支持 反对

使用道具 举报

26

主题

95

帖子

141

积分

初级会员

Rank: 2

积分
141
QQ
 楼主| 发表于 2017-7-31 10:25:55 | 显示全部楼层
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-31 11:03:05 | 显示全部楼层
看tomcat控制台完整的错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

26

主题

95

帖子

141

积分

初级会员

Rank: 2

积分
141
QQ
 楼主| 发表于 2017-7-31 11:35:38 | 显示全部楼层
tomcat错误信息如下:
  1. com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: select Demo_products,Demo_products.version as version,Demo_products.fProductName as fProductName,Demo_products.fSupplierID as fSupplierID,Demo_products.fCategoryID as fCategoryID,Demo_products.fQuantityPerUnit as fQuantityPerUnit,Demo_products.fUnitPrice as fUnitPrice,Demo_products.fUnitsinstock as fUnitsinstock from Demo_products Demo_products
  2. --> sql: SELECT  Demo_products.fProductID, Demo_products.VERSION AS version, Demo_products.FPRODUCTNAME AS fProductName, Demo_products.FSUPPLIERID AS fSupplierID, Demo_products.FCATEGORYID AS fCategoryID, Demo_products.FQUANTITYPERUNIT AS fQuantityPerUnit, Demo_products.FUNITPRICE AS fUnitPrice, Demo_products.FUNITSINSTOCK AS fUnitsinstock FROM demo_products Demo_products
  3. --> binds: []
复制代码

但是我把--> sql:
SELECT  Demo_products.fProductID, Demo_products.VERSION AS version, Demo_products.FPRODUCTNAME AS fProductName, Demo_products.FSUPPLIERID AS fSupplierID, Demo_products.FCATEGORYID AS fCategoryID, Demo_products.FQUANTITYPERUNIT AS fQuantityPerUnit, Demo_products.FUNITPRICE AS fUnitPrice, Demo_products.FUNITSINSTOCK AS fUnitsinstock FROM demo_products Demo_products拿到mysql里跑了下,是可以查询到数据的
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-31 11:42:14 | 显示全部楼层
发tomcat完整的错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

26

主题

95

帖子

141

积分

初级会员

Rank: 2

积分
141
QQ
 楼主| 发表于 2017-7-31 11:49:13 | 显示全部楼层
2017-07-31 11:44:45 开始-WINDOW生成中间文件: /UI2/SA/task/taskView/submitActivity.w
2017-07-31 11:44:45 加载模块:/ZBReport/ZReport/process/BReport ...
2017-07-31 11:44:45 加载模块:/ZBReport/ZReport/logic/action ...
2017-07-31 11:44:45 action:<?xml version="1.0" encoding="UTF-8"?>
<action process="/ZBReport/ZReport/process/BReport/bReportProcess" activity="mainActivity" action-flag="__action_0__" executor="" execute-context="" name="BReportAction"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="variables"/></parameters></action>
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 Demo_products.* from Demo_products Demo_products
--> sql: SELECT  Demo_products.fProductID AS Demo_products, Demo_products.VERSION AS version, Demo_products.FPRODUCTNAME AS fProductName, Demo_products.FSUPPLIERID AS fSupplierID, Demo_products.FCATEGORYID AS fCategoryID, Demo_products.FQUANTITYPERUNIT AS fQuantityPerUnit, Demo_products.FUNITPRICE AS fUnitPrice, Demo_products.FUNITSINSTOCK AS fUnitsinstock FROM demo_products Demo_products
--> 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.KSQL.select(Unknown Source)
        at KSQLProcedure.query(KSQLProcedure.java:17)
        ... 27 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: SELECT  Demo_products.fProductID AS Demo_products, Demo_products.VERSION AS version, Demo_products.FPRODUCTNAME AS fProductName, Demo_products.FSUPPLIERID AS fSupplierID, Demo_products.FCATEGORYID AS fCategoryID, Demo_products.FQUANTITYPERUNIT AS fQuantityPerUnit, Demo_products.FUNITPRICE AS fUnitPrice, Demo_products.FUNITSINSTOCK AS fUnitsinstock FROM demo_products Demo_products, binds: []出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.ksql.KSQLUtils.execSqlSelect(Unknown Source)
        ... 32 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'x5sys.demo_products' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:400)
        at com.mysql.jdbc.Util.getInstance(Util.java:383)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:980)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1901)
        at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2002)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        ... 33 more
[ERROR] 2017-07-31 11:44:45,807 com.justep.report.controller.DataController - 报表数据获取失败
执行KSQL出错, KSQL: select Demo_products.* from Demo_products Demo_products
--> sql: SELECT  Demo_products.fProductID AS Demo_products, Demo_products.VERSION AS version, Demo_products.FPRODUCTNAME AS fProductName, Demo_products.FSUPPLIERID AS fSupplierID, Demo_products.FCATEGORYID AS fCategoryID, Demo_products.FQUANTITYPERUNIT AS fQuantityPerUnit, Demo_products.FUNITPRICE AS fUnitPrice, Demo_products.FUNITSINSTOCK AS fUnitsinstock FROM demo_products Demo_products
--> binds: []
com.justep.report.exception.ReportServerException: 报表数据获取失败
        at com.justep.report.controller.DataController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.InitController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.Servlet.a(Unknown Source)
        at com.justep.report.Servlet.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        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.report.exception.ReportServerException: 执行KSQL出错, KSQL: select Demo_products.* from Demo_products Demo_products
--> sql: SELECT  Demo_products.fProductID AS Demo_products, Demo_products.VERSION AS version, Demo_products.FPRODUCTNAME AS fProductName, Demo_products.FSUPPLIERID AS fSupplierID, Demo_products.FCATEGORYID AS fCategoryID, Demo_products.FQUANTITYPERUNIT AS fQuantityPerUnit, Demo_products.FUNITPRICE AS fUnitPrice, Demo_products.FUNITSINSTOCK AS fUnitsinstock FROM demo_products Demo_products
--> binds: []
        at com.justep.report.controller.DataController.a(Unknown Source)
        at com.justep.report.controller.DataController.a(Unknown Source)
        ... 20 more
Caused by: java.lang.Exception
        ... 22 more
2017-07-31 11:44:46 结束-WINDOW生成中间文件: /UI2/SA/task/taskView/submitActivity.w
2017-07-31 11:44:46 开始-中间文件生成缓存文件: /UI2/SA/task/taskView/submitActivity.w
2017-07-31 11:44:47 结束-中间文件生成缓存文件: /UI2/SA/task/taskView/submitActivity.w
回复 支持 反对

使用道具 举报

26

主题

95

帖子

141

积分

初级会员

Rank: 2

积分
141
QQ
 楼主| 发表于 2017-7-31 11:49:45 | 显示全部楼层
因为字数原因这个是头部
2017-07-31 11:44:32 开始-WINDOW生成中间文件: /UI2/portal/pc3/index.w
2017-07-31 11:44:32 结束-WINDOW生成中间文件: /UI2/portal/pc3/index.w
2017-07-31 11:44:32 开始-中间文件生成缓存文件: /UI2/portal/pc3/index.w
2017-07-31 11:44:34 结束-中间文件生成缓存文件: /UI2/portal/pc3/index.w
2017-07-31 11:44:34 卸载模块 /ZBReport/ZReport/logic/action ....
2017-07-31 11:44:34 卸载模块 /ZBReport/ZReport/logic/action 结束
2017-07-31 11:44:35 开始-WINDOW生成中间文件: /UI2/portal/pc3/login/login.w
2017-07-31 11:44:36 结束-WINDOW生成中间文件: /UI2/portal/pc3/login/login.w
2017-07-31 11:44:36 开始-中间文件生成缓存文件: /UI2/portal/pc3/login/login.w
2017-07-31 11:44:37 结束-中间文件生成缓存文件: /UI2/portal/pc3/login/login.w
2017-07-31 11:44:39 开始-WINDOW生成中间文件: /UI2/portal/pc/main/main.w
2017-07-31 11:44:39 结束-WINDOW生成中间文件: /UI2/portal/pc/main/main.w
2017-07-31 11:44:39 开始-中间文件生成缓存文件: /UI2/portal/pc/main/main.w
2017-07-31 11:44:40 结束-中间文件生成缓存文件: /UI2/portal/pc/main/main.w
2017-07-31 11:44:41 开始-WINDOW生成中间文件: /UI2/SA/task/taskView/waitActivity.w
2017-07-31 11:44:42 结束-WINDOW生成中间文件: /UI2/SA/task/taskView/waitActivity.w
2017-07-31 11:44:42 开始-中间文件生成缓存文件: /UI2/SA/task/taskView/waitActivity.w
2017-07-31 11:44:43 结束-中间文件生成缓存文件: /UI2/SA/task/taskView/waitActivity.w
2017-07-31 11:44:43 开始-WINDOW生成中间文件: /UI2/ZBReport/ZReport/process/BReport/mainActivity.w
2017-07-31 11:44:43 结束-WINDOW生成中间文件: /UI2/ZBReport/ZReport/process/BReport/mainActivity.w
2017-07-31 11:44:43 开始-中间文件生成缓存文件: /UI2/ZBReport/ZReport/process/BReport/mainActivity.w
2017-07-31 11:44:45 结束-中间文件生成缓存文件: /UI2/ZBReport/ZReport/process/BReport/mainActivity.w
回复 支持 反对

使用道具 举报

57

主题

218

帖子

682

积分

高级会员

Rank: 4

积分
682
发表于 2017-7-31 12:24:20 | 显示全部楼层
建立数据库表的时候要有两个字段,fid和version字段,没有这俩字段就会报错.
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 22:51 , Processed in 0.071168 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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