Invalid Credentials Error using Eclipse and SDK

Follow

Originally posted by Msterley on 2012-08-24 20:20:37

Hi,

I am receiving invalid credentials exception when trying the hello world example in Eclipse with the SDK, console output below:

Have tried changing my password on the forum in case any special characters were causing the problem, but to no avail, have a simple password now and still receiving the error.

tried the following

Platform platform = new PlatformImpl("http://developer.cumulocity.com", "demo", "msterley", "*********", "uL27no8nhvLlYmW1JIK1CA==");
Invalid Credentials

tried the username & password from end 2 end example

Platform platform = new PlatformImpl("http://developer.cumulocity.com", "acme", "john", "M8eUjaR7", "uL27no8nhvLlYmW1JIK1CA==");
No application for tenant acme match given secret key!

I assume there is an issue with the demo tenant not linked to my username?

osgi> 20:48:24.990 [Start Level Event Dispatcher] WARN o.e.jetty.osgi.boot.OSGiAppProvider - Disable autoInstallOSGiBundles as the contexts folder 'C:\Users\*************\Downloads\Eclipse\eclipse J2EE\eclipse\contexts does not exist.
!SESSION 2012-08-24 20:48:23.585 ———————————————–
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -dev file:C:/Users/*************/workspace/.metadata/.plugins/org.eclipse.pde.core/OSGi Framework/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -console

!ENTRY com.cumulocity.helloagent 4 0 2012-08-24 20:48:26.702
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in com.cumulocity.hellagent.Activator.start() of bundle com.cumulocity.helloagent.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: com.cumulocity.sdk.client.SDKException: Http status code: 401
{error="security/Unauthorized",message="Invalid credentials!",info="https://www.cumulocity.com/guides/reference-guide/#error_reporting",details="null"}
at com.cumulocity.sdk.client.ResponseParser.checkStatus(ResponseParser.java:22)
at com.cumulocity.sdk.client.ResponseParser.parse(ResponseParser.java:15)
at com.cumulocity.sdk.client.RestConnector.get(RestConnector.java:43)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.createApiRepresentation(InventoryApiImpl.java:151)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.getInventoryRepresentation(InventoryApiImpl.java:144)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.getSelfUri(InventoryApiImpl.java:106)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.create(InventoryApiImpl.java:59)
at com.cumulocity.hellagent.Activator.start(Activator.java:29)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
… 12 more
Root exception:
com.cumulocity.sdk.client.SDKException: Http status code: 401
{error="security/Unauthorized",message="Invalid credentials!",info="https://www.cumulocity.com/guides/reference-guide/#error_reporting",details="null"}
at com.cumulocity.sdk.client.ResponseParser.checkStatus(ResponseParser.java:22)
at com.cumulocity.sdk.client.ResponseParser.parse(ResponseParser.java:15)
at com.cumulocity.sdk.client.RestConnector.get(RestConnector.java:43)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.createApiRepresentation(InventoryApiImpl.java:151)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.getInventoryRepresentation(InventoryApiImpl.java:144)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.getSelfUri(InventoryApiImpl.java:106)
at com.cumulocity.sdk.client.inventory.InventoryApiImpl.create(InventoryApiImpl.java:59)
at com.cumulocity.hellagent.Activator.start(Activator.java:29)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 4 0 2012-08-24 20:48:26.731
!MESSAGE Bundle com.cumulocity.helloagent_1.0.0.qualifier [105] is not active.
Have more questions? Submit a request

Comments