groovy.lang.MissingPropertyException: No such property Exception

1
0
-1

In my project, I have an already defined Groovy script connector, which takes 3 parameters, and returns the result as an array.The script already uses a parameter named as rNoteGenServiceUrl. value of this variable rNoteGenServiceUrl is set through the external properties file.
This piece of code used to work fine in the past.
But now, I added one more variable as output of this groovy connector, then it starts throwing the below exception:

depends on rNoteGenServiceUrl is neither defined in the script nor in dependencies.
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:144)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:213)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionsFlatten(ExpressionResolverServiceImpl.java:120)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluate(ExpressionResolverServiceImpl.java:83)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.evaluateInputParameters(ConnectorServiceImpl.java:295)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.evaluateInputParameters(ConnectorServiceDecorator.java:102)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork$EvaluateParameterAndGetConnectorInstance.call(ExecuteConnectorWork.java:223)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork$EvaluateParameterAndGetConnectorInstance.call(ExecuteConnectorWork.java:182)
at com.bonitasoft.engine.transaction.JTATransactionServiceExt.executeInTransaction(JTATransactionServiceExt.java:49)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:134)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: groovy.lang.MissingPropertyException: No such property: rNoteGenServiceUrl for class: BScript134
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)

All the dependencies are automatically resolved. But I still get this exception.
The script uses groovy version 1.0.2 and Bonita version which I work upon is 7.3

Comments

Submitted by antoine.mottier on Mon, 09/30/2019 - 10:21

Hi,

Can you share (using Google Drive, Dropbox...) your project has a .bos file? It will help me reproduce and potentially find a solution to your issue.

Also it is not very clear to me if your are using a Groovy script connector provided by Bonita or if you are creating a REST API extension? You said that you "added one more variable as output of this groovy connector" but Bonita Groovy connector only accept one single output. Can you clarify how you did that?

Thanks

Submitted by surbhi.babbar_1... on Mon, 09/30/2019 - 10:25

Hi,

I am using Groovy script connector provided by Bonita.
The script used to output an array of documents earlier, of size 4.
Now I increased the array size, and returned 5 elements, instead of 4.

Submitted by antoine.mottier on Mon, 09/30/2019 - 10:40

Thanks for the extra information. Can you share your .bos file as I have requested?

No answers yet.
Notifications