[ESBJAVA-1546] Mediation fails for tenants Created: 29/Aug/12  Updated: 02/Sep/12  Resolved: 30/Aug/12

Status: Closed
Project: ZZZ-WSO2 ESB
Component/s: Core Engine
Affects Version/s: 4.5.0 M5
Fix Version/s: 4.5.0 M5

Type: Bug Priority: Highest
Reporter: Evanthika Amarasiri Assignee: Miyuru Wanninayaka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System : Linux 2.6.38-8-generic, amd64
Java Version/Java VM : 1.7.0/Java HotSpot(TM) 64-Bit Server VM 21.0-b17,Oracle Corporation
Packs : 27th August 2012 wso2esb-4.5.0
DBMS/DBMS Driver : MySQL 5.1.49-1ubuntu8.1 /mysql-connector-java-5.1.21-bin.jar
Browser : Firefox 10.0.2


Severity: Blocker
Estimated Complexity: Moderate
Test cases added: No

 Description   

Steps to reproduce
===============
1. Create a new tenant
2. Login from the tenant and create a proxy service
3. Invoke the proxy and you will see the following exception.

TID: [1] [WSO2 Enterprise Service Bus] [2012-08-29 17:39:03,110] @antilia.com [1] [WSO2 Enterprise Service Bus] WARN

{org.apache.axis2.deployment.AxisConfigBuilder} - Unable to instantiate deployer org.wso2.carbon.dataservices.core.DBDeployer; see debug logs for more details {org.apache.axis2.deployment.AxisConfigBuilder}

TID: [] [WSO2 Enterprise Service Bus] [2012-08-29 17:39:03,133] ERROR

{org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils} - Error occurred while running deployment for tenant antilia.com {org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils}

java.lang.NullPointerException
at org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer.init(LandingPageWebappDeployer.java:46)
at org.wso2.carbon.utils.deployment.GhostDeployer.init(GhostDeployer.java:88)
at org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(DeploymentEngine.java:1165)
at org.apache.axis2.deployment.DeploymentEngine.setConfigContext(DeploymentEngine.java:1154)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:89)
at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:287)
at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:121)
at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:161)
at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:68)
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:409)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
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)
TID: [] [WSO2 Enterprise Service Bus] [2012-08-29 17:39:03,134] ERROR

{org.apache.synapse.transport.nhttp.ServerWorker} - Error processing POST request {org.apache.synapse.transport.nhttp.ServerWorker}

java.lang.RuntimeException: Cannot create tenant ConfigurationContext for tenant antilia.com
at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:124)
at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:161)
at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:68)
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:409)
at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261)
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: java.lang.Exception: Error occurred while running deployment for tenant
at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:335)
at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:121)
... 10 more
Caused by: java.lang.NullPointerException
at org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer.init(LandingPageWebappDeployer.java:46)
at org.wso2.carbon.utils.deployment.GhostDeployer.init(GhostDeployer.java:88)
at org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(DeploymentEngine.java:1165)
at org.apache.axis2.deployment.DeploymentEngine.setConfigContext(DeploymentEngine.java:1154)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:89)
at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:287)
... 11 more



 Comments   
Comment by Miyuru Wanninayaka [ 30/Aug/12 ]

added null check and fixed

Comment by Evanthika Amarasiri [ 02/Sep/12 ]

Verified on September 1st Packs. The issue is fixed.

Generated at Wed Sep 23 15:26:56 PDT 2020 using JIRA 7.2.2#72004-sha1:9d5132893cc8c728a3601a9034a1f8547ef5c7be.