我按照文档(https://apim.docs.wso2.com/en/3.1.0/learn/analytics/configuring-apim-analytics/)中给出的快速设置步骤来配置WSO2 APIM Analytics 3.1.0。
需要解决此问题的建议。我正在使用jdk-8.0.202.08。
ERROR {msf4j-core} - [SCR] Error while trying to bind reference Reference[name = microservice, interface =
org.wso2.msf4j.Microservice,策略=动态,基数= 0..n, target = null,bind = addService,unbind = removeService] 细节: 有问题的参考=参考[名称=微服务,接口= org.wso2.msf4j。微服务,策略=动态,基数 = 0..n,目标= null,bind = addService,unbind = removeService] 服务组件= org.wso2.msf4j.internal.MicroServicesServerSC 组件实现类= org.wso2.msf4j.internal.MicroservicesServerSC 位于符号名称= msf4j-core的软件包中 捆绑软件位置=参考:文件:../ lib / plugins / msf4j-core_2.7.7.jar java.lang.reflect.InvocationTargetException 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:498) 在org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376) 在org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:444) 在org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416) 在org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334) 在org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) 在org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) 在org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:915) 在org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) 在org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) 在org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) 在org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) 在org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) 在org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) 在org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464) 在org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482) 在org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:999) 在org.wso2.carbon.uiserver.internal.deployment.msf4j.MicroservicesRegistrar.register(MicroservicesRegistrar.java:154) 在org.wso2.carbon.uiserver.internal.deployment.msf4j.MicroservicesRegistrar.lambda $ register $ 3(MicroservicesRegistrar.java:144) 在org.wso2.carbon.uiserver.internal.deployment.msf4j.MicroservicesRegistrar $$ Lambda $ 282.00000000136A32F0.apply(未知 资源) 在java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193) 在java.util.stream.ReferencePipeline $ 2 $ 1.accept(ReferencePipeline.java:175) 在java.util.HashMap $ KeySpliterator.forEachRemaining(HashMap.java:1556) 在java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:496) 在java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:486) 在java.util.stream.ReduceOps $ ReduceOp.evaluateSequential(ReduceOps.java:708) 在java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:241) 在java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 在org.wso2.carbon.uiserver.internal.deployment.msf4j.MicroservicesRegistrar.register(MicroservicesRegistrar.java:145) 在org.wso2.carbon.uiserver.internal.deployment.listener.AppTransportBinder.appDeploymentEvent(AppTransportBinder.java:76) 在org.wso2.carbon.uiserver.internal.io.deployment.ArtifactAppDeployer.publishAppDeploymentEvent(ArtifactAppDeployer.java:154) 在org.wso2.carbon.uiserver.internal.io.deployment.ArtifactAppDeployer.deploy(ArtifactAppDeployer.java:103) 位于org.wso2.carbon.deployment.engine.internal.DeploymentEngine.lambda $ deployArtifacts $ 0(DeploymentEngine.java:291) 在org.wso2.carbon.deployment.engine.internal.DeploymentEngine $$ Lambda $ 237.0000000015CDC120.accept(未知 资源) 在java.util.ArrayList.forEach(ArrayList.java:1257) 在org.wso2.carbon.deployment.engine.internal.DeploymentEngine.deployArtifacts(DeploymentEngine.java:282) 在org.wso2.carbon.deployment.engine.internal.RepositoryScanner.sweep(RepositoryScanner.java:112) 在org.wso2.carbon.deployment.engine.internal.RepositoryScanner.scan(RepositoryScanner.java:68) 在org.wso2.carbon.deployment.engine.internal.DeploymentEngine.start(DeploymentEngine.java:121) 在org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent.onAllRequiredCapabilitiesAvailable(DeploymentEngineListenerComponent.java:216)处 在org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda $ notifySatisfiableComponents $ 7(StartupComponentManager.java:266) 在org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager $$ Lambda $ 159.0000000013AD3830.accept(未知 资源) 在java.util.ArrayList.forEach(ArrayList.java:1257) 在org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:252)处 在org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver $ 1.run(StartupOrderResolver.java:204) 在java.util.TimerThread.mainLoop(Timer.java:555) 在java.util.TimerThread.run(Timer.java:505) 造成原因:java.lang.ExceptionInInitializerError 在java.lang.J9VMInternals.ensureError(J9VMInternals.java:146) 在java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:135) 在org.wso2.msf4j.internal.MicroservicesServerSC.addMicroserviceToRegistry(MicroservicesServerSC.java:421) 在org.wso2.msf4j.internal.MicroservicesServerSC.addService(MicroservicesServerSC.java:108) ...另外50 引起原因:java.lang.IllegalStateException:java.lang.ClassNotFoundException:java.lang.Class $ Atomic 在org.wso2.msf4j.util.RuntimeAnnotations处(RuntimeAnnotations.java:110) ...另外52个 引起原因:java.lang.ClassNotFoundException:java.lang.Class $ Atomic 在java.lang.Class.forNameImpl(本地方法) 在java.lang.Class.forName(Class.java:332) 在org.wso2.msf4j.util.RuntimeAnnotations处(RuntimeAnnotations.java:58) ... 52更多
答案 0 :(得分:0)
确保所有3个组件都在同一目录下
使用open jdk java-1.8.0-openjdk-1.8.0.232-3 对我来说一切正常
答案 1 :(得分:0)
看起来APIM分析不支持Open JDK。您能否提及这个问题[1]?另外,对Oracle JDK进行相同的测试,并检查它是否也在其中复制。