AJAX troubles after the Beta 3

Hello

I recently installed the Beta 3 SDK. After which, the widget that I built under Beta 2 stops working. After that some digging, it seems that the piece that broke is the Ajax requests.

The error:

The answer comes back with an error 500 and a responseText telling me the url is not in my config.xml file when it is.

Ajax are requested from a server that renders the XML based on the GET parameters in the URL. The server runs a J2EE application, xml is rendered through JSP pages.

The MDS Simulator is running. The browser in the Simulator is able to connect to Web sites.

As a basic test, I created a simple widget to make an ajax, request a service and view the responseText on-screen. The request is made to the following address:

http://windev3:8080/WebServiceConsumer/MobileWebService.do

The request is made as follows, the runDiagnostics is connected to an onclick event of a button:

var req;

function runDiagnostics() {   try {      var url = "http://windev3:8080/WebServiceConsumer/MobileWebService.do?action=runDiagnostics&pin=2100000a";      req = new XMLHttpRequest();      req.open("GET", url, true);      req.onreadystatechange = handleResponse;      req.send(null);   } catch(e) {        alert('Run Exception: ' + e.name + '; ' + e.message);   }}

function handleResponse() {   try {      displayOutput("Ready state is " +req.readyState);      if (req.readyState == 4) {         displayOutput(req.status);         if (req.status == 200) {            displayOutput("Response Text: " + req.responseText);         } else {            displayOutput("Error: " + req.statusText + " " + req.responseText);         }      }      displayOutput("Returning from handler");   } catch(e) {       alert('handleResponse exception: ' + e.name + '; ' + e.message);   }}

The server returns the text with diagnostic information. When you run the widget code in a regular web browser (Firefox), everything works as expected. However, when I run it as a widget in the Simulator, it fails. I have tried all the following settings in my config.xml file

Attempt 1: Fails with the above error

All the s added to the elements of

Attempt 2: Fails with the above error

No s added to the elements of

Attempt 3: fails with the above error

http://192.168.2.203"/ >

No s added to the elements of

Attempt 4: fails with the above error

http://192.168.2.203:8080"/ >

No s added to the elements of

Attempt 5: fails with the above error

No s added to the elements of

Attempt 6: under-Achiever

The ready state is 4, the response code is 200. the response text is "null" the first time I demand, but by demand of the 4th or 5th saw the text you want. I actually had this problem while working on the basis of Beta 2.

Local environment:

Widget Packager Beta 3 SDK

MDS/Email 4.1.4 Simulator

Java 1.6

More recent simulators 9700 and 9500

Windows Vista Business 32-bit

Server environment:

Windows Vista Business 32-bit

Java 1.6

Sun GlassFish 2.1

Any help is greatly appreciated.

Hi bbswede,

Thanks for the reply. It made me think. We do not have a proxy server, but we have a domain. After trying a few settings, it seems that the use of the full domain name WITH works of port number.

For future people who may read this thread. We consider that the remote resource, you are trying to access is on a specific port. I don't know if this applies when you use the default of 80.

http://computerName.domain.com:port - works

http.//xxx.xxx.xxx.xxx:port - works

http://computerName.domain.com - does not work

http.//xxx.xxx.xxx.xxx- does not work

computer name - the name of the network to a computer

domain.com - is the domain that the computer is turned on

xxx.xxx.xxx.xxx IP address of the resource you are trying to use

A few final questions for the RIM team. Including the port in the will be a continuation of the practice releases in the future?

Is the responseText random null I get associated with this or some other problem? I should start a new thread with this question.

Thank you

Tags: BlackBerry Developers

