Error passing control to CGI
I am using the following peice of code to pass data and control to a CGI program residing in the same directory as the applet.
try { postscores = new URL(s); }
catch ( MalformedURLException ee) {
System.out.println("Bad URL: " + postscores);
getAppletContext().showDocument(postscores, "_self");
I am using the following piece of code to pass data and control from a Java applet to a CGI program residing in the same directory as the applet.
I am using a string that looks like:http://www.research.avi/result.cgi?r1=9&r2=10
Sometimes the CGI does not start. Looks like the applet is trying again and again to pass the data using
This happens only on several computers and on others it looks OK.
Can anyone help please.
I'd suggest testing on a variety of browsers, and checking against your web server log, to first determine whether there's a pattern among browsers, etc.
Does the same applet on all browsers cause your browser to request the same URL correctly? Or is it that, as far as your web server sees it, sometimes the URL is mangled, or the URL is simply not even requested?
Is the URL mangled or not requested when using certain browsers? If so, which ones? etc. The first thing you want to determine is where the problem is occurring -- client, server, or both.
Another potential problem is that your applet is mangling the URL in some circumstances. When you test, make sure you do the identical tests in all browsers -- you don't want to accidentally identify an applet bug as a browser bug.
If your web server logs suggest that the URLs are always being accessed correctly, the problem must be in the CGI. If sometimes the URL is not being accessed correctly, then the problem could be in your applet or some browsers.
It looks like you're implementing your CGI with Perl. If the problem is in the CGI, you'll need to go to a different forum for help. I'm not sure which forums there are out there for perl CGI these days. I believe there's a comp.infosystems.www.authoring.cgi newsgroup. I would recommend that you consider using the CGI.pm module rather than parsing the query string input yourself, if that's what you're doing.
Similar Messages
-
Error in Control Framework with GUI_DOWNLOAD FM
Dear All,
I am using GUI_DOWNLOAD FM to download a file in PDF format to presentation server.
The code has been written in an enhancement spot in a class "/SCA/CL_SVORDER", method "Print" on an SNC server.
On execution I get the error "Error in Control Framework".
First I tht that this has something to do with the data table. But when I tried to pass a simple table of Integers in ASC format, it gave the same error.
Please assist.
*----Begin of Code Snippet
data: fullpath type STRING value 'D:\temp\PO.pdf',
bin_filesize type I,
filetype type char10 value 'BIN'.
bin_filesize = numbytes.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = bin_filesize
filename = fullpath
FILETYPE = filetype
IMPORTING
FILELENGTH =
tables
data_tab = t_data
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*----End of Code SnippetHi!
I have the same error, but i need to use CSV Format.
in another program, i used this with XML format.
lv_xml = lr_element->to_xml( ).
Converts the string to xstring
lv_xxml = wd_this->convert_file( lv_xml ).
Shows it in a new browser window
*cl_wd_runtime_services=>attach_file_to_response(*
*i_filename = lco_filename*
*i_content = lv_xxml*
*i_mime_type = lco_mime_type*
*i_in_new_window = abap_FALSE*
*i_inplace = abap_false ).*
Regards! -
Hi All,
I am passing input data to RFC, In input parameters I am passing data to three import parameters and one table parameter of RFC from Web Dynpro. Once I execute it, am getting error "Error in Control Framework, error key : RFC_Error_System_FAILURE".
If anybody aware about it, please guide me.
Thanks in advance.
Regards
MangleshHi Manglesh,
Please verify the Jco settings once.
Please go through the weblog /people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers
Regards, Anilkumar -
Java Portlet - Passing control to object outside renderBody
Is there a problem passing control outside renderBody in a Java Servlet portlet.
I get an error using the below, the portlet just stops. Its fine when I put the code inside renderBody:
public class ObtainMap extends BaseManagedRenderer {
public void renderBody(PortletRenderRequest pr) throws PortletException {
pProcessMapRequest pPMR = new pProcessMapRequest();
//Pass in the portal renderer
pPMR.pr = pr;
//call the main function
pPMR.pProcessRequest();
class pProcessMapRequest extends Object{
Thanks...
etcDoes the log say which class can not be found?
How have you added the pProcessMapRequest class to the CLASSPATH? -
Do I need to set something when using Dynamic VIs to pass control values to an executable VI
I am using VI server to pass control information from one VI to another.
In the development system this works fine.
How ever once I build the VI's into an executable the values from one of the VIs does not get passed.
I use the same method in three different applications, 2 of the applications work fine, but one does not.
The only thing I can think of is that there is something that needs to be set that I did (without realizing) in the first two but not in the third.
All the Applications run fine.
The problem that occurs is in the values passed. The same value gets passed everytime this turns out to be what ever the default was prior to running application builder.
I a
m currently using 6.02.Kandrew wrote:
> I am using VI server to pass control information from one VI to
> another.
> In the development system this works fine.
> How ever once I build the VI's into an executable the values from one
> of the VIs does not get passed.
>
> I use the same method in three different applications, 2 of the
> applications work fine, but one does not.
Are you using Call by Reference or Set Control Value method? The second
absolutely requires the Front Panel to be present to work properly. The
LabVIEW application builder wants to remove the Front Panel by default
if the VI hasn't been configured to show its front panel when called or
doesn't have at least one Control Property Node in its diagram.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
I have a problem while installing 9iAS R2 on RH LInux 8.
When database configuration assistant starts during the installation of 9iAS infrastructure, it gives an error "Error creating CONTROL FILE" followed by many other errors.
Please help me out.
ZulqarnainI had the same problem, but with RH9
To fix, I ran orapwd from the $ORACLE_HOME/bin directory to create a password file called orapw. Then I moved this file to the directory where the configuration assistant complains it cannot find the file. Fixed. Obviously, just ignore the errors from the configuration assistant about the CONTROL FILE until it tells you the location of the file it is looking for. -
Error in Control Framework: Background job failed
Hi Experts,
One background job failed with job log: Error in Control Framework in ECC 6.0 system; the job is supposed to produce a XML report. Can anyone please give some idea on this why it could happen? One SAP note 893534 has described same kind of issue but in CRM system. That note even cant be implemeneted in ECC 6.0. Any workaround? Is it a BASIS issue here?
Thanks & Regards,
SKBHello,
please check the variant. We had this problem, and when checking the variant I got a shortdump because the variant did not fit to the program (there were problems with subscreens in the selection screen). After adjusting the variant with program RSVARDOC_610 the variant was ok.
I can not check if this solved the problem because the job runs weekly, and the next job is on Monday. But give it a try...
HTH,
Jens Hoetger -
Error in Control Framework in smart forms programms use GUI_DOWNLOAD
IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.
IN SM13 can see the ERROR message.
Function Module: RV_MESSAGE_UPDATE
Status :Update was terminated
Error details: FES 022: Error in Control Framework
I USE GUI_DOWNLOAD FUNCTION at my code. WHEN I mark it,no error message. I must use the Similar function.
How do I solve this problem???Hello,
Check the thread:
Re: Error in Control Framework in smart forms programms
Regards,
David -
Hey,
I recorded a test script which involved recording of some values in GridView Control. I was using SAPGUI(record). The recording went fine but as i executed the test case it resulted in an error saying ..
Error in eCATT function SAPGUI
Error in Control
The error is pointing to the screen where it has to start entering values in the grid. The execution stops there and gives me the error as stated above.
I am Using Solution Manager 3.2 with Web AS 6.20 to run eCATT. My SAP GUI is 6.40 with Patch level 8. Is there any limitations as such on Grid Control or some setting which might be missing. Please help me out ASAP.
Regards,
Bilal NazirHey Sasmita,
Well I did a lot of research on it on my own and created quite a number of test cases and was finally able to deduce what actually the problem is.
This problem occured to me when the visibility of the controls especially Grids was dependent on the input data. Usually what happened was that upon recording the follow of screens that actually occured was not happening upon Replay. It was basically because of the state the screen is in when we leave a transaction. I changed the setting to "Do not Close Session upon Completion" so that i had the replay session available to me at the end or Replay. And i saw that the screen was not at the state that it should be. So what I did was changed the screen state on to which it should be at that time and then left the transaction. Now when i Replayed the test case next time it executed perfectly without any errors.
So basically the problem lies within just the dynamic controls and what we have to ensure is that before we replay the script we exit that transaction from a state which we want it to be in upon replay.
Regards,
Bilal Nazir -
Hello,
Can someone please explain what this error means "Error in Control"? I am using SAPGUI command to record and execute. I create a custom document and once created that doc appears in the grid on the upper half of the screen. I click on the created document to check/change values of different columns. Now while recording the click operation opens the document i created however while executing it does not open the document created. It opens some other document which is there in the grid.
command editor contains following information
Userchanged State
GuiElement Shell GuiShell GridView
Name Shell
Type GUI Shell
SubType Grid View
State
currentCellRow
Name CurrentCellRow
value[1]5
clickCurrentCell.
And I get the Error In Control message while executing.
Thanks,
GS>
Rajeev Chavan wrote:
> Hello,
>
> Can someone please explain what this error means "Error in Control"? I am using SAPGUI command to record and execute. I create a custom document and once created that doc appears in the grid on the upper half of the screen. I click on the created document to check/change values of different columns. Now while recording the click operation opens the document i created however while executing it does not open the document created. It opens some other document which is there in the grid.
>
> command editor contains following information
> Userchanged State
> GuiElement Shell GuiShell GridView
> Name Shell
> Type GUI Shell
> SubType Grid View
> State
> currentCellRow
> Name CurrentCellRow
> value[1]5
> clickCurrentCell.
>
> And I get the Error In Control message while executing.
>
> Thanks,
> GS
Hi,
The issue is only due to some unexpected screen sequence.
What can be done to solve this?
1)Check the flow and you can activate the highlighting feature while executing and you can identify the error where it goes wrong?
2)You may need to re-record with maximum options.You have to make few screens optional.
This will solve your issue.
Regards,
Senthil -
Hi All,
I created a webdynpro development. In that all applications are working fine. One button i added and click of that it will download all the attachments corresponding to the sales order and it will place the attachments in desktop folder.
I written all the code in one function module and in the method i associated this function module.
If i debug this, this is working fine. when i click the download button, it shows the error - error in control framework
Any body has any idea about it?
Regards,
Vinoth.Hi VinothKumar,
Did u tried running the method directly. There also u are not getting any error means, you have to check the code in wda where you created the method for that class.
If you are using the fm directly inside the method of wda, then you have to debug step by step in wda.
Regards
Sarath -
Error in Control Framework in smart forms programms
IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.
IN SM13 can see the ERROR message.
Function Module: RV_MESSAGE_UPDATE
Status :Update was terminated
Error details: FES 022: Error in Control Framework
THE CODE:
FORM processing USING proc_screen
CHANGING cf_retcode.
******I ADD THE CODE
PERFORM DOWNLOAD_AS_PDF USING lf_fm_name
ls_control_param
ls_composer_param
ls_bil_invoice
nast
repeat
ls_bil_invoice-HD_ORG
ls_spoolid
CHANGING cf_retcode
ENDFORM.
IN DOWNLOAD_AS_PDF FORM ,I USE FUNCTION : P_fm_name(smartforms function) CONVERT_OTF GUI_DOWNLOAD
WHY the UPDATE MODULE have ERROR MESSAGE???
How do I solve this problem???Hello,
Your error message is related to GUI_DOWNLOAD, which is a frontend function.
You simply cannot use it in background, because it puts a file on the
frontend PC where you start the function (WS = WorkStation).
Note that GUI_DOWNLOAD is intendted to be used for dialog user
and will not run at BACKGROUND.
You can review SAP Library: ABAP Programming (BC-ABA)
->Saving Data Externally
->Working with Files
->File Handling in ABAP
Regards,
David -
Outbound IDOC( Error passing data to port)
Hi,
We have an interface running daily configured such that the idocs are converted to files and placed on a directory path.
All the idocs are processed successfully but for one hour the idocs failed and the error message says:
Status: Error passing data to port
Error at OPEN (Directory path) with operating system error msg.:No such file or directory.
The missed data from the error idocs have been sent via PFAL.
But again after this one hour the idocs were successfully posted for the same directory path.
Please let me know what the issue can be here or how can we avoid this.
Thanks.Hi
*Some times it may happen that IDOC doesnt reach to the port , in case if you are using Transactional RFC port so*
*you can use the report RSEOUT00 for sending the IDOC to port .*
*Hope it may help you .* -
Error in Production Load: Error passing data to port
Hello All,
I got this unexpected error in production. The Jobs are still processing for a long time(in Yellow status) with the error message :
Extraction (messages): Missing messages (Status:Yellow)
Missing message: Request received (Status:Yellow)
Missing message: Number of records sent (Status:Yellow)
Missing message: Selection Completed (Status:Yellow)
Transfer (IDocs and TRFC): Missing messages or warnings (Status:Yellow)
Request IDoc : Application document posted (Status:Green)
Info IDoc 2 : sent, not arrived ; Error passing data to port (Status:Yellow)
Info IDoc 3 : sent, not arrived ; Error passing data to port (Status:Yellow)
Info IDoc 1 : sent, not arrived ; Error passing data to port (Status:Yellow)
I went through the below forumn, and asked the basis to look in to it. In the meantime can any one please suggest me any solutions.
Some problem with IDoc's Settings while loading dataHi Ram,
The problem may be with the connection to the source system you are loading the data from. You can check the connection using the note 140276.
Best Regards,
Des. -
Abap mapping - Error in Control Framework
Hi Gurus,
Scenario: IDOC - -- XI -
Http (post)
i am using ABAP mapping for IDOC to XML. I am able to test it using sxi_mapping_test which gives me output XML. But, when i test the scenario from RWB, it fails with "SYSFAIL" error in inbound queue as per moni.
error - "Error in Control Framework".
Looks like it did not even go to message mapping pipeline step.
Please help.
Thank you,
mkHI,
Hope you have done all the necessary pre-requisites for ABAP mapping
This may help u- http://help.sap.com/saphelp_47x200/helpdata/en/55/bff20efe8c11d4b54a006094b9456f/content.htm
just cross verify with this guide-
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
Please also try to debug as follows...
put a break point inside your class/method....
goto tcode SXI_MAPPING_TEST....give in the configuation details of your scenario...and when you execute, give the IDOC-XML, copy it from SXMB_MONI where you are getting the error....
when you execute, it shoudl stop at the break point that you had set in your class....continue debugging using 'F6' function key, and check where you are hitting this error...
The chances are that the FM that converts IDOC-XML to flat file format might not have been executed correctly...
Thanks
Swarup
Maybe you are looking for
-
My husband accidently formatted the drive my pictures were located on. He tried to go back and restore but they were no where to be found. Now the photos that are located in my organizer on PSE7 say that the file is missing and it won't let me d
-
Dear all, Last summer, possibly after a reserve copy to another iphone or being turned off, the following happend. My pictures do not load anymore on my Iphone and my Mac (iphone) does not see them so it is unable to download them. I have no explanat
-
Hi, We have problems to import a dmp file (what exported on a 64 bit OS) on a 32 bit OS: IMP-00010: not a valid export file, header failed verification IMP-00000: Import terminated unsuccessfully Can someone help me with a link, what is the steps / p
-
Mountain Lion login slowdown & hidd timeout
I've searched in every part of Internet, and also in this forum, to solve my problem, but until now I haven't found a solution. Since some weeks I've observed a peculiar slowdown in the startup of my Mac Mini running Mountain Lion. My boot is in verb
-
ICloud DST Issues With Outlook
When I sync my Outlook Calendar into my iCloud Calendar all recurring events that existed before DST are off by 1 hour in iCloud but correct in Outlook. Any ideas? So for example I have a recurring event for a daily meeting. This meeting was created