Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

My main.js resembles

xmlDataSource var = {}
 
URL: 'dcds. - symbianxml.aspx", etc. (sample).
 
init: function() {}
URL, successful reminder, the reminder of failure
This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
},
 
/**
* Analyzes the XML document in an array of JS objects
@param xmlDoc XML Document
* @returns {table} array of objects of the device
*/
parseResponse: {function (xmlDoc)}
    
var chElements = xmlDoc.getElementsByTagName ("channel");
   
channels of var = [];
  
Console.log (chElements.Length);
  
for (var i = 0; i)< chelements.length;="">
    
var channel = {};
   
for (var j = 0; j)< chelements[i].childnodes.length;="">
    
var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
            
If (node.nodeType! = 1) {//not an element node}
continue;
}
       
Channel [node. TagName] = node.textContent;
}
   
Channels.push (Channel);
}
Console.log (Channels.Length);
return the strings;
},
 
/**
Manages the response and displays the data from device web app
@param xmlDoc
*/
responseHandler: {function (xmlDoc)}
  
var channel = this.parseResponse (xmlDoc);
var markup = "";
   
for (i = 0; i< channels.length;="">
   
markup += this.generateHTMLMarkup (i, channels [i]);
}
document.getElementById("accordian").innerHTML = mark-up;
},
 
/**
Generates HTML tags to insert in to the DOM Web App.
* @index i, index of the device
@param device, device object
*/
/*
generateHTMLMarkup: function (i, channel) {}
  
var str ="";
"Str += '.


' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
"mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
"" Str += "" + channel ['name'] + ' ";
"Str += '.
";
"Str += '.
";
"Str += '.
"+" id: "+ channel ['id'] +" ' "
";
"Str += '.
"+" type: "+ channel ['type'] +" ' "
";
"Str += '.
"+" language: "+ channel ['language'] +" ' "
";
"Str += '.
«+ "bandwidth:" + "fast" channel + "»»
";
"Str += '.
"+" cellnapid: "+ channel ["cellnapid"] +". "
";
"Str += '.
«+ ' link: '+'start the video »»
";
"Str += '.
";
return str;
},*/
generateHTMLMarkup: function (i, channel) {}
   
var str ="";
"Str += '.
";
str +=  "" +
"" + channel ['name'] + ""+""
";
"Str += '.
«+ ' link: '+'start the video »»
";
     
return str;

},
 
failureHandler: {function (reason)}
document.getElementById("accordian").innerHTML = "could not get XML document.
'+ reason;
},
 
/**
Retrieves a resource XML in the given URL using XMLHttpRequest.
@param url URL of the XML resource to retrieve
@param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
@param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
*/

Connect: {function (url, successCb, failCb)
  
var XMLHTTP = new XMLHttpRequest();
  
XMLHTTP. Open ("GET", url, true);

xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
  
var that = this;
XMLHTTP.onreadystatechange = function() {}
   
If (xmlhttp.readyState == 4) {}
    
If (XMLHTTP. Status == 200) {}
     
{if (!) XMLHTTP.responseXML)}
try {}
If server has not responded with good an XML MIME type.
var domParser = new DOMParser();
var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
       
successCb.call (that, xmlDoc);
       
} catch (e) {}
failCb.call (, "answer was not in an XML format.");
}
          
} else {}
successCb.call (that, xmlhttp.responseXML);
}
} else {}
failCb.call (this, "connection failed: status"+ xmlhttp.status ");
}
}
};
XMLHTTP. Send();
}
};

Please see the content in main.js is fully analyzed.

Forward for the solution to my request all members of the community...

Tags: BlackBerry Developers

