com.bea.wli.monitoring.MonitoringException:原因:java.lang.IllegalArgumentException:未找到服务器'null'

时间:2019-07-10 20:36:48

标签: java weblogic

我有使用Java管理扩展(JMX)监视API从oracle weblogic控制台获取服务统计数据的Java代码。 我有一个生产服务器和一个测试服务器。 此Java代码可以正常工作,并且可以从测试服务器的weblogic控制台获取服务统计数据。当我为生产服务器运行此代码时,它显示以下错误:

java.lang.reflect.UndeclaredThrowableException
    at $Proxy0.getProxyServiceStatistics(Unknown Source)
    at reports.All_ServiceStatisticsReport.getProxyServiceDetails(All_ServiceStatisticsReport.java:235)
    at reports.All_ServiceStatisticsReport.<init>(All_ServiceStatisticsReport.java:189)
    at reports.All_ServiceStatisticsReport.main(All_ServiceStatisticsReport.java:567)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at reports.All_ServiceStatisticsReport$ServiceDomainMBeanInvocationHandler.invoke(All_ServiceStatisticsReport.java:145)
    ... 4 more
Caused by: com.bea.wli.monitoring.MonitoringException: [OSB-473057]Failed to get statistics for services due to java.lang.IllegalArgumentException: Server 'null' not found
    at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused by: java.lang.IllegalArgumentException: Server 'null' not found
    ... 1 more
Process exited with exit code 0.

发生错误的行是:

proxyServiceResourceStatisticMap = serviceDomainMbean.getProxyServiceStatistics(filteredProxyServiceRefs,resourceType.value(),null);

我正在根据oracle文档传递所有正确的参数。

https://docs.oracle.com/middleware/1213/osb/java-api/com/bea/wli/monitoring/ServiceDomainMBean.html

那我为什么会收到这个错误。

提前谢谢。

0 个答案:

没有答案