Uploaded image for project: 'ZZZ-WSO2 Data Services Server'
  1. ZZZ-WSO2 Data Services Server
  2. DS-1183

DataService ODATA - error for tables with over 23 fields

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.1
    • Component/s: core
    • Labels:
      None
    • Environment:

      Postgresql 9.4, JDBC 4

    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      DS Fault Message: OData Service Fault : Error in reading table meta data in alocacao_de_trabalho table. :O índice da coluna está fora do intervalo: 24, número de colunas: 23.
      DS Code: UNKNOWN_ERROR
      Nested Exception:-
      org.postgresql.util.PSQLException: O índice da coluna está fora do intervalo: 24, número de colunas: 23.

      at org.wso2.carbon.dataservices.core.odata.RDBMSDataHandler.readTableColumnMetaData(RDBMSDataHandler.java:999)
      at org.wso2.carbon.dataservices.core.odata.RDBMSDataHandler.initializeMetaData(RDBMSDataHandler.java:1021)
      at org.wso2.carbon.dataservices.core.odata.RDBMSDataHandler.<init>(RDBMSDataHandler.java:109)
      at org.wso2.carbon.dataservices.core.description.config.SQLCarbonDataSourceConfig.createODataHandler(SQLCarbonDataSourceConfig.java:219)
      at org.wso2.carbon.dataservices.core.DBDeployer.createDBService(DBDeployer.java:797)
      at org.wso2.carbon.dataservices.core.DBDeployer.processService(DBDeployer.java:1139)
      at org.wso2.carbon.dataservices.core.DBDeployer.deploy(DBDeployer.java:195)
      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
      at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
      at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
      at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
      at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
      at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.postgresql.util.PSQLException: O índice da coluna está fora do intervalo: 24, número de colunas: 23.
      at org.postgresql.jdbc2.AbstractJdbc2ResultSetMetaData.getField(AbstractJdbc2ResultSetMetaData.java:419)
      at org.postgresql.jdbc2.AbstractJdbc2ResultSetMetaData.getPrecision(AbstractJdbc2ResultSetMetaData.java:274)
      at org.wso2.carbon.dataservices.core.odata.RDBMSDataHandler.readTableColumnMetaData(RDBMSDataHandler.java:978)
      ... 23 more

        Attachments

          Activity

            People

            • Assignee:
              madhawag@wso2.com Madhawa Gunasekara
              Reporter:
              rogerio-dias.moreira@serpro.gov.br rogerio moreira
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: