Cumulocity-IoT / cumulocity-microservice-templates

Collection of templates / examples to give the developer a starting point how common features can be solved by using Cumulocity Microservice SDK for Java. Developed by Global Competency Center IoT
Apache License 2.0
11 stars 5 forks source link

APPLICATION FAILED TO START #18

Closed vsingh-solenis closed 1 year ago

vsingh-solenis commented 1 year ago

I have build parent pom and import in eclipse.after trying cumulocity-microservice-templates-realtime Project using mvn spring-boot:run i am getting below error


APPLICATION FAILED TO START


Description:

Field platform in com.c8y.ms.templates.realtime.controller.NotificationController required a bean of type 'com.cumulocity.sdk.client.PlatformImpl' that could not be found.

Action:

Bean of this type is no longer available. Instead inject platform APIs directly or inject com.cumulocity.sdk.client.Platform and get the same platform APIs instances with getters. Use relative URL's starting with '/' with RestConnector bean to have them resolved automatically against the host defined in PlatformParameters#getHost().

PestusAtSAG commented 1 year ago

Yes, correct, with new Version of SDK, class is not available anymore com.cumulocity.sdk.client.PlatformImpl I will check and find solution for that. Thank you for raising that issue.

haraldmeyer commented 1 year ago

@vsingh-solenis this is fixed now.