APEX5: exceptions from AJAX calls not returned to the client
I have a small question about the apex.server.process feature.
I have a request where I do some AJAX requests to the server to do something. My JS (sample) code looks like this:
apex.server.process("DO_SOMETHING", { }, { dataType: "text", success : function (pData) { alert(pData); } });
The foo application process is defined as follows:
BEGIN raise_application_error(-20001, 'exc'); END;
Now, I noticed that when I am connected to the request of the manufacturer, I get my alert with the message "sqlerrm: ORA-20001: exc ' (which I expected).
If I connect to the generator and run my application, I get an empty alert message (ie: the pData in my success Manager parameter is empty, or better: the response of the network call is empty = > "this request has no data available response" chrome network logging).
Is this as expected? If Yes, what is the reasoning (security as in "never disclose unhandled exceptions") and is there a setting/workaround, we use (short for catching exceptions and the sending of the response via htp.p data)
I understand the fact that you should always do the appropriate error handling, but it's an internal application where I don't mind really if an unhandled exception is propagated to the client.
I have a request on apex.oracle.com where it is reproduced, but given the behaviour depends on being connected to the APEX Builder I'm not confident to disclose identification for generating environmental information.
Change the raise_application_error for:
HTP.p ("exc");
It is indeed strange that the behavior is different when running through the constructor, or directly. I have reproduced the same on apex.oracle.com
Come to think of it: when running through the constructor, you can debug and use the developer toolbar. Maybe Apex handles exceptions differently to capture the output of the exception.
Tags: Database
Similar Questions
-
original title: two monitors, mouse stuck
I'm under Simulation of Golf Sports prospective mode full-screen on one monitor, but when it runs the mouse will not return to the other monitor. It seems that the mouse is not bound by the program, but I want to be able to use another application on the other monitor. Any suggestions?Hello
What operating system is installed on the computer?Method 1: You can press the Windows key on the keyboard that appears in the start window and your mouse will automatically gets shifted to the main monitor.Method 2:
(a) click Start, type change the mouse settings.
(b) go to the pointer Options tab of
(c) uncheck Display pointer trails
(d) click apply and OK.Method 3: See if he has all the parameters of the Simulation of Golf to release the mouse button.If the methods above do not help, you can contact the Golf Simulation for additional help. -
Small Bug: Detection of people - O key does not return to the grid view
Windows 7
When I tap the O key, I will in face detection module.
But when I hit the e key O once again, I do not return to the display of the grid.
To do this, I have to click on this icon to return to the display of the grid.
The grid view is always key G
-
Hi, I have another problem, when people visit my site that they could not return to the home page
Hello
Problem is in outline view.
Please follow the steps below and you should be all set.
1. go in the Plan view.
2. right click on the 'HOME' page
3. Select "Menu" > "include the Page containing the hyperlink.
4 save the file and then try to preview.
You should be all set.
Concerning
Vivek
-
Calling agents do not return to the Hub
Team,
Good day to you! I just sent this tool to a customer via AD GPO MSI. We do this using the local such as specified in the user guide. Currently, it seems that the agent name is not back to the hub. I have a feeling that the ADM template that was imported into the GPO is not in force. Evaluating VDI agent has been deployed successfully, but I don't see the computer folder to the administration console. Here is the configuration of the client and I have attached the report on the GPO that is linked to the OU (this is a laboratory configuration based on the customer's environment). Could help you advice on that? Thank you!
AD--> Windows Server 2008 R2
Client--> Windows 7
Kind regards
Cyril
Hi Cyril,.
Glad to know that you have identified the cause of the agent and of the hub does not.
The GPO is to help install the agent to target computers software, they correspond to OUS based machine.
The user must have the privilege to install the agent software.
hope this helps
Jasmine
-
Make a call from my application and return to the same without pressing the "back" button.
Hye
A point which leads to call screen appeal of my app. Now, I want the native application should be called as soon as the call is interrupted without pressing the "back" button.
Thanks in advance!
Give your app this authorization.
You can check the permissions and ask those missing using http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/applicationcontrol/Application...
-
The action of the button Back/will not return to the first page open on a tab
From a few weeks ago (I believe that when 3.6.16 is released), I lost the ability to return to the first Web site loaded on any tab by using the previous button or right click-> menu back.
I upgraded to Firefox 4 and I still see the same question.
This happens if the new tab is created from a link on another tab of an item in my toolbar bookmarks, or if I have on a button open new tab, then the initial Web page in the address bar or in my bookmarks toolbar.
When I navigate to the second site in this tab via a link, manual entry or a bookmark, the previous button is active.
If I navigate to other pages and a right click on the back button, the first page I have loaded is not listed in the history.
It is possible to my modules or something is causing this issue? I can't think of any possible configuration setting that would entail.
If not, should I submit a report in Bugzilla? I couldn't find a corresponding bug report, but it seems that it would have been stated several times if someone else saw this question.
Edited to stop scrolling - Maurane
With the back button does not, problems are caused by the McAfee Site Advisor, if you uninstall or disable this extension, the back button should work again.
-
Mirco soft tech?
My wife received a call from someone who said they were from mirco soft and said the computer was they infected taked here in running a scan, which means it had the remote control of the computer, they took to a site web that wanted to sell a product to fix any info staff received a disconnected i line my question could they have obtained information from my computer and should I checked it by a technician of service to make sure.Jackson DonnaWoods Hello,
It is a scam.
Unless you have a contract to support prepaid with Microsoft, Microsoft doesn't call you, email you, or snail mail you about problems with your PC.
I would certainly follow the advice of John John, because we do not know what happened when your wife has visited the Web site. By the way, I suggest you also change your password, sign in to your office computer and passwords associated with banking online, networking sites etc..
This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.
John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com
-
IOM, API - getData() - no data is not returned by the user account
Hi all
I have a question for the AD account data. The problem is when I try to get the account data from any account (account status: enabled, the account Type: primary), the API GetData returns a blank card and I don't know why. I see this account in the accounts of the user to the IOM. This account has been created through reconciliation of AD and this account is only one (primary and active).
In the test environment my code works very well, but production only.
Here is part of my code where I get some details of account.
...
accounts = provServ.getAccountsProvisionedToUser (take);
Logger.Finest ("getUsersToTheLookupTask-> user Details - take:" + take + ", DisplayName:" + userDisplayName);
Iterator it = accounts.iterator ();
{while (IT.hasNext ())}
Account ad_account = (Account) it.next ();
If (ad_account.getAppInstance () .getApplicationInstanceName () .equalsIgnoreCase (appInstName) & & ad_account.getAccountType () .equals (Account.ACCOUNT_TYPE.) (Primary)) {}
Logger.Finest ("getUsersToTheLookupTask-> AppInstance ApplicationInstanceName:" + ad_account.getAppInstance () .getApplicationInstanceName ());
Logger.Finest ("getUsersToTheLookupTask-> AppInstance DisplayName:" + ad_account.getAppInstance () .getDisplayName ());
Logger.Finest ("getUsersToTheLookupTask-> AccountDescriptiveField:" + ad_account.getAccountDescriptiveField ());
Logger.Finest ("getUsersToTheLookupTask-> getAccountID:" + ad_account.getAccountID ());
String UtilisateurDN = getADUserDN (appInstName, take);
AccountData accountdata = ad_account.getAccountData ();
Map < String, Object > accdata = accountdata.getData (); //THIS RETURN EMPTY map < String, Object >! And I don't know why!
Logger.Finest ("--> account data:" + accdata);
String userOrg = accdata.get("UD_ADUSER_ORGNAME").toString ();
String userCN = accdata.get("UD_ADUSER_COMMONNAME").toString ();
Logger.Finest ("-> CN an ORG:" + userOrg + "-" + userCN);
userOrg = userOrg.substring (userOrg.indexOf ("OR ="));
String UtilisateurDN = "CN =" + userCN + "," + userOrg;
Logger.Finest ("getUsersToTheLookupTask-> pair key / value:" + UtilisateurDN + ":" + userDisplayName);
userMap.put (UtilisateurDN, userDisplayName);
}
}
...
You have an idea why I'm not able to get user account data?
Thank you!
Milan
Fact.
The following API does not return the AccountData in the AccountVO. Old API IOM at 11.1.2.0 in 11.1.2.1 IOM Yes.
accounts = provServ.getAccountsProvisionedToUser (take);
If you need obtain account data, use:
Acccriteria SearchCriteria = new SearchCriteria (ProvisioningConstants.AccountSearchAttribute.APPINST_KEY.getId (), "*", SearchCriteria.Operator.EQUAL);
accounts = provServ.getAccountsProvisionedToUser (take, acccriteria, null, true);
...
AccountData accountdata = ad_account.getAccountData ();
Card
accdata = accountdata.getData (); GetData returns then map of attributes as I expected.
-
return the empty record only when no results not returned by the main query
It is a question of SQL (not PL/SQL)...
Let's say I have the following text:
Full_name SELECT NULL, NULL, NULL last_update_date address
OF the double
UNION ALL
SELECT full_name, address, last_update_date
Employees
WHEN TRUNC (sysdate) = TRUNC (last_update_date)
If the second part of the query retrieves no rows, it works beautifully and I get a blank line; However, if the second part of the query returns records, I get a blank line over my dataset I want.
How can I create a SQL statement that executes only the first query (before the union all) when no result is returned from the second. Also, I don't want to exceute the query twice only if I can get a count of the records because my actual query is much more complex than the example I've provided here.
Thanks in advance!
EmilyHello
You can try to use a subquery factoring (WITH clause)
The query is executed only once, the query results are cached in memory or in a temporary table.
and you can view these results several times in the main query:WITH second_query AS ( -- your second query here SELECT full_name, address, last_update_date FROM employees WHERE TRUNC(sysdate)=TRUNC(last_update_date) ) SELECT full_name, address, last_update_date FROM second_query UNION ALL SELECT NULL full_name, NULL address, NULL last_update_date FROM dual WHERE NOT EXISTS ( SELECT 1 FROM second_query)
Published by: kordirko on 2010-07-08 02:02
-
Series TV downloaded from itunes will not play on my player portable media. I get the message, "the media type cannot be read.
Hi ChristopherEaddy
1. what operating system is installed on the computer?
2. What is the type of file that you try to play?
3 is supported by Windows Media Player file type?I suggest you to check and to provide us with the information about the installed operating system.
Please refer to the below planned links and check the formats supported by windows media player file. Check if the information helps-
http://support.Microsoft.com/kb/316992
http://Windows.Microsoft.com/en-us/Windows7/C00D1199
I hope this helps.
-
Buttons does not return to the early state in the state machine.
Hello
I downloaded a program that is used to back up data. I used a machine to States with different States. State 1 is initialization, where it moves automatically select the State, which allows to select one of the remaining States to copy the data. The selection is made by command buttons. Once u pressed a button, it goes to that respective State and in this state when you press the backup, the backup of data occurs. Once the backup is located the program goes back to the selection state. So far, it works fine. The problem then. Once he returned to the selection state after that copy was made, then none of the buttons are working properly. Then when it goes back to select State and I tried to select a State, nothing happens, not even the stop button works. I don't know why this is happen. Please help me solve this problem. Thanking you in advance.
You have many States where you have the event structures ("All data" "given more older that '" young data that ' 'Defined Data') (worse there are two of them in "Data set")
Each of these event structures are for a "Backup" mouse event down. A singularity is now why you use a mouse event down on a button. This really should be a value change event. But this is not the big problem.
The big problem is that all of these structures events are set to lock the front until the end of the case of the event. Well, when you click the mouse down on this button, all 4 of these structures tail event this event. If you are luckly, one of the event will execute and process the event. Others, that you will never run because the state machine will not get through these cases.)
You have multiple structures of event you VI and certainly not buried in the event.
Reading guard and recommendations when using events in LabVIEW
Then fix your VI architecture. You must limit the structures of the event or a separate parallel loop, or to a single case of your state machine that your code will frequently return to, without any other user interaction, in order to service the structure of the event.
-
Throwing exception of validation is not shown in the jspx page
Hello
I have a page with af:table that uses a display object. This view object uses an entity object. In the method of the EntityImpl of my entity object class I throw ValidationException.I debug the application and I saw that it is throwing the exception. But it is not displayed on the page. What could be wrong here?
try {}
setAttributeInternal (BANKTYPE, value);
}
{} catch (TooManyObjectsException e)
e.printStackTrace ();
throw new ValidationException ("you try to add the existing record");
}
Is to have my page jspx * < af:messages id = "m1" / > *.
Jspx page should any configuration to show the exception thrown in a popup?
Kind regards
Priya.You can try the same thing with the local...
-
application will not return to the page
I have an application that runs a package oracle.
the appeal in the apex process is something like
callpackage.start_process.
The procedure is long and it ends, but the page disappears with the package is done.
This does not happen within the apex, just at the moment where it is deployed and the client calls the server.
This could be just a network issue, but it's a real show stopper, and I could use any info you can give me.
Thank you
DougDoug,
You can use background APEX for long running process tasks. See this link for more details.
See you soon,.
Hari -
29 Firefox "back" button will not return to the previous form
Previous screen is a form of research and the results returned. Clicking on one 'other info' button moves to the next screen and print more information. The 'back' button will return to the previous screen, which gives the message "document is no longer available.
Firefox is standard installation of vanilla. All the other major browsers properly return to the previous screen. If this cannot be fixed, we will be forced to give up FIrefox and recommend our customers to 46 000 to switch to a different browser, especially when you use our Web site.
To reproduce this problem, go to www.mybfl.com/search.php, get a book, when displayed, click on the "More info" button By clicking on the "back" button on Firefox illustrates the problem.
Yes, Firefox 32 is at the beginning of this behavior.
I just went and checked tools-> Options-> auto-Cache Management override and for now at least, the problem disappeared.
Thanks, hope that this action has resolved the problem.
Maybe you are looking for
-
Windows 7 - error Code: 80243004 (cannot install updates)
OP: Please help! I am trying to update my computer and get error Code 80243004. Can you help me.
-
10 Windows will not download 80240020 error, windows tried to download 4 or 5 times, still the same result, can someone tell me how to solve this problem. I'm not technical with computers. I am upgrading to Windows 7 Home. Thanks much for any help. C
-
Impossible to install Acrobat Reader after returning from 10 Windows to Windows 7
Hi, I tried all kinds of solutions to reinstall Acrobat Reader after you have reinstalled Windows seven. I get a message saying that the AcroRead.msi path is not available. I tried to use the cleaning tool and remove the Data/Adobe/Setup program and
-
One form of layer appear and disappear all the other layers
I do several layers with a single shape in each layer and I need them all to display on my screen. Whenever I click on a layer to modify, all forms of the other layers disappear until I click on a new layer so that its shape appears and others disapp
-
I'm unable to install Shockwave, I Flash which is pretty good for movies and games?
Hello world. You can I'm new at this computer stuff. Thus, it is not easy for me to ask my question. But I just got this new top lab for Christmas and I want everything to be in working order. I came across some tips for setting up your lab on YOU TU