wso2am-2.2.0 java.lang.ClassCastException:[Ljava.lang.String;无法转换为[B

时间:2018-07-11 11:16:37

标签: wso2 wso2-am

启动后安装WSO2AM 2.2.0,我在wso2carbon.log中看到以下错误

 ERROR {org.wso2.carbon.governance.lcm.internal.LCMServiceComponent} -  An error occurred
 while setting up Governance Life Cycle Management {org.wso2.carbon.governance.lcm.internal.LCMServiceComponent}
java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to [B
        at org.wso2.carbon.governance.lcm.util.CommonUtil.generateAspect(CommonUtil.java:370)
        at org.wso2.carbon.governance.lcm.util.CommonUtil.addDefaultLifecyclesIfNotAvailable(CommonUtil.java:534)
        at org.wso2.carbon.governance.lcm.internal.LCMServiceComponent.setRegistryService(LCMServiceComponent.java:99)
        at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 

org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
        at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
        at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)

尝试登录发布者控制台时收到的同一条消息[Ljava.lang.String; cannot be cast to [B(看起来有些东西想将字符串强制转换为字节数组)。我仍然可以登录carbon控制台,并且在wso2carbon.log中看不到任何其他错误消息(这很奇怪..)

设置-有2个wso2am节点,它们具有共享数据库,文件系统和wka集群。

注意:我在Wummed版本上还没有看到此异常

0 个答案:

没有答案