¿How can fix this error: Error while getting the form page list?

1
0
-1

I'm triying to create a link to allow me redirect to HumanTask Form. I have reviewed Bonita Documentation in this url:
http://documentation.bonitasoft.com/accessing-bonita-bpm-portal-and-form...,

The ActiveityInstanceId , i retrieve it in Flownode_instace table from bonita database .The problem is i'm having this error:

Error while getting the form page list.

I hope that they help me.

Regards.

Comments

Submitted by Sean McP on Mon, 09/21/2015 - 18:22

What does the Tomcat Log say? You need to read that.

This is a generic message for just about all "we cannot show the page" issues and doesn't help at all.

What version of Bonitasoft are you using?

regards

Submitted by claz08 on Mon, 09/21/2015 - 18:50

Thanks for reply,

i'm using Bonita BPM Edition versión: 6.5.1:

Submitted by Sean McP on Mon, 09/21/2015 - 18:46

The images don't work, do you just want to post the log...?

Submitted by claz08 on Mon, 09/21/2015 - 18:52

Hi ,

here , the bonita studio log:

!SESSION 2015-09-15 15:18:49.075 -----------------------------------------------
eclipse.buildId=6.5.1.
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es
Framework arguments: --launcher.XXMaxPermSize512m -clearPersistedState
Command-line arguments: -os win32 -ws win32 -arch x86 --launcher.XXMaxPermSize512m -clearPersistedState

This is a continuation of log file C:\BonitaBPMCommunity-6.5.1\workspace.metadata.bak_1.log
Created Time: 2015-09-16 17:47:23.041

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:47:23.043
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:48:45.888
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:48:45.898
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:48:45.933
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:48:45.935
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:48:45.936
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:48:46.055
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:48:47.321
!MESSAGE
!STACK 0
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:248)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599)
at BScript51.run(BScript51.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:48:47.560
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:183)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:248)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599)
at BScript51.run(BScript51.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )
Root exception:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

Long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:248)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599)
at BScript51.run(BScript51.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:48:55.517
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:49:23.156
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:49:23.182
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:49:23.423
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:49:23.430
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:49:23.436
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:49:23.511
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:49:24.250
!MESSAGE
!STACK 0
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error

at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at  < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at  Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:142)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException.: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359)
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:141)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:107)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:160)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:843)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:524)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:501)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:283)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.getScriptFromCache(GroovyScriptExpressionExecutorCacheStrategy.java:94)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:132)
at ... 43 more. ( )

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:49:24.510
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:183)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error

at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at  < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at  Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:142)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException.: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359)
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:141)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:107)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:160)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:843)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:524)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:501)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:283)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.getScriptFromCache(GroovyScriptExpressionExecutorCacheStrategy.java:94)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:132)
at ... 43 more. ( )
Root exception:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error

at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at  < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at  Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:142)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException.: startup failed:
BScript52.groovy: 5: primitive type parameters not allowed here;
solution: use the corresponding wrapper type, such as Integer for int @ line 5, column 13.
HashMap<long,String> hm= new HashMap<long,String>();
^

