Author | Topic: Problem with oHtml:GetAllVars() | |
---|---|---|
Thomas Braun | Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 10:15:57 +0100 Hi, has anyone else had problems with the GetAllVars method? I had several occasions where the above method never returned and stopped the complete worker thread. By using the debugger, I found the following iVar oHtml:oGateway:aQueryVars which contains the needed data as well, but unfortunately it can't be accessed -> "access to member variable not allowed" Is there any other method to get a complete list of all name/value pairs passed by the client browser? Thomas Braun | |
Vladimir Iahnenco | Re: Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 08:14:07 -0500 Thomas, I have never had problems with this method and I think it returns exactly that array you reffered to. You may try to delete some oHtml:SetVar() or add them in your source to see what will happen. Check if you are using a free tcpip port. -- Regards, Vladimir "Thomas Braun" <nospam@software-braun.de> wrote in message news:1nkyhica58nja$.hw8av2rwjs93$.dlg@40tude.net... > Hi, > > has anyone else had problems with the GetAllVars method? > > I had several occasions where the above method never returned and stopped > the complete worker thread. > > By using the debugger, I found the following iVar > oHtml:oGateway:aQueryVars > which contains the needed data as well, but unfortunately it can't be > accessed -> "access to member variable not allowed" > > Is there any other method to get a complete list of all name/value pairs > passed by the client browser? > > Thomas Braun | |
Thomas Braun | Re: Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 15:48:48 +0100 Vladimir Iahnenco wrote: > I have never had problems with this method and I think it returns exactly > that array you reffered to. That is what I suspected, so I'm not sure what could possibly go wrong at all. I can not reproduce the problem but it happens with my production server running IIS under Windows 2000 as well as with my local test server running Apache on my Windows XP workstation machine. regards Thomas Braun | |
Vladimir Iahnenco | Re: Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 09:58:38 -0500 You wrote it stopes the thread. What way does it happens, do you have an extra waa1gate instance in the memory. Does waa report in the logs this behaviour as an error, did you try to set this call in SEQUENCE and write a log with this error in RECOVER statement? Also you may check if by chance (if you are using api calls) char(0) got into your html (this is just imagination ) -- Regards, Vladimir "Thomas Braun" <nospam@software-braun.de> wrote in message news:102jok5egog0f$.idcktemyvi6g.dlg@40tude.net... > Vladimir Iahnenco wrote: > > > I have never had problems with this method and I think it returns exactly > > that array you reffered to. > > That is what I suspected, so I'm not sure what could possibly go wrong at > all. > > I can not reproduce the problem but it happens with my production server > running IIS under Windows 2000 as well as with my local test server running > Apache on my Windows XP workstation machine. > > regards > Thomas Braun | |
Thomas Braun | Re: Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 16:57:57 +0100 Vladimir Iahnenco wrote: > You wrote it stopes the thread. What way does it happens, do you have an > extra waa1gate instance in the memory. No. The method simply never returns. You can't shutdown WAA but have to kill the task via the windows task manager. > Does waa report in the logs this > behaviour as an error No, there is only the "request" log line... >, did you try to set this call in SEQUENCE and write a > log with this error in RECOVER statement? Good idea, I will try this. But since I can't recreate it, this may take a bit of time before I get something at all. Thanks for the hints... Thomas Braun | |
Vladimir Iahnenco | Re: Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 10:08:16 -0500 And another thought, check if the source which creates your html puts complete html tags. To explain you put(<html><header><title>) some error RETURN TRUE This way your html will not have end tags and gets incomplete. What way WAA will react I have no idea. -- Regards, Vladimir "Thomas Braun" <nospam@software-braun.de> wrote in message news:102jok5egog0f$.idcktemyvi6g.dlg@40tude.net... > Vladimir Iahnenco wrote: > > > I have never had problems with this method and I think it returns exactly > > that array you reffered to. > > That is what I suspected, so I'm not sure what could possibly go wrong at > all. > > I can not reproduce the problem but it happens with my production server > running IIS under Windows 2000 as well as with my local test server running > Apache on my Windows XP workstation machine. > > regards > Thomas Braun | |
Phil Ide | Re: Problem with oHtml:GetAllVars() on Tue, 02 Nov 2004 17:51:17 +0000 Thomas, > has anyone else had problems with the GetAllVars method? > > I had several occasions where the above method never returned and stopped > the complete worker thread. > > By using the debugger, I found the following iVar > oHtml:oGateway:aQueryVars > which contains the needed data as well, but unfortunately it can't be > accessed -> "access to member variable not allowed" > > Is there any other method to get a complete list of all name/value pairs > passed by the client browser? You have a version of WAS I believe? Try running that and see if you can get that to work. I have an updated version if you have problems. Doing it this way you can monitor the comms between WAA1SRV and WAA1GATE (note that WAS pre-fetches the entire set of http variables before your package function is called). Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** Silly wabbit......QWKs are for QWKidds. | |
Thomas Braun | Re: Problem with oHtml:GetAllVars() on Thu, 04 Nov 2004 16:19:33 +0100 Finally, I found out what the problem was... own stupidity With a specific combination of input data from the webpage, my package code entered into a do-while endless loop. Because I wasn't able to reproduce this scenario so far I could not use the debugger to find out what went wrong. Now, while chasing another problem with the debugger I entered the right data that triggered the endless loop again and found out the real cause. So after all, GetAllVars seems to be OK. Sorry for the inconvenience Thomas |