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

QQ登录

只需一步,快速开始

查看: 3856|回复: 11

页面上有standardProcessExecuteList这个组件后,系统报如下错误

[复制链接]

138

主题

435

帖子

1259

积分

金牌会员

Rank: 6Rank: 6

积分
1259
QQ
发表于 2014-9-15 16:31:34 | 显示全部楼层 |阅读模式
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: SELECT  SA_Task.sID AS SA_Task, SA_Task.sParentID AS sParent, SA_Task.SNAME AS sName, SA_Task.SCONTENT AS sContent, SA_Task.SREMARK AS sRemark, SA_Task.SFLOWID AS sFlowID, SA_Task.SSOURCEID AS sSourceID, SA_Task.SFRONTID AS sFrontID, SA_Task.SCATALOGID AS sCatalogID, SA_Task.SKINDID AS sKindID, SA_Task.SRESPONSIBLE AS sResponsible, SA_Task.SEXECUTEMODE2 AS sExecuteMode2, SA_Task.SEXECUTEMODE AS sExecuteMode, SA_Task.SPREEMPTMODE AS sPreemptMode, SA_Task.SREMINDMODE AS sRemindMode, SA_Task.STYPEID AS sTypeID, SA_Task.STYPENAME AS sTypeName, SA_Task.SIMPORTANCEID AS sImportanceID, SA_Task.SIMPORTANCENAME AS sImportanceName, SA_Task.SEMERGENCYID AS sEmergencyID, SA_Task.SEMERGENCYNAME AS sEmergencyName, SA_Task.SCURL AS sCURL, SA_Task.SEURL AS sEURL, SA_Task.SDISTRIBUTETIME AS sDistributeTime, SA_Task.SCREATETIME AS sCreateTime, SA_Task.SLASTMODIFYTIME AS sLastModifyTime, SA_Task.SLIMITTIME AS sLimitTime, SA_Task.SWARNINGTIME AS sWarningTime, SA_Task.SEXECUTETIME AS sExecuteTime, SA_Task.SEXPECTSTARTTIME AS sExpectStartTime, SA_Task.SEXPECTFINISHTIME AS sExpectFinishTime, SA_Task.SACTUALSTARTTIME AS sActualStartTime, SA_Task.SACTUALFINISHTIME AS sActualFinishTime, SA_Task.SCREATORFID AS sCreatorFID, SA_Task.SCREATORFNAME AS sCreatorFName, SA_Task.SEXECUTORFID AS sExecutorFID, SA_Task.SEXECUTORFNAME AS sExecutorFName, SA_Task.SCREATORPERSONID AS sCreatorPersonID, SA_Task.SCREATORPERSONNAME AS sCreatorPersonName, SA_Task.SCREATORPOSID AS sCreatorPosID, SA_Task.SCREATORPOSNAME AS sCreatorPosName, SA_Task.SCREATORDEPTID AS sCreatorDeptID, SA_Task.SCREATORDEPTNAME AS sCreatorDeptName, SA_Task.SCREATOROGNID AS sCreatorOgnID, SA_Task.SCREATOROGNNAME AS sCreatorOgnName, SA_Task.SEXECUTORPERSONID AS sExecutorPersonID, SA_Task.SEXECUTORPERSONNAME AS sExecutorPersonName, SA_Task.SEXECUTORPOSID AS sExecutorPosID, SA_Task.SEXECUTORPOSNAME AS sExecutorPosName, SA_Task.SEXECUTORDEPTID AS sExecutorDeptID, SA_Task.SEXECUTORDEPTNAME AS sExecutorDeptName, SA_Task.SEXECUTOROGNID AS sExecutorOgnID, SA_Task.SEXECUTOROGNNAME AS sExecutorOgnName, SA_Task.SEXECUTORNAMES AS sExecutorNames, SA_Task.SCUSTOMERID AS sCustomerID, SA_Task.SCUSTOMERNAME AS sCustomerName, SA_Task.SPROJECTID AS sProjectID, SA_Task.SPROJECTNAME AS sProjectName, SA_Task.SPLANID AS sPlanID, SA_Task.SPLANNAME AS sPlanName, SA_Task.SDATA1 AS sData1, SA_Task.SDATA2 AS sData2, SA_Task.SDATA3 AS sData3, SA_Task.SDATA4 AS sData4, SA_Task.SVARIABLE AS sVariable, SA_Task.SACTIVE AS sActive, SA_Task.SSTATUSID AS sStatusID, SA_Task.SSTATUSNAME AS sStatusName, SA_Task.SAIACTIVE AS sAIActive, SA_Task.SAIID AS sAIID, SA_Task.SAISTATUSID AS sAIStatusID, SA_Task.SAISTATUSNAME AS sAIStatusName, SA_Task.SSEQUENCE AS sSequence, SA_Task.SLOCK AS sLock, SA_Task.SHINTS AS sHints, SA_Task.SSHORTCUT AS sShortcut, SA_Task.SPROCESS AS sProcess, SA_Task.SACTIVITY AS sActivity, SA_Task.SPROCESSNAME AS sProcessName, SA_Task.SACTIVITYNAME AS sActivityName, SA_Task.VERSION AS version, SA_Task.SPROCESSTEMPLATEID AS sProcessTemplateID, SA_Task.SPROCESSTEMPLATEITEMSEQUENCE AS sProcessTemplateItemSequence, SA_Task.STEMPPERMISSIONID AS sTempPermissionID, SA_Task.SESFIELD01 AS sESField01, SA_Task.SESFIELD02 AS sESField02, SA_Task.SESFIELD03 AS sESField03, SA_Task.SESFIELD04 AS sESField04, SA_Task.SESFIELD05 AS sESField05, SA_Task.SESFIELD06 AS sESField06, SA_Task.SESFIELD07 AS sESField07, SA_Task.SESFIELD08 AS sESField08, SA_Task.SEDFIELD21 AS sEDField21, SA_Task.SEDFIELD22 AS sEDField22, SA_Task.SEDFIELD23 AS sEDField23, SA_Task.SEDFIELD24 AS sEDField24, SA_Task.SETFIELD31 AS sETField31, SA_Task.SETFIELD32 AS sETField32, SA_Task.SETFIELD33 AS sETField33, SA_Task.SETFIELD34 AS sETField34, SA_Task.SEIFIELD41 AS sEIField41, SA_Task.SEIFIELD42 AS sEIField42, SA_Task.SEIFIELD43 AS sEIField43, SA_Task.SEIFIELD44 AS sEIField44, SA_Task.SEBFIELD51 AS sEBField51, SA_Task.SEBFIELD52 AS sEBField52, SA_Task.SEBFIELD53 AS sEBField53, SA_Task.SEBFIELD54 AS sEBField54, SA_Task.SENFIELD11 AS sENField11, SA_Task.SENFIELD12 AS sENField12, SA_Task.SENFIELD13 AS sENField13, SA_Task.SENFIELD14 AS sENField14, SA_Task.SSUMMARY AS sSummary, SA_Task.SACTIVITYNAMES AS sActivityNames, SA_Task.SCODE AS sCode, SA_Task.SWITHDRAW AS sWithdraw, SA_Task.SPROCESSTEMPLATEID2 AS sProcessTemplateID2, SA_Task.SACTIVITYINTEMPLATE AS sActivityInTemplate FROM SA_Task SA_Task  WHERE  ( ( (SA_Task.SWITHDRAW IS NULL) OR (SA_Task.SWITHDRAW = ?) ) AND ( ( (SA_Task.SKINDID = ?) AND (SA_Task.SEXECUTORPERSONID IS NOT NULL) AND ( SA_Task.SSTATUSID IN (?, ?, ?, ?, ?, ?) ) ) OR ( (SA_Task.SKINDID = ?) AND ( SA_Task.SSTATUSID IN (?, ?, ?, ?, ?) ) ) ) ) AND ( (SA_Task.SFLOWID = (SELECT  x.sID FROM SA_Task x  WHERE  (x.SDATA1 = ?) AND (x.sParentID IS NULL) )) AND (SA_Task.SEXECUTORPERSONID IS NOT NULL) AND (SA_Task.SACTUALFINISHTIME IS NOT NULL) AND ( SA_Task.SKINDID IN (?, ?) ) )   ORDER BY SA_Task.SACTUALFINISHTIME ASC, binds: [0, tkTask, tesPaused, tesFinished, tesReturned, tesAborted, tesTransmited, tesWaited, tkExecutor, tesPaused, tesFinished, tesReturned, tesAborted, tesTransmited, AA2A66A35A4E4528A84FFCE4E957D530, tkTask, tkExecutor]出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.ksql.KSQLUtils.execSqlSelect(Unknown Source)
        ... 30 more
