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

QQ登录

只需一步,快速开始

查看: 2852|回复: 6

[结贴] 模块 我的待办不能正常显示

[复制链接]

96

主题

399

帖子

1335

积分

金牌会员

Rank: 6Rank: 6

积分
1335
QQ
发表于 2013-12-17 15:19:03 | 显示全部楼层 |阅读模式
从5.2.4 升级到5.2.6 之后,首页中的我的待办不能正常显示。页面错误如下
1.jpg
控制台错误如下:
2013-12-17 15:18:24 action:<?xml version="1.0" encoding="UTF-8"?>
<action process="/OA/common/process/toDoWidget/toDoWidgetProcess" activity="mainActivity" name="getToDoDataAction" executeContext="" content-type="application/xml"><parameters/></action>
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        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.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT count(OA_DC_Doc) as tasksCount FROM OA_DC_Doc OA_DC_Doc join OA_DC_ReaderRange OA_DC_ReaderRange on OA_DC_Doc = OA_DC_ReaderRange.fMasterID         WHERE NOT OA_DC_Doc IN (SELECT OA_DC_DocExecute.fMasterID FROM OA_DC_DocExecute OA_DC_DocExecute WHERE OA_DC_DocExecute.fActivityLabel = '阅文意见' AND OA_DC_DocExecute.fCreatePsnID = 'PSN01' and OA_DC_DocExecute.fMasterID is not null )  AND ((OA_DC_ReaderRange.fRangeURL = '') or (OA_DC_ReaderRange.fRangeURL = '/ORG01.ogn') or (OA_DC_ReaderRange.fRangeURL = '/ORG01.ogn/PSN01@ORG01.psm') or (OA_DC_ReaderRange.fRangeURL = '/ORG01.ogn/PSN01@ORG01.psm/PSN01.psn'))
        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 ToDoProcedure.getWaitReadDocCount(ToDoProcedure.java:94)
        at ToDoProcedure.getToDoData(ToDoProcedure.java:27)
        ... 26 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: (SELECT  COUNT(OA_DC_Doc.fID) AS tasksCount FROM OA_DC_Doc OA_DC_Doc JOIN OA_DC_ReaderRange OA_DC_ReaderRange ON OA_DC_Doc.fID = OA_DC_ReaderRange.fMasterID  WHERE  ( NOT (OA_DC_Doc.fID IN (SELECT  OA_DC_DocExecute.fMasterID AS fMasterID FROM OA_PUB_Execute OA_DC_DocExecute  WHERE ( (OA_DC_DocExecute.FACTIVITYLABEL = ?) AND (OA_DC_DocExecute.FCREATEPSNID = ?) AND (OA_DC_DocExecute.fMasterID IS NOT NULL) ) AND (OA_DC_DocExecute.fBizKind = '公文业务流程')))) AND ( (OA_DC_ReaderRange.FRANGEURL = ?) OR (OA_DC_ReaderRange.FRANGEURL = ?) OR (OA_DC_ReaderRange.FRANGEURL = ?) OR (OA_DC_ReaderRange.FRANGEURL = ?) ) ), binds: [阅文意见, PSN01, , /ORG01.ogn, /ORG01.ogn/PSN01@ORG01.psm, /ORG01.ogn/PSN01@ORG01.psm/PSN01.psn]出错
        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-04063: view "JUSTEP_OA.OA_PUB_EXECUTE" 有错误
        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

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-18 09:58:43 | 显示全部楼层
检查数据源连接是否正常,再看一下 这个视图OA_PUB_EXECUTE 是否正常

96

主题

399

帖子

1335

积分

金牌会员

Rank: 6Rank: 6

积分
1335
QQ
 楼主| 发表于 2013-12-18 10:49:32 | 显示全部楼层
lixin_justep 发表于 2013-12-18 09:58
检查数据源连接是否正常,再看一下 这个视图OA_PUB_EXECUTE 是否正常

数据源连接正常,在justep_oa用户下的这个视图OA_PUB_EXECUTE 有错误,我删除后想重新新建总是报错 ora-01031 权限不足,然后我用sys 用户登录dba 给justep_oa 授权,用了grant CREATE ANY view TO JUSTEP_OA
grant CREATE ANY materialized view TO JUSTEP_OA
grant select any dictionary TO JUSTEP_OA 这 3 个语句。之后用JUSTEP_OA 用户登录还是权限不足。下面是JUSTEP_OA的 权限列表
1.jpg

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-18 11:05:08 | 显示全部楼层
gost_1223 发表于 2013-12-18 10:49
数据源连接正常,在justep_oa用户下的这个视图OA_PUB_EXECUTE 有错误,我删除后想重新新建总是报错 ora-0 ...

不是赋这个权限,应该对相关表赋select 权限

96

主题

399

帖子

1335

积分

金牌会员

Rank: 6Rank: 6

积分
1335
QQ
 楼主| 发表于 2013-12-18 11:27:34 | 显示全部楼层
赋select 权限了,但是还是报错,进入plsql后发现这个视图有错误,所以才想着删除视图,新建一个的。不过删除后新建的时候还是权限不足

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-18 12:17:10 | 显示全部楼层
gost_1223 发表于 2013-12-18 11:27
赋select 权限了,但是还是报错,进入plsql后发现这个视图有错误,所以才想着删除视图,新建一个的。不过删 ...

是把系统库的任务表的查询权限赋给oa用户
GRANT SELECT ON oasys.表 TO justep_oa WITH GRANT OPTION;
这个视图跨库了

96

主题

399

帖子

1335

积分

金牌会员

Rank: 6Rank: 6

积分
1335
QQ
 楼主| 发表于 2013-12-18 14:02:19 | 显示全部楼层
嗯, 把 sa_task 这个表的权限授权给oa 之后,就可以创建视图了。这个错误也就消失了。
高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

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

GMT+8, 2024-11-22 23:05 , Processed in 0.063425 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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