1 error
( )
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359)
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:141)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:107)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:160)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:843)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:524)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:501)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:283)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.getScriptFromCache(GroovyScriptExpressionExecutorCacheStrategy.java:94)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:132)
at ... 43 more. ( )

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:49:44.108
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:50:24.692
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:50:24.707
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:50:24.744
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:50:24.750
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:50:24.755
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:50:24.898
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:50:25.730
!MESSAGE
!STACK 0
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.longUnbox(DefaultTypeTransformation.java:69)
at BScript53.run(BScript53.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:50:26.016
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:183)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.longUnbox(DefaultTypeTransformation.java:69)
at BScript53.run(BScript53.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )
Root exception:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,nom);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.longUnbox(DefaultTypeTransformation.java:69)
at BScript53.run(BScript53.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:50:38.826
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:00.588
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:00.653
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:00.694
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:00.703
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:00.712
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:00.804
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:51:01.537
!MESSAGE
!STACK 0
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.longUnbox(DefaultTypeTransformation.java:69)
at BScript54.run(BScript54.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:51:02.056
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:183)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.longUnbox(DefaultTypeTransformation.java:69)
at BScript54.run(BScript54.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )
Root exception:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'long'
Expression : SExpressionImpl [name=resultset, content=

HashMap<Long,String> hm= new HashMap<Long,String>();

resultset.beforeFirst();

while (resultset.next()) {

long id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException.: Cannot cast object '829' with class 'java.lang.String' to class 'long' ( )
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:143)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.longUnbox(DefaultTypeTransformation.java:69)
at BScript54.run(BScript54.groovy:19)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:51:17.323
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:48.649
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:48.679
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:48.720
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:48.730
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:48.740
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:51:48.820
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:51:50.054
!MESSAGE
!STACK 0
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: java.sql.SQLException.: Invalid value for getLong() - 'albert.martorell' ( )
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:3036)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2947)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:3059)
at java_sql_ResultSet$getLong.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at BScript55.run(BScript55.groovy:21)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.bonitasoft.studio.common 4 0 2015-09-16 17:51:50.318
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:183)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: java.sql.SQLException.: Invalid value for getLong() - 'albert.martorell' ( )
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:3036)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2947)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:3059)
at java_sql_ResultSet$getLong.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at BScript55.run(BScript55.groovy:21)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )
Root exception:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
at com.sun.proxy.$Proxy39.executeConnectorOnProcessDefinition(Unknown Source)
at org.bonitasoft.studio.connectors.operation.TestConnectorOperation.run(TestConnectorOperation.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
at < ========== Beginning of the server stack trace ========== >. ( )
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3448)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinition(ProcessAPIImpl.java:3409)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:363)
at org.bonitasoft.engine.api.impl.ServerAPIImpl$1.call(ServerAPIImpl.java:332)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:288)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:339)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:274)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
at Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException.: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:183)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:92)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeOperations(ProcessAPIImpl.java:3368)
at org.bonitasoft.engine.api.impl.ProcessAPIImpl.executeConnectorOnProcessDefinitionWithOrWithoutOperations(ProcessAPIImpl.java:3444)
at ... 34 more. ( )
at Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException.: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'
Expression : SExpressionImpl [name=resultset, content=

HashMap<String,String> hm= new HashMap<String,String>();

resultset.beforeFirst();

while (resultset.next()) {

String id= resultset.getString('id');

String nom = resultset.getLong('userName');

hm.put(id,id);

//def queryWithoutBrackets = systemTypeQueryResults.join(",");

}

return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]] ( )
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
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.operation.impl.OperationServiceImpl.getOperationValue(OperationServiceImpl.java:178)
at ... 38 more. ( )
at Caused by: java.sql.SQLException.: Invalid value for getLong() - 'albert.martorell' ( )
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:3036)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2947)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:3059)
at java_sql_ResultSet$getLong.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at BScript55.run(BScript55.groovy:21)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:134)
at ... 43 more. ( )

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:51:54.736
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:52:24.572
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:52:24.590
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:52:24.633
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:52:24.644
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:52:24.655
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:52:24.735
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:54:23.430
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:54:49.051
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:54:49.067
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:54:49.120
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:54:49.130
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:54:49.138
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:54:51.356
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:56:38.100
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:56:38.329
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:56:38.408
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:56:38.417
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:56:38.425
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:56:38.945
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:01.147
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:01.161
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:01.201
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:01.211
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:01.220
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:01.295
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:22.838
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:22.855
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:22.896
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:22.905
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:22.914
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 17:57:22.993
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 17:57:36.534
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.connectors.model.edit 1 0 2015-09-16 18:01:24.468
!MESSAGE connectors-def/cms.jpg