Caused by: java.sql.SQLException: ORA-01427: 单行子查询返回多个行

        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)
        ... 31 more

发表于 2014-9-15 16:36:18 | 显示全部楼层
是否启动了两次流程实例呢,到数据库中或代办任务中看看是否有两个流程相同实例。

310

主题

4938

帖子

4767

积分

论坛元老

Rank: 8Rank: 8

积分
4767
QQ
发表于 2014-9-15 16:40:10 | 显示全部楼层
这个是oracle的报错提示
你把sql放到plsql里执行,看看是什么问题?
QQ:179785966

138

主题

435

帖子

1259

积分

金牌会员

Rank: 6Rank: 6

积分
1259
QQ
 楼主| 发表于 2014-9-15 16:44:22 | 显示全部楼层
lanware_smf 发表于 2014-9-15 16:36
是否启动了两次流程实例呢,到数据库中或代办任务中看看是否有两个流程相同实例。 ...

好像是启动了两个流程实例,在sa_task中根据sdata1查询到两个sid的记录。但是是哪里误操作出现这种错误情况

45

主题

4492

帖子

3960

积分

论坛元老

Rank: 8Rank: 8

积分
3960
QQ
发表于 2014-9-15 16:44:37 | 显示全部楼层
ORA-01427: 单行子查询返回多个行

