Issue with State Lifecycle throwing an error

Answered


Hello,

So I set up a State Lifecycle and it was working fine but now I added an additional state into the flow (Passed QA) and it this throwing me the following error (see above).  Below is the setup for the workflow.  I am not sure what is causing the issue.  Any help is appreciated.  Thanks!





 

0
19 comments
Official comment

Hello Ken, thank you for the question and sorry for the delay.

Could you please tell, is something highlighted in red in this workflow in the Workflow Editor? Could you please attach a screenshot? Thank you.

Avatar
Permanently deleted user

Just reaching out to see if anyone has been able to look at this issue.  We just purchased YouTrack after our trail and now this issue is occurring and it is preventing me from moving forward with finalizing our process testing and rolling this out to our team.  It was working fine previously, and even after I reset the workflow back to what it was before adding the "Passed QA" status it still is having the same issue.

Any assistance is appreciated as I am working on a deadline and need a resolution to this problem.

Thanks!

0
Avatar
Permanently deleted user

Sorry for the delayed response on my side, I have been out of the office since last Wednesday.

There is nothing highlighted in red in the workflow.  The example above is a sequence of screenshots of the entire workflow as it would not all fit in 1 screen shot.  I am attaching a full shot of the editor as well in case that helps.

I also wanted to mention that I hadn't tried to open a new ticket completely, just edit exiting items "State" field but when I tried to open a new ticket today no matter what field I try to update (Summary, Description, Assigned to, etc.) I am getting the same pop-up.  I cannot create a new issue ticket at all currently.

Thanks!

0

Hello Ken, I'm sorry for the delay. Please try to do the following:

1) Click 'Download workflows from server', this will also update the custom fields schema.

2) Check each of the 5 rules in the workflow 'State Change Limitations' for anything red/highlighted and correct mistakes (there probably are some).

3) Force upload the workflow to the server.

 

Please let me know if that helps. Thank you.

0
Avatar
Permanently deleted user

Hi Liubov,

I tried your recommendations but it is still not working.  The 5 items in State Change Limitations have no red/highlighted errors in them.  I am not sure what else to do at this point.

0

Hello Ken, I'm sorry for the delay. I'm afraid e can only suggest to re-type the rule that is causing troubles entirely, paying attention to all completions and errors.

If you have an InCloud instance, you can tell us its name, we will check the logs and tell you what rule is causing problems.

0
Avatar
Permanently deleted user

We're not running an InCloud instance.  I am checking with my IT department to see if they can assist with looking into the logs for the specific rule that is causing the problem.

0
Avatar
Permanently deleted user

What is the name and location of the log file?  This would help my IT department locate the issue for me locally.

Thanks!

0

Hi Ken, please refer to the p.1 here: https://youtrack-support.jetbrains.com/hc/en-us/articles/206546369-When-we-ask-you-to-provide-additional-details-logs-database-HAR-etc-

You need to monitor errors.log, youtrack.log and workflow.log in particular

0
Avatar
Permanently deleted user

Thanks!  So I was able to get the information  through our IT department but I do not know how to decipher what I am looking at to determine which item is causing the error.  I am placing info from the logs below for your review.  Thanks!

Error Log:

23 Jan 2017 08:38:55,702 ERROR [TransientSessionImpl] [qtp1766966513-31                                  ] [kenh@2002:c000:59:0:0:0:c000:59] Exception while inside listener [jetbrains.youtrack.workflow.ext.WorkflowIssueListenerImpl@1d3f5286]
jetbrains.youtrack.workflow.model.WorkflowUILogicException: <span style="font-weight: normal">
Workflow <a title="State Change Limitations-&gt;Change State from Review to Approved and notify" href="admin/editProject/35c6c443-0005-44f7-a6cf-c36bc195385e?tab=workflow">State Change Limitations</a>
 reports error: <span class="bold">Cannot resolve property Issue. in project Change Control</span><br/>
