Highlighted
Absent Member.
Absent Member.
5207 views

urgent help..Decoding of AMF message failed in flex application during replay in controller

Hi All,

i am getting the below error message when i replay the script in controller with more than one user. The same sript is running fine with a sinlge user in controller.

Version:LR9.52
flex application

.................
Action.c(132): Error: Decoding of AMF message failed. Error is : Externalizable parsing failed: 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:96)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
at flex.messaging.util.XMLUtil.stringToDocument(XMLUtil.java:125)
at flex.messaging.io.amf.AbstractAmfInput.stringToDocument(AbstractAmfInput.java:67)
at flex.messaging.io.amf.Amf3Input.readXml(Amf3Input.java:749)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:204)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:473)
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)
0 Likes
14 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Check out the vugen users guide for the Flex protocol. You need to add the specific libraries for the Adobe Flex server that you are using. The manual has the files that need to be added and how to include them. You can then just regenerate your script without re-recording and it should serialize the message.
0 Likes
Highlighted
Absent Member.
Absent Member.

Hi Alan,

Thanks for your response. i have fixed it by altering the java class.

0 Likes
Highlighted
Absent Member.
Absent Member.

Hi Aravindaraj,

 

I am having the same issue.  Could you please share your solution?

Thanks.

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

I was having this same issue. My flex script would run in vugen without errors but would fail when run through the controller. The fix for me was to update the CLASSPATH environmental variable on each load generator to point to the JRE directory. For example:

 

CLASSPATH= .:C:\Program Files\Java\jdk1.6.0_27\jre

 

FYI, make sure that the flex jar files are copied into the appropriate directory on each load generator as well.

0 Likes
Highlighted
Established Member..
Established Member..

Hi Chris,

 

I have one question

"FYI, make sure that the flex jar files are copied into the appropriate directory on each load generator as well."

 

I have copied all the jar files  under Vuser-->Runtime Settings-->Flex-->Externalizable Objects 

 AND

Tools-->Recording options-->Flex-->Externalizable Objects 

 

Other than this do I need to copy jar files any where?

 

I am also getting the same  issue(see below)

 

Action.c(487): Error: Decoding of AMF message failed. Error is : Externalizable parsing failed: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at hp.flex.HPExternalizableWrapper.ReadObject(HPExternalizableWrapper.java:168)
Caused by: flex.messaging.MessageException: Cannot create class of type 'com.ep.ff.web.transferobject.setup.address.WorkRegionTO'. Type 'com.ep.ff.web.transferobject.setup.address.WorkRegionTO' not found.
 at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:66)
 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

 

Please advise me!

 

Thanks,

Raj

0 Likes
Highlighted
Established Member..
Established Member..

I fixed the issue

Highlighted
Valued Contributor.
Valued Contributor.

Hello All

 

I am facing errorr " decoding of amf message failed Error is Invalid data type (16) - Expecting the object type for InfoObjecj at location 25"  can somebody please assist me on this.

 

Kindly send me reply to my mail.

 

Regards

Setu

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Hello All

 

Kindly advise on above issue will give full point for that.

 

rgs

Setu

0 Likes
Highlighted
Absent Member.
Absent Member.

Hi Raj,

 

I hope u have fixed this issue.During execution in controller i am facing problem with this error.

 

Action.c(487): Error: Decoding of AMF message failed. Error is : Externalizable parsing failed: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at hp.flex.HPExternalizableWrapper.ReadObject(HPExternalizableWrapper.java:168)
Caused by: flex.messaging.MessageException: Cannot create class of type 'com.ep.ff.web.transferobject.setup.address.WorkRegionTO'. Type 'com.ep.ff.web.transferobject.setup.address.WorkRegionTO' not found.
 at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:66)
 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

 

This is very urgent query Raj.Please let me know solution how to fix this issue.

 

Thanks In advance

 

Regards,

Prasad

0 Likes
Highlighted
Absent Member.
Absent Member.

Find the class/jar for 'com.ep.ff.web.transferobject.setup.address.WorkRegionTO

 


Pradeep Kumar Tiwari
Noida, India
0 Likes
Highlighted
Absent Member.
Absent Member.

you have to add flex-messaging-common.jar,flex-messaging-core.jar the two packages
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.