I'm running WSO2 IOT Server 3.0.0. After I've changed the admin user password, 
real-time data stopped being presented in the device details section. I 
followed the guide available on the WSO2 IOT Server documentation that shows 
how to change the super administrator password. The agents after reconfiguring 
the MQTT password fields are able to push data to the server and the "View 
Device Analytics" section is showing all the device's pushed data. I have 
tested with the firealarm sample plugin and with device types generated from 
the carbon-device-mgt-maven-plugin maven archetype and all device types present 
the same error messages.

The error message presented by the IOT-CORE Process:

[2017-06-06 22:21:28,145] [IoT-Core]  WARN - CarbonAuthenticationUtil Failed 
Administrator login attempt 'admin[-1234]' at [2017-06-06 22:21:28,145+0100]
The stack trace presented by the analytics process:

[2017-06-06 22:21:28,102] [IoT-Analytics] ERROR 
{org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator}
 -  Error on connecting with the validation endpoint.
org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid 
credentials provided.
    at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
    at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
    at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
    at 
org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub.validate(OAuth2TokenValidationServiceStub.java:473)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator.getAuthenticationInfo(OAuthTokenValdiator.java:123)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator.validateToken(OAuthTokenValdiator.java:77)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.OAuthAuthenticator.isAuthenticated(OAuthAuthenticator.java:30)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.endpoint.SuperTenantSubscriptionEndpoint.onOpen(SuperTenantSubscriptionEndpoint.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at 
org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:66)
    at 
org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70)
    at 
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:137)
    at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:663)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1756)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1715)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
[2017-06-06 22:21:28,130] [IoT-Analytics] ERROR 
{org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator}
 -  Error on connecting with the validation endpoint.
org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid 
credentials provided.
    at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
    at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
    at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
    at 
org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub.validate(OAuth2TokenValidationServiceStub.java:473)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator.getAuthenticationInfo(OAuthTokenValdiator.java:123)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator.validateToken(OAuthTokenValdiator.java:77)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.OAuthAuthenticator.isAuthenticated(OAuthAuthenticator.java:30)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.endpoint.SuperTenantSubscriptionEndpoint.onOpen(SuperTenantSubscriptionEndpoint.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at 
org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:66)
    at 
org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70)
    at 
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:137)
    at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:663)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1756)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1715)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
[2017-06-06 22:21:28,147] [IoT-Analytics] ERROR 
{org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator}
 -  Error on connecting with the validation endpoint.
org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid 
credentials provided.
    at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
    at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
    at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
    at 
org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub.validate(OAuth2TokenValidationServiceStub.java:473)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator.getAuthenticationInfo(OAuthTokenValdiator.java:123)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.oauth.OAuthTokenValdiator.validateToken(OAuthTokenValdiator.java:77)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.authentication.OAuthAuthenticator.isAuthenticated(OAuthAuthenticator.java:30)
    at 
org.wso2.carbon.device.mgt.output.adapter.websocket.endpoint.SuperTenantSubscriptionEndpoint.onOpen(SuperTenantSubscriptionEndpoint.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at 
org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:66)
    at 
org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70)
    at 
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:137)
    at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:663)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1756)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1715)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
After debugging the analytics-view.js file that is included in the 
cdmf.unit.device.type.devicetype.realtime.analytics-view package, I can see 
that a token is being generated.

Do I need to change more files than the files suggested in the documentation?

Regards

João
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to