None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' in builder.RegisterType<ContentItemMetadataProvider> - autofac

Detailed error is as below
None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'KMVC12.Controllers.HomeController' can be invoked with the available services and parameters:
Cannot resolve parameter 'KMVC12.Repositories.IPromotedContentRepository repository' of constructor 'Void .ctor(KMVC12.Repositories.IPromotedContentRepository, KMVC12.Repositories.IHomeRepository, KMVC12.Infrastructure.IOutputCacheDependencies)'.
Have removed set .PreserveExistingDefaults() in the builder.RegisterType which is i found it in one solution
I have below code in DependencyResolverConfig.cs file is this cause of the error?
builder.RegisterType<ContentItemMetadataProvider>()
.AsImplementedInterfaces()
.SingleInstance()
Unable to run the home page because of the above exception
Need to run it without any exception in the front end.

Related

What path am I missing in vscode web extension?

I am trying to add a basic vscode web extension by hosting it on GitHub. I have hosted the code here, and am trying to run the following command to install in vscode.dev.
> Developer: Install Web Extension...
https://raw.githubusercontent.com/AdamRaichu/vscode-minecraft-lang/5da927a0f42934119198182ec5141f2c676546d2/
However when I do, I get the following error.
[2022-10-27 11:48:07.683] [window] [info] Installing extension: adamraichu.minecraft-lang
[2022-10-27 11:48:07.954] [window] [info] Request to 'https://raw.githubusercontent.com/AdamRaichu/vscode-minecraft-lang/5da927a0f42934119198182ec5141f2c676546d2/package.nls.json' failed with status code 404
[2022-10-27 11:48:07.960] [window] [error] Error while installing the extension: adamraichu.minecraft-lang
[2022-10-27 11:48:07.965] [window] [error] The "path" argument must be of type string. Received type undefined: Error: The "path" argument must be of type string. Received type undefined
at h (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:78:11422)
at Object.join (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:78:18753)
at h.joinPath (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:83:9376)
at C.joinPath (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:84:6477)
at K.toWebExtension (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3241:118766)
at async K.addExtension (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3241:114719)
at async u.doRun (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3242:7677)
What path am I missing?
Note that trying to open any of these links from the log gets an error.
<Error>
<Code>BlobNotFound</Code>
<Message>The specified blob does not exist. RequestId:50ecf237-701e-00a5-121b-eadf11000000 Time:2022-10-27T15:50:04.6433646Z</Message>
</Error>
I fixed this problem by adding browser to my package.json, with a path to a typescript file. This in turn showed me other missing things, but this fixed my problem.

How to fail a test case in Test if any js error is found by Test Rigor?

I am running a test case in my Test Rigor suite.It is getting passed but I can see some errors in the Test steps that were executed.
Error: JS SEVERE: 52:61 Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
Issue is that Test Rigor is passing all these test cases.I want it to fail the test case in case any such errors are found.Is there any way to do this?
The fail with "error" command will fail a script. To do it within javascript,
try:
testRigor.execute('fail with "error"');
For javascript errors detected on a page, testcases will note those errors by changing the color of the screenshot, however, they will not fail the test as they are exposed as "minor" errors. There is currently no way to detect these errors. You could put in an enhancement request.

HerePositioningClient fails to initalize

While working with HERE-SDK for flutter, HerePositioningClient fails to initialize with the error:
onInitializationFailed. API token that failed: com.here.services.location.LocationServices$1#2bdef2b
Additionally, the ActivityThread throws this error:
E/ActivityThread(12002): Service com.here.services.internal.LocationService has leaked IntentReceiver com.here.odnp.util.AlarmTimer$Scheduler#163882d that was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread(12002): android.app.IntentReceiverLeaked: Service com.here.services.internal.LocationService has leaked IntentReceiver com.here.odnp.util.AlarmTimer$Scheduler#163882d that was originally registered here. Are you missing a call to unregisterReceiver()?
Update:
Fixed this issue by adding all the possible permissions required as in the example files provided. Just adding Location and Activity permission was not enough.

IBM Content Navigator ICN Plugin returns an error when configured but works fine

I am using ICN 3.0.3 IF7. I have a custom plugin that writes the following error to the console when I initially configure it into ICN.
The plugin itself works fine once configured.
Uncaught TypeError: cls is not a constructor
at Object.eval (ecm/widget/layout/AdminPane.js:9845)
at dojo.js.jgz:22442
at runFactory (dojo.js.jgz:611)
at execModule (dojo.js.jgz:691)
at dojo.js.jgz:397
at guardCheckComplete (dojo.js.jgz:699)
at contextRequire (dojo.js.jgz:396)
at req (dojo.js.jgz:32)
at Object._displayPluginConfig (ecm/widget/layout/AdminPane.js:9844)
at Object._pluginRequestCompleted (ecm/widget/layout/AdminPane.js:9759)
In addition, once it is configured, I cannot get the details on it like I can for the included AFP Viewer plugin:
Name: AFP Viewer
Version: 2.0.3.5
Repository types: None
Actions: None
Open Actions: None
Viewers: AFP Viewer
Features: None
Layouts: None
It seems like something is wrong with the plugin structure that doesn't affect its ability to run. I am worried because I just don't like seeing errors. Has anyone seen this before?
Looking at the error it seems like the module you specified in the plugin.java#getConfigurationDijitClass is either failing to instantiate, or isn't specified at all.
If you have a configuration dijit class configured, then ensure it's actually a widget and that it's constructor and postCreate method (if provided) don't throw an error :).
If you don't have one configured, set it to null to prevent instantiation

NoClassDefFoundError in openid4java

I have downloaded openid4java-0.9.6.662 and implemented a class using it. When I execute:
List discoveries = manager.discover("https://www.google.com/accounts/o8/id");
I get a
java.lang.NoClassDefFoundError: org/apache/http/protocol/ImmutableHttpProcessor
at org.apache.http.impl.client.AbstractHttpClient.getProtocolProcessor(AbstractHttpClient.java:656)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:804)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at org.openid4java.util.HttpCache.head(HttpCache.java:335)
at org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:400)
at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:248)
at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:232)
at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166)
at org.openid4java.discovery.Discovery.discover(Discovery.java:147)
at org.openid4java.discovery.Discovery.discover(Discovery.java:129)
at org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:542)
at com.sugra.openid.helper.OpenIDConsumer.authRequest(OpenIDConsumer.java:90)
the funny thing is this class cannot be found in any of the jars, thought it is supposed to be found in httpcore-4.0.1.jar, as it contains classes of the same package. This class is available in httpcore-4.2.1.jar. But I've tried it and got
org.openid4java.discovery.yadis.YadisException: 0x704: I/O transport error: hostname in certificate didn't match: <www.google.com/173.194.35.144> != <www.google.com>
that is reported to be an error of portability and a previous version should be used
What is supposed to be the right approach to use this method?
I found it. There was a conflict with another jar (httpclient.jar) I had in my app. I just had to upgrade it