Highlighted
Super Contributor.
Super Contributor.
729 views

GWT DFE Reply Error

we have an application which uses GWT for the communication. I have enabled DFE and selected GWT as the option and provided application .WAR file as the input to extract .jar files.

Recorded the scenario flow, and i see all the requests are converted from GWT to XML format which is a big relief for me. But then when i reply the test script i am having errors as DFE is not able to convert the HTTP response from GWT fromat to XML format. 

What are the other options that we can try to resolve this error and conver to XML format? And is there a way that we can supress the Loadrunner error message, so that it will proceed with the next steps instead of failure?

LR Version: 12.55

HTTP Response: //OK[[],0,5]

Error Message: 

Action.c(93): Error -27040: Data Format Extension: Extension: GWT - ERROR [GWT_DFE] - Failed to parse response: java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:403) ~[?:1.8.0-internal]
at java.util.ArrayList.get(ArrayList.java:416) ~[?:1.8.0-internal]
at com.gdevelop.gwt.syncrpc.SyncClientSerializationStreamReader.readInt(SyncClientSerializationStreamReader.java:450) ~[SyncProxy.jar:?]
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:46) ~[gwt-servlet-2.0.4.jar:?]
at com.hp.dfe.GWT_DFE.deserializeResponseToXML(GWT_DFE.java:462) [classes/:?]
at com.hp.dfe.GWT_DFE.decode(GWT_DFE.java:704) [classes/:?]
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0-internal]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0-internal]
at com.hp.dfe.GWT_DFE_DYNAMICALLY_REFLECTED.doOperation(GWT_DFE_DYNAMICALLY_REFLECTED.java:70) [classes/:?]
at com.hp.dfe.GWT_DFE_DYNAMICALLY_REFLECTED.decode(GWT_DFE_DYNAMICALLY_REFLECTED.java:60) [classes/:?]
at com.hp.dfe.GWT_DFE_LAUNCHER.decode(GWT_DFE_LAUNCHER.java:456) [classes/:?]

[MsgId: MERR-27040]
Action.c(93): Error -27040: Data Format Extension: Extension: GWT - ERROR [GWT_DFE] - failed to read as a response
Øp–ñ´Ò
[MsgId: MERR-27040]

Please let me know if you need any further details.

Thanks in advance.

 

0 Likes
8 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: GWT DFE Reply Error

Hi Team, Any inputs on regarding this issue?

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: GWT DFE Reply Error

Hello, Please share some more information.
It would be best if you contact support and provide the full script with data and full replay logs.
Other options would be to provide more information here - the script with all the data or at least the raw response data.

Of course, the more information, the better the answer would be.

Thank you in advance,
Gil

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: GWT DFE Reply Error

I am evaluting Loadrunner, so using Community edition and with this i can not create a support ticket.

As i mentioned in my initial post, below are the RAW responses that i am getting back. And Loadrunner is not able to convert these responses and resulting an error. All the requests are converted to XML format from GWT. I am having issue only with Response conversion.

Please reply if you need more details to understand the issue.

Response 1 (Including Headers):

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Content-Disposition: attachment

Content-Type: application/json;charset=utf-8

Content-Length: 12

Date: Wed, 06 Dec 2017 19:44:35 GMT

 Response Body: //OK[[],0,5]

Response 2: 

Server: Apache-Coyote/1.1

Content-Encoding: gzip

Content-Disposition: attachment

Content-Type: application/json;charset=utf-8

Content-Length: 1022

Date: Wed, 06 Dec 2017 19:44:33 GMT

Response Body:

//OK[0,0,0,0,0,0,3650,0,81,9,0,-6,-5,21.780000686645508,7,0,80,79,0,4,3,78,9,0,-6,-5,21.780000686645508,7,0,77,76,0,4,3,0,38,0,-6,-5,8.800000190734863,7,0,75,74,0,4,3,73,9,0,-6,-5,0.11999999731779099,7,0,72,71,0,4,3,70,9,0,-6,-6,0.25,7,0,69,68,0,4,3,67,9,0,-6,-5,16.760000228881836,7,0,66,65,0,4,3,0,46,0,-6,-5,0.0,7,0,64,63,0,43,3,62,9,0,-6,-5,0.0,7,0,61,60,0,43,3,0,46,0,-6,-5,0.0,7,0,59,58,0,43,3,0,46,0,-6,-5,0.0,7,0,57,56,0,43,3,0,46,0,-6,-5,0.0,7,0,55,54,0,43,3,53,46,0,-6,-5,316.0,7,0,52,51,0,43,3,50,46,0,-6,-5,31.5,7,0,49,48,0,43,3,47,46,0,-6,-5,275.0,7,0,45,44,0,43,3,42,9,0,-6,-5,4.300000190734863,7,0,41,40,0,39,3,0,38,0,-6,-5,21.780000686645508,7,0,37,36,0,4,3,35,25,0,-6,-5,10.100000381469727,7,0,34,33,0,4,3,32,9,0,-6,-5,0.25,7,0,31,30,0,4,3,29,9,0,-6,-5,22.219999313354492,7,0,28,27,0,4,3,26,25,0,-6,-5,0.25,7,0,24,23,0,4,3,22,9,0,-6,-5,0.44999998807907104,7,0,21,20,0,4,3,19,9,0,-6,-5,36.08000183105469,7,0,18,17,0,4,3,16,9,0,-6,-6,0.7200000286102295,7,0,15,14,0,13,3,12,9,0,-6,-5,25.850000381469727,7,0,11,10,0,4,3,6,9,0,1,8,0,8,0.0,7,0,6,5,0,4,3,25,2,0,1,["com.xxxxxx.oneweb.shared.dto.SearchInventoryItemDataPacket/1127551640","java.util.ArrayList/3821976829","com.xxxxxx.oneweb.shared.dto.InvoiceItemLiteDTO/1653286401","HOSPITAL SUPPLIES","V Tray Large","073725","java.lang.Float/1718559123","java.lang.Integer/3438268394","MWI","SYRINGE 12 CC ECCENTRIC TIP","12CCSYR","013706","BOVINE SERVICES","NEEDLES - 14G X 2\"","14X2","172115","NEEDLES - 16G X 1\"","16X1","2040","NEEDLES - 16G X 1 1/2\"","16X11/2","2039","NEEDLES-16X1 (TERUMO)","16X1DIS","xxxxxx","98-11007-01","NEEDLES - 18G X 1\"","18X1","2035","NEEDLES - 18G X 1 1/2\"","18X11/2","17705","NEEDLES-18X1 1/2\"TERUMO","18X11/A","87-22040-02","NEEDLES-18GX1\"(TERUMO)","18X1DIS","S.ANES/","DISPENSING SA","ALLERGY TST SYRINGE 1CC 27X3/8","1CCSYRA","19269","SURGICAL SERVICES","3.5MM LCP T-PLATE 3HEAD/7H 87MM","2.5TPLA","SYNTH","VP4343.07","2.7MM CORTEX SCREW 16MM","2.7CORT","VS205.016","2.7MM DCP PLATE 12 HOLES/100MM","2.7DCPP","VP2030.12","2.0MM CORTEX SCREW 20MM","2.COR20","2.0MM CORTEX SCREW 22MM","2.COR22","2.0MM CORTEX SCREW 26MM","2.COR26","2.0MM CORTEX SCREW 28MM","2.COR28","29288","2.0MM CORTEX SCREW 30MM","2.COR30","NEEDLES - 20G X 1\"","20X1","002031","NEEDLES - 20G X 1 1/2\"","20X11/2","1197","NEEDLES-20GX1 1/2\"TERUMO","20X11/A","015624","NEEDLES-20GX1\"(TERUMO)","20X1DIS","NEEDLES - 22G X 1\"","22X1","873","NEEDLES - 22X1.5","22X11/2","14899"],0,5]

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: GWT DFE Reply Error

The later response you provided is not similar to the one you raised the question with.

The first one seems like some response on void call while the latter has response data.
Do you have the same error for both responses?

As for the empty response I am double checking to see if it is a defect that should be fixed.

Gil

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: GWT DFE Reply Error

Yes, for both the responses we are having the same error. And i have cross verified the responses from the server and the response we are getting back in Loadrunner is a valid one.

Thanks and Regards,

Ajay

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: GWT DFE Reply Error

Hi Ajay,

I've written you a private message. please check and email me back.

Thank you,

Lior

0 Likes
Highlighted
Contributor.
Contributor.

Re: GWT DFE Reply Error

Hi

//OK[[],0,5] is an invalid format for GWT.

It's supposed to be //OK[0,[],0,5] for null instance. 

You cannot miss the index and only leave an empty string table.

There are 4 parts of the GWT response after //OK

[object values and index, [string table],flag,version]

"index" should be 0, if there's no string table to response a null instance.

 

Regards,

Wei-Wei Zhang

0 Likes
Highlighted
Member..
Member..

Re: GWT DFE Reply Error

Hello, 

I have the same problem.

The return body is : //OK[[],0,7]

And i get the same ERROR, did you find the solution ?

Action.c(321): Error -27040: Data Format Extension: Extension: GWT - ERROR [GWT_DFE] - Failed to parse response: java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:403) ~[?:1.8.0-internal]
at java.util.ArrayList.get(ArrayList.java:416) ~[?:1.8.0-internal]
at com.gdevelop.gwt.syncrpc.SyncClientSerializationStreamReader.readInt(SyncClientSerializationStreamReader.java:841) ~[gwt-syncproxy-0.5.jar:?]
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:104) ~[gwt-user-2.7.0.jar:?]
at com.hp.dfe.GWT_DFE.deserializeResponseToXML(GWT_DFE.java:464) [classes/:?]
at com.hp.dfe.GWT_DFE.decode(GWT_DFE.java:706) [classes/:?]
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0-internal]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0-internal]
at com.hp.dfe.GWT_DFE_DYNAMICALLY_REFLECTED.doOperation(GWT_DFE_DYNAMICALLY_REFLECTED.java:70) [classes/:?]
at com.hp.dfe.GWT_DFE_DYNAMICALLY_REFLECTED.decode(GWT_DFE_DYNAMICALLY_REFLECTED.java:60) [classes/:?]
at com.hp.dfe.GWT_DFE_LAUNCHER.decode(GWT_DFE_LAUNCHER.java:456) [classes/:?]
æ[Î8

Best regards

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.