Similar Questions

  • On this forum, what will happen after the beta period?

    I was wondering what will happen on this forum after the beta period. I think that there are a number of options:
    -the forum will be deleted or at least is more accessible for participants of the beta
    -the forum will stay for a longer period of time, perhaps unalterable, but remains limited to the participants of the beta product and management
    -the forum is open to the public, read-only or read / write

    What happens on the forum may be long term help people decide what and how they post here.

    Thank you

    Hi, Wilfred,

    Excellent question. If we continue to make great questions in the forum like this, we can (and probably) turn this into a public forum with all the threads of discussion held. We will probably remove the beta announcements and also remove/modify entries that are specific to beta, but keep the rest for future participants to take advantage.

    This is all the more reason to keep this forum for discussions, questions, exchange of ideas and comments.

    Thank you

    Joe Huang

  • Library of photos after the beta

    I used the beta version of El Capitan, and today I've downgraded to usual El Capitan. The problem is that I can't use pictures. Only, it does not support my library and I can't use it. I tried to recover, but 95% it says error. So, what can I do? Y at - it an option to use my library with an older version of Photos or should I wait for the new OS?

    You may not use the Beta version of your library with the current stable version of MacOS X.

    If your library is a library of photos from iCloud, you can create a new library and make your Photo library system, then download from the library to iCloud.

    Or restore the version of your library from the backup you made before you upgrade to the beta version.  But if not, you will have to wait for the next update of the system.

    We are not supposed to discuss the beta versions of the software in these forums, so your question might soon disappear.

  • After the period of beta DPS

    Hello

    Please, let me know what happens after the beta period with regular users of Adobe ID?

    We will be able to access the https://publish.adobe.com/ portal and create projects, articles, collections and so on...

    What are the limitations in this new scenario?

    Concerning

    During the beta period, anyone with an Adobe ID can use tools to test products and workflows.

    Once the beta is closed, you will need to be a DPS customer to access the tools and workflows.

    Or, if a DPS customer add you to a project, you will have access through them (role) permissions they grant. This allows freelancers or agencies to be part of an workflow belonging to customers.

  • Update failure after the last Beta v32 downloads

    After the updated beta version 32, I am unable to download files.

    The status of the download hangs at about 1 second left each time.

    I'm behind a proxy at work, but the download of the file did not have a problem in the past.

    It's the recent9 b 32.0 and it has been fixed and will be in the build 32.0 then, probably the RC1 build 32.0 if normally such a fix would be a beta version as 32.0b10. The release is Tuesday next so little time. Type of topic: config location bar (address) and you can try to change the empty value of browser.safebrowsing.appRepURL in the meantime. An empty value does not work you can try https://sb-ssl.google.com/safebrowsing/clientreport/download?key=%GOOGLE_API_KEY%

    For not not reading the useful comments are bug / spam.
    Bug 1057764 - Download Manager regression in the update of FF32 beta 9

  • I tried to install the beta version of Firefox 11, after installing it says restart, well I reboot and it keeps asking me to reboot? then I completely remove Firefox and he always asks me to reboot? any help

    I tried to install the new beta of Firefox 11, when it was finished, he said that I had to reboot, so I rebooted and it asked me to restart again and again and again! then I deleted Firefox thinking I'll start with a blank slate, although he always asks me to restart any help?

    You can try to reboot after deleting the program Firefox (C:\Program Files\Mozilla Firefox\) folder.

    The beta version can be installed in a different program folder, you may need to check this.

  • I wonder if InDesign CC does a better job before kerning and after the dashes-n and m-dashes?

    I use InDesign CS6 but will move to CC soon. I wonder if InDesign CC does a better job before kerning and after the dashes-n and m-dashes? It seems unprofessional to have a complete space before and after, but it takes a lot of time to browse and kern each of them.

    If the font kerning between/em-quadratins is too tight, you could do your F/R to remove the space before/after and replace it with a thin after space.

    With Helv. Neue, when the paragraph style is the metric value when it is followed by a number, it is rather tight. Optics for the style of kerning setting seems to relieve that, giving a little more breath between dashes: on the left, the style is set on measurements, on the right is optical. Note that the most important effect is the half-quadratin before the number 8. The dash does not seem to suffer from this problem, regardless of the method of automatic kerning. But this half-quadratin is tight against the 8.

  • CS6 install on a Mac after running the beta version

    I try to install the version of Photoshop CS6 on a Mac Pro after running the beta for the last months and can not install because of a few remaining pieces of the beta. How can I remove all the pieces and parts of the beat just the installer of version release?

    This staring at me.

    I found the uninstall script and was able to remove the old preferences.

  • Remove the Beta profile after their release.

    I installed the beta profile once the GM of iOS 10 is out because I'm impatient so I was wondering if we can just go and delete the profile now? Just want to be sure and do not really want to opt for future beta wanted to just grab iOS 10 initially.

    You can delete or leave. It does not commit you to the next public beta.

  • Cannot upgrade to iOS last after being in the beta program

    I was in the beta of iOS, and now I am unable to update my iPad to the latest version of iOS. IPad 2 Air is currently on version 9.1 (13B5130b). Whenever I have unlock the iPad, I get a message saying "a new update of iOS is now available. Please update the iOS beta 9. ». Settings/general indicates a '1' for the software update; However, when I select it it says is "iOS 9.1 your software is up-to-date.

    I went to the Web site and removed program beta of the iPad and also deleted parameters. A newer version of the beta software had already been downloaded on the iPad, but not yet installed until it was removed from the program. As a result of the new version is already download, I went into settings/general/storage & use iCloud / Manage Storage and deleted. At this point, I did iCloud and iTunes backups on my Mac.

    Then, I started the iPad in Recovery Mode and started this process when you are connected to the Mac that contains the iTunes backup. He went through about a download of 15 minutes and then the control has been returned to iTunes and I would sit in the dialog containing the update and restore options, but neither button was active when they could not be selected.

    How can I get iOS 9.2 installed on my iPad? I am running out of ideas and don't see anything else in the communities of support that I have tried!

    Thanks to everyone to give feedback.

    See if this document of support helps. All iOS beta - Apple Support software

    This link also provides a list of FAQS. Check out as well. Otherwise you cannot discuss the public beta version here on the public forum. https://beta.Apple.com/SP/betaprogram/FAQ

  • Trouble using Photoshop cs 5.5 after the upgrade to Yosemite?

    I've recently upgraded to Yosemite and put in a new HD on my Macbook Pro. The rest of my Production Premium CS 5.5 works, with the exception of Photoshop. It opens, even did some things, but its features are very limited, can't do the simplest things such as changing the text of a layer. Ideas?

    Hi J L_447,

    You did you a new Photoshop CS5.5 installation after the upgrade to Yosemite?

    suggest you do a reinstall via this link:

    Download CS5.5 products

  • Adobe Pro update fails after the implementation of software restriction policies Cryptolocker - need to trouble

    Hello everyone

    As part of our protection against the virus Cryptolocker for the rapid spread, I added an object of group policy with strategies for Software Restriction against the execution of files in the temporary directory used by Cryptolocker:

    %AppData%\*.exe

    %AppData%\*\*.exe

    %LocalAppData%\*.exe

    %LocalAppData%\*\*.exe

    for example the directories %APPDATA%\microsoft\windows\sendto and %LocalAppData% variable and a level here

    I also blocked the executables to run within different programs 'zip '.

    I learned later (second hand) that Acrobat Pro and Adobe Flash updates have been blocked by this SRP.  They get an explicit message or fail with another error.  The update download correctly, but when you try to install from the system tray icon, it fails.

    If I'll find the downloaded file. MSP file (I have Acrobat Pro 10, so mine was in c:\program data\adobe\ARM\Acrobat_10.1.5) and click on 'Install', it installs successfully.

    We have an administrator is not restricted, but do account updates for people is not a good long-term solution.

    Can someone with experience with this please tell me if there is a specific executable or executables that I can 'whitelist' by adding to my strategy of Software Restriction as a file "without restriction."  The kicker with the 'white list', it's that I need to bless a specific executable (for example I can't quote a directory or give wildcards... There must be a path and the fully qualified name).

    NOTE: We have for most of the Windows 7 machines (no Win 7 is Vista have so the same user directory structure) and a mixture of Acrobat 9 Pro, X, XI

    Thank you very much in advance for your help.

    Updates, most is the MSI file. In all cases, you succeed to make manual updates of http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows. Download the most recent update (each update will tell you the necessary previous version where you can ignore some). Then perform updates in the order. Simply restart after the update is complete.

  • After the upgrade to El Capitan, my iMac is very slow.

    I've recently upgraded to El Capitan 10.11.3 on my iMac (Mid2011). I have a cyber-security ESET Pro installed 6.1.12.0. After the upgrade I have trouble with the speed of the m/c and the startup takes a lot of time. I can't use my Photos and export pictures to google reader. I tried to disable the antivirus change, not much. Thanks in advance for any help.

    Better to uninstall completely any anti-virus protection and all the apps 'cleaner '.

    most people here will agree that there is no need of these

    also make sure you have enough RAM 4 GB is really minimal.

    and look for updates for third-party applications that you have installed.

  • Caught in the trap in the beta?

    I have recently installed the OS Sierra GM on my mac, since the final version came on the app store, I try to download it and after installing it just guard appearing again on the mac App Store as if I had just downloaded. I always use the beta version? How can I get the final version? Should I try to download El Capitan first in the purchased tab?

    I always use the beta version?

    Check the  menu in the left corner of the main menu bar.

     > about this Mac.  The Committee of remarks always shows the version number of the system with a suffix "beta"?

    It should show "Version 10.12" without any added Beta.

  • Delete buttons do not work after the update of 10.11.16.

    Delete buttons do not work after the update of 10.11.16.  The delete button works if I pointed out and then delete, but not if I use the "back" button or try a removal of uniqueness.  It is a problem in all applications.  I tried it in textedit, search google chrome, safari search and find finder engine.  There seems to be a 'problem' of the keyboard' as far as I know nothing happened to my keyboard, IE the spilt coffee, that recent warming has been updated to 10.11.16.  I use an iMac (27-inch, late 2009) with i5 clocked at 2.66 GHz, running OS X El Capitan.

    Any suggestion would be appreciated.

    Greetings, r.fromstouffville!

    It seems that the 'Delete' on your iMac keyboard key works as it is supposed to be after update to OS X 10.11.6. I'll be happy to help you get these keys working again.

    Reset of the controller management system (SCM) on your Mac - sometimes it's a matter of simply resetting your iMac SMC. Open this article and scroll down to "Reset the SMC on Mac desktop" section and follow the steps there.

    Try safe mode if your Mac does not start -even if your iMac, safe mode startup make sure it starts successfully.

    How to test one question in another user on your Mac account - use this article if restarting in safe mode did not help.

    Use Time Machine to back up or restore your Mac - if your keyboard does not always work as it should, I recommend you save your iMac to ensure that your personal data are safe. It is always better "to have" a backup for a backup "need."

    On OS X Recovery - if you have reached this point, you encounter the same problem in a test user account, that would mean it is a system-w. Start your iMac into Recovery Mode and reinstall the operating system.

    Thank you for the communities of Apple Support!

Maybe you are looking for