ORACLE数据库自身错误,将你的SQL语句输出一下,放到SQL PLUS中执行一下看看,能否正常。
若不正常说明你的SQL或者 KSQL有问题。
向前进,向前进,我们……

138

主题

435

帖子

1259

积分

金牌会员

Rank: 6Rank: 6

积分
1259
QQ
 楼主| 发表于 2014-9-15 16:46:31 | 显示全部楼层
zzdxzj 发表于 2014-9-15 16:44
好像是启动了两个流程实例,在sa_task中根据sdata1查询到两个sid的记录。但是是哪里误操作出现这种错误情 ...

select x.SID from SA_Task x where x.sData1 = 'AA2A66A35A4E4528A84FFCE4E957D530' and x.sParentID is null。。这句查询出来两条数据,但是这个组件不是系统封装好的么,具体哪里出现错误了
发表于 2014-9-15 16:47:08 | 显示全部楼层
zzdxzj 发表于 2014-9-15 16:44
好像是启动了两个流程实例,在sa_task中根据sdata1查询到两个sid的记录。但是是哪里误操作出现这种错误情 ...

重新发起一个新的流程看看是否还要这个问题,如果还有就要检查下代码之类的问题了,如果没有问题就说明是启动了两次流程实例。

138

主题

435

帖子

1259

积分

金牌会员

Rank: 6Rank: 6

积分
1259
QQ
 楼主| 发表于 2014-9-15 16:54:09 | 显示全部楼层
lanware_smf 发表于 2014-9-15 16:47
重新发起一个新的流程看看是否还要这个问题,如果还有就要检查下代码之类的问题了,如果没有问题就说明是 ...

重新发起的流程还是会报错,但这个组件不是系统封装好的吗,我自己也没改什么代码

138

主题

435

帖子

1259

积分

金牌会员

Rank: 6Rank: 6

积分
1259
QQ
 楼主| 发表于 2014-9-15 16:55:42 | 显示全部楼层
fpj 发表于 2014-9-15 16:44
ORA-01427: 单行子查询返回多个行

ORACLE数据库自身错误,将你的SQL语句输出一下,放到SQL PLUS中执行 ...

组件是系统封装还的,其他的代码我自己都没改过的
发表于 2014-9-15 17:17:44 | 显示全部楼层
zzdxzj 发表于 2014-9-15 16:55
组件是系统封装还的,其他的代码我自己都没改过的

那就不用它了,换其他组件试试吧
高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

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

GMT+8, 2024-11-22 10:10 , Processed in 0.055615 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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