Contact project admin Jason Seachrist<a href="mailto:JasonS@datalinesys.com?subject=Problem with workflow State Change Limitations"></a>
</span>

 at jetbrains.youtrack.workflow.model.Rule.wrapRuntimeException(Rule.java:188)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:62)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:44)
 at jetbrains.youtrack.workflow.model.Rule.withLogging(Rule.java:413)
 at jetbrains.youtrack.workflow.model.StatelessRule.handle(StatelessRule.java:44)
 at jetbrains.youtrack.workflow.model.StatelessRule$3.invoke(StatelessRule.java:115)
 at jetbrains.youtrack.workflow.model.RhinoRuleLoader.runInContext(RhinoRuleLoader.java:85)
 at jetbrains.youtrack.workflow.model.StatelessRule.handleBeforeFlush(StatelessRule.java:108)
 at jetbrains.youtrack.workflow.ext.RulesRunner.run(RulesRunner.java:102)
 at jetbrains.youtrack.workflow.ext.WorkflowIssueListenerImpl.beforeFlush(WorkflowIssueListenerImpl.java:58)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl$3.visit(TransientSessionImpl.java:1063)
 at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.forAllListeners(TransientEntityStoreImpl.java:353)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.notifyBeforeFlushListeners(TransientSessionImpl.java:1060)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.beforeFlush(TransientSessionImpl.java:977)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flushChanges(TransientSessionImpl.java:750)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flush(TransientSessionImpl.java:211)
 at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.handleEventImpl(TemplateActionController.java:161)
 at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.handleEvent(TemplateActionController.java:135)
 at jetbrains.mps.webr.runtime.requestProcessor.EventRequestProcessor.processRequest(EventRequestProcessor.java:75)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:232)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:150)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.doPost(MainServlet.java:196)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
 at jetbrains.charisma.main.RootGoFilter.doFilter(RootGoFilter.java:80)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at jetbrains.youtrack.webapp.filters.WebrSessionAuthenticationFilter.doFilter(WebrSessionAuthenticationFilter.kt:49)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
 at jetbrains.youtrack.webapp.filters.SecurityResponseHeadersFilter.doFilter(SecurityResponseHeadersFilter.kt:18)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
 at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
 at org.eclipse.jetty.server.Server.handle(Server.java:518)
 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
 at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
 at java.lang.Thread.run(Thread.java:745)
Caused by: jetbrains.mps.webr.runtime.templateComponent.LocalizedLogicException: Cannot resolve property Issue. in project Change Control
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.getPropertyValueResolver(PersistentEntityWrapper.java:139)
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.isChanged(PersistentEntityWrapper.java:69)
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.becomes(PersistentEntityWrapper.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at org.mozilla.javascript.gen.initialscript_js_169._c_anonymous_17(initialscript.js:130)
 at org.mozilla.javascript.gen.initialscript_js_169.call(initialscript.js)
 at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170._c_anonymous_1(State Change Limitations->Change State from Review to Approved and notify:2)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170.call(State Change Limitations->Change State from Review to Approved and notify)
 at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170.call(State Change Limitations->Change State from Review to Approved and notify)
 at org.mozilla.javascript.JavaAdapter.doCall(JavaAdapter.java:603)
 at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:578)
 at adapter1.guard(<adapter>)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:54)
 ... 57 more

 

Workflow Log:

23 Jan 2017 08:38:55,686 ERROR [Rule                ] [tp1766966513-31] [Change State from Review to Approved and notify] [kenh@2002:c000:59:0:0:0:c000:59] Workflow runtime exception
jetbrains.mps.webr.runtime.templateComponent.LocalizedLogicException: Cannot resolve property Issue. in project Change Control
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.getPropertyValueResolver(PersistentEntityWrapper.java:139)
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.isChanged(PersistentEntityWrapper.java:69)
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.becomes(PersistentEntityWrapper.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at org.mozilla.javascript.gen.initialscript_js_169._c_anonymous_17(initialscript.js:130)
 at org.mozilla.javascript.gen.initialscript_js_169.call(initialscript.js)
 at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170._c_anonymous_1(State Change Limitations->Change State from Review to Approved and notify:2)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170.call(State Change Limitations->Change State from Review to Approved and notify)
 at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170.call(State Change Limitations->Change State from Review to Approved and notify)
 at org.mozilla.javascript.JavaAdapter.doCall(JavaAdapter.java:603)
 at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:578)
 at adapter1.guard(<adapter>)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:54)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:44)
 at jetbrains.youtrack.workflow.model.Rule.withLogging(Rule.java:413)
 at jetbrains.youtrack.workflow.model.StatelessRule.handle(StatelessRule.java:44)
 at jetbrains.youtrack.workflow.model.StatelessRule$3.invoke(StatelessRule.java:115)
 at jetbrains.youtrack.workflow.model.RhinoRuleLoader.runInContext(RhinoRuleLoader.java:85)
 at jetbrains.youtrack.workflow.model.StatelessRule.handleBeforeFlush(StatelessRule.java:108)
 at jetbrains.youtrack.workflow.ext.RulesRunner.run(RulesRunner.java:102)
 at jetbrains.youtrack.workflow.ext.WorkflowIssueListenerImpl.beforeFlush(WorkflowIssueListenerImpl.java:58)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl$3.visit(TransientSessionImpl.java:1063)
 at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.forAllListeners(TransientEntityStoreImpl.java:353)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.notifyBeforeFlushListeners(TransientSessionImpl.java:1060)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.beforeFlush(TransientSessionImpl.java:977)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flushChanges(TransientSessionImpl.java:750)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flush(TransientSessionImpl.java:211)
 at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.handleEventImpl(TemplateActionController.java:161)
 at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.handleEvent(TemplateActionController.java:135)
 at jetbrains.mps.webr.runtime.requestProcessor.EventRequestProcessor.processRequest(EventRequestProcessor.java:75)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:232)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:150)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.doPost(MainServlet.java:196)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
 at jetbrains.charisma.main.RootGoFilter.doFilter(RootGoFilter.java:80)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at jetbrains.youtrack.webapp.filters.WebrSessionAuthenticationFilter.doFilter(WebrSessionAuthenticationFilter.kt:49)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
 at jetbrains.youtrack.webapp.filters.SecurityResponseHeadersFilter.doFilter(SecurityResponseHeadersFilter.kt:18)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
 at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
 at org.eclipse.jetty.server.Server.handle(Server.java:518)
 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
 at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
 at java.lang.Thread.run(Thread.java:745)

 

