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

QQ登录

只需一步,快速开始

查看: 2403|回复: 3

[处理中] 控制台的错误信息

[复制链接]

432

主题

1943

帖子

2630

积分

金牌会员

Rank: 6Rank: 6

积分
2630
QQ
发表于 2016-9-1 17:08:44 | 显示全部楼层 |阅读模式
请问这是什么错误,应该怎么解决

OA_Schedule.fRepeat,OA_Schedule.fStartTime,OA_Schedule.fEndTime,OA_Schedule.fRepeatFrequency,OA_Schedule.fWeekRepeat,OA_Schedule.fUpToDate,OA_Schedule.fCreatorID,OA_Schedule.fName,OA_Schedule  from OA_Schedule OA_Schedule where OA_Schedule.fCreatorID = :sPersonID and stringToDate(:scheMonthFirstDay) >= stringToDate(concat(getYear(OA_Schedule.fStartTime), '-', getMonth(OA_Schedule.fStartTime), '-01')) and (OA_Schedule.fUpToDate is null or stringToDate(:scheMonthFirstDay) <= fUpToDate) union select OA_Schedule.fRepeat,OA_Schedule.fStartTime,OA_Schedule.fEndTime,OA_Schedule.fRepeatFrequency,OA_Schedule.fWeekRepeat,OA_Schedule.fUpToDate,SA_Social.sPersonID,OA_Schedule.fName,OA_Schedule  from OA_Schedule OA_Schedule join SA_Social SA_Social on OA_Schedule = SA_Social.sData1 and SA_Social.sValidState = '1' and SA_Social.sTypeID = 'RelativeOrg' and (SA_Social.sESField01 ='o') and SA_Social.sPersonID = :sPersonID where stringToDate(:scheMonthFirstDay) >= stringToDate(concat(getYear(OA_Schedule.fStartTime), '-', getMonth(OA_Schedule.fStartTime), '-01')) and (OA_Schedule.fUpToDate is null or stringToDate(:scheMonthFirstDay) <= fUpToDate)
--> sql: SELECT  OA_Schedule.FREPEAT AS fRepeat, OA_Schedule.FSTARTTIME AS fStartTime, OA_Schedule.FENDTIME AS fEndTime, OA_Schedule.FREPEATFREQUENCY AS fRepeatFrequency, OA_Schedule.FWEEKREPEAT AS fWeekRepeat, OA_Schedule.FUPTODATE AS fUpToDate, OA_Schedule.FCREATORID AS fCreatorID, OA_Schedule.FNAME AS fName, OA_Schedule.fID FROM OA_SCHEDULE OA_Schedule  WHERE  (OA_Schedule.FCREATORID =  ? ) AND (CONVERT(datetime , ? + ' 00:00:00', 120) >= CONVERT(datetime ,DATEPART(yyyy, OA_Schedule.FSTARTTIME) + ? + DATEPART(mm, OA_Schedule.FSTARTTIME) + ?+ ' 00:00:00', 120)) AND ( (OA_Schedule.FUPTODATE IS NULL) OR (CONVERT(datetime , ? + ' 00:00:00', 120) <= fUpToDate) )  UNION SELECT  OA_Schedule.FREPEAT AS OA_Schedule_fRepeat, OA_Schedule.FSTARTTIME AS OA_Schedule_fStartTime, OA_Schedule.FENDTIME AS OA_Schedule_fEndTime, OA_Schedule.FREPEATFREQUENCY AS OA_Schedule_fRepeatFrequency, OA_Schedule.FWEEKREPEAT AS OA_Schedule_fWeekRepeat, OA_Schedule.FUPTODATE AS OA_Schedule_fUpToDate, SA_Social.SPERSONID AS sPersonID, OA_Schedule.FNAME AS OA_Schedule_fName, OA_Schedule.fID FROM OA_SCHEDULE OA_Schedule JOIN SA_Social SA_Social ON  (OA_Schedule.fID = SA_Social.SDATA1) AND (SA_Social.SVALIDSTATE = ?) AND (SA_Social.STYPEID = ?) AND (SA_Social.SESFIELD01 = ?) AND (SA_Social.SPERSONID =  ? )   WHERE  (CONVERT(datetime , ? + ' 00:00:00', 120) >= CONVERT(datetime ,DATEPART(yyyy, OA_Schedule.FSTARTTIME) + ? + DATEPART(mm, OA_Schedule.FSTARTTIME) + ?+ ' 00:00:00', 120)) AND ( (OA_Schedule.FUPTODATE IS NULL) OR (CONVERT(datetime , ? + ' 00:00:00', 120) <= fUpToDate) )
--> binds: [PSN01, 2016-09-01, -, -01, 2016-09-01, 1, RelativeOrg, o, PSN01, 2016-09-01, -, -01, 2016-09-01]
        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 Schedule.queryOA_ScheduleMonth(Schedule.java:52)
        ... 47 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: SELECT  OA_Schedule.FREPEAT AS fRepeat, OA_Schedule.FSTARTTIME AS fStartTime, OA_Schedule.FENDTIME AS fEndTime, OA_Schedule.FREPEATFREQUENCY AS fRepeatFrequency, OA_Schedule.FWEEKREPEAT AS fWeekRepeat, OA_Schedule.FUPTODATE AS fUpToDate, OA_Schedule.FCREATORID AS fCreatorID, OA_Schedule.FNAME AS fName, OA_Schedule.fID FROM OA_SCHEDULE OA_Schedule  WHERE  (OA_Schedule.FCREATORID =  ? ) AND (CONVERT(datetime , ? + ' 00:00:00', 120) >= CONVERT(datetime ,DATEPART(yyyy, OA_Schedule.FSTARTTIME) + ? + DATEPART(mm, OA_Schedule.FSTARTTIME) + ?+ ' 00:00:00', 120)) AND ( (OA_Schedule.FUPTODATE IS NULL) OR (CONVERT(datetime , ? + ' 00:00:00', 120) <= fUpToDate) )  UNION SELECT  OA_Schedule.FREPEAT AS OA_Schedule_fRepeat, OA_Schedule.FSTARTTIME AS OA_Schedule_fStartTime, OA_Schedule.FENDTIME AS OA_Schedule_fEndTime, OA_Schedule.FREPEATFREQUENCY AS OA_Schedule_fRepeatFrequency, OA_Schedule.FWEEKREPEAT AS OA_Schedule_fWeekRepeat, OA_Schedule.FUPTODATE AS OA_Schedule_fUpToDate, SA_Social.SPERSONID AS sPersonID, OA_Schedule.FNAME AS OA_Schedule_fName, OA_Schedule.fID FROM OA_SCHEDULE OA_Schedule JOIN SA_Social SA_Social ON  (OA_Schedule.fID = SA_Social.SDATA1) AND (SA_Social.SVALIDSTATE = ?) AND (SA_Social.STYPEID = ?) AND (SA_Social.SESFIELD01 = ?) AND (SA_Social.SPERSONID =  ? )   WHERE  (CONVERT(datetime , ? + ' 00:00:00', 120) >= CONVERT(datetime ,DATEPART(yyyy, OA_Schedule.FSTARTTIME) + ? + DATEPART(mm, OA_Schedule.FSTARTTIME) + ?+ ' 00:00:00', 120)) AND ( (OA_Schedule.FUPTODATE IS NULL) OR (CONVERT(datetime , ? + ' 00:00:00', 120) <= fUpToDate) ) , binds: [PSN01, 2016-09-01, -, -01, 2016-09-01, 1, RelativeOrg, o, PSN01, 2016-09-01, -, -01, 2016-09-01]出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.ksql.KSQLUtils.execSqlSelect(Unknown Source)
        ... 52 more
