Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry® Enterprise Solution

Reply
New Contributor
fdittz
Posts: 3
Registered: 11-19-2010

Getting HTTP 400 - Bad Request

Hi all.

 

We're having some trouble while trying to access our mobile application (running in SAP WebAS java) via the native browser. Every time we make an AJAX call (XHR), using the device (BES) or the simulator (MDS installed in my workstation) we get HTTP/1.0 400 Bad Request, and looking at the WebAS logs we find this exception with the following message:

 

 

HTTP request parsing and processing failed. HTTP error response [400 Bad Request] will be returned. 
com.sap.engine.services.httpserver.exceptions.HttpIllegalArgumentException: The time format is not valid.

 

 

Looking at the BES logs I also found we get some 400's while loading css and javascript files, however they seem to be retransmitted without further problems:

 

 

2010-11-18 18:15:50.666 BRST>:[2203]:<MDS-CS_S6004AS415_MDS-CS_6>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 20de5f55, USERID = u187b, CONNECTIONID = 736709289, DESTINATION = http://devportalsap.petrobras.com.br/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/po... HTTPTRANSMISSION = HTTP/1.0 400 Bad Request>
<2010-11-18 18:15:50.666 BRST>:[2203]:<MDS-CS_S6004AS415_MDS-CS_6>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 20de5f55, USERID = u187b, CONNECTIONID = 736709289, DESTINATION = http://devportalsap.petrobras.com.br/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/po... HTTPTRANSMISSION = [Headers Section]: 8 headers>

 

 

I think it may have to do with this retransmission, here is the log for the AJAX request (app.html makes the XHR call):

 

 

<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 20de5f55, USERID = u187b, CONNECTIONID = 736709296, DESTINATION = http://devportalsap.petrobras.com.br/irj/portalapps/br.com.petrobras.mobile.clientside/app.html?app=... HTTPTRANSMISSION = HTTP/1.0 400 Bad Request>
<2010-11-18 18:16:00.901 BRST>:[2608]:<MDS-CS_S6004AS415_MDS-CS_6>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 20de5f55, USERID = u187b, CONNECTIONID = 736709296, DESTINATION = http://mysite.com/irj/portalapps/br.com.mysite.mobile.clientside/app.html?app=Roteiro&timestamp=1, HTTPTRANSMISSION = [Headers Section]: 8 headers>

 

 

Any clues or possible solutions?

Thanks in advance!

 

Please use plain text.
Guru II
knottyrope
Posts: 22,215
Registered: 06-25-2008
My Carrier:

I am on AT&T. Please edit your Personal Profile with your DEVICE TYPE, DEVICE OS and Carrier

Re: Getting HTTP 400 - Bad Request

are you usiing the BlackBerry Browser?

 

KB16463 - How to change the default browser on a BlackBerry smartphone

Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info. BlackBerry Unlocking FAQ
Please use plain text.
New Contributor
fdittz
Posts: 3
Registered: 11-19-2010

Re: Getting HTTP 400 - Bad Request

[ Edited ]

Yes, I've tried using both browsers (Internet Browser and our company's), with the same results.

 

I forgot to mention it, but while accessing from the simulator using a simulated wi-fi connection we get no errors. It only happens when using 3G simulation (MDS), as well as using the physical BB (and thus the company's BES).

 

Thanks!

 

Please use plain text.
Guru II
knottyrope
Posts: 22,215
Registered: 06-25-2008
My Carrier:

I am on AT&T. Please edit your Personal Profile with your DEVICE TYPE, DEVICE OS and Carrier

Re: Getting HTTP 400 - Bad Request

can you try with an Ip address instead of a URL and see if it make a differenece with the BlackBerry browser?

Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info. BlackBerry Unlocking FAQ
Please use plain text.
New Member
massiBB
Posts: 1
Registered: 02-04-2012
My Carrier: tim

Re: Getting HTTP 400 - Bad Request

Hi,

I have the same problem, webapplication on SAP was and i gat a 400 bad request when the mds or bes try to get some images or a css, this problem not always happen, have you resolved your problem?

Can you help me?

 

I try also with ip address

Please use plain text.