Problem after raising application error
Hi,
I would really appreciate any insight on this issue. Thanks.
I have a page that has fields that submit when entered. There is no problem there.
I have a button that when clicked runs a process and if certain condition happens to occur then it calls the raise_application_error.
I click OK and it takes me back to the previous page.
Problem doesn't go away if I fix the problem and press enter.
What do I have to do to reset to the submit button (which by the way is hidden) and not the print button which also submits the page.
Thanks in advance
Thanks Scott
I had a few things happening. But I figure out how to prevent it by getting some correct values to begin with.
The issue about the button and getting the error over and over is something related to a value on a field that is not reset. I'm not using collections.
Solve this issue I'm just telling the customer to do a refresh and that gets rid of the negative values that raises the error.
Thanks
Similar Messages
-
Problem after raising an Error message in VA01
Requirement: I need to raise an error message when a particular item and sold to party combination is not having any live contract.
What I did: In USEREXIT_MOVE_FIELD_TO_VBED.
1. XVBAP having item details
2. VBAK structure having header details (I will get sold to party here)
3. VAPMA structure having the contract detail if any contract is exist.
Here I raised an error message and its getting raised properly.
Problem: Once the error message came I cant able to clear or delete that line item (in va01 screen), I am getting an error message No item category is available only I can go back without saving.
And I have tried in USEREXIT_MOVE_FIELD_TO_VBAP. Here I am not able to access the contract details from VAPMA (coming as blank)
Please help me to clear this problemUse the form-exit USEREXIT_MOVE_FIELD_TO_VBAP.
You can retrieve the VAPMA data as:
SELECT * FROM VAPMA WHERE MATNR = US_MATNR AND
VKORG = US_VKORG AND
TRVOG = US_TRVOG AND
VTWEG = US_VTWEG AND
SPART = US_SPART AND
KUNNR = US_KUNNR.
You will find this code in form VAPMA_SELECT in include MV45AFDB_VAPMA_SELECT -
Raise Application Error on Dynamic Action
Hi
I am using Apex 4.2. On a click of button a Dynamic Action is written, which calls a DB Package. The DB package has exception handlers and also the package has two output parameters
Error Code and Error Msg
So in my code(Dynamic Code) i make a call to the package and checks the value for Erroc Code.
Begin
Package call......
If v_error_code <> '0' Then
Raise SC_Error;
End if;
Exception
When SC_Error Then
RAise_Application_error(v_err_code, v_err_msg);
End;
But when i run the page and I click I get an Internal exception error
Output from Debug -- I am not sure what the Cell in Red colour means, because the package is returning a correct message (before the red line).Can anyone help please??
Thanks
JS
......message: AJAX call returned server error ORA-20003: Customer has already been matched for Execute PL/SQL Code.
4
......is_internal_error: true
4
......apex_error_code: APEX.AJAX_SERVER_ERROR
4
......ora_sqlcode: -20003
4
......ora_sqlerrm: ORA-20003: Customer has already been matched
4
......error_backtrace: ORA-06512: at line 41 ORA-06512: at "SYS.DBMS_SYS_SQL", line 1926 ORA-06512: at "SYS.WWV_DBMS_SQL", line 973 ORA-06512: at "SYS.WWV_DBMS_SQL", line 999 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 830 ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN_UTIL", line 2304 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_ACTION_NATIVE", line 442
4
......component.type: APEX_APPLICATION_PAGE_DA_ACTS
4
......component.id: 23185203797756209
4
......component.name: NATIVE_EXECUTE_PLSQL_CODE
4
...Execute Error Handling Callout defined on Page or Application Level
4
...Execute Statement: begin declare l_error wwv_flow_error_api.t_error; begin l_error := wwv_flow_error_api.g_error; wwv_flow_error_api.g_error_result := apx_error_utils.handleerror ( p_error => l_error ); end; end;
4
......Values changed by callout:
4
.........message: An unexpected internal application error has occurred. Please get in contact with your system administrator and provide reference# for further investigation.
4
.........display_location: ON_ERROR_PAGE
4
Stop APEX Engine detected
4
Final commit
4
1 - 59Edit: Well, Patrick beat me to the punch because I was taking my jolly time writing this down
Well, if you look below the part you put in red, you can see that a callout is made: ...Execute Error Handling Callout defined on Page or Application Level
With directly below that:
......Values changed by callout:
4
.........message: An unexpected internal application error has occurred. Please get in contact with your system administrator and provide reference# for further investigation.
Since the plsql call is on the serverside, this error is trapped within the error handling function aswell. Your error has simply been obscured by it, and probably because it looks at the error backtrace and determines the error is internal.
Looking at the sample error handling code, this is probably where it goes "wrong":
-- If it's an internal error raised by APEX, like an invalid statement or
-- code which cannot be executed, the error text might contain security sensitive
-- information. To avoid this security problem rewrite the error to
-- a generic error message and log the original error message for further
-- investigation by the help desk.
if p_error.is_internal_error then
I recreated the situation here, and put some debug in the error handling function just so I could see what sort of error is being processed:
apex_debug.message('error code: '||p_error.apex_error_code);
apex_debug.message('sql code: '||p_error.ora_sqlcode);
apex_debug.message('sql errm: '||p_error.ora_sqlerrm);
apex_debug.message('error_backtrace: '||p_error.error_backtrace);
0.05750
0.00007
...Error data:
4
0.05757
0.00006
......message: AJAX call returned server error ORA-20099: raise application error for Execute PL/SQL Code.
4
0.05763
0.00006
......is_internal_error: true
4
0.05769
0.00005
......apex_error_code: APEX.AJAX_SERVER_ERROR
4
0.05774
0.00005
......ora_sqlcode: -20099
4
0.05779
0.00006
......ora_sqlerrm: ORA-20099: raise application error
4
0.05785
0.00005
......error_backtrace: ORA-06512: at line 1 ORA-06512: at "SYS.DBMS_SYS_SQL", line 1926 ORA-06512: at "SYS.WWV_DBMS_SQL", line 1064 ORA-06512: at "SYS.WWV_DBMS_SQL", line 1090 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 832 ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN_UTIL", line 2304 ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_ACTION_NATIVE", line 442
As you can see, the ajax error is an internal error, and that is why it is handled as such in the error handler. With this info you should be able to adjust your handling function. Test for the error code (APEX.AJAX_SERVER_ERROR) and then throw the error message or test for the -20000 range of custom errors for example.
if p_error.is_internal_error then
-- Access Denied errors raised by application or page authorization should
-- still show up with the original error message
-- do not parse ajax server errors here !
if p_error.apex_error_code <> 'APEX.AUTHORIZATION.ACCESS_DENIED'
and p_error.apex_error_code not like 'APEX.SESSION_STATE.%'
and p_error.apex_error_code != 'APEX.AJAX_SERVER_ERROR'
then
It probably does need some more work but you should get the gist of it. -
How to raise application error and preserve open cursor...
Hello,
I have to raise an application error under certain circumstances.
In some cases there's an open cursor that has to be read by the calling application anyway because there are data that have to be read.
In other cases the cursor does not have to be read.
sample code:
create or replace procedure get_address(
pv_street varchar2,
pv_number varchar2,
pr_retid in out number,
pr_refcurs in out get_streetpkg.t_refcurs )
v_rowcount number;
v_no_suiting_number boolean := false;
begin
delete temp_addr;
-- get suiting rows
insert into temp_addr
select * from addr
where street like pv_street
and number like pv_number;
v_rowcount := sql%rowcount;
-- if no suiting row found then get all
-- suiting streets regardless of number
if v_rowcount = 0 then
v_no_suiting_number := true;
insert into temp_addr
select * from addr
where street like pv_street;
end if;
-- check whether data has been found
select count(*)
into v_rowcount
from temp_addr;
-- set return id if only one row is found.
if v_rowcount = 1 then
select id from temp_addr
into pr_retid;
end if;
-- open cursor to provide data
open pr_refcurs for
select * from temp_addr;
-- generate error - if no data found at all
-- no data has to be read...
if v_rowcount = 0 then
raise_application_error( -20001, 'no data found' );
end if;
-- generate error - or better notification - message if no number found...
-- SELECTED ROWS HAVE TO BE READ ANYWAY!!!
if v_no_suiting_number then
raise_application_error( -20002, 'streets found, but no suiting number' );
end if;
return;
end;
Prerequisites:
- The calling application reads the open cursor and closes it.
- The application cannot provide additional arguments and the stored proc cannot be converted into a stored func.
- I cannot put the procedure into a package.
- The application has to get information about success or failure (and reason of failure) through provided error numbers (-20999..-20000).
Whenever the error is raised and pr_retid was set, retid is not set in the application, neither is the cursor.
So what can I do to provide return ID and row data???
Hope anyone can help me.
Greetings, Heiko Kaschube
nullSorry, I didn't read your list of pre-requisites carefully enough. Your problem is that prerequiste #4 (return Application Error number) is in flat contradiction with prerequisite #1 (calling application continues processing).
To restate: RAISE_APPLICATION_ERROR means "the called program has encountered a problem so please cease processing and handle the error". Using RAISE_APPLICATION_ERROR prevents the calling program doing any more processing: control goes to the EXCEPTION handler. Therefore RAISE_APPLICATION_ERROR should only be used for abnormal processing conditions.
I fail to see why you want to use RAISE_APPLICATION_ERROR to handle a situation which is quite obviously not an application error: your called program has found some data that you want to process.
yours in puzzlement, APC -
ACE Problem after restarting Application
Hi,
we have an ACE20 and have set it up to balance 4 Containers on a Oracle Application Server. Every time we stop all Containers at the same time for longer than an hour it takes forever (hours) until the Load Balancer starts balancing the Containers again. I can see that the ACE Module is checking the Containers in the Apache Logfiles on the Application Server and gets a 200, but still we can't access the Application for a few hours. If I connect direct to the Container it also works fine... just the ACE does not work. Like it has a timeout and is waiting.
Any idea how to give it a kick?
While accessing the Application I can see that it connects, but nothing happens...
sh conn detail
total current connections : 2
conn-id np dir proto vlan source destination state
----------+--+---+-----+----+---------------------+---------------------+------+
68155 2 in TCP 191 10.200.101.73:35777 10.200.101.64:80 ESTAB
[ idle time : 00:00:18, byte count : 888 ]
[ elapsed time: 00:00:18, packet count: 3 ]
68156 2 out TCP 195 10.200.105.33:80 10.200.101.73:35777 INIT
[ conn in reuse pool : FALSE]
[ idle time : 00:00:18, byte count : 0 ]
[ elapsed time: 00:00:18, packet count: 0 ]
Thanks for any help!
JasonHi,
I'm still having problems with the ACE Laodbalancer. At the moment it doesn't seem to recover after having restarted the Application the last time.
Can someone look at the Config and tell me if they see a mistake in it?
I have three instances accesst, accesst2 and accesst3. Each instance has 4 Oracle Application Server Containers Deployed on 2 different Apllication Servers. The Site is split between 2 DMZ which are seperated by a Firewall. The Cisco Ace has one leg in each vlan (191 and 195). We always had a problem after taking the Applcation Servers down Updates that it takes forever untill the ACE Server starts blancing agian. For the last 4 Days it hasn't started reblancing yet. As far as I know nothing has changed in the Configuration of the Server or of the ACE. The Firewall Admin said he tried t find a problem, but didn't change anything.
Do I maybe have a mistake in the ACE Config? Am I missing something here?
MS4_ACE_PU/MY-APP# sh running-config
Generating configuration....
logging buffered 7
access-list anyone line 8 extended permit ip any any
probe http HEAD_1
port 7791
interval 10
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_2
port 7792
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_3
port 7793
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_4
port 7794
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_5
port 7795
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_6
port 7796
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_7
port 7797
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
probe http HEAD_8
port 7798
interval 5
faildetect 15
passdetect interval 15
receive 2
request method head url /APPLICATION/images/probe.gif
expect status 200 200
open 2
parameter-map type http PERSIST-REBALANCE
persistence-rebalance
action-list type modify http LOCATION-RW-VIP-2
header rewrite response location header-value "http://accesst3.my-site.de:.....(.*)" replace "https://accesst3.my-site.de/%1"
header rewrite response content-lokation header-value "http://accesst3.my-site.de:.....(.*)" replace "https://accesst3.my-site.de/%1"
action-list type modify http LOCATION-RW-VIP-1
header rewrite response content-lokation header-value "http://accesst2.my-site.de:.....(.*)" replace "https://accesst2.my-site.de/%1"
header rewrite response location header-value "http://accesst2.my-site.de:.....(.*)" replace "https://accesst2.my-site.de/%1"
action-list type modify http LOCATION-RW-VIP
header rewrite response location header-value "http://accesst.my-site.de:.....(.*)" replace "https://accesst.my-site.de/%1"
header rewrite response content-lokation header-value "http://accesst.my-site.de:.....(.*)" replace "https://accesst.my-site.de/%1"
rserver host server103
description KS ApplicationServer
ip address 10.200.105.33
inservice
rserver host server104
description KS ApplicationServer
ip address 10.200.105.34
inservice
serverfarm host HTTP-APPL
rserver server103 7791
probe HEAD_1
inservice
rserver server103 7792
probe HEAD_2
inservice
rserver server104 7791
probe HEAD_1
inservice
rserver server104 7792
probe HEAD_2
inservice
serverfarm host HTTP-APPL-1
rserver server103 7795
probe HEAD_5
inservice
rserver server103 7796
probe HEAD_6
inservice
rserver server104 7795
probe HEAD_5
inservice
rserver server104 7796
probe HEAD_6
inservice
serverfarm host HTTP-APPL-2
rserver server103 7797
probe HEAD_7
inservice
rserver server103 7798
probe HEAD_8
inservice
rserver server104 7797
probe HEAD_7
inservice
rserver server104 7798
probe HEAD_8
inservice
sticky http-header TranSON_Cert_Subject group1
replicate sticky
serverfarm HTTP-APPL
sticky http-header TranSON_Cert_Subject group2
replicate sticky
serverfarm HTTP-APPL-1
sticky http-header TranSON_Cert_Subject group3
replicate sticky
serverfarm HTTP-APPL-2
class-map type http inspect match-any HTTP-INS-VIP
2 match header Host header-value "accesst.my-site.de"
class-map type http inspect match-any HTTP-INS-VIP-1
2 match header Host header-value "accesst2.my-site.de"
class-map type http inspect match-any HTTP-INS-VIP-2
2 match header Host header-value "accesst3.my-site.de"
class-map match-all HTTP-VIP
2 match virtual-address 10.200.101.64 tcp eq www
class-map match-all HTTP-VIP-1
2 match virtual-address 10.200.101.68 tcp eq www
class-map match-all HTTP-VIP-2
2 match virtual-address 10.200.101.69 tcp eq www
policy-map type loadbalance first-match HTTP-SF
class class-default
sticky-serverfarm group1
action LOCATION-RW-VIP
policy-map type loadbalance first-match HTTP-SF-1
class class-default
sticky-serverfarm group2
action LOCATION-RW-VIP-1
policy-map type loadbalance first-match HTTP-SF-2
class class-default
sticky-serverfarm group3
action LOCATION-RW-VIP-2
policy-map type inspect http all-match INS-PM-VIP
class HTTP-INS-VIP
permit
policy-map type inspect http all-match INS-PM-VIP-1
class HTTP-INS-VIP-1
permit
policy-map type inspect http all-match INS-PM-VIP-2
class HTTP-INS-VIP-2
permit
policy-map multi-match SLB-logic
class HTTP-VIP
loadbalance vip inservice
loadbalance policy HTTP-SF
loadbalance vip icmp-reply active
loadbalance vip advertise active
appl-parameter http advanced-options PERSIST-REBALANCE
class HTTP-VIP-1
loadbalance vip inservice
loadbalance policy HTTP-SF-1
loadbalance vip icmp-reply active
loadbalance vip advertise active
appl-parameter http advanced-options PERSIST-REBALANCE
class HTTP-VIP-2
loadbalance vip inservice
loadbalance policy HTTP-SF-2
loadbalance vip icmp-reply active
loadbalance vip advertise active
appl-parameter http advanced-options PERSIST-REBALANCE
interface vlan 191
ip address 10.200.101.65 255.255.255.0
alias 10.200.101.67 255.255.255.0
peer ip address 10.200.101.66 255.255.255.0
access-group input anyone
service-policy input SLB-logic
no shutdown
interface vlan 195
ip address 10.200.105.65 255.255.255.0
alias 10.200.105.63 255.255.255.0
peer ip address 10.200.105.66 255.255.255.0
access-group input anyone
no shutdown
Destination Gateway Interface Flags
10.200.101.0/24 0.0.0.0 vlan191 IA [0x30]
10.200.105.0/24 0.0.0.0 vlan195 IA [0x30] -
XML import raises application error / event code "AVAA0-3208-0"
I receive an application error when trying to import a specific XML file. Other XML files, that have been created with the same tools and sequence but from another MS Project file, can be imported without an issue.
There is no warning or error in Primavera's log file.
Here is the error message's content:
Type: EAccessViolation
Event Code: AVAA0-3208-0
Description: Access violation at address 01136627 in module 'PM.exe'. Read of address 00000000
Object: TVUltraButton
Context: TfrmWizImport.RunImportWizard / TDevxMainForm.actFileImportExecute / TCFormManager.SetToolbar / TDevxMainForm.BeforeFormShow / TfrmLogin.FormCreate
Primavera version: R8.3.2
OS: Windows XP (NT5.1) SP3
Has anyone an idea about what the root cause (XML content issue) might be?based on the details provided, this is not a permission issue since you are able to import other similar MSP XML files so it could be a data issue in the XML file being imported.
Can you try modifying the XML file and remove activities and just keep a few activities, then save as a new XML file and try again. I think you can try narrowing down the issue with some tests to see if it's a problem with the XML or not. -
Problems after migrating application from 10.1.2 to 10.1.3
Hi,
I am encountering the following error while executing the application after migrating it from Jdeveloper10.1.2 to JDeveloper10.1.3. Could you please help me in this regard..
NOTIFICATION J2EE JSP0008 Unable to dispatch JSP Page : java.lang.NullPointerException
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Message was edited by:
user491067Do you have the problem with all JSP pages, or only a few of them ?
Does it happen in the Embedded OC4J only ?
Could you try to deploy your application in the Standalone OC4J and test it from there ?
I had a similar issue where the Embedded OC4J was unnable to run big JSP pages.
There was no problem with the Standalone OC4J.
Hope this helps,
Didier. -
MS Office Report problems after compliing (application builder)
I'm finishing up an application that includes several MS office reports (opens a MS Word template). The template is opened, the bookmarks are filled, then the file is saved (to our internal network) as a .doc file. The New Report.vi is used to open the .doc file, the Print Report.vi is used to print the file, then the SMTP send file.vi is used to email the file.
Everything has been working fine then I decided to build the application for distribution. Big mistake! An installer is made. When I install the application I get "File not found" (error 7) errors each time I attempt to run this section of code. Incidentally, This app. also uses the SQL database toolset to read and write to a database. No problems with the database.
I thought it might have something to do with the Word templates being on the network. I copied everything to my local PC and built another application. Same problems.
I suspect I'm doing something wrong in the Source Files tab of the Build Application or Shared library window.
I'd really appreciate your help.
thanks,
toddTodd,
You need to add a dynamic VI to your list of Source Files in the Build Application window. The one you need is called "_Word Dynamic VIs", and it can be found at \vi.lib\addons\_office\-wordsub.llb . Doing this ensures that the executable can find the appropriate code when it is asked to dynamically load some Word-related VIs at execution-time.
I consider the difficulty of getting everything right when building executables to be just about the biggest problem that LabVIEW has, so don't feel too badly about it. I believe this requirement is covered somewhere in the Report Generation Toolkit documentation, but I think the process should be easier and more transparent to the user when they are working with NI-produced toolkits.
--John -
For PSDs I have created in older versions of Photoshop CC 2014 I am getting errors when opening / trying to save. They seem to be either Generator or font related. Interestingly, PSDs created in newer versions of PS CC 2014 have no issues, even when using same fonts.
I am getting the error messages:
When I open the older PSD files, (again created or saved in older versions of PS CC 2014) I am asked to update fonts. If I do I get the error.
'Selected font failed during last operation'
When I try to don't try to update fonts and then I try to play with the file I get the following error.
'There is a problem with Generator. Please quit Photoshop and try again. If the problem persists, remove any third-party plugins or try re-installing photoshop.
I don't have any third party plugins that I can see.
I have re-installed multiple times.
I need to use this program and I am paying for your services. I am actually on the phone now with 'help desk' and have been on hold for 22 minutes.
Please HelpWhen I installed the Apple programs, mobile device application did not uninstall by itself. I had to go to c://program files/common files/apple/mobile device application (or something like that) and manually delete the contents and the folders. I have a 64 bit version so I also had to visit c://program files (x86)/common files/apple/mobile application device (or similar) and also manually delete the files and folders. I had to delete the files before I could delete the folders. This manual part is probably tripping everyone up, because it's not as easy as simply hitting uninstall in the control panel. But the instructions are there. I hope this helps you.
-
Not able to use raise application error in oracle forms
Below is my code
When in used rasie_application_error in program unit proc
Iam getting compilation error
'identifer RAISE_APPLICATION_ERROR' must be declared.
I have used this in my exception below is the code.
Exception
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR (-20001, 'This ID is invalid');
END;
Can anyone help me in thisRAISE APPLICATION_ERROR built-in is raised in a DB procedure/function or trigger.
You can write an ON-error trigger that will trap any DB error messages
or
You can use Dbms_Error_Code & Dbms_Error_Text for trapping the Error. -
Forms, RAISE Application Error
Hi,
How to get the message in forms (front-end) from Oracle DB procedures/triggers.The message is being used in a RAISE APPLICATION_ERROR built-in in the DB procedure.
Is there any other ways to communicate the messages from back-end to front-end.
Thanks.
[email protected]
nullSure. You can write an ON-MESSAGE trigger that will trap any DB error messages. An example of code that will capture Oracle Message Number 40301 is shown below:
DECLARE
messg_num number := message_code; -- DB error message code.
messg_text varchar2(80) := message_text; --DB error message text.
messg_type varchar2(3) := message_type; -- BD error type.
BEGIN
IF messg_num = 40301 THEN
MESSAGE('No records matching you criteria were found from the database.');
DISPLAY_ERROR;
ELSE
MESSAGE(messg_type| |'-'| |to_char(messg_num)| |': '| |messg_text);
END IF;
END;
You can further refine this code by actually trapping the error message in alert display that you can design on your form.
Hope this help you.
Abdul
null -
help plz
Hello,
Thank you for visiting Apple Support Communities.
Here are a couple troubleshooting resources I would recommend when experiencing issues with iCloud Mail.
iCloud: Troubleshooting iCloud Mail
http://support.apple.com/kb/TS4002
iCloud: Account troubleshooting
http://support.apple.com/kb/TS3988
If all steps have been processed, see the section labeled Additional Information in the first article.
Cheers,
Jason H. -
How to read the DB application error in JSP
We have the PL/SQL triggers that perform validations on the insert and update. If validation fails the RAISE APPLICATION ERROR is used.
On error the errorpage.jsp is called correctly, but my problem is that I can not read the actual error message from database.
All I am getting from exception.getMessage() is the JBO message. The exception.printStackTrace() does not help either. How can I read text of PL/SQL exception message ?
I have tried this test in errorpage:
if( exception instanceof oracle.jbo.JboException ) { ...}
but apparently the exception is not JboException, since test fails.
I read about ApplicationModule.setExceptionHandler() and even build exception handler which does not do anything. I assumed that this would allow all exceptions to be passed to the error page. Nothing like that happens though. I still see only last JBO exception, I can not see the original DB exception.
Thanks in advance,
MichaelHi ankur,
thanks for the quick reply,
I have got the answer for the first question.
Can u tell me solution for the 2nd question also. how to read the Portal user information in VC. like reading the Portal user information in webdynpro.
In webdynpro we can read any of the portal user properties or information like using the following code.
Itry{
IWDClientUser user = WDClientUser.getCurrentUser();
String fName = user.getFirstName();
String lName = user.getLastName();
}catch(Exception e){
In the same way to read the portal user information in VC. BCz for every portal user we have created one custom properties, we need to read that propety value in my vc application, when the user logged in to portal and accessing integrated VC application.
I have seen one of the thead this is possible from VC7.0 of NW2004s, current my version is also the same.
Portal 7.0
VC 7.0
If u know how to do that, can u let me know.
Regards
Vijay -
Hi,
we are calling an RFC synchronously from BPM. This is a standard BAPI, that does not have any RFC exception message (BAPI_IPAK_START and BAPI_ISREQUEST_GETSTATUS). We are only able to catch system errors, since no RFC exception message is avaiable for which we could define a different exception branch.
If an error happens in the RFC, an application error is thrown, which is not catched in the exception branch defined to handle the system error. After the application error, the process simply terminates- that's it.
Why is an application error not catched as system error? Is there any way to catch an application error and let the business process continue?
Your help will be rewarded,
VolkerHi Volker,
a BAPI does not throw any exception, therefore you cannot catch any.
- You could write a wrapper RFC around the BAPI which interprets the RETURN structure and throws exception in case of an error.
- You could have a fork in the BPM depending of the entries in RETURN.
Regards
Stefan -
When I go to open up Firefox, it does not open no matter what I try It just pops up this box that says Firefox.exe - application error.
Then it says the Instruction at "0x798377a9" referenced memory at "0x798377a9". The memory could not be "written".
Click on OK to termintate the program
What does this mean? And why cant I use Firefox. I can still use internet explorer just fine.
== User Agent ==
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1)Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall
Maybe you are looking for
-
Should I fix or replace my MacBook (late 2008)?
Hello, My MacBook (late 2008) has been running slow for some time now. I think it might be time for a new hard drive... or maybe a new Mac, but not too sure what is the root cause. Here is the data pulled from EtreCheck. I'm looking for some expert
-
How long does one page in iWeb go?
Hi, I currently have a website up on freewebs.com and now I have my own domain name and am working on making a new site with iWeb and just started using it the other day. When you are working on a page within iWeb lets say the Welcome page, are you l
-
ITunes 11 won't launch; tried almost everything
I know there are dozens of threads about this, but I've already read many and tried their suggestions. Still no go. I'm incredibly frustrated here. I'm running Windows 7 and iTunes is mostly refusing to work. I say mostly because it did start once ye
-
Default application conflict / bug (Pages + TextEdit)
TextEdit is stuck as the default application for for .pages documents. It stays on the default application place above the separator, but Pages (or whatever else I try to set as the actual default application) gets the (default) parenthesis. It's pos
-
LOAD BALANCE BEHAVIOR FOR 7600 ON ETHERCHANNELS
Hi Everyone, Currently I'm planning to implement ether-channels on 7600 routers, but there's something that's still not clear to me, regarding the load balancing behavior, for L2VPN and L3VPN. I've read that 7600 in MPLS default load balance behavior