stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject Re: Testing stratos 4.1: issue with adding a tenant ?
Date Sat, 16 May 2015 02:56:14 GMT
Hi Martin,

We fixed this isuue yesterday. Would you mind testing this on the latest
commit revision.

Thanks

On Saturday, May 16, 2015, Martin Eppel (meppel) <meppel@cisco.com> wrote:

>  Hi,
>
>
>
> I see an exception when a tenant is added, (however, it seems that the
> tenant is added anyway, see log snippets further down). This seems to be
> similar to the issue reported in
> https://issues.apache.org/jira/browse/STRATOS-1405.
>
>
>
> POST error from https://127.0.0.1:9443/api/tenants …
>
>
>
> Exception in stratos logs  is:
>
>
>
> The exception is (see also attached log file) :
>
>
>
> TID: [0] [STRATOS] [2015-05-16 00:15:24,325] DEBUG
> {org.apache.stratos.autoscaler.applications.ApplicationHolder} -  Read lock
> released
>
> TID: [0] [STRATOS] [2015-05-16 00:15:24,680]  INFO
> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
> : https://172.16.2.207:9443/carbon/
>
> TID: [0] [STRATOS] [2015-05-16 00:15:36,143] ERROR
> {org.wso2.carbon.tenant.mgt.util.TenantMgtUtil} -  Error in adding claims
> to the user.
>
> org.wso2.carbon.user.core.UserStoreException:
> org.wso2.carbon.user.core.UserStoreException: Invalid data provided
>
>                at
> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1845)
>
>                at
> org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:923)
>
>                at
> org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.addClaimsToUserStoreManager(TenantMgtUtil.java:323)
>
>                at
> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.addTenant(StratosApiV41Utils.java:2893)
>
>                at
> org.apache.stratos.rest.endpoint.api.StratosApiV41.addTenant(StratosApiV41.java:1426)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>
>                at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>
>                at
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>
>                at
> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
>
>                at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>
>                at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
>
>                at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>
>                at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>
>                at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>
>                at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>
>                at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>
>                at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>
>                at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>
>                at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>
>                at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>
>                at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>
>
>
> However, other log entries seem to indicate the tenant was added anyway:
>
> …
>
> TID: [0] [STRATOS] [2015-05-16 00:17:24,123] DEBUG
> {org.apache.stratos.manager.messaging.publisher.synchronizer.TenantEventSynchronizer}
> -  Tenant found: [tenant-id] 1 [tenant-domain] cloud1.qmog.cisco.com
>
> TID: [0] [STRATOS] [2015-05-16 00:17:24,152] DEBUG
> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventSynchronizer}
> -  Executing topology synchronizer
>
>
>
> …
>
> When query e.g application status the following log messages are printed:
>
> ..
>
> TID: [0] [STRATOS] [2015-05-16 01:07:47,265]  WARN
> {org.wso2.carbon.core.util.AnonymousSessionUtil} -  Failed to retrieve
> Realm for the inactive tenant : cloud1.qmog.cisco.com
>
> TID: [0] [STRATOS] [2015-05-16 01:07:47,265] ERROR
> {org.apache.stratos.rest.endpoint.handlers.StratosAuthenticationHandler} -
> Invalid domain or unactivated tenant login
>
> ..
>
>
>
> Any idea what might wrong or causing this and how to debug it (which debug
> logs need to be turned on) ?
>
>
>
> Thanks
>
>
>
> Martin
>


-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Mime
View raw message