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

QQ登录

只需一步,快速开始

查看: 3670|回复: 3

[结贴] 概念是通过视图反向生成的,但是在bizdata中调用的时候,设置排序就报错,不设置正常

[复制链接]

92

主题

254

帖子

638

积分

高级会员

Rank: 4

积分
638
QQ
发表于 2017-3-27 11:20:53 | 显示全部楼层 |阅读模式
概念是通过视图反向生成的,但是在bizdata中调用的时候,设置排序就报错,不设置正常,设置了报如下错误
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
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 Uv_HX_ProjectApply.* FROM Uv_HX_ProjectApply Uv_HX_ProjectApply ORDER BY fContractDate DESC LIMIT 0, 20
--> sql: SELECT Uv_HX_ProjectApply.fID AS Uv_HX_ProjectApply, Uv_HX_ProjectApply.FATTACHMENT AS fAttachment, Uv_HX_ProjectApply.FBLDYRY AS fBLDYRY, Uv_HX_ProjectApply.FBLDYSJ AS fBLDYSJ, Uv_HX_ProjectApply.FBZJCLFS AS fBZJCLFS, Uv_HX_ProjectApply.FBUSINESSTYPE AS fBusinessType, Uv_HX_ProjectApply.FCONHIREDATE AS fConHireDate, Uv_HX_ProjectApply.FCONTACT AS fContact, Uv_HX_ProjectApply.FCONTACTVALUE AS fContactValue, Uv_HX_ProjectApply.FCONTRACTDATE AS fContractDate, Uv_HX_ProjectApply.FCONTRACTMODE AS fContractMode, Uv_HX_ProjectApply.FCONTRACTNO AS fContractNo, Uv_HX_ProjectApply.FCONTRACTPERSON AS fContractPerson, Uv_HX_ProjectApply.FCUSTOMCODE AS fCustomCode, Uv_HX_ProjectApply.FCUSTOMNAME AS fCustomName, Uv_HX_ProjectApply.FCUSTOMSHORTNAME AS fCustomShortName, Uv_HX_ProjectApply.FDYDJSBH AS fDYDJSBH, Uv_HX_ProjectApply.FDYHTBH AS fDYHTBH, Uv_HX_ProjectApply.FDEVICENO AS fDeviceNo, Uv_HX_ProjectApply.FDEVICEPRICE AS fDevicePrice, Uv_HX_ProjectApply.FDURATION AS fDuration, Uv_HX_ProjectApply.FENDDATE AS fEndDate, Uv_HX_ProjectApply.FENDFLAG AS fEndFlag, Uv_HX_ProjectApply.FFIRSTPAYMENT AS fFirstPayment, Uv_HX_ProjectApply.FFIRSTPAYMENTRATIO AS fFirstPaymentRatio, Uv_HX_ProjectApply.FFLAG AS fFlag, Uv_HX_ProjectApply.FGUARANTEETYPE AS fGuaranteeType, Uv_HX_ProjectApply.FGUARANTOR AS fGuarantor, Uv_HX_ProjectApply.FGUARANTORID AS fGuarantorID, Uv_HX_ProjectApply.FHANDING AS fHanding, Uv_HX_ProjectApply.FHANDINGRATE AS fHandingRate, Uv_HX_ProjectApply.FHIREDATE AS fHireDate, Uv_HX_ProjectApply.FID AS fID, Uv_HX_ProjectApply.FINTENTCODE AS fIntentCode, Uv_HX_ProjectApply.FMQFKR AS fMQFKR, Uv_HX_ProjectApply.FMARGIN AS fMargin, Uv_HX_ProjectApply.FMARGINRATE AS fMarginRate, Uv_HX_ProjectApply.FMORTGAGE AS fMortgage, Uv_HX_ProjectApply.FPREFIX AS fPrefix, Uv_HX_ProjectApply.FPROCESSNAME AS fProcessName, Uv_HX_ProjectApply.FPROJECTCODE AS fProjectCode, Uv_HX_ProjectApply.FQMGZK AS fQMGZK, Uv_HX_ProjectApply.FRFXL AS fRFXL, Uv_HX_ProjectApply.FREPAYCYC AS fRepayCyc, Uv_HX_ProjectApply.FRESIDENCE AS fResidence, Uv_HX_ProjectApply.FSBFZDD AS fSBFZDD, Uv_HX_ProjectApply.FSBGG AS fSBGG, Uv_HX_ProjectApply.FSBLX AS fSBLX, Uv_HX_ProjectApply.FSBMC AS fSBMC, Uv_HX_ProjectApply.FSBSCS AS fSBSCS, Uv_HX_ProjectApply.FSBXH AS fSBXH, Uv_HX_ProjectApply.FSBXSS AS fSBXSS, Uv_HX_ProjectApply.FSSBZ AS fSSBZ, Uv_HX_ProjectApply.FSXRZE AS fSXRZE, Uv_HX_ProjectApply.FSUPSHORTNAME AS fSupShortName, Uv_HX_ProjectApply.FSUPPLIER AS fSupplier, Uv_HX_ProjectApply.FSUPPLIERNO AS fSupplierNo, Uv_HX_ProjectApply.FTRACKNO AS fTrackNo, Uv_HX_ProjectApply.FVALUE AS fValue, Uv_HX_ProjectApply.FYJIRR AS fYJIRR, Uv_HX_ProjectApply.FZLQMCLFS AS fZLQMCLFS, Uv_HX_ProjectApply.PX AS px, Uv_HX_ProjectApply.SACTIVITYNAMES AS sActivityNames, Uv_HX_ProjectApply.SEXECUTORNAMES AS sExecutorNames, Uv_HX_ProjectApply.VERSION AS version FROM Uv_HX_ProjectApply Uv_HX_ProjectApply ORDER BY fContractDate DESC
--> 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)
... 26 more
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
at java.sql.Timestamp.valueOf(Timestamp.java:204)
at net.sourceforge.jtds.jdbc.Support.convert(Support.java:387)
at net.sourceforge.jtds.jdbc.JtdsResultSet.getTimestamp(JtdsResultSet.java:1160)
at org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.getTimestamp(DelegatingResultSet.java:250)
at org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.getTimestamp(DelegatingResultSet.java:250)
at com.justep.system.data.impl.TableUtilsImplement.fillRow(Unknown Source)
... 31 more

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-3-27 11:43:17 | 显示全部楼层
确认数据库中 fContractDate字段的值都正确吗?


java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
at java.sql.Timestamp.valueOf(Timestamp.java:204)
at net.sourceforge.jtds.jdbc.Support.convert(Support.java:387)
at net.sourceforge.jtds.jdbc.JtdsResultSet.getTimestamp(JtdsResultSet.java:1160)

这个是数据库的标准错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

92

主题

254

帖子

638

积分

高级会员

Rank: 4

积分
638
QQ
 楼主| 发表于 2017-3-27 13:52:50 | 显示全部楼层
jishuang 发表于 2017-3-27 11:43
确认数据库中 fContractDate字段的值都正确吗?

还真是,反向生成后有些字段类型不对, 手动调整后正常了,PS:如果通过视图反向生成的,视图添加了字段,概念中也想同步过来,是直接新建关系还是 重新反向生成一遍?
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-3-27 15:07:09 | 显示全部楼层
可以自己手动创建,也可以重新反向生成
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 15:44 , Processed in 0.054548 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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