Similar Questions

  • Impossible to turn on the virtual machine with the following error: could not open the disk ' / path/to/vmdk-0001.vmdk ' or one of the Flash disk it depends on. Reason: Broken pipe.

    After the movement of virtual machines in VmWare Server 2 for ESX 4i, I get this error when you try to start the virtual machine:

    Impossible to turn on the virtual machine with the following error: could not open the disc

    "/ path/to/vmdk-0001.vmdk" or one of the Flash disk it depends on.

    Reason: Broken pipe.

    Anyone's idea what is the problem here?

    How did you move virtual machines?

    Did you use the converter (https://www.vmware.com/tryvmware/?p=converter)

    Otherwise try converter

  • The connection has failed. Limited connectivity. Adapter problem

    Hello

    I use an Acer Aspire One Laptop that suddenly started running very slowly and taking a lot of time to stop and restart. I want to update all the drivers and software malware but cannot currently get online.

    When connecting to my usual wireless network I get the error: "the connection has failed. This computer currently has limited NETWORKNAME connectivity. "

    If I click on "solve problems" the end result is "it could be a problem with the driver for the wireless network adapter".

    Connection via an ethernet cable is not possible.

    If I run ipconfig/all, I get this:

    Suffix main Dns: (empty)
    Node type: hybrid
    Active IP routing: no
    WINS proxy enabled: no

    Card tunnel Teredo Tunneling Pseudo-Interface

    State of the media: Media disconnected
    Suffix the connection-specific DNS: (empty)
    Description: Teredo tunneling Pseudo-Interface
    Physical address: 00-00-00-00-00-00-00-E0
    DHCP enabled: no
    Autoconfiguration enabled: Yes

    Grateful for any advice.

    Thank you very much
    Sam

    Hello Sam,.

    It seems that this may be a problem with your network driver, may you please follow the steps below.

    How can I troubleshoot network card?

    http://Windows.Microsoft.com/en-GB/Windows/fix-network-adapter-problems

    If you perform the steps on which solves your problem with internet and your computer is still slow, I recommend you to install and run a scan with the following programs:

    Malwarebytes Anti-Malware, Junkware removal tool and AdwCleaner.

    Thank you.

  • DRM-61026: cannot create the session of the user for the following reason: the connection has failed. User name or password.

    Im very new to Oracle DRM and Im trying to get the configuration of the application on the Windows Server that is running SQL Server 2008.  When I try to connect to the Web Client I get this error.

    DRM-61026: cannot create the session of the user for the following reason: the connection has failed. User name or password.

    Can you please help

    The problem is solved, reinstalled DRM and recreated the repository. the password has a symbol that causes the problem, @.

  • The connection has failed the installer of Flash Player on Mac for Safari

    I'm Mac OS 10.10.3 (Yosemite) on a MacBook Air. Try to install the updated release of Flash Player for use in Safari 8.0.8 (the latest version). Always get the message "Connection lost" (see photo below) when I run the installation program. I uninstalled previous versions of Flash Player and restarted my computer to run the installer again. I always get the same message "failed to connect". Because I tried all the stuff I can find on this forum, is there any help, that I can do things.

    Vincent

    Flash player error message.jpg

    In fact, this answer has not quite help me. However, I decided to restart in safe MODE (by pressing the SHIFT key at startup). It worked! I was finally able to install the new version of Flash Player.

  • A connection to the server has failed. (status = 403) error

    Hello

    I created an application with ADF security. When a user is redirected to the login.jspx page, if he clicks on tabs on the menu bar (each of whom is jspx pages), he throws a pop up with the following error message.

    "A connection to the server failed. (Status = 403) »

    Is someone can you please tell me where the problem lies.

    Concerning
    APOORVA

    Hi Apoorva,

    Is there a way you can use the EL expression #{securityContext.authenticated} in your template?

    As you can see in http://docs.oracle.com/cd/E16162_01/web.1112/e16182/adding_security.htm#BGBIFHDF teturns true if the user is logged on and returns false if the user is not connected, then maybe it can help you hide or redirect these links depending on whether the user is already logged in or not. A way to redirect an af:goLink using a clove of support.

    Thank you
    Cree

  • Discoverer and the connection has failed

    Hello

    I try to incorporate discoverer 10.1.2.2 with Ebiz R12. I finished the whole integration. When I try to connect using http://nomh remove: port/discoverer plus, I get the below error.

    A connection error has occurred.
    -Unable to connect to the database - unable to connect to the Oracle Applications database: name of user and password invalid

    After investigation, I found that opmn/newspapers/discoverer in ~ SessionServer ~ 1 entry below is there.

    SECURITY_APPL_LOGIN_FAILED

    I have validated my password for comments. It is very good.

    SQL > SELECT fnd_web_sec.validate_login ('GUEST', 'ORACLE') FROM dual;

    FND_WEB_SEC. VALIDATE_LOGIN ('GUEST', 'ORACLE')
    --------------------------------------------------------------------------------
    THERE

    I also have a request patch 6357481 . Even I am getting the same error of discoverer Admin

    Please help me solve.

    Kind regards
    Vish

    Hello

    You you run Applications 11i in safe mode? (Check in $APPL_TOP/admin /_.xml for s_appserverid_authentication the SECURE value)

    If you are, then you must move the .dbc files in the FND_SECURE directory where you connect with the discoverer. Look at this link for more details.

    Rod West

  • "The connection has failed. Could not complete the installation. »

    Try an install of Firefox.  AVG is disabled as well as AdAware, Malware, etc.  Do not know how to proceed.

    Download the Adobe Flash Player installer directly by clicking on the one (or two) of the links below and selecting ' save link as.

    Flash Player ActiveX (Internet Explorer)

    Flash Player plug-in (all other browsers)

    Save the install (s) in your downloads folder.

    Reset.

    Before opening anything else, go to your downloads folder, and run the install (s).

  • The connection has failed in planning, workspace

    Hello

    A few times we are unable to connect and when I see, then I found shared services has stopped and we cannot restart because I tried twice.

    The error message "You must provide a valid user name and password to log in the system" when you connect to the workspace.

    Any suggestion?

    Usually, the openldap db is corrupted if it was not properly off as a server crash or the process crashed.
    It is not uncommon so he can get corrupt, at least they have finally got rid of it in version 11.1.2

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • error: could not write the destination file (1 003)

    I am trying to export 40 photos of Photos.  I just installed OX El Capitan.  Only 13 of them get downloadable.  For the rest, I get this message: error: could not write the destination file (1 003)

    I tried to manually fix the library but still does not work (command + option + opening photos).

    And I do not have a backup on icloud photo library I have a backup on an external drive...

    You try to export the originals of your photos or revised versions?

    When you try to export photos to?

    You try to export to a folder on your system drive or a folder on an external drive?  If an external drive, which is the file system? And how the player is connected?

    You have permissions to write to the folder, when you export to?

  • Google Cloud Print setup - impossible to analyze the capabilities of the printer

    I am trying to add my CP1525nw to Google Cloud Print as a Cloud, and not as a LOCAL printer printer, however every time that I add my eprint email I get the following message. "Impossible to analyze the capabilities of the printer" - I tried for public and private use for eprint settings with no luck.

    Any help would be greatly appreciated.  I tried the reset email with no luck...

    EDIT - 01/04/11:

    I chatted with HP support, and although the representative was extremely courteous, they could not help me.  The support agent assured me that the matter would be taken at a higher level and looked so I hope that we can have a resolution here shortly.

    EDIT - 04/04/11:

    Received a response from the original HP rep that I chatted with online.  In short, it was not able to find a solution and States, that the question will be sent upwards to the highest level of technical support from HP...  We shall see.

    EDIT - 05/25/11:

    After 2 months of waiting, HP has corrected the problem.  Don't forget to upgrade to the latest firmware and check all the settings before continuing.

    The fix came from the side server - this defiinitely had nothing to do with the firmware.  I've updated on Monday for the latest on the HP website and it was still not working.   The gentlemen of tech support that helped me sent me an email a few hours after we talked, saying the sea a fix was to come.

    Nevertheless, I am happy without worrying how the fix is here!

    It took only 2 months to fix, but I'm glad it is.

  • Impossible to analyze the eve: Please help

    Impossible to analyze the day before: / applications/adobe dreamweaver 2014.1/configuration/dialogs/eve/titanoptionaldialog.eve cc

    Help, please

    Hello

    Please, try the following:

    1. Force to leave Dreamweaver so its opening.
    2. Please go to/applications/adobe dreamweaver 2014.1/configuration/dialogs/eve cc location
    3. Take backup of the titanoptionaldialog.eve file and move it to the trash. Remove it from the trash as well.
    4. Restart the DW and check if it works.

    If that don't work then please uninstall and re-install Dreamweaver (also remove preferences) and then check.

    Concerning

    Vivek

  • Impossible to restore the connection to a network drive

    I had to do a fresh install of XP Pro on a CPU in my network.  The server is windows 2000.

    I see the drive (H) network of the central unit, but I am unable to connect.
    I received an error message on impossible to restore the connection.
    I'm not sure what other details that I would need to provide the Forum to ask for the help that I need.
    Any suggestions?

    Check the permissions of the user against the share (network drive).

    Delete the drive mapping, and then try again.

  • My Mac crashed and I had to reinstall everything. Photoshop keeps giving me the following error message, even after multiple uninstalls and reinstalls: error 16. It is impossible to get support from adobe - no one to call. It's for Photoshop 13.0.6 and

    My Mac crashed and I had to reinstall everything. Photoshop keeps giving me the following error message, even after multiple uninstalls and reinstalls: error 16. It is impossible to get support from adobe - no one to call. It's for Photoshop 13.0.6 and Mac Os 10.10.5 help please. Please respond by email to [email protected]

    I got this error 16 experience on my Macbook. The permissions for the Application Support folder have been changed.

    A simple fix Terminal can take care of that.

    Open Terminal (you can just tap Terminal in Spotlight to find it).

    Copy and paste this command in Terminal: sudo chmod-r 777 library/Application\ Support / Adobe

    Press enter, give your password if requested, and then try again. You may need to restart your Mac.

    Gene

  • Impossible to create capture instant for VM1, error-3941 (create the snapshot has failed)

    I vSphere 4.0.0 208111 using VDR 1.1.0.707 appliance for backup of a Windows Server 2003 SP2 with VMware tools installed (including the VSS component).

    I am unable to back up a VM, but can save all other virtual machines.

    Have tried to re - install VMware tools, ensuring Windows VSS patches are up to date.

    I can do a ntbackup to system within the virtual machine with success status.

    Impossible to find someone else suffer the same error with-3491, create the snapshot has failed.

    Any ideas?

    Paul

    To simulate a VDR initiated snapshot, try a manual snapshot of the virtual machine and see if it passes or fails.  If it fails, then that explains the error 3941.  Be sure to uncheck the memory status and check the comments of quiesce file system option during an attempt of the manual snapshot because it will mimic the snapshot operation that initiates the VDR.

Maybe you are looking for

  • Equipment maintenance videos

    It is the best tool provided by HP for users who want to DIY.  Select the desired series and watch the video to understand how remove and replace a part. http://h20181.www2.HP.com/plmcontent/NACSC/SML/ ~ James H

  • I want to add memory

    Hi guys!On my system, installed memory seems Hynix 4 GB (1 slot)I want to buy another model to Advise 4 Gb. that precisely fits and is paired with the first module.Thank you. HP p6-2000ru H0B97EA #ACB

  • Save the table in the file of the image - error 6

    I have problems saving a table control in a file photo.  Get error 6 - generic file i/o error.  Any thoughts?  Criterion VI attached. Thank you.

  • Acer Aspire V5 - 122P: Windows 8 Local password recovery or boot from USB

    Hello world Really need help. I fear that I will lose all my data on my hard disk to get my computer working again. I don't know how, but somehow the password to logon Windows 8 was changed. I can't do anything even if I'm in the advanced recovery op

  • interrupting playback

    Hello system play no sound after connecting to internet.not even notification sounds are just heard.i get a signal interrupted as sound.what can do?