!ENTRY org.bonitasoft.studio.connectors.model.edit 1 0 2015-09-16 18:01:42.604
!MESSAGE connectors-def/cms.jpg

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:03:10.360
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:03:31.635
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:04:12.582
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:04:12.598
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:04:12.638
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:04:12.647
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:04:12.656
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:04:13.510
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:02.544
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:02.636
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.795
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.816
!MESSAGE Expression of input separator is null for connector obtenir_test

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.824
!MESSAGE Expression of input outputType is null for connector obtenir_test

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.833
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.841
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.850
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:11.858
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:17.362
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:17.758
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:17.789
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:19.905
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:06:20.011
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:15.914
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:17.117
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.935
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.945
!MESSAGE Expression of input separator is null for connector obtenir_test

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.954
!MESSAGE Expression of input outputType is null for connector obtenir_test

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.963
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.973
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.982
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:20.990
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:24.685
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:24.734
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:24.780
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:26.360
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:13:26.409
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:47.833
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:48.209
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.790
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.800
!MESSAGE Expression of input separator is null for connector obtenir_test

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.808
!MESSAGE Expression of input outputType is null for connector obtenir_test

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.817
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.825
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.834
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:50.843
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:52.525
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:52.579
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:52.916
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:56.345
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:14:56.479
!MESSAGE Login successful.

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:21:13.344
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.connectors.model.edit 1 0 2015-09-16 18:21:38.004
!MESSAGE connectors-def/cms.jpg

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:22:03.657
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:23:08.836
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:24:04.003
!MESSAGE Attempt to login as install

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:24:04.126
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:24:04.187
!MESSAGE Building bar for process TEST_CONNECTOR_POOL (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:24:04.208
!MESSAGE Expression of input separator is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:24:04.217
!MESSAGE Expression of input outputType is null for connector

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:24:04.637
!MESSAGE Build complete for process TEST_CONNECTOR_POOL (1.0 ).

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:24:56.367
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:25:10.784
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:22.970
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:23.515
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:33.761
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:33.771
!MESSAGE Expression of input separator is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:33.779
!MESSAGE Expression of input outputType is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:34.424
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:34.433
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:39.023
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:39.074
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:39.147
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:43.932
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:30:43.970
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.connectors.model.edit 1 0 2015-09-16 18:34:31.803
!MESSAGE connectors-def/cms.jpg

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-16 18:35:47.927
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:20.845
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:21.118
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.764
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.775
!MESSAGE Expression of input separator is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.784
!MESSAGE Expression of input outputType is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.793
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.801
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.810
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:24.819
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:29.094
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:29.143
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:29.255
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:31.714
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 18:36:31.892
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:35.118
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:36.349
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:41.994
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:42.047
!MESSAGE Expression of input separator is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:42.056
!MESSAGE Expression of input outputType is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:42.077
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:42.086
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:42.094
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:42.103
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:51.448
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:51.646
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:51.791
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:58.384
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 19:08:58.423
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 22:05:45.474
!MESSAGE Stopping tomcat server...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 22:05:48.674
!MESSAGE Shuttingdown watchdog...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 22:05:48.755
!MESSAGE Watchdog shutdown ...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-16 22:06:14.955
!MESSAGE Tomcat server stopped
!SESSION 2015-09-21 15:35:37.933 -----------------------------------------------
eclipse.buildId=6.5.1.
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es
Framework arguments: --launcher.XXMaxPermSize512m -clearPersistedState
Command-line arguments: -os win32 -ws win32 -arch x86 --launcher.XXMaxPermSize512m -clearPersistedState

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:26.009
!MESSAGE Updating RSS feed:6-3-training.xml

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 15:36:29.253
!MESSAGE Starting tomcat...

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:29.253
!MESSAGE Updating RSS feed:6-3-documentation.xml

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:29.268
!MESSAGE Updating RSS feed:6-3-community.xml

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:29.268
!MESSAGE Updating RSS feed:6-3-blogs.xml

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:29.284
!MESSAGE Updating RSS feed:6-3-examples-community.xml

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:29.284
!MESSAGE Updating RSS feed:6-3-videos.xml

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 15:36:29.954
!MESSAGE Starting studio watchdog on 6969

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:33.167
!MESSAGE RSS feed:6-3-blogs.xml updated successfuly!

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:33.229
!MESSAGE RSS feed:6-3-community.xml updated successfuly!

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:33.229
!MESSAGE RSS feed:6-3-documentation.xml updated successfuly!

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:33.276
!MESSAGE RSS feed:6-3-examples-community.xml updated successfuly!

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:33.401
!MESSAGE RSS feed:6-3-training.xml updated successfuly!

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:36:33.432
!MESSAGE RSS feed:6-3-videos.xml updated successfuly!

!ENTRY org.bonitasoft.studio.application 1 0 2015-09-21 15:37:16.911
!MESSAGE Startup duration : 00:01:20

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 15:49:24.202
!MESSAGE Tomcat server started.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:16:16.431
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:16:19.419
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:00.960
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:01.820
!MESSAGE Expression of input separator is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:01.836
!MESSAGE Expression of input outputType is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:01.961
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:01.976
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:01.976
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:17:01.992
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:19:23.631
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:19:25.845
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:19:26.063
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:19:52.755
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 16:19:53.317
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:14.296
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:14.935
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.532
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.547
!MESSAGE Expression of input separator is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.563
!MESSAGE Expression of input outputType is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.579
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.579
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.594
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:22.594
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:26.962
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:27.024
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:27.055
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:32.453
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:13:32.484
!MESSAGE Login successful.

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-21 17:19:27.754
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.codehaus.groovy.eclipse.core 1 0 2015-09-21 17:20:31.468
!MESSAGE Oops...surroundWithFactory not initialized

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:09.291
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:10.961
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.827
!MESSAGE Building bar for process DiagramNou (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.843
!MESSAGE Expression of input separator is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.858
!MESSAGE Expression of input outputType is null for connector Llista_usuaris

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.874
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.890
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca2

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.890
!MESSAGE Expression of input separator is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:24.905
!MESSAGE Expression of input outputType is null for connector obtindre_id_usuari_Tasca3

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:29.915
!MESSAGE Build complete for process DiagramNou (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:30.196
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:55:30.274
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:56:12.139
!MESSAGE Attempt to login as root.root

!ENTRY org.bonitasoft.studio.engine 1 0 2015-09-21 17:56:12.732
!MESSAGE Login successful.

Submitted by claz08 on Mon, 09/21/2015 - 18:59

i wanted to put a image that contain the error that i have.
I don't know why do you need the Bonita Log , if the tomcat server doesn't give me any error , and all is working , except this error "Error while getting the form page list.", while i'm trying to access to HumanTask form , through a link that i created

Submitted by Sean McP on Mon, 09/21/2015 - 19:11

I don't know why do you need the Bonita Log ? Really? First there are two logs! Both have interesting information in them for debugging information. That's why the logs...

I remember posting samples of how to debug your own code, you should have a look at these as well.

Anyway...

There are a couple of problems:

  1. org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.codehaus.groovy.runtime.typehandling.GroovyCastException with message = Cannot cast object '829' with class 'java.lang.String' to class 'java.lang.Long'

from this statement...

Long id= resultset.getString('id');
String nom = resultset.getLong('userName');

and

  1. Root exception:
  2. org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Invalid value for getLong() - 'albert.martorell'

from this statement...

Long id= resultset.getString('id');
String nom = resultset.getLong('userName');

You can't do Long from String like that.

You need to

Long id= Long.valueOf(resultset.getString('id'));

of course making sure you are using id (first example) and not the name (second example).

regards

Submitted by claz08 on Mon, 09/21/2015 - 21:16

ok , this error it appears while i have done some changes in a connector, now the i have the only mistake that i get is:

Error while getting the form page list.

do you know , how i can fix it?
error.png

Regards.

Submitted by Sean McP on Tue, 09/22/2015 - 08:57

Image still not shown...

You have to fix all underlying problems, can you post the process? I'll have a look at it.

Submitted by claz08 on Tue, 09/22/2015 - 16:19

Hi ,

I don't know , Why you can not see the image?
i can see the image correctly .

For the question ¿can you post the process?, what do you want to say ?

¿do you want my process file or an image of my workflow.

or

if the question is , if i can to publish my organization and if my workflow follow all the steps , my answer
is:Yes.

Here a the image .. i hope that you can see it
error.png

Regards

Submitted by Sean McP on Tue, 09/22/2015 - 17:32

I think there is a problem with how u are loading the image.

If you just export the process, Diagram->Export then load it to a private Dropbox where I can download it then I will look at it.

Submitted by claz08 on Tue, 09/22/2015 - 17:55

in first place , thanks for your interest..

Ok , give me a mail address in order to share with you a folder that will contain the BPM file

Submitted by claz08 on Tue, 09/22/2015 - 18:07

anyway , here are the link of the file , and the image of error that i get.

URL OF FILE: https://www.dropbox.com/s/k3j4cfcmhd971hb/DiagramNou-1.0.bos?dl=0

URL OF IMAGE:https://www.dropbox.com/s/4rxqi792nkgdcwt/error.png?dl=0

Regards

Submitted by claz08 on Tue, 09/22/2015 - 18:53

Hi Sean,

have you downloaded the files? because i want to delete the folder .

i will wait the reply of what will you say about the error that i get.
Thank you again.

Submitted by Sean McP on Tue, 09/22/2015 - 19:34

Got it you can delete, I'm travelling tomorrow's do will look ASAP. Regards

Submitted by claz08 on Tue, 09/22/2015 - 19:55

Ok, i will be waiting!

regards

Submitted by Sean McP on Fri, 09/25/2015 - 18:05

https://www.dropbox.com/s/xxt41ito39w4vjf/DiagramNou-1.0.bos?dl=0

I've uploaded a new copy of the diagram which you can import and execute, then look at the logs to see what is happening.

Search the Bonita log for Tarea and you will find all the information (Help->Bonita Engine Log)

regards

Submitted by claz08 on Mon, 09/28/2015 - 10:24

Hi,

Thanks, i will try to execute the diagram in order to see the behavior, and then i will reply you .

Regards.

Submitted by claz08 on Mon, 09/28/2015 - 17:53

Hi ,
I could not import the file , because you save it with Bonita version 7 , and i use Bonita version 6.5.1

regards

No answers yet.
Notifications