Caused by: java.sql.SQLException: 在将 varchar 值 ' 00:00:00' 转换成数据类型 int 时失败。
        at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)
        at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)
        at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)
        at net.sourceforge.jtds.jdbc.TdsCore.isDataInResultSet(TdsCore.java:792)
        at net.sourceforge.jtds.jdbc.JtdsResultSet.<init>(JtdsResultSet.java:146)
        at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:424)
        at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:693)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        ... 53 more
2016-09-01 17:01:35 [Action Time]action执行时间:15ms,/OA/personalOffice/process/schedule/scheduleProcess,mainActivity,queryOA_ScheduleMonthAction
2016-09-01 17:01:35 [Action Time]action执行时间:5ms,/SA/OPM/system/systemProcess,mainActivity,getClientAppsAction
//*[@process='/OA/personalOffice/process/tasksAssigned/tasksAssignedProcess' and @activity='mainActivity' and @url='null']


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36064
发表于 2016-9-1 17:43:38 | 显示全部楼层
java.sql.SQLException: 在将 varchar 值 ' 00:00:00' 转换成数据类型 int 时失败。
这个是数据的标准的做信息,应该是填充的数据给数据类型不匹配,可以到网上查找这个错误的具体原因
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

432

主题

1943

帖子

2630

积分

金牌会员

Rank: 6Rank: 6

积分
2630
QQ
 楼主| 发表于 2016-9-14 16:40:43 | 显示全部楼层
这个不是我们的功能代码报的错误,是x5平台的代码问题
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36064
发表于 2016-9-14 16:45:57 | 显示全部楼层
这是自己用了OA资源的问题,OA不是平台默认带的
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 23:24 , Processed in 0.053404 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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