HTTP - Error 502 gateway connection
Hello
In an application I'm developing with java and SDK v. 7.0.0, I am trying to connect via http to a server that is located on a private network. The code is pretty basic:
String url = ""http://site.bl.company.net/login.asp;deviceside=true "; "
ConFactory ConnectionFactory = null;
try {}
conFactory = new ConnectionFactory();
conFactory.setTimeLimit (1000);
HttpConnection conn = null;
Conn = conFactory.getConnection (url) .getConnection () (HttpConnection);
conn.setRequestMethod (HttpConnection.GET);
conn.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
RCODE int;
RCODE = conn.getResponseCode ();
If (rcode! = 200)
{
Error ("failed server to ' + this.urlStr + 'code HTTP' + String.valueOf (rcode));
}
}
catch (Throwable t)
{
Error ("connection error:"+ t.getMessage () ');
return;
}
The url is visible inside the company VPN. Phones, when the 3G, through BES to reach the VPN. If I type the url in the browser application when, the 3G, it can very well be reached. However, the app in 3G, the connection fails with code 502 (gateway error). We looked through newspapers and it seems that the request does not reach BES; where it might be failing?
The connection works perfectly fine when the phone is connected in wifi on an access point in the VPN. It works very well to other URLS not on VPN under 3G and wifi.
Any help/advice/suggestions/questions would be greatly appreciated!
Thank you.
If you run in a BES environment, and want to access something that's within the corporate network, you must use the suffix
« ; deviceside = false '.
otherwise, you are gong through the gateway to mobile operators, who of course has no access to the internal network.
See here for more information:
But there is a curve ball here.
Once an application has attempted to access a network located outside the corporate network (like you did with ";) deviceside = true'), that the request is normally prohibited access URL within the network. It is the problem of split-pipe. The idea is that if an application could open connections inside and outside of the firewall, it could copy the data from the corporate network to the outside. It is so restricted.
So, if you change your current application to use '; deviceside = false ' and then try on a business device that already has had your application under running with. " deviceside = true', it will probably fail the problem of split pipe.
To work around this, you have three options:
(a) wipe the device and reinstall the OS and application
(b) to obtain your BES administrator to allow the app to access both inside and outside
(c) create a new application.
Tags: BlackBerry Developers
Similar Questions
-
problems of the DRC of vista for windows machine 7
I have 2 computers running on a homegroup. When you try to connect from my vista desktop to my laptop windows 7 through the DRC, I get the error "unable to connect to the gateway terminal server." Can I remotely from the laptop to the desktop vista end. I the DRC 7 is installed on the desktop and tried to connect using the IP as well as the name of the machine but still no joy.
can someone shed light on this please?
Hello
Temporarily disable the security software on both computers and check if it makes a difference.
http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software
Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
-
Hello
I have a BB (8120, OS 4.3) to Orange (UK) and when I try to download my server application using https URL I get error 502 with the following message:
Http 502 error: bad gateway
I checked the URL of my computer and its URL is valid.
If I try to navigate to a URL HTTP and HTTPS not everything works and I can download my application.
Does anyone have an idea, what the problem?
Problem has been resolved once I managed to add the BB browser to the device.
-
Internet does not work, make HTTP: error 12007 connection
* original title - error 12007 I need help! *
I have a Windows XP with Service Pack 3 internet does not work. I got tired, he works with this http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/error-12007-the-server-name-or-address-could-not/2cbfb8a8-8970-4aaf-843c-1c781dc8053f post, but when I tried it on my netbook my windows update comes out of @%SystemRoot%\system32\shell32.dll,-22580
I have an idea I have a missing or corrupted WinSock, but I'm not sure.
Diagnosis of last run time: 23/01/12-18:52:53
WinSock diagnostic
WinSock status
attmpting error information to validate the WinSock providers database: 2
error not all entries could be found in the basic services provider winsock catalog. A reboot is required.
user redirection of information in support of the appeal.
user redirection of information in support of the appeal.
Diagnosis of network adapter
Network location detection
Info
Using the Internet connection at home
Identification of network adapter
Info
Network connection: name = Wireless 3 network, device = Broadcom 802. 1 1 b/g WLAN, LAN = Media Type, type SubMedia = wireless
Info
Network connection: name = connection to the network of Local 2, device = Atheros AR8132 PCI - E Fast Ethernet Controller, Media Type = LAN, type SubMedia LAN =
Info
Connections Ethernet and wireless available, ask the user for selection
action
User input required: select network connection
Info
WiFi selected
State of the network adapter
Info
The network connection status: connected
HTTP, HTTPS, FTP Diagnostic
HTTP, HTTPS, FTP connectivity
warn
HTTP: Error 12007 connecting to www.microsoft.com: the server name or address cannot be resolved
warn
HTTPS: Error 12007 connecting to www.microsoft.com: the server name or address cannot be resolved
warn
FTP (passive): error 12007 connecting to FTP.Microsoft.com: the server name or address cannot be resolved
warn
HTTP: Error 12007 connecting to www.hotmail.com: the server name or address cannot be resolved
warn
HTTPS: Error 12007 connecting to www.passport.net: the server name or address cannot be resolved
warn
FTP (active): error 12007 connecting to FTP.Microsoft.com: the server name or address cannot be resolved
error
Could not make an HTTP connection.
error
Could not make an HTTPS connection.
error
Could not make an FTP connection.
Hello
You can refer to the suggestion provided by Divya the similar thread with a possible solution:
-
Hi all
I am trying to Setup VMware SRM 4.1 groups. I had configured hitachi usp vm storage based array replication in both sites.
Now when I try to pair the two sites vCenter, I get an error at the end of the phase of matching as message "the remote server returned an error: (502) Bad Gateway ' on the protected site. But surprisingly, I am able to match both the vCenters on the recovering site.
Please help me to get the problem.
Thanks in advance,
Sanjeev
Run telnet server vCenter/SRM protected site to the recovering site server vCenter/SRM:
Telnet IP_ADDRESS 80
Telnet IP_ADDRESS 443
You succeed?
-
Original title: Error 502
How to fix "an internal error occurred in the initialization stage. The application cannot be loaded, please, seller contact application, Error 502 "after installing Yahoo Messenger
Hello
1. Once you get this error?
2 are connected to any computer in the domain?
3. have you made changes on the computer before this problem?
I suggest you try to uninstall and reinstall Yahoo Messenger and check if it helps.
Uninstall a program:
http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program
Install a program: http://windows.microsoft.com/en-US/windows-vista/Install-a-program
If uninstalling and reinstalling Yahoo Messenger did not help, then it would be better to post the same question in community Yahoo for assistance.
Community of Yahoo: http://help.yahoo.com/l/us/yahoo/helpcentral/community_index.html
Hope the information is useful.
-
I get the error message "Untrusted connection" for a site I visit every day with the only option being "get out me of here!" I use Firefox version 39.0 and have Windows 8.1. I found a thread indicating how to solve this problem by removing the file cert8.db. I have used this method before and it worked then but it didn't this time. Tried to look elsewhere for help, but what I saw spoke of the time / date being off. However mine are correct sentence. Any help would be much appreciated.
https://support.Mozilla.org/en-us/KB/server-not-found-connection-problem
https://support.Mozilla.org/en-us/KB/Firefox-cant-load-websites-other-browsers-can
https://support.Mozilla.org/en-us/KB/secure-connection-failed-error-message
https://support.Mozilla.org/en-us/KB/connection-untrusted-error-message
http://KB.mozillazine.org/Error_loading_websites
This connection is Untrusted is sometimes caused because the
the computer system clock is wrong. Check the time / date / time settings of the area. -
EliteBook 820 g3: fatal error in HP connection manager
Hello
I just bought this laptop and having a fatal error "Object Reference is not set to an instance of an object" whenever I start the HP connection manager.
I need this application to subscribe to my HP Mobile Connect Pro service...
I try to follow the solution being http://h30434.www3.hp.com/t5/Notebook-Software-and-How-To-Questions/Fatal-error-in-HP-Connection-Man... in vain.
Any help / suggestion to solve the problem?
Thank you.
For those who have the same problem and who can not susbcibe to service, just ignore the error popup and continue the sign-up process (make sure you have all of the displayed window). Normally, you must complete the process and after reboot, connect to the service using the service of standard network provided by windows 7 instead of the applications of the buggy HP connection manager.
-
Camera IP IMAQdx: Error 0xBFF69035 that the camera returned an unknown HTTP error
Hello
Thanks to the detailed advice to http://forums.ni.com/t5/Machine-Vision/Do-IMAQdx-and-NI-hardware-support-GigE-Vision-2-0/m-p/3164373... we decided to move from GigE cameras (Basler BIP2-1920-30 c) IP cameras to reduce CPU load.
Unfortunately, I cannot acquire images from the camera via IMAQdx. When I click on "Snap" NI Max, I get "error 0xBFF69035 the camera returned an unknown HTTP error. This could be the cause? (The only other thread, that I found is http://forums.ni.com/t5/LabVIEW/camera-return-to-unknown-HTTP-error-in-Ni-Max-during-the-IP-axis/td-... but the steps proposed refers to GigE documentation that is not relevant)
Notes:
- The camera is connected directly on the LAN 2 port in the SMU (SMU-8135) controller.
- I can ping the camera.
- I can see the video stream from the camera via its web interface (using Internet Explorer to access http://169.254.75.137/webapp ).
- OR MAX detects the camera, but he doesn't seem to let me set up properly. If I enter any number in the 'width' or 'Height', she gets has forced 1 - this behavior seems fishy.
Thanks in advance!
Hi BlueCheese,
Thanks for your suggestions. It turns out that the IP settings are fine (although I still like to set static IP addresses for the camera and the PXI controller before you deploy the system).
I found the system log unit of the Basler, who gets a new entry whenever I try to start an acquisition of NI MAX: user.err mjpeg: {2714} HTTP error 503: selected stream has wrong type of video (1! = 5). Then I discovered that (i) the camera default H.264 and (ii) IMAQdx only supports MJPEG, H.264 not.
Setting the unit to use JPEG compression solves the problem.
-
Skype does not work after upgrade. Gets error "Skype cannot connect.
Hello
I use Skype for a long time, a few days ago, I got an update from Skype, so I installed the upgrade. Since then when I log in, I get error "Skype cannot connect. Will you please reply back as soon as POSSIBLE because I need this very urgent application.
Thank you best regards &,.
Ravindra
Hello
I'm sorry, but you need to ask the Skype community for assistance on problems with Skype.
"How can I contact Skype Customer Service?
https://support.Skype.com/en/FAQ/FA1170/how-can-i-contact-Skype-customer-service
See you soon.
-
My printer worked fine hp w / my running vista, I upgraded to a dell w/windows 7 and now the printer has an error message "no connection". My dell says I'm good to go?
HelloYou can follow the links that may help you solve your problem below:Why can I not print?Printer in Windows problems -
I need to update my pc, I have windows xp home edition. I had sp2 on my computer, but my system crashed almost and I had to do a total system recovery and it removed my files. Tried to download again, but I can't. I get error could not connect to the server. I have no virus or worms and checked each article are saying sp1 kb. I can't update the Explorer or anything like that
Follow the links in this article to download the Service Packs from Microsoft. You can download on another computer if necessary and move them to your machine to update.
"How to obtain the latest Windows XP service pack"
<>http://support.Microsoft.com/kb/322389 >HTH,
JW -
See title
XP behaves a little differently from Windows 7 or Vista. The first edition (before Service Pack 1) had a lot of questions and by releasing SP1, you could not make it back in the original XP. There are four packs of service out there for XP so you can search the Internet and make sure that the latest service pack is on your machine. http://support.Microsoft.com/kb/322389
Assuming that you have the latest, the firewall is available mainly to keep people on the internet to take advantage of open ports and such that your application can use for internet communication, so when you configure firewall rules, you have set up for most of the inbound rules. If there are viruses on your machine, you can configure outgoing rules, but it would be better to run a fix for the virus.
Knowing that the firewall is designed to protect you from the internet, it might be useful to check if the firewall you have installed is sophisticated enough to enable rules that block your machine to go to the internet (outbound rules).
But your problem is 12029 who is likely related to internet explore. You can try a question that was answered on this subject http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/error-12029-in-ie-8/47a865dc-3237-4e07-84a9-d9fb20a766e3
1. open IE/tools/options/advanced /.
2 - Press the Reset button
also your LAN settings may have been tampered with, so open the settings of the LAN to Internet Explorer/Tools/Options/connections/Lan Settings and disable everything that you see here:
-
What is the meaning when it shows the HTTP errors
What is the meaning when it shows the HTTP errors on my web page. Thks
There are so many different HTTP errors as described in the following page that it is difficult to answer your question without the specific errors that you receive as well as other important information. Many HTTP errors indicate a problem on the server you are trying to connect to and you have no control over them, or a problem on your system. again, this depends on the specific error.
List of HTTP status codes
http://en.Wikipedia.org/wiki/List_of_HTTP_status_codesYou can also consult the article below in order to provide enough information if you receive a better response and possible solution. It is useful to know the exact version of Windows Vista (including 32-bit or 64-bit) and service pack level, the brand and model of your computer, that's what you try to do the legwork, which program (browser and version) you are using and the results you receive, including any message (error) you can receive Word for Word.
How to ask a question
http://support.Microsoft.com/kb/555375Kind regards
-
I installed Office 2010 on my computer with Vista and now can't connect via cable or wireless. I get the error message: unknown connection status. The dependency service or group was able to start. I know that the router and the wireless work. I tried several of the mentioned patches, but nothing has worked. My Verizon card works.
Hello Chelen,
I suggest you visit this Microsoft TechNet thread where they discuss the same problem you are having:This response may be useful:"I also had the same problem and the solution above does not work.My problem was caused by corruption in the TCP/IP stack
To fix, you need to run a command as administrator prompt
Start > all programs > Accessories > prompt (right click and run as administrator)
At the command prompt, type: netsh winsock reset
"Ignore all errors, restart and voila'.
Maybe you are looking for
-
Hallo from Germany, today in 2 weeks, we will begin our roadtrip across California, Nevada... and my plan is to buy a Apple Watch series 2 as a birthday gift and a memory for me :-) Now, I saw in the online store that I'm not able to take one in a st
-
How to stop additional instances of my Firefox home page to open when I click the links?
Often, when I click on a link in an e-mail or web page, and Firefox is not yet running, not only opens this web page linked, but also an additional instance of my home page opens. I would like to avoid this.
-
Do the legwork for a friend who is not a good comand of the English language and in some sort got his laptop in the administrator password screen. The number that appears after 3 trials is - 56463094. Someone has an answer on how to get through th
-
Get the string inside parentheses - to help scan from string
I have a very basic question here. I would like to extract a part of a chain that is inside the brackets (example: I work with [National Instruments]). In the string, I want to extract only of National Instruments, I know logical extraction in findin
-
I can print in "Portrait" mode but not in "Landscape" mode! " Help!
Printer prints documents in Portrait mode, but not in the landscape!