技术文章 - CS350541
升级到 Windchill 12.0.1 后报告“java.lang.ClassCastException: class com.ptc.windchill.enterprise.datamonitor.DataMonitor cannot be cast to class com.ptc.windchill.enterprise.datamonitor.WBRDataMonitor”
已修改: 01-Jun-2022
适用于
- Windchill PDMLink 12.0 to 12.0.2.2
说明
- 升级到 Windchill 12.0.1 后报告“java.lang.ClassCastException: class com.ptc.windchill.enterprise.datamonitor.DataMonitor cannot be cast to class com.ptc.windchill.enterprise.datamonitor.WBRDataMonitor”
- MethodServer 日志中的错误
错误 [dataMonitorProcessingQueue.PollingThread] wt.queue.ProcessingQueue.dataMonitorProcessingQueue 管理员 - 队列条目号:16528599
java.lang.reflect.InvocationTargetException
在 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
在 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在 java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
在 java.base/java.lang.reflect.Method.invoke(Method.java:566)
在 wt.queue.QueueEntry.execute(QueueEntry.java:231)
在 wt.queue.ProcessingQueue.execEntry(ProcessingQueue.java:312)
在 wt.queue.ProcessingQueue.execEntries(ProcessingQueue.java:898)
在 wt.queue.PollingQueueThread.run(PollingQueueThread.java:102)
引起:java.lang.ClassCastException:com.ptc.windchill.enterprise.datamonitor.DataMonitor 类无法转换为 com.ptc.windchill.enterprise.datamonitor.WBRDataMonitor 类(com.ptc.windchill.enterprise.datamonitor.DataMonitor 和com.ptc.windchill.enterprise.datamonitor.WBRDataMonitor 位于加载程序“app”的未命名模块中)
在 com.ptc.windchill.enterprise.datamonitor.DataMonitorHelper.sendDataMonitorNotification (DataMonitorHelper.java:482)
在 com.ptc.windchill.enterprise.datamonitor.DataMonitorHelper.processDataMonitor(DataMonitorHelper.java:261)
... 8 更多
java.lang.reflect.InvocationTargetException
在 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
在 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在 java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
在 java.base/java.lang.reflect.Method.invoke(Method.java:566)
在 wt.queue.QueueEntry.execute(QueueEntry.java:231)
在 wt.queue.ProcessingQueue.execEntry(ProcessingQueue.java:312)
在 wt.queue.ProcessingQueue.execEntries(ProcessingQueue.java:898)
在 wt.queue.PollingQueueThread.run(PollingQueueThread.java:102)
引起:java.lang.ClassCastException:com.ptc.windchill.enterprise.datamonitor.DataMonitor 类无法转换为 com.ptc.windchill.enterprise.datamonitor.WBRDataMonitor 类(com.ptc.windchill.enterprise.datamonitor.DataMonitor 和com.ptc.windchill.enterprise.datamonitor.WBRDataMonitor 位于加载程序“app”的未命名模块中)
在 com.ptc.windchill.enterprise.datamonitor.DataMonitorHelper.sendDataMonitorNotification (DataMonitorHelper.java:482)
在 com.ptc.windchill.enterprise.datamonitor.DataMonitorHelper.processDataMonitor(DataMonitorHelper.java:261)
... 8 更多
这是文章 350541 的 PDF 版本,可能已过期。最新版本 CS350541