{"action":"created","issue":{"url":"https://api.github.com/repos/wso2/product-ei/issues/466","repository_url":"https://api.github.com/repos/wso2/product-ei","labels_url":"https://api.github.com/repos/wso2/product-ei/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/wso2/product-ei/issues/466/comments","events_url":"https://api.github.com/repos/wso2/product-ei/issues/466/events","html_url":"https://github.com/wso2/product-ei/issues/466","id":218720308,"number":466,"title":"[EI61][DSS][Intermittent] Service deployment failed after enabling batch request","user":{"login":"sashikamw","id":14962228,"avatar_url":"https://avatars0.githubusercontent.com/u/14962228?v=3","gravatar_id":"","url":"https://api.github.com/users/sashikamw","html_url":"https://github.com/sashikamw","followers_url":"https://api.github.com/users/sashikamw/followers","following_url":"https://api.github.com/users/sashikamw/following{/other_user}","gists_url":"https://api.github.com/users/sashikamw/gists{/gist_id}","starred_url":"https://api.github.com/users/sashikamw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashikamw/subscriptions","organizations_url":"https://api.github.com/users/sashikamw/orgs","repos_url":"https://api.github.com/users/sashikamw/repos","events_url":"https://api.github.com/users/sashikamw/events{/privacy}","received_events_url":"https://api.github.com/users/sashikamw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-01T20:15:38Z","updated_at":"2017-04-02T06:35:33Z","closed_at":null,"body":"**Environment**\r\nOS -ubuntu 15.10\r\nJAVA -jdk 1.7.0_65\r\nBrowser-chrome version 53.0.2785.89\r\nEI610 Alpha Pack + patch for odata\r\nDB - mssql\r\n(Observed in the cluster as well)\r\n\r\n**Steps**\r\n1. Upload a dataservice\r\n2. Then enable batchrequest option for the data service\r\n\r\n[mysqltestexception.dbs.zip](https://github.com/wso2/product-ei/files/887926/mysqltestexception.dbs.zip)\r\n\r\n**Observation**\r\nobserved nullpoint exception and the service become faulty.\r\n\r\n```\r\n[2017-04-02 01:38:09,813] [EI-Core]  INFO - DeploymentInterceptor Removing Axis2 Service: mysqltestexception {super-tenant}\r\n[2017-04-02 01:38:10,453] [EI-Core] ERROR - DBDeployer The mysqltestexcepioj.dbs service, which is not valid, caused {1}\r\nDS Fault Message: Error in creating ConfigurationBasedAuthenticator: null\r\nDS Code: UNKNOWN_ERROR\r\nSource Data Service:-\r\nName: mysqltestexception\r\nLocation: /mysqltestexcepioj.dbs\r\nDescription: N/A\r\nDefault Namespace: http://ws.wso2.org/dataservice\r\nNested Exception:-\r\njava.lang.NullPointerException\r\n\r\n\tat org.wso2.carbon.dataservices.core.auth.ConfigurationBasedAuthenticator.<init>(ConfigurationBasedAuthenticator.java:55)\r\n\tat org.wso2.carbon.dataservices.core.description.config.SQLConfig.processDynamicAuth(SQLConfig.java:95)\r\n\tat org.wso2.carbon.dataservices.core.description.config.SQLConfig.<init>(SQLConfig.java:78)\r\n\tat org.wso2.carbon.dataservices.core.JDBCPoolSQLConfig.<init>(JDBCPoolSQLConfig.java:52)\r\n\tat org.wso2.carbon.dataservices.core.description.config.RDBMSConfig.<init>(RDBMSConfig.java:40)\r\n\tat org.wso2.carbon.dataservices.core.description.config.ConfigFactory.getRDBMSConfig(ConfigFactory.java:92)\r\n\tat org.wso2.carbon.dataservices.core.description.config.ConfigFactory.createConfig(ConfigFactory.java:60)\r\n\tat org.wso2.carbon.dataservices.core.DataServiceFactory.createDataService(DataServiceFactory.java:159)\r\n\tat org.wso2.carbon.dataservices.core.DBDeployer.createDBService(DBDeployer.java:797)\r\n\tat org.wso2.carbon.dataservices.core.DBDeployer.processService(DBDeployer.java:1152)\r\n\tat org.wso2.carbon.dataservices.core.DBDeployer.deploy(DBDeployer.java:201)\r\n\tat org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)\r\n\tat org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)\r\n\tat org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)\r\n\tat org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)\r\n\tat org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)\r\n\tat org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)\r\n\tat org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)\r\n\tat org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)\r\n\tat org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)\r\n\tat org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\r\n\tat java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.NullPointerException\r\n\tat org.wso2.carbon.dataservices.core.auth.ConfigurationBasedAuthenticator.<init>(ConfigurationBasedAuthenticator.java:50)\r\n\t... 27 more\r\n[2017-04-02 01:38:10,454] [EI-Core]  INFO - DeploymentEngine org.apache.axis2.deployment.DeploymentException: The mysqltestexcepioj.dbs service, which is not valid, caused {1}\r\n```\r\n\r\n**Note** - This behaviour observed only in this service"},"comment":{"url":"https://api.github.com/repos/wso2/product-ei/issues/comments/290967953","html_url":"https://github.com/wso2/product-ei/issues/466#issuecomment-290967953","issue_url":"https://api.github.com/repos/wso2/product-ei/issues/466","id":290967953,"user":{"login":"madhawa-gunasekara","id":6748599,"avatar_url":"https://avatars1.githubusercontent.com/u/6748599?v=3","gravatar_id":"","url":"https://api.github.com/users/madhawa-gunasekara","html_url":"https://github.com/madhawa-gunasekara","followers_url":"https://api.github.com/users/madhawa-gunasekara/followers","following_url":"https://api.github.com/users/madhawa-gunasekara/following{/other_user}","gists_url":"https://api.github.com/users/madhawa-gunasekara/gists{/gist_id}","starred_url":"https://api.github.com/users/madhawa-gunasekara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhawa-gunasekara/subscriptions","organizations_url":"https://api.github.com/users/madhawa-gunasekara/orgs","repos_url":"https://api.github.com/users/madhawa-gunasekara/repos","events_url":"https://api.github.com/users/madhawa-gunasekara/events{/privacy}","received_events_url":"https://api.github.com/users/madhawa-gunasekara/received_events","type":"User","site_admin":false},"created_at":"2017-04-02T06:35:33Z","updated_at":"2017-04-02T06:35:33Z","body":"We have to fix this NPE, but the root cause for this issue is enabling dynamic auth mapping. \r\n\r\n<property name=\"dataSourceProps\"/>\r\n<property name=\"dynamicUserAuthMapping\"/>"}}
{"actor":{"display_login":"madhawa-gunasekara"}}