YouTrack Log:

23 Jan 2017 08:38:55,702 ERROR [TransientSessionImpl          ] [qtp1766966513-31    ] [kenh@2002:c000:59:0:0:0:c000:59] Exception while inside listener [jetbrains.youtrack.workflow.ext.WorkflowIssueListenerImpl@1d3f5286]
jetbrains.youtrack.workflow.model.WorkflowUILogicException: <span style="font-weight: normal">
Workflow <a title="State Change Limitations-&gt;Change State from Review to Approved and notify" href="admin/editProject/35c6c443-0005-44f7-a6cf-c36bc195385e?tab=workflow">State Change Limitations</a>
 reports error: <span class="bold">Cannot resolve property Issue. in project Change Control</span><br/>
Contact project admin Jason Seachrist<a href="mailto:JasonS@datalinesys.com?subject=Problem with workflow State Change Limitations"></a>
</span>

 at jetbrains.youtrack.workflow.model.Rule.wrapRuntimeException(Rule.java:188)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:62)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:44)
 at jetbrains.youtrack.workflow.model.Rule.withLogging(Rule.java:413)
 at jetbrains.youtrack.workflow.model.StatelessRule.handle(StatelessRule.java:44)
 at jetbrains.youtrack.workflow.model.StatelessRule$3.invoke(StatelessRule.java:115)
 at jetbrains.youtrack.workflow.model.RhinoRuleLoader.runInContext(RhinoRuleLoader.java:85)
 at jetbrains.youtrack.workflow.model.StatelessRule.handleBeforeFlush(StatelessRule.java:108)
 at jetbrains.youtrack.workflow.ext.RulesRunner.run(RulesRunner.java:102)
 at jetbrains.youtrack.workflow.ext.WorkflowIssueListenerImpl.beforeFlush(WorkflowIssueListenerImpl.java:58)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl$3.visit(TransientSessionImpl.java:1063)
 at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.forAllListeners(TransientEntityStoreImpl.java:353)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.notifyBeforeFlushListeners(TransientSessionImpl.java:1060)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.beforeFlush(TransientSessionImpl.java:977)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flushChanges(TransientSessionImpl.java:750)
 at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flush(TransientSessionImpl.java:211)
 at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.handleEventImpl(TemplateActionController.java:161)
 at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.handleEvent(TemplateActionController.java:135)
 at jetbrains.mps.webr.runtime.requestProcessor.EventRequestProcessor.processRequest(EventRequestProcessor.java:75)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:232)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:150)
 at jetbrains.mps.webr.runtime.servlet.MainServlet.doPost(MainServlet.java:196)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
 at jetbrains.charisma.main.RootGoFilter.doFilter(RootGoFilter.java:80)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at jetbrains.youtrack.webapp.filters.WebrSessionAuthenticationFilter.doFilter(WebrSessionAuthenticationFilter.kt:49)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
 at jetbrains.youtrack.webapp.filters.SecurityResponseHeadersFilter.doFilter(SecurityResponseHeadersFilter.kt:18)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
 at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
 at org.eclipse.jetty.server.Server.handle(Server.java:518)
 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
 at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
 at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
 at java.lang.Thread.run(Thread.java:745)
