Why is Javascript failing on larger Http requests?
I am developing a web page for mobile use. I am encountering problems while testing on a BB 8900 Edge v5.0.0.822
When the web page size is larger than 20KB (approx) all javascript on the page stops working. If I remove some content (any content) and bring the size below that amount, the javascript starts working again. This same page works fine all the time on 3 other BB models.
Javascript is enabled and working fine on other pages (and this page when I remove content). There is no downloading of photos or files involved.
Can anyone explain what the problem is here and how to get larger web pages to display.
Even the most basic javascript fails, such as a static alert('hello'); within script tags.
in case anyone else is curious about this. My best guess so far is that this relates to http://www.w3.org/TR/mobile-bp/#ddc which explains that a mobile site's 'Default Delivery Context' is meant to have a "Maximum Total Page Weight 20 kilobytes". But since most current mobile browsers are allowing larger pages, I am hoping there's a workaround for this for Blackberry. Any suggestions?
Similar Messages
-
File.upload on Air SDK for iOS devices failed to send http request to server.
I am trying to use ActionScript's File.upload to upload a file on Air SDK for iOS8 environment, but the File.upload does not work properly. No handler about the file upload is executed after File.upload is invoked, and no exception is caught. When I check the network traffic of the server side, I found that no http request even hit the server after File.upload is executed. The code snippet here is very simple.
private var file:File;
private var dir:File;
//This method is executed to create a file and upload it when the Upload Button is pressed.
protected function OnUploadButtonPressed(event:MouseEvent):void{
var str:String = 'This is test';
var imageBytes:ByteArray = new ByteArray();
for ( var i:int = 0; i < str.length; i++ ) {
imageBytes.writeByte( str.charCodeAt(i) );
try{
dir = File.applicationStorageDirectory
var now:Date = new Date();
var filename:String = "test" + now.seconds + now.milliseconds + ".txt";
file = dir.resolvePath( filename );
var stream:FileStream = new FileStream();
stream.open( file, FileMode.WRITE );
stream.writeBytes( imageBytes );
stream.close();
file.addEventListener( Event.COMPLETE, uploadComplete );
file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
file.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityError );
file.addEventListener(ErrorEvent.ERROR, someError);
file.addEventListener(ProgressEvent.PROGRESS, onProgress);
file.upload( new URLRequest("http://10.60.99.31/MyPath/fileUploadTest.do"));//This line does not work. No handler is executed. No http request hit the server side.
} catch( e:Error ) {
trace( e );
//Complete Handler
private function uploadComplete( event:Event ):void
trace( "Upload successful." );
//IOError handler
private function ioError( error:IOErrorEvent ):void
trace( "Upload failed: " + error.text );
//SecurityError handler
private function securityError(error:SecurityErrorEvent):void{
trace( "Security error:" + error.text );
//Other handler
private function someError(error:ErrorEvent):void{
trace("some error" + error.text);
//Progress handler
private function onProgress(event:ProgressEvent):void{
trace("progressHandler");
When executed on Air Simulator, it works fine as expected, and the file is successfully uploaded to the server. But When executed on iOS devices(in my case, iPad), as I explain early, no handler about the file upload is executed, and no the http request even hit the server. So I think the problem may be in the client side. It seems that the Air SDK for iOS just failed to send the http request for some reason.
To make my problem more clear, I list my environment below:
Development Environment: Windows7 (64bit) / Mac os 10.9.4 (Tested on OS platforms.)
IDE: Flash Builder 4.7
Air SDK: 3.8 / 16.0.0 (After I updated to the lastest Air SDK 16.0.0 , the problem still exists.)
Application Server: Tomcat7 + Spring
Target OS: iOS 8
I have been struggling for this for days. So I really appreciate it if anyone has any idea about this.
Thanks in advance.Hi bluewindice ,
As you have quoted ( ActionScript's File.upload does not work on Air SDK for iOS devices ) , this issue has been replicated at our end, and our team will be working on it.
Thanks,
Tushar -
Why does javascript fail to work at gmail on IBM AIX 5.3 and 6.1 systesms?
Sorry about asking this question again; but I have not gotten a responce
in over 6 months.
Both firefox 3 and seamonkey 2 seem to have the same problem
on IBM AIX 5.3 and 6.1 systems.
If I try to login to gmail using their standard method (Not HTML)
I can not select any folder. If I select a folder firefox hang.
I just see a message saying "Loading".
I am also experiencing problems when I access my financial
institutions (Online banking!).
I believe the problem is in the javascript implementation.
Not sure about gmail; but I do know that the problem at
my financial institusions sites has to do with executing
a javascript.
"I really need some help. firefox and seamonkey are the
only browsers that have been ported to my systems."
If some one can tell me where to look or what is causing the
problem I can submit a problem report to IBM and have them
fix the problem in their version of firefox. So far IBM has not
been able to figure out what is causing the problem.
I really should upgrade to firefox 3.6.18 and seamonkey 2.0.14; but
I can not find a working version. The only thing that works on my
system is firefox 2.0.0.20 and seamonkey 1.1.18. I keep getting security warning when I uses these browsers.
I really would appreciate some help!Can you start in Firefox safe mode? See [[Safe Mode]]
-
Large XML Publisher reports fail with client-error-request-value-too-long
We are running BI Publisher 5.6.3 with Oracle Applications 11.5.10.2 (ATG.H RUP 5), and are having frequent failures with client-error-request-value-too-long messages on large PDF reports that cause the entire report to not print.
The exact error message is as follows:
lp: unable to print file: client-error-request-value-too-long
Pasta: Error: Print failed. Command=lp -c -dPDX_B6_1LJ5200NEAST /logs/temp/pasta3262_0.tmp
Pasta: Error: Check printCommand/ntPrintCommand in pasta.cfg
Pasta: Error: Preprocess or Print command failed!!!
APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1
Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.
Action: Review your concurrent request log file for more detailed information.
I have Google'd client-error-request-value-too-long, and found it is a common CUPS issue on Linux. The popular solutions (having /var/spool/cups and /var/spool/cups/tmp) are already in place. Also, the temp files are nowhere near 2 GB (44MB).
Has anyone had this issue with BI Publisher on Linux?Thanks for the link. It looks like the sysadmins have throttled cups to low to allow large bitmapped print jobs:
grep MaxRequestSize cupsd.conf
# MaxRequestSize: controls the maximum size of HTTP requests and print files.
MaxRequestSize 10M
I am trying to get a more reasonable size limit. -
Hi,
I am getting this error in most of our WSUS servers.
Content file download failed.
Reason: HTTP status 404: The requested URL does not exist on the server.
Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe
Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
After few minutes, getting below error as well. But i could see the synchronization has completed successfully.
Log Name: Application
Source: Windows Server Update Services
Date: 12/19/2014 4:45:55 PM
Event ID: 10032
Task Category: 7
Level: Error
Keywords: Classic
User: N/A
Computer: ******
Description:
The server is failing to download some updates.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Server Update Services" />
<EventID Qualifiers="0">10032</EventID>
<Level>2</Level>
<Task>7</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-12-19T08:45:55.000000000Z" />
<EventRecordID>496887</EventRecordID>
<Channel>Application</Channel>
<Computer>*****</Computer>
<Data>The server is failing to download some updates.</Data>
This error is happening everyday. Please advise for a fix.Reason: HTTP status 404: The requested URL does not exist on the server.
Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe
Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
Source: Windows Server Update Services
Description:
The server is failing to download some updates.
This error is happening everyday. Please advise for a fix.
If this is happening on an UPSTREAM server it is because you have approved updates that are no longer available from Microsoft. Almost always this involves approvals of *EXPIRED* updates (which have been pulled from the catalog and cannot be downloaded).
If this is happening on a DOWNSTREAM server it's because something/someone deleted the files from the upstream server. It can also happen if the entire upstream ~\WSUSContent folder has gone amuk.
For an upstream server, find the expired updates, remove the approvals, cancel the downloads, and then decline the updates.
For a downstream server, figure out what the affected updates are and fix the upstream server.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
ORA-29273: HTTP request failed ORA-12535: TNS:operation timed out
SQL*Plus: Release 11.2.0.3.0
Solaris 10 SPARC
Hi,
I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
Help is greatly appreciated. Thanks.
DECLARE
p_mid_tier VARCHAR2 (500);
responsestr VARCHAR2 (500);
BEGIN
SELECT *****
INTO p_mid_tier
FROM *****
WHERE profile_type = '*****';
UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
UTL_HTTP.set_transfer_timeout (6000);
UTL_HTTP.set_response_error_check (TRUE);
responsestr :=
UTL_HTTP.request (
UTL_URL.ESCAPE (p_mid_tier || '*****'));
DBMS_OUTPUT.put_line (responsestr);
END;
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12535: TNS:operation timed out
ORA-06512: at line 151001371 wrote:
SQL*Plus: Release 11.2.0.3.0
Solaris 10 SPARC
Hi,
I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
Help is greatly appreciated. Thanks.
DECLARE
p_mid_tier VARCHAR2 (500);
responsestr VARCHAR2 (500);
BEGIN
SELECT *****
INTO p_mid_tier
FROM *****
WHERE profile_type = '*****';
UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
UTL_HTTP.set_transfer_timeout (6000);
UTL_HTTP.set_response_error_check (TRUE);
responsestr :=
UTL_HTTP.request (
UTL_URL.ESCAPE (p_mid_tier || '*****'));
DBMS_OUTPUT.put_line (responsestr);
END;
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12535: TNS:operation timed out
ORA-06512: at line 15
the most frequent cause for TIMEOUT is a FireWall on or between client & server.
when was last time this worked without error?
what changed since then? -
HTTP request failed. Error code: "500". Error message
Hi ,
When we are trying to test webservices (exposed webservice in PI) scenarios in PI box we are getting error related Adapter framework service
HTTP request failed. Error code: "500". Error message: "Internal Server Error [http://xxxx:xxxx/AdapterFramework/rtc]"
in the RWB it is showing that
com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIAdapterFramework:GENERAL:com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message 01d76ce0-972e-11e0-c652-b25394b91e0c(INBOUND) expired
Can any body help .
Edited by: subhaniABAP on Jun 15, 2011 11:30 AMHi,
If you want to resolve this error when dealing with the messages, please try the cache refresh with the link:
http://host:j2eeport/CPACache/refresh?mode=full
And also go thorugh:
- In Integration Repository/Directory go to menu Environment ->
Clear SLD Data Cache
- In R/3 go to transaction SXI_CACHE -> menu XI Runtime Cache -> Start
Complete Cache Refresh
MESSAGE EXPIRED:
Increase the value of the timeout parameter 'xiadapter.inbound.timeout.default' under Services -> 'XPI Adapter:XI'
to a higher value say '600000'.
Regards,
Caio Cagnani -
Dear Experts,,
We have MDM and PI in our landscape. We are using MDM Adapter for the integration between the two.
When we try to run the T Code SXMB_IFR, we are getting HTTP request failed error. i.e., “Error Code: 503 -- Service Unavailable”. And also the RWB communication channel is not working because of this error and we are unable to refresh the cache too because of this error.
We have checked from MDM side, and messages are flowing from ready folder but not coming into PI. We had monitored the messages using
SXMB_MONI.
We have restarted the Java Server but it’s taking too much time to restart around 12 to 15 hours & we checked after that but still facing the same issue.
Could you please help me to figure out this issue.
Thank you for your support in advance.
Thanks and Regards,
Priti.Hi Priti,
You can check the suggestion of Jyothi Anagani
Because of J2EE application com.sap.aii.af.ms.app not active
The problem is that not all J2EE services can be started by the J2EE. i.e Start the Visual Administrator and select Server->Services->Deploy in the tree on the left. On the right-hand side, choose the Runtime tab page. You see a tree in the right window with all applications if you select the APPLICATION radio button. Check if they are running, otherwise choose Start. Usually the J2EE engine starts all services automatically.
Runtime Workbench "503 Service Unavailable" Error After JSPM SP Update
Regards,
Nabendu. -
HTTP request failed :Error code 500 internal server error
In PI 7.0 system we are getting http error for rwb and exchage profile portal function
Detail:
HTTP request failed : Errro code 500 internal server error
( http://hostname:50000/adapterframework/rtc)
If I do a connection test for ping(sap >bc >ping) from SICF, I am getting HTTP error.
Please help me out to resolve this problem.
I would be thankful for your suggestionfrom SM59 I tested the connection of INTEGRATION_DIRECTORY_HMI(HTTP connection to ABAP system)
detail:
staus HTTP response 500
status text : internal server server
duration test call 17173 ms
Please help me out to resolve this issue -
The IReportServerCredentials approach with the ReportViewer control is working fine within a domain, but I get a 401 not authorized error for a Web IIS server trying to call a SSRS server in another domain. I've see plenty of helpful postings on the use
of IReportServerCredentials but nothing that provides suggestions for this cross domain issue. Hope someone has some ideas on this one. Thanking you in advance for your response.
Using VS 2008 VB.NET web app with ReportViewer control Version=8.0.0.0.
Outside domainA Web Server IIS 8. OS = Windows NT 6.2;
Inside domainA Windows 7 desktop; Inside domainA Windows Server 2003
SSRS using windows authentication and on SQL Server 2012. OS = Windows NT 6.2
The processing described below successfully produces a report when the web server app runs on a machine in the same domain as the SSRS server. For the "same domain" web app, both Win 7 desktop VS 2008 development server and Windows 2003 IIS 6 have
been tested successfully.
The report fails with error "The request failed with HTTP status 401: not authorized " when the web app is run from a windows IIS 8 machine (outward or Internet facing web server) that is not in the domain of the SSRS server. The ReportViewer control
credentials (provided by IReportServerCredentials and taken from the web.config file) match a domain account in the same domain as the SSRS
server and one that has browser permission on the report folder. The same credentials are used successfully for reports requested from within the SSRS domain.
One interesting thing is that on the Internet facing web server, I can access the report via a browser request. So it is possible to have a user request coming from the Internet facing machine get through the SSRS windows authentication. Just does not
work for the ReportViewer.
Using IReportServerCredentials interface per example provided by Microsoft msdn site. Code listed below.
IReportServerCredentials would appear to be a viable approach because it can pass credentials of a windows account known to the SSRS server, but not known to the client machine. By the way, database calls to SQL Server in domainA using a SQL Server
native login account work fine. So the network support communication to a domain that the web server does not belong to.
<Serializable()> _
Public NotInheritable Class MyReportServerCredentials
Implements IReportServerCredentials
Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity _
Implements IReportServerCredentials.ImpersonationUser
Get
'Use the default windows user. Credentials will be
'provided by the NetworkCredentials property.
Return Nothing
End Get
End Property
Public ReadOnly Property NetworkCredentials() As ICredentials _
Implements IReportServerCredentials.NetworkCredentials
Get
'Read the user information from the web.config file.
'By reading the information on demand instead of storing
'it, the credentials will not be stored in session,
'reducing the vulnerable surface area to the web.config
'file, which can be secured with an ACL.
'User name
Dim userName As String = _
ConfigurationManager.AppSettings("MyReportViewerUser")
If (String.IsNullOrEmpty(userName)) Then
Throw New Exception("Missing user name from web.config file")
End If
'Password
Dim password As String = _
ConfigurationManager.AppSettings("MyReportViewerPassword")
If (String.IsNullOrEmpty(password)) Then
Throw New Exception("Missing password from web.config file")
End If
'Domain
Dim domain As String = _
ConfigurationManager.AppSettings("MyReportViewerDomain")
If (String.IsNullOrEmpty(domain)) Then
Throw New Exception("Missing domain from web.config file")
End If
Return New NetworkCredential(userName, password, domain)
End Get
End Property
Public Function GetFormsCredentials(ByRef authCookie As Cookie, _
ByRef userName As String, _
ByRef password As String, _
ByRef authority As String) As Boolean _
Implements IReportServerCredentials.GetFormsCredentials
authCookie = Nothing
userName = Nothing
password = Nothing
authority = Nothing
'Not using form credentials
Return False
End Function
End Class
'Set the ReportViewer values and retrieve the report from the SSRS server into a pdf file on the client machine.
ProposalRptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
' Set the ReportViewer ReportServerCredentials from the MyReportServerCredentials Class.
' Note the credentials are for a domain account defined in the same domain that the SSRS server belongs to and one that has browser permission on the report folder.
ProposalRptViewer.ServerReport.ReportServerCredentials = _
New MyReportServerCredentials()
ProposalRptViewer.ServerReport.ReportServerUrl = New Uri(System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportServerURL))
ProposalRptViewer.ServerReport.ReportPath = System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportPathProposal)
ProposalRptViewer.ShowCredentialPrompts = False ' disable prompting for data source credentials
Dim paramList As New Generic.List(Of ReportParameter)
Dim pInfo As ReportParameterInfoCollection
pInfo = ProposalRptViewer.ServerReport.GetParameters()
paramList.Add(New ReportParameter("ProposalID", ProposalID, True))paramList.Add(New ReportParameter("Entity", Entity, True))
paramList.Add(New ReportParameter("intRatesPage", intRatesPage1, True))
ProposalRptViewer.ServerReport.SetParameters(paramList)
' Process and render the report
ProposalRptViewer.ServerReport.Refresh()
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim streams As String() = Nothing
Dim extension As String = Nothing
Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
Dim returnValue As Byte()
' Render the proposal Rate Page 1 report to a Byte Array output in pdf file format.
returnValue = ProposalRptViewer.ServerReport.Render("PDF", Nothing, mimeType, encoding, extension, streams, warnings)
An error only occurs for web server not in the domain of SSRS Server:
The request failed with HTTP status 401: Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack
trace below.
Stack Trace:
[WebException: The request failed with HTTP status 401: Unauthorized.]
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +236
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +58
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +16
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +226
Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +192
Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +136
DeltaRater.Web.ViewRates.btnCreateProposal_Click(Object sender, EventArgs e) in C:\alex\~~_____Rapid_Rater\SourceDir_VS2008_Jan17_2014\DRR\ViewRates.aspx.vb:911
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010I got the answer to my question by following suggestions by Irb on another technical forum.
From web server (not on same domain), I was passing credentials of a domain account on the SSRS server. Irb suggested I create a local account on the SSRS server and pass those credentials. I tried this but got the same results.
This approach worked for web server in SSRS domain, but failed with 401 Unauthorized for web server outside the SSRS domain. Per suggestion for local account on SSRS server, I tried passing empty string "" as the domain via IReportServerCredentials.
Again this works for web server in the same domain as SSRS. But I get the 401 Unauthorized error when the web server is outside the domain. In testing and checking similar posts, I discovered an additional piece was required for the report request to work
across domains. The default user did not have authority to send the request and/or receive the report. Adding the following in <system.web> section of web.config file was needed.
<identity impersonate="true" userName="localwindowsuser" password="#########"/> where "localwindowsuser" is a windows user defined on the web server.
I never needed this extra piece when the web server ran in the same domain as the SSRS server. I thank Irb for making me go through the details of additional tests because that is how I stumbled across an identity comment and ultimately got things working. -
I am trying to call a web service using apex_web_service.make_request function.
It works fine when all the parameters are correct. However, when something is wrong in the request XML, it throws an exception instead of returning the soap:fault message:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1369
ORA-29269: HTTP server error 500 - Internal Server Error
ORA-06512: at "APEX_040200.WWV_FLOW_WEBSERVICES_API", line 130
ORA-06512: at line 37
I need to get back the soap:fault and parse it to display a proper error message to the users (e.g. what was wrong with the input), yet the call throws an exception instead of returning it.
I am trying the exact same request from soapUI and it returns me the soap:fault below:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Fault occurred while processing.</soap:Text>
</soap:Reason>
<soap:Detail>
<ns1:RegisterFault xmlns:ns1="http://www.exchangenetwork.net/wsdl/register/1">
<description xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1">The security token has expired.</description>
<errorCode xsi:type="ns2:RegisterErrorCode" xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">E_TokenExpired</errorCode>
</ns1:RegisterFault>
</soap:Detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
How do I get this back from APEX?
Thanks!Hi,
I've just run into this.
If the webservice returns a fault, such as:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>INVALID_REQUESTER_INFO</faultstring></soap:Fault></soap:Body></soap:Envelope>
then the user gets presented with an unfriendly error message and there's no chance to output a more friendly one.
The response above is seen when testing the webservice, when run from the Form/Report page, we get something like:
soap:ServerINVALID_REQUESTER_INFO
Contact your application administrator.
OK
When OK button is clicked everything is rolled back and we don't even get the fault XML.
It would be good if Apex could be optionally set to not give the unfriendly messages, so that we could code such a message ourselves.
Unless anybody has a workaround for this, I guess that I'll have to see if I can code this in PLSQL.
Regards,
Chris -
Filter to convert HTTP request to JNLP arguments fails every other time
I want to pass HTTP request parameters to a Java Web Start program as arguments. I have implemented a filter which adds the arguments from the request parameters using XML DOM, and I also set the Last-Modified date to the current date/time. [ I am sort of thinking I should put the date as the file date -- not sure ]
The filter works successfully ever other time I invoke a given URL. If I switch parameters, it looks like the filter works every time.
When the filter works, there are HTTP GET and HEAD requests. When the filter fails, there are three HEAD requests and one GET request. Using the apache soap TCP Tunnel/Monitor, it looks like the HTTP request parameters aren't being passed for the second GET.Varad and Sc0tt,
Thank you both for your responses.
Varad – Yes, I can/will reduce the amount of data so it does not cause the tabular form to go over the 2000 field limit. If that is not possible, I will at least make the users aware of this issue. Since the same data is used for the other pages in the application, the users might want to keep all the data.
Sc0tt – thanks for providing the information for your environment and settings. To plan for the future, we will have to set the value to something high also, around 8-10K range, and adjust later if we have to.
Thank you both, I will mark both of your answers as helpful and the question as being answered.
DP
(Have either of you used the jquery datepicker solution? If yes, can you please take a look at my thread: Thread: Jquery Datepicker calendar problem with page scrolling
Jquery Datepicker calendar problem with page scrolling -
Read of HTTP Request POST parameters failed:Read timed out
Hi !
Any one seen this exception . any ideas of the cause?
java.lang.RuntimeException: Read of HTTP Request POST parameters failed: Read timed out
at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.j ava:665)
at org.apache.catalina.connector.HttpRequestBase.getParameterValues(HttpRequestBase.java :737)
at org.apache.catalina.connector.RequestFacade.getParameterValues(RequestFacade.java:170 )
Thanks,Assuming there is nothing wrong with
org.apache.catalina.connector.HttpRequestBase.parseParameters
I can only think of 2 things:
1. The timeout is set for an extremely short time in the Apache settings (server.xml의)
2. The client application is sending the POST verry slow or incorrect. For example the
client says that the POST is 500 long than sends 200 and leaves the connection open.
You can try and post the following:
request.txt:
POST /somePath/somefile.js HTTP/1.1
Host: localhost:44
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 45
depreciatedButWontPostWithoutAName=some+valueThe client sending the request:
import java.io.*;
import java.net.*;
import java.io.DataOutputStream;
import java.applet.Applet;
public class appTest extends Applet implements Runnable {
public static final int HTTP_PORT = 80;
public static final String hostName = "localhost";
public void run() {
try{
InetAddress addr = InetAddress.getByName(hostName);
Socket s = new Socket(addr,HTTP_PORT);
BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), "UTF8"));
s.setSoTimeout(2000);
File fileToSend = new File("request.txt");
FileInputStream fleHTML = new FileInputStream(fileToSend);
StringBuffer sbHTMFile = new StringBuffer();
int b = fleHTML.read();
while(b!=-1){
sbHTMFile.append((char) b);
b = fleHTML.read();
wr.write(sbHTMFile.toString());
wr.flush();
BufferedReader rd = new BufferedReader(new InputStreamReader(s.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
System.out.println(line);
wr.close();
rd.close();
} catch (Exception e) {
e.printStackTrace();
public void init(){
new Thread(this).start();
public appTest(){
new Thread(this).start();
// main program
public static void main(String argv[]) throws Exception {
new appTest();
}In appTest.java change HTTP_PORT to the port you need and hostName to the
hostname you need.
In request.txt change the /somePath/somefile.js to the location you desire.
And change Host: localhost:44 to the hostname and post you desire. -
UTL_HTTP Fails After Large Number of Requests
Hello,
The following code issues an HTTP request, obtains the response, and closes the response. After a significantly large number of iterations, the code causes the session to terminate with an "END OF FILE ON COMMUNICATIONS CHANNEL" error (Oracle Version 10.2.0.3). I have the following two questions that I hope someone can address:
1) Could you please let me know if you have experienced this issue and have found a solution?
2) If you have not experienced this issue, are you able to successfully run the following code below in your test environment?
DECLARE
http_req utl_http.req;
http_resp utl_http.resp;
i NUMBER;
BEGIN
i := 0;
WHILE i < 200000
LOOP
i := i + 1;
http_req := utl_http.begin_request('http://<<YOUR_LOCAL_TEST_WEB_SERVER>>', 'POST', utl_http.HTTP_VERSION_1_1);
http_resp := utl_http.get_response(http_req);
utl_http.end_response(http_resp);
END LOOP;
dbms_output.put_line('No Errors Occurred. Test Completed Successfully.');
END;
Thanks in advance for your help.I believe the end_request call is accomplished implicitly through the end_response function based on the documentation that I have reviewed. However, to be sure, I had attempted your suggestion as it also had occurred to me. Unfortunately, after attempting the end_request, I received an error since the request was already implicitly closed. Therefore, the assumption is that the end_request call is not applicable in this context. Thanks for the suggestion though. If you have any other suggestions, please let me know.
-
Why do e-mails containing large attachments fail to deliver to my inbox?
Why do e-mails containing large attachments fail to deliver to my inbox?
This may be a limitation to the size of the attachments your ISP will allow. Please check with your ISP first to see the maximum size attachment they will accomodate.
Maybe you are looking for
-
Animated GIF in a Photoshop layout?
I'm pretty new to website building stuff. I want to make an entire webpage layout in Photoshop CS4 and put it into Dreamweaver and turn it into a template for a website. I understand all of the slicing and importing stuff, but I want the image in the
-
How can I connect to the portal homepage on a 9i Database
I successfully installed Oracle 9iAS on a MS Windows NT machine and configured the Portal Server on an Oracle 9i Database on another machine (Windows 2000). But when I try to call the portal homepage (portal30.home), I get the following error: "The p
-
ICal Alarm is almost off the page
When my iCal alarm notifies me, it is so far to the right I can not see it without dragging it to the center of the page. Is there a preference somewhere that I can set?
-
Hi, How to save full chart image after zooming chart areas in windows form application programmatically with C#. Thanks, Purna
-
I plan to have two FPGA VIs. They are identical in terms of controls and indicators that are on their front panels, but the logic is different. I want to compile them into two seperate bitx file and the host VI will select the correct bitx file at