Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marketplace binding cannot be loaded #2673

Closed
mvalla opened this issue Jan 7, 2022 · 5 comments · Fixed by #2607 or #2678
Closed

marketplace binding cannot be loaded #2673

mvalla opened this issue Jan 7, 2022 · 5 comments · Fixed by #2607 or #2678
Labels
bug An unexpected problem or unintended behavior of the Core

Comments

@mvalla
Copy link
Contributor

mvalla commented Jan 7, 2022

In Eclipse IDE, if I try to start OH from latest 3.3.0-SNAPSHOT, checked out the app.bndrun from the main branch, I receive this error and the Marketplace binding is not started:

19:07:45.751 ERROR [main                ] [internal.json.JsonAddonService:206  ] - bundle org.openhab.core.addon.marketplace:3.3.0.202201070311 (111)[org.openhab.core.addon.marketplace.internal.json.JsonAddonService(42)] : Error during instantiation of the implementation object java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.apache.felix.scr.impl.inject.internal.ComponentConstructorImpl.newInstance(ComponentConstructorImpl.java:316)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:286)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:1000)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:973)
19:07:50.534 ERROR [main                ] [internal.json.JsonAddonService:206  ] - bundle org.openhab.core.addon.marketplace:3.3.0.202201070311 (111)[org.openhab.core.addon.marketplace.internal.json.JsonAddonService(42)] : Error during instantiation of the implementation object java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.apache.felix.scr.impl.inject.internal.ComponentConstructorImpl.newInstance(ComponentConstructorImpl.java:316)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:286)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:1000)
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:973)
19:07:50.744 WARN  [main                ] [.internal.addons.AddonResource:185  ] - bundle org.openhab.core.io.rest.core:3.3.0.202201070308 (134)[org.openhab.core.io.rest.core.internal.addons.AddonResource(145)] : Could not get service from ref {org.openhab.core.addon.AddonService}={service.config.factory=false, service.id=142, service.bundleid=111, service.scope=bundle, service.config.category=system, service.pid=org.openhab.jsonaddonservice, service.config.label=Json 3rd Party Add-on Service, component.name=org.openhab.core.addon.marketplace.internal.json.JsonAddonService, service.config.description.uri=system:jsonaddonservice, component.id=42}
19:07:54.951 INFO  [main                ] [e.internal.ModelRepositoryImpl:100  ] - Loading model 'demo.items'

Similar error is reported here in the community:
https://community.openhab.org/t/new-binding-marketplace-oh-3-2-floods-server-leads-to-a-http-429-response/130653

@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/new-binding-marketplace-oh-3-2-floods-server-leads-to-a-http-429-response/130653/3

@J-N-K
Copy link
Member

J-N-K commented Jan 7, 2022

First of all: this needs to be transferred to core.

The exception shown here is from the JsonAddonService, the forum also shows exceptions from the CommunityMarketplaceAddonService and they are different exceptions, so probably different problems.

The NPE in the CommunityMarketplaceAddonService will be fixed by #2607.

I'm not sure about the exception on JsonAddonService, but it could be the same as the NPE above and would also be fixed then.

The 429 error could be a result of #2581, no solution so far.

@kaikreuzer kaikreuzer transferred this issue from openhab/openhab-distro Jan 7, 2022
@mvalla
Copy link
Contributor Author

mvalla commented Jan 7, 2022

Thank you for moving here, in fact I was not sure if it was an openhab-distro or openhab-core issue.

@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/new-binding-marketplace-oh-3-2-floods-server-leads-to-a-http-429-response/130653/3

@wborn
Copy link
Member

wborn commented Jan 10, 2022

Fixed by #2678

@wborn wborn closed this as completed Jan 10, 2022
@wborn wborn added the bug An unexpected problem or unintended behavior of the Core label Jan 10, 2022
@wborn wborn linked a pull request Jan 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
4 participants