guanli 发表于 2011-10-13 13:25:53

LR11录制flex,运行场景Error: AMF 消息编码失败XStream$InitializationException

本帖最后由 guanli 于 2011-10-17 12:40 编辑

flex+web协议录制脚本,回放没问题,但是在场景中运行出错:

Action.c(70): Error: AMF 消息编码失败。错误为: Exception Occurred while invoking WriteObject method - com.thoughtworks.xstream.XStream$InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
      at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:748)
      at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:680)
      at com.thoughtworks.xstream.XStream.<init>(XStream.java:436)
      at com.thoughtworks.xstream.XStream.<init>(XStream.java:376)
      at com.thoughtworks.xstream.XStream.<init>(XStream.java:314)
      at hp.flex.HPExternalizableWrapper.WriteObject(HPExternalizableWrapper.java:55)
Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:741)
      ... 5 more
Caused by: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
      at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:93)
      at com.thoughtworks.xstream.converters.extended.DurationConverter.<init>(DurationConverter.java:33)
      ... 10 more
Caused by: java.lang.ClassNotFoundException: org/apache/xerces/jaxp/datatype/DatatypeFactoryImpl
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:139)
      at javax.xml.datatype.FactoryFinder.findJarServiceProvider(FactoryFinder.java:291)
      at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:217)
      at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:87)
      ... 11 more


补充说明:每次都只有一个虚拟用户可以成功……
页: [1]
查看完整版本: LR11录制flex,运行场景Error: AMF 消息编码失败XStream$InitializationException