Error when retrieving data from remote url

Hello,
I'm trying to do something that should be very simple --
letting a user enter something in a textbox, then using that data
as a script parameter when calling a remote cgi script, and
returning the results to the screen.
The remote cgi is sending data in plain text. I have looked
at several examples, and I've tried using an XMLHttpRequest, I've
tried using the servicemonitor.swf methods, and I've tried with
URLRequest and URLLoader methods. All fail in one way or another.
Here's the code for the URLRequest/URLLoader method...
function fetchISSN(myform) {
air.trace("Starting Fetch");
var mytitle = myform.title.value;
air.trace("TITLE: " + mytitle);
var reqURL = "
http://grlinker.coalliance.org/grbin/ilu_rmt.cgi";
air.trace("URL: " + reqURL);
var variables = new air.URLVariables("title=" + mytitle +
"&isf=plain");
air.trace("URLPARMS: " + variables);
// var element = document.getElementById('results');
var request = new air.URLRequest(reqURL);
air.trace("Request Object Created");
request.data = variables;
air.trace("Data Added to request");
request.method = air.URLRequestMethod.POST;
var loader = new air.URLLoader();
air.trace("Loader Object Created");
loader.addEventListener(air.Event.COMPLETE, loadComplete);
loader.addEventListener(air.Event.OPEN, loadOpen);
try {
loader.load(request);
} catch(e) {
alert('Could NOT load data: ' + e);
} // end of function fetchISSN
function loadComplete(event) {
// alert('Downloaded ' + loader.bytesTotal);
alert('Complete');
// element.innerText = loader.data;
} // end of function loadComplete()
function loadOpen(event) {
alert('Downloading');
} // end of function loadComplete()
And the HTML that calls it...
<table width="280" border="1" align="center">
<tr><td align="center">
<font size="2">Enter a title and click
submit.</font>
<form name="issn">
<input type="text" name="title" /><br>
<input type="submit" name="submit" value="Submit"
onClick="javascript:fetchISSN(this.form)" />
</form>
</td></tr>
</table>
Things go fine until it hits the loadComplete function. At
that point, the following error is generated...
Error: The application attempted to reference a JavaScript
object in an HTML page that is no longer loaded.
at __HTMLScriptFunction/throwJSObjectDead()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Can anyone give me any advice or even a reason for this
failure. I did find a bug about this in the bugtracker, it says it
is resolved with an "external" resolution. I'm not sure what that
means. Is there a patch I'm missing? Am I doing something really
stupid?
Just for reference, I'm on a Mac running OS X 10.5.6, using
the SDK for development.
Thanks!
Scott

Hi,
Can you try putting the declaration of the URLLoader instance
outside your fetchISSN function and see?
That is:
var loader;
function fetchISSN(myform) {
//your code above this line
loader = new URLLoader();
//rest of your code

Similar Messages

  • EVDRE encountered an error when retrieving data from web server

    Hi
    When I am trying to open Data Input=>Build a schedule using a dynamic template in BPC version for SAP netweaver, I am getting the below error "EVDRE encountered an error retrieving data from the Web Server". 
    I am not able to open any template, every time I am getting the same message. I have tried again after reprocessing all the dimension.
    Even I have tried in appset APSHELL also, there also I am getting the same error
    Request you to help me to resolve the above error which will allow me to proceed further.
    Thanks in Advance.
    Venkat

    Hi,
    Beside Nilanjan's solution, this error could also occur when the expansion is running more rows than the Excel limit allows (65'000 rows and 256 cols for Excel 2003)...
    Even when you're using suppress field to reduce the number of rows, the first sequence is to retrieve the complete dataset before performing any suppression. And this could of course exceed the limit sometimes.
    Hope this helps.
    Kind Regards,
    Patrick

  • EVDRE error "encountered problem when retrieving data from webserver"

    Hi,
    in a EVDRE we always get the error "encountered problem when retrieving data from webserver"
    When analysing this further we noticed this is always generated when a base member is selected in the CV and the expansion on the row for this dimension is has one of the following expansion settings:
    DEP
    ALL
    NOEXPAND
    if we select SELF, the error disappears again and the EVDRE works fine again ... is this normal behavior?
    there is no problem with application nor dimension.
    D
    solved it

    Note that the keyword "ALL" does not include the member itself. This may cause some confusion, but as Harish implies, when you select a base member it finds no matches if your memberset is "ALL".
    If you want to design a report to handle the user moving back and forth between base and non-base members in their CV, you either need to include SELF,ALL or SELF,DEP, or something similar....
    OR you need to get a little fancier, and use EVPRO to look and see if the CV member is base -- evpro(app,member,"CALC") -- and then use some conditional logic in Excel to choose the correct expansion options. If Calc=N, use Self, otherwise use SELF,DEP or whatever you choose. This can be a bit tricky if you then want the user to be able to drill down in the report (especially if you want the workbook option to insert add'l rows on the expansion, rather than replace), but it's all possible.

  • Error while retrieving data from an ARRAY resultset

    We hava an Oracle stroed procedure which has a table type as its OUT parameter and where the data is being entered into. This data requries to be returned to the Java client through a JDBC connection. We have used the OracleTypes' ARRAY object for this. We are facing errors when retieving data from the ARRAY resultset
    The Oracle Package
    ----I created a table type called "PlSqlTable":
    CREATE OR REPLACE TYPE PlSqlTable IS TABLE OF VARCHAR2(20);
    ----I defined this as the out parameter for my procedure :
    PROCEDURE testSQL
    arrayOutID OUT PlSqlTable
    Then populated the object :
    arrayOutID := PlSqlTable();
    arrayOutID.extend(4);
    arrayOutID(1):= 'Hello';
    arrayOutID(2) := 'Test';
    arrayOutID(3) := 'Ora';
    ----The procedure executes fine - all debug statements are printed ----right till the end of execution.
    The Java class
    ----Here is how I have defined the parameters :
    OracleCallableStatement stmnt = (OracleCallableStatement)connection.prepareCall("begin testSQL(?);end;");
    stmnt.registerOutParameter(2,OracleTypes.ARRAY,"PLSQLTABLE");
    System.out.println("Executing..");
    stmnt.execute();
    System.out.println("Executed..");
    ARRAY outArray = stmnt.getARRAY(1);
    System.out.println("Got array");
    ResultSet rset = outArray.getResultSet();
    System.out.println("Got Resultset..");
    int i = 1;
    while(rset.next()){
    System.out.println("VALUE : " + rset.getString(i));
    i = i+1;
    ----On execution, the debug messages display :
    Executing..
    Executed..
    Got array
    Got Resultset..
    VALUE : 1
    VALUE : Test
    ERROR : java.sql.SQLException: Invalid column index
    ----But I have populated upto 3 values in th e procedure. Then why this error ?
    PLLLEEEASE help me out on this.
    Thanks, Sathya

    haven't worked with db arrays but I think your problem is here:int i = 1;
    while(rset.next()){
         System.out.println("VALUE : " + rset.getString(i));
         i = i+1;
    }In the first loop you are retrieving the value from column 1(rs.getString(1)), which is OK, but in the second loop, you are trying to retrieve a value from the second column(rs.getString(2)) which doesn't exist. Try this code which only reads from column1:
    while(rset.next()){
         System.out.println("VALUE : " + rset.getString(1));
    }Jamie

  • Error when reading data from socket

    Hi,
    I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API  'mo_core_service->invoke_matching'.
    And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
    Can anybody help me in correcting this?

    Hi Narasa,
    The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
    Problem in ABAP API - NiRawReadError: error when reading data from socket
    Rgds
    Ankit

  • Error message-retrieve data from database

    I tried to retrieve data from oracle database. I got the following error message. I did compile the files without error. but when I run index.jsp I got the following error message. is it related with taglib Directives ?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /index.jsp:8
    5: <% AccessDB accessDB=new AccessDB(); %>
    6:
    7: <%-- create an instance of List, then retrieve SubjectNames --%>
    8: <% List subjNames=accessDB.getSubjectName(); %>
    9:
    10: <%-- make list accessible to page --%>
    11: <% request.setAttribute("subjNames", subjNames); %>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    java.lang.NullPointerException
         org.AccessDB.getSubjectName(AccessDB.java:68)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:62)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    Hi,
    Try to print the value in List...n comment the request.setAttribute...n then run the program....
    check wot value is printed in List....
    This error may b because the List doesnt have anyvalue into it.....

  • Error when uplaoding data from R/3

    hi Gurus,
            I have got a problem when loading data from r/3 to bw .
    i have loaded a init req and i have got more than 1 lac records.
    i found out that there are 2000 records with the same error in PSA.
    i have used a normal staging scenario ..psa and then to data target.
    I know we can do it manually..but anyother way not retrieveing from r/3 again.
    how to solve this problem.
    and plz let me if i can have only correct records into data target preventing the incorrect ones by any specific setting..
    will award points for good answers
    thanks ,
    charan.

    Hi krishna,
    there was a typo mistake with rohini..Use the transaction RSKC and enter those unpermitted characters..and do the load this time you will not get that error...
    Try to assign points upto your satisfaction level..

  • Error while retrieving data from PL/SQL Table using SELECT st. (Urgent!!!)

    Hi Friends,
    I am using Oracle 8.1.6 Server, & facing problems while retrieving data from a PL/SQL Table:
    CREATE or REPLACE PROCEDURE test_proc IS
    TYPE tP2 is TABLE of varchar2(10); --declared a collection
    dt2 tP2 := tP2('a','b','c');
    i NUMBER(8);
    begin
    SELECT COUNT(*) INTO i FROM TABLE(CAST(dt2 as tP2));
    DBMS_OUTPUT.PUT_LINE('**'||i);
    end;
    While executing the above procedure, I encountered foll. error:
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [],
    ORA-06544: PL/SQL: internal error, arguments: [pfrrun.c:pfrbnd1()], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [0]
    Can anyone please help me, where the problem is??
    Is it Possible to retrieve data from PL/SQL TABLE using SELECT statement? & How ?
    Thanks in advance.
    Best Regards,
    Jay Raval.

    Thanks Roger for the Update.
    It means that have to first CREATE TYPE .. TABLE in database then only I can fire a Select statement on that TYPE.
    Actually I wanted to fire a Select statement on the TABLE TYPE, defined & declared in PLSQL stored procedure using DECLARE TYPE .. TABLE & not using CREATE TYPE .. TABLE.
    I was eager to know this, because my organization is reluctant in using CREATE TYPE .. TABLE defined in the database, so I was looking out for another alternative to access PL/SQL TABLE using Select statement without defining it database. It would have been good if I could access a PLSQL TABLE using Select statement Declared locally in the stored procedure.
    Can I summarize that to access a PL/SQL TABLE using SELECT statement, I have to first CREATE TYPE .. TABLE?
    If someone have any other idea on this, please do let me know.
    Thanks a lot for all help.
    Best Regards,
    Jay Raval.
    You have to define a database type...
    create type tP2 is table of varchar2(10)
    CREATE OR REPLACE PROCEDURE TEST_PROC
    IS
    dt2 tP2 := tP2('a','b','c');
    i NUMBER(8);
    begin
    SELECT COUNT(*) INTO i FROM TABLE(CAST (dt2 AS tP2));
    DBMS_OUTPUT.PUT_LINE('**'||i);
    end;
    This will work.
    Roger

  • Error when reading data from XML using JAXB?

    Hi all,
    I get the error message when reading data from XML using JAXB.
    [org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
    (AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
    I don't find the reason, please help!
    Thanks in advance!

    The problem is sovled.

  • How to use the readLine()  method when reading data from a URL?

    Hello,
    I have a URL which contains text input.
    The only way to get the data from this URL is by opening a URL connection to it.
    I would like to get the data from this URL but at the same time I would like to be able to use readLine() method of BufferedReader in order to read the data line by line.
    My question is how do I combine between these two requirements in order to reed the data from the URL?
    Roy

    Hello Roy,
    can you try out this code.
      URL yahoo = new URL("http://www.yahoo.com/");
            URLConnection yc = yahoo.openConnection();
            BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    yc.getInputStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null)
                System.out.println(inputLine);
            in.close();
    Regards,
    Mohan R

  • Error when loading data from DSO to Cube

    Hi,
    After upgrading to 2004s we get the following error message when trying to load data from a DSO to a Cube:
    Unexpected error: RSDRC_CONVERT_RANGES_TO_SELDR
    Has anyone experienced a similar problem or have some guidelines on how to resolve it?
    Kind regards,
    Fredrik

    Hej Martin,
    Tack!
    Problem solved
    //Fredrik

  • Error while retrieving data from sql using jdbc adapter

    hi all,
    i m working on one scenario where i m sending data using HTTP and receiver is jdbc adapter which is retrieving me data from sql server.
    i have checked the structure both for req and res.
    i m getting this error
    <SAP:Error>
    <SAP:Category>Application</SAP:Category>
    <SAP:Code>MAPPING.EXCEPTION_DURING_EXECUTE</SAP:Code>
    <SAP:P1>com/sap/xi/tf/_INF57285_DB_HR_RES_</SAP:P1>
    <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
    <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
    <SAP:Stack>During the application mapping com/sap/xi/tf/_INF57285_DB_HR_RES_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
    </SAP:Error>
    can somebody help me with this.
    Thanks & Regards
    Aruna

    thnks bhavesh i think i made it that way
    JDBC REQ  
      <ns:INF57285_DB_Request xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <Employee>
        <EmpDetails action="SELECT">
          <table>EmpDetails</table>
          <access>
            <Name />
            <EmpId />
            <Band />
            <Salary />
          </access>
          <Key>
            <EmpId>57285</EmpId>
          </Key>
        </EmpDetails>
      </Employee>
    </ns:INF57285_DB_Request>                        
      JDBC RES
    <ns:INF57285_DB_Request_response xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <Employee_response>
        <row>
          <Name>aruna</Name>
          <EmpId>57285</EmpId>
          <Band>A</Band>
          <Salary>4675776</Salary>
        </row>
      </Employee_response>
    </ns:INF57285_DB_Request_response>
    my hr req is which i mapped with DB req
    <ns:INF57285_HR_Req xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <REQUEST>
        <EmpNo>57285</EmpNo>
      </REQUEST>
    </ns:INF57285_HR_Req>
    my hr res is which i mapped with DB res
    <ns:INF57285_HR_Res xmlns:ns="http://www.infosys.com/xi/training/hyd/57285">
      <response>
        <row>
          <Name>aruna</Name>
          <Empld>57285</Empld>
          <Salary>4675776</Salary>
        </row>
      </response>
    </ns:INF57285_HR_Res>
    and interestingly i am not getting any error in sxmb_moni
    it's not showing any error
    plz suggest me something wht to do ....
    thnks & regards
    Aruna

  • Error when extracting data from Data Source

    Hi All,
    I have a Generic datasource in BW which is based on a Function Module.When I am extracting the data from this source in RSA3 it is ending up in Run time error.
    the error message is
    The current ABAP program "SAPLYBWPU" had to be terminated because one of the
    statements could not be executed.
    and the error analysis is
    You wanted to add an entry to table "\FUNCTION-POOL=YBWPU\DATA=GT_HIERTAB2", which you declared with a UNIQUE KEY. However, there was already an entry with the same key.
    This may have been in an INSERT or MOVE statement, or within a
    SELECT ... INTO statement.
    In particular, you cannot insert more than one initial line into a
    table with a unique key using the INSERT INITIAL LINE... statement.
    Can anybody explain me how can I resolve this
    Thanks
    Sreeja

    Hello
    You can refer following link.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33&overridelayout=true

  • Error while retrieving data from SQL

    HI All,
    I am getting the below error while tryting to retrieve the data from SQL. Its working fine in developement server. But in production getting the below error.
    **Mon Oct 6 05:02:49 2008]esbux106/survey/survey/kpmbatch/Info(1021013)**
    **ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC SQL Server Driver][SQL Server]Cannot open database requested in login 'PD_OD**
    **S'. Login fails.]**
    **[Mon Oct  6 05:02:49 2008]esbux106/survey/survey/kpmbatch/Info(1021014)**
    **ODBC Layer Error: Native Error code [4060]**
    Iam using essbase 6.5 with Oracle as database. Please Advice.

    From the error message..
    [DataDirectODBC SQL Server DriverSQL Server
    Why is it trying to use a SQL Server Driver to open a Oracle Database?  Do you have the ODBC connection on the prod box setup to use the correct driver?                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error when sending data from Cube to ODS

    HI,
    I am extracting data from 2lis_02_itm & I stored the data in 0pur_o01(ODS) tha data is fine in ODS but when I am trying to send data from ODS to Cube 0pur_c07 it is giving the above error
    InfoSource 80PUR_O01 is not defined in the source system
    Errors in source system     
    InfoSource 80PUR_O01 is not defined in the source system.
    Message no. R3005
    Diagnosis
    The InfoSource 80PUR_O01 specified in the data request, is not defined in the source system.
    System response
    The data transfer is terminated.
    Procedure
    In the Administrator Workbench of the Business Information Warehouse, update the metadata for this source system, and delete the InfoPackages belonging to InfoSources that no longer existing
    Thanks
    Priya

    Hi A Priya
    First check if infosource 80PUR_O01 is present in datasource list of your BW system. Check this in RSA1-> Infosources-> here do Settings -> display generated objects and then do search on 80PUR_O01.
    if it not present there go to ODS 0PUR_O01-> right click
    -> generate export datasource.
    If it is present there then replicate the datasource by right click on transfer rules and then go to SE38-> Enter program name as RS_TRANSTRU_ACTIVATE_ALL -> Enter Infosource name as 80PUR_O01 and BW System as source system-> Execute. This will activate the transfer rules.
    Then try reloading from ODS to cube
    Regards
    Pradip

Maybe you are looking for

  • SharePoint Foundation 2013 search service crawl error

    Hi all, When I try to view the Crawl log of Search Service Application I am getting error something like below:- I tried to figure out why this is happening but could not find the error details related to above Correlation ID. Can you please help me

  • Problem creating an internal table dynamically

    Hi, I'm trying to create an internal table dynamically as i would be able to determine the structure of the table based on the user input. I've used the sample code from this forum ... REPORT  ZRICH_0003       . type-pools: slis. field-symbols: <dyn_

  • Remote JDBC Problem with Oracle BPM Studio

    Hi all, i am facing the Remote JDBC Problem with Oracle BPM Studio. When i configure a Remote JDBC Connection for SQL in BPM Studio, it prompt me an error. The SQL Connection is configured as following : External Resource: Name : MyDS Type : SQL Data

  • Samsung 2263DX monitor

    I've bought a Samsung 2263DX monitor. The specs claim that it supports Mac. The issue is that the built in web camera, speakers and the extra USB monitor do not work. The issue seems to be that Samsung have not bothered to come up with proper drivers

  • Essbase RKM Issue

    All, I have a planning cube PlanAPP and I have done a reverse engineer and created a interface to build dimensions in the planning cube PlannApp. Now I want to load data in the cube using rule file and then run a maxl? So, I am trying to create anoth