谢谢!作者: guomz2013 时间: 2012-10-19 11:03
后台java信息如下
ReadExternalizable throws exception:
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:585)
at hp.flex.HPExternalizableWrapper.ReadObject(HPExternalizableWrapper.java:168)
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:59)
at flex.messaging.io.AbstractProxy.getClassFromClassName(AbstractProxy.java:103)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:430)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:371)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:157)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.io.ArrayCollection.readExternal(ArrayCollection.java:87)
at flex.messaging.io.amf.Amf3Input.readExternalizable(Amf3Input.java:528)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:455)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.messages.AbstractMessage.readExternal(AbstractMessage.java:242)
at flex.messaging.messages.AsyncMessage.readExternal(AsyncMessage.java:98)
at flex.messaging.messages.AcknowledgeMessage.readExternal(AcknowledgeMessage.java:55)
at flex.messaging.io.amf.Amf3Input.readExternalizable(Amf3Input.java:528)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:455)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
... 5 more作者: guomz2013 时间: 2012-10-19 11:50
问题已经解决,使用最新jre1.6或jre1.7替换loadRunner11.0小的jre即可解决这个问题。
原因是loadRunner11自身的版本较低,需要替换为匹配的版本才行。作者: 云层 时间: 2012-10-19 12:02
3ks作者: moyudong 时间: 2013-7-15 19:10
哥们,感谢你啊~~~好心人啊,找到答案,还不忘来终结此贴~!
我也解决了bad version的问题,现在终于能成功生成脚本了。
但是,我有一个问题:如果我忽略版本不一致的问题,直接生成脚本的话,可以么?有什么影响不?作者: 107085460 时间: 2013-7-16 17:30 回复 1#guomz2013