Caused by: jetbrains.mps.webr.runtime.templateComponent.LocalizedLogicException: Cannot resolve property Issue. in project Change Control
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.getPropertyValueResolver(PersistentEntityWrapper.java:139)
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.isChanged(PersistentEntityWrapper.java:69)
 at jetbrains.youtrack.workflow.wrappers.PersistentEntityWrapper.becomes(PersistentEntityWrapper.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
 at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
 at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at org.mozilla.javascript.gen.initialscript_js_169._c_anonymous_17(initialscript.js:130)
 at org.mozilla.javascript.gen.initialscript_js_169.call(initialscript.js)
 at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170._c_anonymous_1(State Change Limitations->Change State from Review to Approved and notify:2)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170.call(State Change Limitations->Change State from Review to Approved and notify)
 at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at org.mozilla.javascript.gen.State_Change_Limitations__Change_State_from_Review_to_Approved_and_notify_170.call(State Change Limitations->Change State from Review to Approved and notify)
 at org.mozilla.javascript.JavaAdapter.doCall(JavaAdapter.java:603)
 at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:578)
 at adapter1.guard(<adapter>)
 at jetbrains.youtrack.workflow.model.StatelessRule$1.invoke(StatelessRule.java:54)
 ... 57 more

 

0

Hello Ken, thank you for this information. As far as I can see, the rule 'Change State from Review to Approved and notify' from your workflow is causing issues.

Please try to re-type this rule completely from the beginning, always completing all expressions, always selecting the proper option from the dropdown. After that force upload the workflow to the server and check. Let me know if that helps. Thank you.

0
Avatar
Permanently deleted user

Hi Liubov,

Thanks for the assistance.  So I tried re-writing the Stateless Rule and I am running into an issue which I didn't get when I wrote it initially.  Below is the original rule and I have highlighted the part as it appeared originally.

When I try to recreate this in the new rule, I am getting the message below and I am not sure what it means or how to fix it.  I apologize, I am still new to this so I am learning as I go along. :)

Any help is appreciated.  Thank you again so much for all your help thus far!

0
Avatar
Permanently deleted user

Update:

Ok, so I made some progress.  I tried clicking on the dropdown items (tried both to be sure) and entering the rest of the code but I am running into a different issue now.  No matter which item I choose, when I get to the part to add getID() it is not registering.

0

Hi Ken, I'm sorry for the delay.

It seems like `getId()` expression wasn't completed properly in your code. Please do the following: when you've typed (with all completions done properly, nothing highlighted in red) all the line up to ` + `, after that press Ctrl + Space, select 'getId()' from the list and press Enter.

Let me know if that helps. Thank you.

0
Avatar
Permanently deleted user

Hi Luibov,

Thanks for the assistance.  So I retyped the Workflow after using the method you suggested and I am still getting the error when attempting to edit an existing ticket or open a new ticket (When I try to enter any information the same pop-up appears).

0
Avatar
Permanently deleted user

Also, I just tried even removing the Stateless Rule in question entirely and I am still having the same issue.

0
Avatar
Permanently deleted user

I hope this will help, the below items populated in the messages after I uploaded the workflow.

child 'YExpression' is expected for role 'arguments' but was 'GItemList'
--  -- was child:  GItemList <no name>[null] in State Change Limitations@3_0
--  -- was input: [guard] YDotExpression <no name>[4663302868508895410] in State Change Limitations@2_0
--  -- was parent in template: [call] YOperationInternalCall "operation"[5770537243328257187] in jetbrains.youtrack.workflow.generator.template.main@generator
--  -- was child in template: [arguments] YStringLiteral <no name>[5770537243328257243] in jetbrains.youtrack.workflow.generator.template.main@generator
child 'YExpression' is expected for role 'arguments' but was 'GItemList'
--  -- was child:  GItemList <no name>[null] in State Change Limitations@3_0
--  -- was input: [expression] YBinaryOperation <no name>[4663302868508895424] in State Change Limitations@2_0
--  -- was parent in template: [call] YOperationInternalCall "set"[5770537243328257349] in jetbrains.youtrack.workflow.generator.template.main@generator
--  -- was child in template: [arguments] YStringLiteral <no name>[5770537243328257391] in jetbrains.youtrack.workflow.generator.template.main@generator

0
Avatar
Permanently deleted user

The project is still in testing and hasn't been implemented yet.  I am just going to try removing the entire project and starting from scratch as I am not sure what else to do at this point.  If I run into any problems again I will let you know.

Thanks again for all your support!

0

Hi Ken, please feel free to ask any further questions, you send them here or you can file them to youtrack-feedback@jetbrains.com (please note that we usually respond to emails faster).

Thank you!

 

0

Please sign in to leave a comment.