I'm trying to connect a BOS 6.2. installation on a Windows 2008 R2 server via JDBC to Progress database using the following configuration
Driver: com.ddtek.jdbc.openedge.OpenEdgeDriver
URL: jdbc:datadirect:openedge://lwsv03dev02:30050;databasename=pinsys
Username: report
Password: ******
Query: SELECT TOP 10 "tran-code","td-stddescrn","rep-code","td-alias" FROM PUB.transdescrn
I was able to successfully connect and fetch data from Progrss databse using BOS 5.10.1. However, with BOS 6.2.2, it thows the following exception:
java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.exception.BonitaRuntimeException: java.lang.ClassCastException: com.ddtek.jdbc.openedgebase.BaseResultSet40 cannot be cast to java.io.Serializable
I found similar issue discussed at http://community.bonitasoft.com/groups/installation-6x/problem-using-bos-6-and-mysql and tried the script
// Use a List<String> in order to be able to use it for dropdown list widget
List<String> result = new ArrayList<String>();
while(resultset.next()) {
int intValue = resultset.getInt(1);
result.add(String.valueOf(intValue));
}
return result;
so that BOS can serialize the output. However, the script retruned an error
java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Script throws an exceptionSExpressionImpl
I understand the connectivity is fine but seralizing output from Prgoress database is an issue in BOS 6.2.2. Can anyone please be able to provide with some help here?
Sumesh