【异常】INFO: TopologyManager: EndpointListener changed ...
5月份做云部署,在调试CSS系统时,出现启动系统时,卡死情况,后台日志如下:
May 03, 2016 2:34:52 AM org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
INFO: TopologyManager: EndpointListener changed ...
接下来就麻烦了, 这个系统现场可正常使用,调试用的备份系统,开发者已经找不到,只好自己查找原因
网络上的信心很少http://stackoverflow.com/ 中有人提过相同的问题,好心人回复如下:
The CXF dOSGi single bundle distribution is packaged as a jar so there must have been a problem downloading it, although from your log it does appear to be being deployed.
Try this link for cxf-dosgi-ri-singlebundle-distribution-1.2.jar
当时就有点凌乱了,回答说第三方包有问题,第三方包有问题为什么现场正常使用!
从日志上看是某个地方部署失败, 但是后台日志中没有打出相应的日志,这个郁闷!
本以为是配置某个地方配置错了,无意中在configure 文件夹中看到1462351957787.log,奇怪了这里怎么又日志
打开一看,顿时就石化了, 妹妹的!@#¥% ,异常日志瞎放啊
org.osgi.framework.BundleException: The activator com.star.css.schedule.Activator for bundle com.star.css.schedule is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.UnsupportedClassVersionError: com/star/css/schedule/WorkOrderHandle : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
从日志上看/WorkOrderHandle : Unsupported major.minor version 51.0 说明JDK环境不正确,更换JDK 后问题解决
整个排查过程很是坑爹
1- 该打印的日志没有打印,打印的日志几乎完全没有帮助
2-日志保存位置没有放到LOG日志文件夹反而放到了 配置文件夹
3-日志使用的LONG 没有转换成日志格式,导致不仔细看无法发现是新创建的
记录以上三点,以后不犯类似错误,让他人骂娘
不及格的飞鱼
http://www.cnblogs.com/liuyongcn/