I have a datasource with a query that calls a subquery.
If I reach the datasource through a SOAP request (ex. SOAPUI), I have no problems whatsoever.
If instead I call the SOAP endpoint through a WSO2 API, or if I remove the subquery from the main query, I get the following log/errors:
[2021-09-06 17:16:12,017] INFO {TRACE_LOGGER} - Sending message through endpoint : UOServiceEP resolving to address = http://localhost:8290/services/UOService?wsdl
[2021-09-06 17:16:12,017] INFO {TRACE_LOGGER} - SOAPAction: urn:getOrganigramma
[2021-09-06 17:16:12,018] INFO {TRACE_LOGGER} - WSA-Action: urn:getOrganigramma
[2021-09-06 17:16:13,234] ERROR {OMSourcedElementImpl} - Could not get parser from data source for element {http://ws.wso2.org/dataservice}organigrammaUO javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:100)
.......
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:466)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:182)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPostStoredProcQuery(SQLQuery.java:1031)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.runPostQuery(SQLQuery.java:2348)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.execute(Query.java:310)
at org.wso2.micro.integrator.dataservices.core.engine.CallQuery.executeElement(CallQuery.java:280)
at org.wso2.micro.integrator.dataservices.core.engine.OutputElement.execute(OutputElement.java:88)
at org.wso2.micro.integrator.dataservices.core.description.operation.Operation.execute(Operation.java:56)
at org.wso2.micro.integrator.dataservices.core.engine.DataService.invoke(DataService.java:613)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:94)
... 21 more
Caused by: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPreStoredProcQuery(SQLQuery.java:966)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.runPreQuery(SQLQuery.java:2336)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.execute(Query.java:301)
at org.wso2.micro.integrator.dataservices.core.engine.CallQuery.executeElement(CallQuery.java:280)
at org.wso2.micro.integrator.dataservices.core.engine.OutputElement.execute(OutputElement.java:88)
at org.wso2.micro.integrator.dataservices.core.engine.OutputElementGroup.executeElement(OutputElementGroup.java:105)
at org.wso2.micro.integrator.dataservices.core.engine.OutputElement.execute(OutputElement.java:88)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.writeResultEntry(Query.java:443)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPostStoredProcQuery(SQLQuery.java:1023)
... 28 more
Caused by: DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1529)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPreStoredProcQuery(SQLQuery.java:924)
... 36 more
Caused by: java.sql.SQLException: Statement closed.
at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:110)
at com.sun.proxy.$Proxy46.setString(Unknown Source)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.setStringValue(SQLQuery.java:2168)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.setParamInPreparedStatement(SQLQuery.java:1633)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1514)
... 37 more
[2021-09-06 17:16:13,405] ERROR {DBInOutMessageReceiver} - Error in in-out message receiver java.lang.RuntimeException: Error obtaining parser from data source:DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:230)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getXMLStreamReader(OMSourcedElementImpl.java:501)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getXMLStreamReader(OMSourcedElementImpl.java:486)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getXMLStreamReaderWithoutCaching(OMSourcedElementImpl.java:510)
at org.wso2.micro.integrator.dataservices.core.DBUtils.cloneAndReturnBuiltElement(DBUtils.java:996)
at org.wso2.micro.integrator.dataservices.core.dispatch.DataServiceRequest.dispatch(DataServiceRequest.java:364)
...
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:100)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.serialize(DSOMDataSource.java:105)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.getReader(DSOMDataSource.java:111)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:224)
... 18 more
Caused by: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPostStoredProcQuery(SQLQuery.java:1031)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.runPostQuery(SQLQuery.java:2348)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.execute(Query.java:310)
...
at org.wso2.micro.integrator.dataservices.core.engine.DataService.invoke(DataService.java:613)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:94)
... 21 more
Caused by: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPreStoredProcQuery(SQLQuery.java:966)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.runPreQuery(SQLQuery.java:2336)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.execute(Query.java:301)
...
at org.wso2.micro.integrator.dataservices.core.description.query.Query.writeResultEntry(Query.java:443)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPostStoredProcQuery(SQLQuery.java:1023)
... 28 more
Caused by: DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1529)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPreStoredProcQuery(SQLQuery.java:924)
... 36 more
Caused by: java.sql.SQLException: Statement closed.
at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:110)
at com.sun.proxy.$Proxy46.setString(Unknown Source)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.setStringValue(SQLQuery.java:2168)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.setParamInPreparedStatement(SQLQuery.java:1633)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1514)
... 37 more
[2021-09-06 17:16:13,406] ERROR {ServerWorker} - Error processing POST request for : /services/UOService?wsdl org.apache.axis2.AxisFault: Error obtaining parser from data source:DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.DBUtils.createAxisFault(DBUtils.java:814)
...
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:100)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.serialize(DSOMDataSource.java:105)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.getReader(DSOMDataSource.java:111)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:224)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getXMLStreamReader(OMSourcedElementImpl.java:501)
...
at org.wso2.micro.integrator.dataservices.core.DataServiceProcessor.dispatch(DataServiceProcessor.java:40)
at org.wso2.micro.integrator.dataservices.core.DBInOutMessageReceiver.invokeBusinessLogic(DBInOutMessageReceiver.java:81)
... 9 more
Caused by: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPostStoredProcQuery(SQLQuery.java:1031)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.runPostQuery(SQLQuery.java:2348)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.execute(Query.java:310)
...
at org.wso2.micro.integrator.dataservices.core.engine.DataService.invoke(DataService.java:613)
at org.wso2.micro.integrator.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:94)
... 21 more
Caused by: DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPreStoredProcQuery(SQLQuery.java:966)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.runPreQuery(SQLQuery.java:2336)
at org.wso2.micro.integrator.dataservices.core.description.query.Query.execute(Query.java:301)
....
at org.wso2.micro.integrator.dataservices.core.description.query.Query.writeResultEntry(Query.java:443)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPostStoredProcQuery(SQLQuery.java:1023)
... 28 more
Caused by: DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1529)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.processPreStoredProcQuery(SQLQuery.java:924)
... 36 more
Caused by: java.sql.SQLException: Statement closed.
at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:110)
at com.sun.proxy.$Proxy46.setString(Unknown Source)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.setStringValue(SQLQuery.java:2168)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.setParamInPreparedStatement(SQLQuery.java:1633)
at org.wso2.micro.integrator.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1514)
... 37 more
[2021-09-06 17:16:13,436] INFO {LogMediator} - {api:MDMCore:v1.0.0} To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:db58c128-25ce-494f-ab11-79af66292475, correlation_id: 8f009d24-0b4a-45c4-bce6-d8ffc2e1ddd0, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault xmlns:axis2ns10="http://ws.wso2.org/dataservice"><faultcode>axis2ns10:DATABASE_ERROR</faultcode><faultstring>Error obtaining parser from data source:DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Source Data Service:-
Name: UOService
Location: /home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs
Description: Exposing the MDM Core data service as a REST service.
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: getOrganigramma
Current Params: {data=2021-08-27T00:00:00, cod_uo=807}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
</faultstring><detail><axis2ns9:DataServiceFault xmlns:axis2ns9="http://ws.wso2.org/dataservice"><axis2ns9:current_params>{data=2021-08-27T00:00:00, cod_uo=807}</axis2ns9:current_params><axis2ns9:source_data_service><axis2ns9:data_service_name>UOService</axis2ns9:data_service_name><axis2ns9:description>Exposing the MDM Core data service as a REST service.
</axis2ns9:description><axis2ns9:location>/home/francesco/IntegrationStudio/runtime/microesb/tmp/carbonapps/-1234/1630940959815TestCompositeApplication_1.0.0.car/UOService_1.0.0/UOService-1.0.0.dbs</axis2ns9:location><axis2ns9:default_namespace>http://ws.wso2.org/dataservice</axis2ns9:default_namespace></axis2ns9:source_data_service><axis2ns9:ds_code>DATABASE_ERROR</axis2ns9:ds_code><axis2ns9:nested_exception>DS Fault Message: Error in 'SQLQuery.processStoredProcQuery': DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
DS Code: DATABASE_ERROR
Nested Exception:-
DS Fault Message: Error in 'createProcessedPreparedStatement'
DS Code: UNKNOWN_ERROR
Nested Exception:-
java.sql.SQLException: Statement closed.
</axis2ns9:nested_exception><axis2ns9:current_request_name>getOrganigramma</axis2ns9:current_request_name></axis2ns9:DataServiceFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
API sequence:
<resource methods="GET" url-mapping="/organigramma">
<inSequence>
<!--This is generated API skeleton. -->
<!--Business Logic Goes Here -->
<payloadFactory description="Create XML Payload" media-type="xml">
<format>
<m:getOrganigramma xmlns:m="http://services.samples">
<m:request>
<m:cod_uo>$1</m:cod_uo>
<m:data>$2</m:data>
</m:request>
</m:getOrganigramma>
</format>
<args>
<arg evaluator="xml" expression="$url:cod_uo"/>
<arg evaluator="xml" expression="$url:data"/>
</args>
</payloadFactory>
<header name="Action" scope="default" value="urn:getOrganigramma"/>
<send>
<endpoint key="gov:endpoints/UOServiceEP.xml"/>
</send>
</inSequence>
<outSequence>
<log level="full"/>
<respond/>
</outSequence>
<faultSequence/>
</resource>
Dataservice:
<operation name="getOrganigramma" returnRequestStatus="true">
<call-query href="getOrganigramma">
<with-param name="cod_uo" query-param="cod_uo" />
<with-param name="data" query-param="data" />
</call-query>
</operation>
<query id="getOrganigramma" useConfig="postgres">
<sql>(main query)</sql>
<param name="data" paramType="SCALAR" sqlType="TIMESTAMP" type="IN" optional="false" />
<param name="cod_uo" paramType="SCALAR" sqlType="STRING" type="IN" optional="false" />
<result element="organigrammaUO" rowName="UO">
<element name="id" column="id" xsdType="integer" requiredRoles="" />
<call-query href="getOrganigrammaFunctionalDependencies" requiredRoles="">
<with-param name="cod_uo" column="cod_uo" />
</call-query>
</result>
</query>
<query id="getOrganigrammaFunctionalDependencies" useConfig="postgres">
<sql>SELECT id FROM table WHERE cod_uo = :cod_uo::int</sql>
<param name="cod_uo" paramType="SCALAR" sqlType="STRING" type="IN" optional="false" />
<result element="organigrammaDipendenzeFunzionali" rowName="organigrammaDipendenze">
<element name="id" column="cod_uo_df" xsdType="integer" />
</result>
</query>
I'm using the latest Integration Studio 8.0.0 (with its MicroIntegrator)
I'll answer my own question
Somehow, the <m:request/> content will cause the error in that single, unic, specific use case...
Wrong:
<m:getOrganigramma xmlns:m="http://services.samples">
<m:request>
<m:cod_uo>$1</m:cod_uo>
<m:data>$2</m:data>
</m:request>
</m:getOrganigramma>
Correct:
<m:getOrganigramma xmlns:m="http://services.samples">
<m:cod_uo>$1</m:cod_uo>
<m:data>$2</m:data>
</m:getOrganigramma>
Related
I am using WSO2 EI 6.3.0 version. I am creating data service within the application which reads data from CSV.
I am running into very unusual case where I have created two data services. One with sample Product.csv which is shipped with WSO2 EI.
When calling Sample (Product.CSV) I am able to get the json response message. but when I am trying to invoke another API which other data service it is giving me below error:
[2018-10-10 17:57:31,916] [EI-Core] ERROR - JsonStreamFormatter Error occurred while writing to application/json
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wso2.carbon.integrator.core.json.JsonStreamFormatter.writeTo(JsonStreamFormatter.java:107)
at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:597)
at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:281)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:158)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: Error in CSVQuery.runQuery.
DS Code: INCOMPATIBLE_PARAMETERS_ERROR
Source Data Service:-
Name: InvoiceReport
Location: /InvoiceReport.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: _getinvoice
Current Params: {}
Nested Exception:-
DS Fault Message: Error in 'StaticOutputElement.execute', cannot find parameter with type:column name:Docnumber
DS Code: INCOMPATIBLE_PARAMETERS_ERROR
Below is Data service:
<data name="InvoiceReport" transports="http https local">
<config enableOData="false" id="CSV_InvoiceReport">
<property name="csv_datasource">/usr/lib/wso2/wso2ei/6.3.0/samples/data-services/resources/Invoice.csv</property>
<property name="csv_columnseperator">comma</property>
<property name="csv_startingrow">2</property>
<property name="csv_hasheader">true</property>
<property name="csv_headerrow">1</property>
</config>
<query id="Q2" useConfig="CSV_InvoiceReport">
<result outputType="json">{
"Products": {
"Product": [
{
"Docnumber":"$Docnumber",
"Invoicenumber":"$Invoicenumber",
"Documentdate":"$Documentdate",
"Invoiceduedate":"$Invoiceduedate",
"Customerid":"$Customerid",
"Documenttotal":"$Documenttotal",
"Quantity":"$Quantity",
"Unitprice":"$Unitprice",
"Extendedprice":"$Extendedprice",
"Consumer":"$Consumer",
"Servicename":"$Servicename"
}
]
}
}
</result>
</query>
<operation name="GetInvoiceReport">
<call-query href="Q2"/>
</operation>
<resource method="GET" path="Invoice">
<call-query href="Q2"/>
</resource>
</data>
Not sure where is the problem. Both are simple data service and didnot find any differences in creating them. One is working and one is not working at all.
Can some one please help me. Is this a bug?
Thanks in advance.
we have three querys, one select and two insert queries.
We have to execute the select query and it returns a row with four fields.
Then we have to use these four fields to excute the inserts querys.
Select query works fine, but when WSO2 ESB try to execute the next nested query fails, and show the next error
Unable to sendViaPost to url[http://6f478fba7fca:8280/services/...........SOAP12Endpoint] {org.apache.axis2.transport.http.HTTPSender
This is the xml about our data service.
<query id="updateASMCRRN" useConfig="DATABASE1_PRE">
<sql>UPDATE BOSA_ASMCRRCN SET RT_COD=:RT_COD, SET RT_DATE_DAT=to_date(:RT_DATE_DAT,'YYYY-MM-DD HH:MI:SS'), WHERE SUMMON_COD=:SUMMON_COD AND SUMREQ_SEQTMP=:SUMREQ_SEQTMP</sql>
<param name="RT_COD" sqlType="STRING"/>
<param name="RT_DATE_DAT" sqlType="STRING"/>
<param name="SUMMON_COD" sqlType="STRING"/>
<param name="SUMREQ_SEQTMP" sqlType="INTEGER"/>
</query>
......
<query id="selectNewSol" useConfig="DATABASE2_PRE">
<sql>SELECT s.NUMEROREGISTRO, to_char(s.FECHA,'YYYY-MM-DD HH:MI:SS') AS FECHA, v1.C_CLAVE_ID, v1.A_VALOR AS SUMMON_COD, v2.C_CLAVE_ID, v2.A_VALOR AS SUMREQ_SEQTMP FROM adel.ae_solicitudes s, adel.ae_valores v1, adel.ae_valores v2 WHERE s.CODFORMULARIO='1057' AND s.B_PROCESADA=1 AND s.NUMEROREGISTRO = v1.NUMEROREGISTRO AND v1.C_CLAVE_ID='.SUMMON_COD' AND s.NUMEROREGISTRO = v2.NUMEROREGISTRO AND v2.C_CLAVE_ID='.SUMREQ_SEQTMP'</sql>
<sql dialect="oracle">SELECT s.NUMEROREGISTRO, to_char(s.FECHA,'YYYY-MM-DD HH:MI:SS') AS FECHA, v1.C_CLAVE_ID, v1.A_VALOR AS SUMMON_COD, v2.C_CLAVE_ID, v2.A_VALOR AS SUMREQ_SEQTMP FROM adel.ae_solicitudes s, adel.ae_valores v1, adel.ae_valores v2 WHERE s.CODFORMULARIO='1057' AND s.B_PROCESADA=1 AND s.NUMEROREGISTRO = v1.NUMEROREGISTRO AND v1.C_CLAVE_ID='.SUMMON_COD' AND s.NUMEROREGISTRO = v2.NUMEROREGISTRO AND v2.C_CLAVE_ID='.SUMREQ_SEQTMP'</sql>
<result element="Solicitudes" rowName="Solicitud">
<element export="SUMMON_COD" name="SUMMON_COD" query-param="SUMMON_COD" xsdType="string"/>
<element export="RT_COD" name="RT_COD" query-param="NUMEROREGISTRO" xsdType="string"/>
<element export="RT_DATE_DAT" name="RT_DATE_DAT" query-param="FECHA" xsdType="string"/>
<element export="SUMREQ_SEQTMP" name="SUMREQ_SEQTMP" query-param="SUMREQ_SEQTMP" xsdType="integer"/>
<call-query href="updateASMCRRN">
<with-param name="RT_COD" query-param="NUMEROREGISTRO"/>
<with-param name="RT_DATE_DAT" query-param="FECHA"/>
<with-param name="SUMMON_COD" query-param="SUMMON_COD"/>
<with-param name="SUMREQ_SEQTMP" query-param="SUMREQ_SEQTMP"/>
</call-query>
</result>
</query>
<operation name="selectNewSol">
<call-query href="selectNewSol"/>
</operation>
Now this is the error:
ERROR {org.apache.synapse.transport.passthru.PassThroughHttpSender} - Failed to submit the response {org.apache.synapse.transport.passthru.PassThroughHttpSender}
org.apache.axis2.AxisFault: DS Fault Message: Error in 'SQLQuery.processPostNormalQuery': DS Fault Message: Error in 'SQLQuery.processPostNormalQuery': operation not allowed
DS Code: DATABASE_ERROR
Nested Exception:-
java.sql.SQLException: operation not allowed
DS Code: DATABASE_ERROR
Source Data Service:-
Name: pollingSolicitudesADEL
Location: /pollingSolicitudesADEL.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: selectNewSol
Current Params: {}
Nested Exception:-
DS Fault Message: Error in 'SQLQuery.processPostNormalQuery': operation not allowed
DS Code: DATABASE_ERROR
Nested Exception:-
java.sql.SQLException: operation not allowed
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo
Thanks in advance for any help.
We are having a problem in a Data Service on WSO2 DSS 3.0.0. If I execute directly the query on the database I get no error. The database is a Sybase version 12.
DBS
<data name="DSProgram" serviceNamespace="http://myschema.org.br">
<config id="ProgramDS">
<property name="carbon_datasource_name">ProgramDS</property>
</config>
<query id="updateProgram" useConfig="ProgramDS">
<sql>update aca..program set name = :name, endingdate = (case when :endingdate = '' then null else :endingdate) where course = :course</sql>
<param name="name" sqlType="STRING"/>
<param name="endingdate" sqlType="STRING"/>
<param name="course" sqlType="INTEGER"/>
</query>
<operation name="updateProgram">
<call-query href="updateProgram">
<with-param name="name" query-param="name"/>
<with-param name="endingdate" query-param="endingdate"/>
<with-param name="course" query-param="course"/>
</call-query>
</operation>
</data>
SOAP Envelope
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://myschema.org.br">
<soapenv:Header/>
<soapenv:Body>
<int:updateProgram>
<int:name>Course name</int:name>
<int:endingdate></int:endingdate>
<int:course>999</int:course>
</int:updateProgram>
</soapenv:Body>
</soapenv:Envelope>
SOAP Fault
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault xmlns:axis2ns1820="http://ws.wso2.org/dataservice">
<faultcode>axis2ns1820:DATABASE_ERROR</faultcode>
<faultstring>DS Fault Message: Error in DS non result invoke.
DS Code: DATABASE_ERROR
Nested Exception:-
javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: DSProgram
Location: /DSProgram.dbs
Description: N/A
Default Namespace: http://myschema.org.br
Current Request Name: updateProgram
Current Params: {endingdate=, course=999, name=Course name}
Nested Exception:-
java.lang.NullPointerException</faultstring>
<detail>
<axis2ns1819:DataServiceFault xmlns:axis2ns1819="http://ws.wso2.org/dataservice">DS Fault Message: Error in DS non result invoke.
DS Code: DATABASE_ERROR
Nested Exception:-
javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: DSProgram
Location: /DSProgram.dbs
Description: N/A
Default Namespace: http://myschema.org.br
Current Request Name: updateProgram
Current Params: {endingdate=, course=999, name=Course name}
Nested Exception:-
java.lang.NullPointerException</axis2ns1819:DataServiceFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
* Data changed for confidenciality
WSO2 DSS System Log
TID[-1234] [DSS] [2015-05-12 10:51:30,156] ERROR {org.wso2.carbon.dataservices.core.engine.DataService} - DS Fault Message: Error in 'SQLQuery.processNormalQuery' DS Code: DATABASE_ERROR Source Data Service:- Name: DSProgram Location: /DSProgram.dbs Description: N/A Default Namespace: http://myschema.org.br Current Request Name: updateProgram Current Params: {endingdate=, course=999, nome=Course name} Nested Exception:- java.lang.NullPointerException org.wso2.carbon.dataservices.core.description.query.SQLQuery.processNormalQuery(SQLQuery.java:808) org.wso2.carbon.dataservices.core.description.query.SQLQuery.runQuery(SQLQuery.java:2098) org.wso2.carbon.dataservices.core.description.query.Query.execute(Query.java:252) org.wso2.carbon.dataservices.core.engine.CallQuery.executeElement(CallQuery.java:179) org.wso2.carbon.dataservices.core.engine.CallQueryGroup.executeElement(CallQueryGroup.java:111) org.wso2.carbon.dataservices.core.engine.OutputElement.execute(OutputElement.java:89) org.wso2.carbon.dataservices.core.description.operation.Operation.execute(Operation.java:71) org.wso2.carbon.dataservices.core.engine.DataService.invoke(DataService.java:569) org.wso2.carbon.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:99) org.wso2.carbon.dataservices.core.engine.DSOMDataSource.serialize(DSOMDataSource.java:110) org.wso2.carbon.dataservices.core.engine.DSOMDataSource.executeInOnly(DSOMDataSource.java:80) org.wso2.carbon.dataservices.core.dispatch.SingleDataServiceRequest.processSingleRequest(SingleDataServiceRequest.java:127) org.wso2.carbon.dataservices.core.dispatch.SingleDataServiceRequest.processRequest(SingleDataServiceRequest.java:76) org.wso2.carbon.dataservices.core.dispatch.DataServiceRequest.dispatch(DataServiceRequest.java:282) org.wso2.carbon.dataservices.core.DataServiceProcessor.dispatch(DataServiceProcessor.java:39) org.wso2.carbon.dataservices.core.DBInOnlyMessageReceiver.invokeBusinessLogic(DBInOnlyMessageReceiver.java:48) org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) javax.servlet.http.HttpServlet.service(HttpServlet.java:641) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:172) org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
I think you have a SQL sintax error:
<sql>update aca..program (...)</sql>
Two dots at schema.table?
I am trying to to do a sample provided in this url , but i am getting error from xslt as:
TID: [0] [ESB] [2013-02-25 13:08:55,280]
ERROR {org.apache.synapse.mediators.transform.XSLTMediator} - Unable to perform XSLT transformation using : Value {name ='null', keyValue ='conf:/repository/synapse/default/local-entries/CustomerOrderInputTransfer.xslt'}
against source XPath : s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1] {org.apache.synapse.mediators.transform.XSLTMediator}
org.apache.synapse.SynapseException: Error creating XSLT transformer using : Value {name ='null', keyValue ='conf:/repository/synapse/default/local-entries/CustomerOrderInputTransfer.xslt'}
at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:293)
at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:389)
at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:232)
at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:144)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:416)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:268)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:576)
at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:77)
at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:379)
... 13 more
TID: [0] [ESB] [2013-02-25 13:08:55,282] WARN {org.apache.synapse.core.axis2.ProxyServiceMessageReceiver} - Exception encountered but no fault handler found - message dropped {org.apache.synapse.core.axis2.ProxyServiceMessageReceiver}
I am clueless about how to rectify this bug. Plz help
The WARN message that you get means that your xslt mediator is not able to find the file at the location 'conf:/repository/synapse/default/local-entries/CustomerOrderInputTransfer.xslt' .
If you are accessing it from local-entries folder, you can try specifying only CustomerOrderInputTransfer.xslt as the key attribute.
I was just trying to do a simple data service connecting to HR schema on Oracle XE DB. I just wrote a simple query with operation which takes an input parameter and gets the result accordingly as per the bind data passed.
My Query looks as below
SELECT first_name,last_name,email,phone_number,hire_date,salary
FROM employees
WHERE first_name like :Bind_name
I have added a input variable Bind_name and passing it when im requesting the service.
But, when i trigger the service i see below error and couldn't find relevant help on web.
[2012-06-13 12:42:08,101] ERROR {org.wso2.carbon.dataservices.core.description.query.SQLQuery} - org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.setStringValue(SQLQuery.java:1943)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.setParamInPreparedStatement(SQLQuery.java:1411)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1380)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.processNormalQuery(SQLQuery.java:802)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.runQuery(SQLQuery.java:2069)
at org.wso2.carbon.dataservices.core.description.query.Query.execute(Query.java:252)
at org.wso2.carbon.dataservices.core.engine.CallQuery.execute(CallQuery.java:185)
at org.wso2.carbon.dataservices.core.engine.CallQueryGroup.execute(CallQueryGroup.java:110)
at org.wso2.carbon.dataservices.core.description.operation.Operation.execute(Operation.java:71)
at org.wso2.carbon.dataservices.core.engine.DataService.invoke(DataService.java:592)
at org.wso2.carbon.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:99)
at org.wso2.carbon.dataservices.core.engine.DSOMDataSource.serialize(DSOMDataSource.java:110)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:691)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:283)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:245)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:193)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:409)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:286)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:254)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2012-06-13 12:42:08,106] ERROR {org.wso2.carbon.dataservices.core.engine.DataService} - DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: EmployeeService
Location: \EmployeeService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: findByEmployeeNameLike
Current Params: {Bind_name=S%}
Nested Exception:-
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: EmployeeService
Location: \EmployeeService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: findByEmployeeNameLike
Current Params: {Bind_name=S%}
Nested Exception:-
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.processNormalQuery(SQLQuery.java:844)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.runQuery(SQLQuery.java:2069)
at org.wso2.carbon.dataservices.core.description.query.Query.execute(Query.java:252)
at org.wso2.carbon.dataservices.core.engine.CallQuery.execute(CallQuery.java:185)
at org.wso2.carbon.dataservices.core.engine.CallQueryGroup.execute(CallQueryGroup.java:110)
at org.wso2.carbon.dataservices.core.description.operation.Operation.execute(Operation.java:71)
at org.wso2.carbon.dataservices.core.engine.DataService.invoke(DataService.java:592)
at org.wso2.carbon.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:99)
at org.wso2.carbon.dataservices.core.engine.DSOMDataSource.serialize(DSOMDataSource.java:110)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:691)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:283)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:245)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:193)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:409)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:286)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:254)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.setStringValue(SQLQuery.java:1943)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.setParamInPreparedStatement(SQLQuery.java:1411)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.createProcessedPreparedStatement(SQLQuery.java:1380)
at org.wso2.carbon.dataservices.core.description.query.SQLQuery.processNormalQuery(SQLQuery.java:802)
... 50 more
[2012-06-13 12:42:08,110] ERROR {org.apache.axis2.transport.http.CommonsHTTPTransportSender} - DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: EmployeeService
Location: \EmployeeService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: findByEmployeeNameLike
Current Params: {Bind_name=S%}
Nested Exception:-
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
org.apache.axis2.AxisFault: DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: EmployeeService
Location: \EmployeeService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: findByEmployeeNameLike
Current Params: {Bind_name=S%}
Nested Exception:-
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:409)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:286)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:254)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processNormalQuery'
DS Code: DATABASE_ERROR
Source Data Service:-
Name: EmployeeService
Location: \EmployeeService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: findByEmployeeNameLike
Current Params: {Bind_name=S%}
Nested Exception:-
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to java.sql.CallableStatement
at org.wso2.carbon.dataservices.core.engine.DSOMDataSource.execute(DSOMDataSource.java:105)
at org.wso2.carbon.dataservices.core.engine.DSOMDataSource.serialize(DSOMDataSource.java:110)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:691)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:283)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:245)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:193)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
... 35 more
Here find the .dbs file that I used,
<data name="DDD">
<config id="ds1">
<property name="org.wso2.ws.dataservice.driver">oracle.jdbc.driver.OracleDriver</property>
<property name="org.wso2.ws.dataservice.protocol">jdbc:oracle:thin:#localhost:1521/xe</property>
<property name="org.wso2.ws.dataservice.user">xxx</property>
<property name="org.wso2.ws.dataservice.password">xxx</property>
</config>
<query id="q1" useConfig="ds1">
<sql>select EMPLOYEENUMBER from employees where LASTNAME like :Bind_name</sql>
<result element="Entries" rowName="Entry">
<element name="EMPLOYEENUMBER" column="EMPLOYEENUMBER" xsdType="xs:string" />
</result>
<param name="Bind_name" sqlType="STRING" />
</query>
<operation name="op1">
<call-query href="q1">
<with-param name="Bind_name" query-param="Bind_name" />
</call-query>
</operation>
</data>
And the request is,
<p:op1 xmlns:p="http://ws.wso2.org/dataservice">
<!--Exactly 1 occurrence-->
<p:Bind_name>d%</p:Bind_name>
</p:op1>
It works fine as expected. Could you post your dbs file as well ?