Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » Login not working for specific Roles(Login not working for specific roles)
Login not working for specific Roles [message #742712] Thu, 20 October 2011 19:01 Go to next message
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 57
Registered: October 2011
Member
We're having a log in issue. It's working for most role, but now for our Administrator and one other user, it's not.

[5/3/11 22:40:10:192 EDT] 00000036 SystemOut O 1044570 WARN [ag.carnot.base.log.LogUtils] (WebContainer : 2:)
java.lang.NullPointerException
at ag.carnot.workflow.runtime.utils.AuthorizationContext.setModelElementData(AuthorizationContext.java:171)
at ag.carnot.workflow.runtime.utils.AuthorizationContext.setActivityDataWithScopePi(AuthorizationContext.java:270)
at ag.carnot.workflow.runtime.utils.WorkItemAuthorization2Predicate.accept(WorkItemAuthorization2Predicate.java:103)
at ag.carnot.workflow.query.WorklistQueryEvaluator.buildCountOnlyWorklist(WorklistQueryEvaluator.java:233)
at ag.carnot.workflow.query.WorklistQueryEvaluator.buildWorklist(WorklistQueryEvaluator.java:102)
at ag.carnot.workflow.runtime.beans.WorkflowServiceImpl.getWorklist(WorkflowServiceImpl.java:481)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)....................................

[5/3/11 22:40:10:197 EDT] 00000036 SystemOut O 1044575 ERROR [com.icesoft.faces.facelets.D2DFaceletViewHandler] (WebContainer : 2:) Problem in renderResponse: /file:WEB-INF/lib/ipp-workflow-perspective.jar!/META-INF/xhtml/processportal/launchpad/overview.xhtml @20,76 value="#{processportal_overviewPanel.directUserWorkCount}": Exception getting value of property directUserWorkCount of base of type : com.infinity.bpm.ui.web.processportal.launchpad.OverviewBean
javax.faces.el.EvaluationException: /file:WEB-INF/lib/ipp-workflow-perspective.jar!/META-INF/xhtml/processportal/launchpad/overview.xhtml @20,76 value="#{processportal_overviewPanel.directUserWorkCount}": Exception getting value of property directUserWorkCount of base of type : com.infinity.bpm.ui.web.processportal.launchpad.OverviewBean
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
at javax.faces.component.UIParameter.getValue(UIParameter.java:71)
at com.icesoft.faces.renderkit.dom_html_basic.OutputMessageRenderer.encodeEnd(OutputMessageRenderer.java:89)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)................................

Caused by:
javax.faces.el.EvaluationException: Bean: com.infinity.bpm.ui.web.processportal.launchpad.OverviewBean, property: directUserWorkCount
at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:461)
at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
... 80 more
Caused by:
java.lang.reflect.InvocationTargetException
Re: Login not working for specific Roles [message #742715 is a reply to message #742712] Thu, 20 October 2011 19:04 Go to previous message
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 57
Registered: October 2011
Member
We think ag.carnot.workflow.runtime.utils.AuthorizationContext.setActivityDataWithScopePi(AuthorizationContext.java:270)
is already sending in a null value.

That would be:
   public void setActivityDataWithScopePi(long scopeProcessInstanceOid, long activityRtOid,
         long modelOid, long currentPerformer, long currentUserPerformer, long department){
      ModelManager mm = getModelManager();
      setModelElementData(mm.findActivity(modelOid, activityRtOid));
...........

If the ModelManager could not find an Activity for the specified modelOid + activityRtOid then this would explain the NPE.
To find the culprit, you could set a break point and check the values of the method parameters.

public void setActivityDataWithScopePi(long scopeProcessInstanceOid, long activityRtOid,
long modelOid, long currentPerformer, long currentUserPerformer, long department)

Then you can use these values to check the consistency of your database.
We can expect same behaviour if for some reason the modelCache was not in sync with the audit trail.
A server restart would refresh the cache and solve the issue.

The inconsistency between model information and audit trail runtime information could be caused by a (invalid) model overwrite. If you removed an activity from the model and overwrote the model afterwards, then the audit trail could still contain runtime information which does not have a matching activity in the latest model. In that case you could overwrite the model again with the old version and the redeploy the new version without overwriting.
Alternatively you can archive/cleanup the invalid audit trail runtime information.

[Updated on: Fri, 21 October 2011 04:18]

Report message to a moderator

Previous Topic:Delegate Activity with Web Service API. Generic approach to find Web Service messages
Next Topic:Model cannot be deployed from within Eclipse via Spring Remoting
Goto Forum:
  


Current Time: Sun Dec 21 14:28:14 GMT 2014

Powered by FUDForum. Page generated in 0.05533 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software