Continue the loop after the exception thrown in SQL
How would continue the while loop in the code below after an exception was thrown?
DECLARE v_blob_data BLOB; v_blob_len NUMBER; v_position NUMBER; v_raw_chunk RAW(10000); v_char CHAR(1); c_chunk_len number := 1; v_line VARCHAR2 (32767) := NULL; v_data_array wwv_flow_global.vc_arr2; v_rows number; v_sr_no number := 1; v_first_line_done boolean := false; v_error_cd number :=0; v_quote_pos1 NUMBER; v_quote_pos2 NUMBER; v_enclosed_str VARCHAR(200); v_errmsg VARCHAR2(4000); BEGIN delete from TEMP_MM_UPDATE where username = :P1_USER_ID; -- Read data from wwv_flow_files</span> select blob_content into v_blob_data from wwv_flow_files where name = :P2_FILE_UPLOAD; v_blob_len := dbms_lob.getlength(v_blob_data); v_position := 1; -- Read and convert binary to char</span> WHILE ( v_position <= v_blob_len ) LOOP begin v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk))); v_line := v_line || v_char; v_position := v_position + c_chunk_len; -- When a whole line is retrieved </span> IF v_char = CHR(10) THEN LOOP --Make sure there's something to replace IF INSTR(v_line, '"', 1, 1) = 0 THEN EXIT; -- If nothing to replace, exit loop and don't try END IF; --Find the position of the first and second quotes in the line of text v_quote_pos1 := INSTR(v_line, '"', 1, 1); v_quote_pos2 := INSTR(v_line, '"', 1, 2); --Extract the inner string v_enclosed_str := SUBSTR(v_line, v_quote_pos1 + 1, v_quote_pos2 - v_quote_pos1 - 1); --perform the replacement v_line := SUBSTR(v_line, 0, v_quote_pos1 - 1) || REPLACE(v_enclosed_str, ',', '<') || SUBSTR(v_line, v_quote_pos2 + 1); END LOOP; -- Convert comma to : to use wwv_flow_utilities </span> v_line := REPLACE (v_line, ',', ':'); v_line := REPLACE (v_line, '<', ','); v_line := REPLACE (trim(v_line), '-', NULL); --v_line := REPLACE (trim(v_line), '"', NULL); -- Convert each column separated by : into array of data </span> v_data_array := wwv_flow_utilities.string_to_table (v_line); --Check to see if the row of column headers has already been parsed through IF(v_first_line_done != true)THEN v_first_line_done := true; --Check column order in spreadsheet IF(v_data_array(1) LIKE '%Username%' AND v_data_array(2) LIKE '%NDN%' AND v_data_array(3) LIKE '%PCFN%' ) THEN v_error_cd := 0; v_line := NULL; ELSE v_error_cd := 1; END IF; --If first line is done and the column order is correct then ELSIF(v_first_line_done = true AND v_error_cd = 0) THEN -- Insert data into target table </span> EXECUTE IMMEDIATE 'insert into TEMP_MM_UPDATE (USERNAME, RPT_FLAG, PCFN) values (:1,:2,:3)' USING v_data_array(1), v_data_array(2), v_data_array(3); -- Clear out v_line := NULL; v_sr_no := v_sr_no + 1; END IF; END IF; exception WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); end; END LOOP; DELETE FROM WWV_FLOW_FILES where name = :P2_FILE_UPLOAD; DELETE FROM TEMP_MM_UPDATE WHERE USERNAME IS NULL AND PCFN IS NULL; IF(v_error_cd = 1) THEN INSERT INTO temp_mm_update (USERNAME, ERROR_DESC) VALUES (:P1_USER_ID, 'Error. Please check column order in spreadsheet.'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, 'No Data Found.'); WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); END;
When I set the exception inside the loop, as above, the procedure seems never to end, and I end up getting a 'NOWAIT' error when I try to remove the table or something like that.
The code works fine if I remove the 'START' just after the loop and also out of the exception within the loop, but I want to be able to specify what's wrong with each record rather than deal with the correct records and then stop after that it is a record that has, for example, 9 values in a column that accepts only 6.
Can anyone help with this?
Thank you
Steven
v_line := NULL; v_sr_no := v_sr_no + 1;
DECLARE v_blob_data BLOB; v_blob_len NUMBER; v_position NUMBER; v_raw_chunk RAW(10000); v_char CHAR(1); c_chunk_len number := 1; v_line VARCHAR2 (32767) := NULL; v_data_array wwv_flow_global.vc_arr2; v_rows number; v_sr_no number := 1; v_first_line_done boolean := false; v_error_cd number :=0; v_quote_pos1 NUMBER; v_quote_pos2 NUMBER; v_enclosed_str VARCHAR(200); v_errmsg VARCHAR2(4000); BEGIN delete from TEMP_MM_UPDATE where username = :P1_USER_ID; -- Read data from wwv_flow_files select blob_content into v_blob_data from wwv_flow_files where name = :P2_FILE_UPLOAD; v_blob_len := dbms_lob.getlength(v_blob_data); v_position := 1; -- Read and convert binary to char WHILE ( v_position <= v_blob_len ) LOOP begin v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk))); v_line := v_line || v_char; v_position := v_position + c_chunk_len; -- When a whole line is retrieved IF v_char = CHR(10) THEN LOOP --Make sure there's something to replace IF INSTR(v_line, '"', 1, 1) = 0 THEN EXIT; -- If nothing to replace, exit loop and don't try END IF; --Find the position of the first and second quotes in the line of text v_quote_pos1 := INSTR(v_line, '"', 1, 1); v_quote_pos2 := INSTR(v_line, '"', 1, 2); --Extract the inner string v_enclosed_str := SUBSTR(v_line, v_quote_pos1 + 1, v_quote_pos2 - v_quote_pos1 - 1); --perform the replacement v_line := SUBSTR(v_line, 0, v_quote_pos1 - 1) || REPLACE(v_enclosed_str, ',', '<') || SUBSTR(v_line, v_quote_pos2 + 1); END LOOP; -- Convert comma to : to use wwv_flow_utilities v_line := REPLACE (v_line, ',', ':'); v_line := REPLACE (v_line, '<', ','); v_line := REPLACE (trim(v_line), '-', NULL); --v_line := REPLACE (trim(v_line), '"', NULL); -- Convert each column separated by : into array of data v_data_array := wwv_flow_utilities.string_to_table (v_line); --Check to see if the row of column headers has already been parsed through IF(v_first_line_done != true)THEN v_first_line_done := true; --Check column order in spreadsheet IF(v_data_array(1) LIKE '%Username%' AND v_data_array(2) LIKE '%NDN%' AND v_data_array(3) LIKE '%PCFN%') THEN v_error_cd := 0; v_line := NULL; ELSE v_error_cd := 1; END IF; --If first line is done and the column order is correct then ELSIF(v_first_line_done = true AND v_error_cd = 0) THEN -- Insert data into target table EXECUTE IMMEDIATE 'insert into TEMP_MM_UPDATE (USERNAME, RPT_FLAG, PCFN) values (:1,:2,:3)' USING v_data_array(1), v_data_array(2), v_data_array(3); -- Clear out v_line := NULL; v_sr_no := v_sr_no + 1; END IF; END IF; exception WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); v_line := NULL; v_sr_no := v_sr_no + 1; END; END LOOP; DELETE FROM WWV_FLOW_FILES where name = :P2_FILE_UPLOAD; DELETE FROM TEMP_MM_UPDATE WHERE USERNAME IS NULL AND PCFN IS NULL; IF(v_error_cd = 1) THEN INSERT INTO temp_mm_update (USERNAME, ERROR_DESC) VALUES (:P1_USER_ID, 'Error. Please check column order in spreadsheet.'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, 'No Data Found.'); WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); END;
Tags: Database
Similar Questions
-
Show the exception thrown from the business layer
All,
In my AMImpl class, I have the following code:
Call this method in my grain of supportpublic void checkPasswordByEname(String ename,String pwd_form){ Statement stmt=null; ResultSet rset=null; String pwd; try { DBTransaction trans = getDBTransaction(); stmt = trans.createStatement(1); rset = stmt.executeQuery("select pwd from employees where first_name = '" + ename + "'"); if(rset.next()){ pwd = rset.getString(1); if(!pwd_form.equals(pwd)){ System.out.println("password didnt match"); throw new JboException("Password didnt match"); } }else{ System.out.println("username doesn't exist"); throw new JboException("username doesn't exist"); } } catch (Exception ex) { ex.printStackTrace(); throw new JboException(ex.getMessage()); }finally{ try { rset.close(); stmt.close(); } catch (Exception ex) { ex.printStackTrace(); } finally { } } }
How can I display the exception thrown from the business layer?public String doLogin() { BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding("checkPasswordByEname"); Object result = operationBinding.execute(); if (!operationBinding.getErrors().isEmpty()) { //show the exception thrown from the Business layer return "error"; } return "success"; }
thnks
11.1.1.5 JDevHello
Your support of bean, after the execution of the method of model try something like:
if(!oper.getErrors().isEmpty()){ FacesMessage msg =new FacesMessage(FacesMessage.SEVERITY_ERROR, oper.getErrors().get(0), ""); FacesContext.getCurrentInstance().addMessage(null, msg); }
Gabriel.
-
Help with the exception of Pl/SQL 'ora-3150 end of file on the communication channel.
Hello.
The code attached to this post opens a slider that load of 99 dblinks from different remote databases of different version.
He captures the information from these databases and stores them locally on a central database (11.2.0.4.0 version) on different tables.
The problem I have is that when a database is deleted, the dblink to this database show me the error 'ora-3150 end of file on communication channel' and that's right.
But he's not going trough the exception that I created, the cursor is closed and does not continue with the cycle.
The exception I created insert data on DBMONITOR error. DBMONITOR_LOG_ERROR_TABLE in order to catch the error (you'll be able to see all the code on the attachment)
It's the exception:
exception
while others then
INSERT IN DBMONITOR. DBMONITOR_LOG_ERROR_TABLE (NOMBRE_DBLINK, message, info, FECHA_ERROR, TIPO_PROCEDURE) VALUES (var, SUBSTR (DBMS_UTILITY. (FORMAT_ERROR_STACK, 1, 200), "CONNECTION ERROR", SYSDATE, 'CAPACITY');
commit;
end;
Could help me please on how could intercept this exception?
Thank you.
Juan.
You might have a problem with your connection or mishandling. The end of the file ora-3150, on channel of communication error means that there is a connection, but this link was broken somehow.
If a database is not reachable, you should get other types of errors.
For example judgment of the Kingdom or tns - memory could not resolve alias or simliar things.
Here is a list of typical mistakes I have check and manage when accessing remote databases.
e_db_link_broken EXCEPTION; --ORA-02019 connection description for remote database not found PRAGMA EXCEPTION_INIT (e_db_link_broken, -02019); e_oracle_not_available EXCEPTION; --ORA-01034 ORACLE not available PRAGMA EXCEPTION_INIT (e_oracle_not_available, -01034); e_oracle_down EXCEPTION; --ORA-27101: shared memory realm does not exist PRAGMA EXCEPTION_INIT (e_oracle_down, -27101); e_no_listener EXCEPTION; --ORA-12541: TNS:no listener PRAGMA EXCEPTION_INIT (e_no_listener, -12541); e_no_service EXCEPTION; --ORA-12514: TNS:listener does not currently know of service requested in connect descriptor PRAGMA EXCEPTION_INIT (e_no_service, -12514); e_timeout EXCEPTION; --ORA-12170: TNS:Connect timeout occurred PRAGMA EXCEPTION_INIT (e_timeout, -12170);
If you have a long open session and fail to close the db links after recovered information from the remote site?
In addition, I propose to change your dynamic insertion in a normal insert.
First extract the data of the DB link dynamically, but just with a select statement. Then do the insertion with the result data.
Improve your logging table to store messages up to 4000 char CHARACTER. 200 is really small for error messages.
In addition to the DBMS_UTILITY. FORMAT_ERROR_STACK you must also connect DBMS_UTILITY. FORMAT_ERROR_BACKTRACE. Just to see if you get a better message there.
WHEN e_db_link_broken or e_oracle_not_available or e_oracle_down or e_no_listener or e_no_service or e_timeout THEN INSERT INTO DBMONITOR.DBMONITOR_LOG_ERROR_TABLE (NOMBRE_DBLINK, message, info,FECHA_ERROR,TIPO_PROCEDURE) VALUES(var, 'Remote DB not accessible','ERROR DE CONEXION',SYSDATE,'CAPACITY'); -- commit; WHEN OTHERS THEN INSERT INTO DBMONITOR.DBMONITOR_LOG_ERROR_TABLE (NOMBRE_DBLINK, message, info,FECHA_ERROR,TIPO_PROCEDURE) VALUES(var, SUBSTR(DBMS_UTILITY.FORMAT_ERROR_STACK||DBMS_UTILITY.FORMAT_ERROR_BACKTRACE, 1, 4000),'ERROR DE CONEXION',SYSDATE,'CAPACITY'); --commit; end;
-
How to continue a loop after rear roller called a Transaction in SOA
Hi all
I have major bpel processes that call an external web service that returns the Recordset.
iiterate through the game, I need to remember the each file in topic QA.
and ack each record after their storage in AQTopic. If the ACK does not I should roll back the previously inserted record of QA.
I have divided into two parts of the XA transaction using "checkpoint();".
Based on the status of the receipt, I called throw with Rollback transaction activity, I handled that by using catch everything in scope.but even after this process ends is not an iteration in the loop.
I used XA Datasource.
Please suggest me.
Thanks René.
Hi PuneetRekhade,
Thanks for your suggestion.
After receving the ack = success, before storing the recording in the AQ if the system breaks down data would no longer exist in AQ's or database for the external web service.
the recording should not be lost at any cost.
in my case, if the system crashes before sending the data to QA, nothing happens because I wouldn't send the acknowledgement to the external web service.
Thank you
Raj.
-
the exception in the procedure call management
Hello
I have a package where currently make phone calls to private public process procedures.
and the senario is: -.
create package body p_tst
is
ex_failed exception;
-It's private proc
procedure p_private
is
Start
.
.
raise ex_failed;
exception
When ex_failed
then
lift;
.........
end p_private;
procedure p_public
is
Start
....
-nomaking appeal to the private sector
-procedure
p_private;
-Here, I need to catch
-the exception thrown
-past of callee
-procedure
When ex_failed
...
end p_public;
end;
Basically, I want to catch any exception of procedure called passed to the procedure call and raise the same exception by calling procedure.
is it possible to intercept the exception even in the calling procedure?Yes, p_private throws the exception, it will be taken by p_public and the program stops after dbms_output.
-
See details of the exception OFA
Hi all
I try to open a custom OPS page. It is throwing the error below
"You have encountered an unexpected error. Please contact the administrator of the help system. »
I need to view the exception details. Is someone can you please tell me what is the profile that I need to activate it in order to view the details of the exception thrown on the page.
Thank you
Rajesh SM.DNF: Diagnostics.
Kristofer
-
Why out of the loop after a managed exception is thrown
I am trowing a custom exception inside a nested for loop. The execption notes, however, both the inner and outer loop output once the exception is thrown. I tried to add a continue statement, but that has not solved the problem.
Jet moves execution of capture, closing the loop. You can send a cancelable event instead.
-
Continue the block after the exception management
The guys in the slot block.
create or replace procedure proc_case (p_in IN number) is begin case p_in when 1 then dbms_output.put_line('its one'); when 2 then dbms_output.put_line('its two'); end case; dbms_output.put_line('after the exception handler'); exception when case_not_found then dbms_output.put_line('its not found'); end;
When the procedure is executed as follows.
begin proc_case(3); end;
It shows the statement in the block of exception, but after that it does not run the statement following the exception handler and the outputs of the block, how can I execute the statement after the end case statement. I do not use the Else statement in case because I wanted to understand the logic of this block.
CREATE OR REPLACE
PROCEDURE proc_case
(
p_in in NUMBER)
IS
BEGIN
BEGIN
P_in CASE
WHEN 1 THEN
dbms_output.put_line ('the one');
WHEN 2 THEN
dbms_output.put_line ('two');
END CASE;
EXCEPTION
WHEN case_not_found THEN
dbms_output.put_line ("' its not found");
END;
dbms_output.put_line ("' after the exception handler");
END;
-
Bug in the MAF/JDev - Exception thrown in the preview
Hi, I just started to develop for MAF on my local PC.
I was recently in London attending a practice for mobile, so I opted to try the same tutorial, we had here on my PC.
In the tutorial, you just create 2 features, a workflow and a local HTML help page.
Then, you create a JAVA bean to be a data controller.
The created workflow originally has 2 views - EmpList and graphic with a transition of ran.
After that the data controller is created, I started creating the first view: empList, when I click on preview, JDeveloper encounters an Exception, and my UI is broken.
The Application browser is empty, and the only solution that worked to restore my user interface is as follows:
https://community.Oracle.com/thread/1009459?start=0 & tstart = 0
It's really annoying to do it every time
Kind regards
Ognjen
I paste the error details here - NPE in o.j.model.ApplicationContent:62:
Execution of null action (959) [AdfcDiagramEditor] [for (EmpsTaskFlow.xml, ViewController.jpr, Employees.jws)]
NULL: Jul 13, 2015 10:31:21 oracle.bali.inspector.multi.MultiObjectModel _updateProperties
INFO: SelectionModel has no selected items
Call to order: [for (empList.amx, < none >, < any >)]
Call to order: initialize the contents of the file [for (empList.amx, < none >, < any >)]
Calling command: Insert panelPage with activated facets [for (empList.amx, < none >, < any >)]
NULL: Jul 13, 2015 10:31:26 oracle.bali.inspector.multi.MultiObjectModel _updateProperties
INFO: SelectionModel has no selected items
Command: all pages
13 July 2015 10:31:34 oracle.bali.xml.model.XmlContext deliverSetupEventHelper
GRAVE: Exception thrown during the execution of installation hook oracle.adfmf.amx.dt.editor.databinding.AMXXmlContextSetupHook@23aa90f4 context JDevXmlContext@540205355 (home.amx, null, null)!
java.lang.NullPointerException
at oracle.jdeveloper.model.ApplicationContent.getInstance(ApplicationContent.java:62)
at oracle.adfmf.common.util.McAppUtils.getApplicationAdfMetaInfUrl(McAppUtils.java:408)
at oracle.adfmf.common.util.McAppUtils.getApplicationXmlURL(McAppUtils.java:371)
at oracle.adfmf.common.util.McAppUtils.getApplicationControllerProject(McAppUtils.java:1984)
at oracle.adfmf.common.util.McAppUtils.getDefinedDataControls(McAppUtils.java:1854)
at oracle.adfmf.amx.util.AMXUtils.registerDataControls(AMXUtils.java:609)
at oracle.adfmf.amx.dt.editor.databinding.AMXXmlContextSetupHook.setup(AMXXmlContextSetupHook.java:69)
at oracle.bali.xml.model.XmlContext.deliverSetupEventHelper(XmlContext.java:1391)
at oracle.bali.xml.model.XmlContext.deliverSetupEventAtXmlContextCreation(XmlContext.java:1342)
at oracle.bali.xml.gui.jdev.JDevXmlContext.deliverSetupEventAtXmlContextCreation(JDevXmlContext.java:834)
at oracle.bali.xml.model.XmlContext._initializeModel(XmlContext.java:326)
at oracle.bali.xml.model.XmlContext._setSourceModel(XmlContext.java:2328)
at oracle.bali.xml.model.XmlContext.setModel(XmlContext.java:346)
at oracle.bali.xml.addin.XMLSourceNode._createAndInitXmlContext(XMLSourceNode.java:1782)
at oracle.bali.xml.addin.XMLSourceNode._getXmlContext(XMLSourceNode.java:1732)
at oracle.bali.xml.addin.XMLSourceNode.getXmlContext(XMLSourceNode.java:192)
at oracle.adfmf.common.util.McAppUtils.getXmlModelFromXmlSourceNode(McAppUtils.java:877)
at oracle.adfmf.amx.dt.editor.PreviewEditor.resolveCellFormatHeight(PreviewEditor.java:790)
at oracle.adfmf.amx.dt.editor.PreviewEditor.updateAMXToStage(PreviewEditor.java:509)
at oracle.adfmf.amx.dt.editor.PreviewEditor.editorShown(PreviewEditor.java:280)
at com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.riseEditorShown(SplitPane.java:1914)
at com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.doLayoutBottomTabs(SplitPane.java:757)
at com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.doLayout(SplitPane.java:615)
at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.whenCurrentEditorChanges(NbEditorManager.java:1612)
at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.whenCurrentEditorChanges(TabGroup.java:1026)
at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.whenCurrentEditorChanges(TabGroup.java:1021)
at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroupState.whenCurrentEditorChanges(TabGroupState.java:811)
at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroupState.setCurrentSplitPanePos(TabGroupState.java:192)
at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroupState.activateEditor(TabGroupState.java:496)
at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.activateEditor(TabGroup.java:464)
at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.focusEditor(NbEditorManager.java:1476)
at com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.whenEditorTabMousePressed(SplitPane.java:1523)
at com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.mousePressed(SplitPane.java:1511)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
at java.awt.Component.processMouseEvent(Component.java:6502)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at $200 (EventQueue.java:103) java.awt.EventQueue.access
in java.awt.EventQueue$ 3.run(EventQueue.java:694)
in java.awt.EventQueue$ 3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)
in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)
in java.awt.EventQueue$ 4.run(EventQueue.java:708)
in java.awt.EventQueue$ 4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.NullPointerException
o.j.model.ApplicationContent.getInstance(ApplicationContent.java:62)
o.adfmf.common.util.McAppUtils.getApplicationAdfMetaInfUrl(McAppUtils.java:408)
o.adfmf.common.util.McAppUtils.getApplicationXmlURL(McAppUtils.java:371)
o.adfmf.common.util.McAppUtils.getApplicationControllerProject(McAppUtils.java:1984)
o.adfmf.common.util.McAppUtils.getDefinedDataControls(McAppUtils.java:1854)
o.adfmf.amx.util.AMXUtils.registerDataControls(AMXUtils.java:609)
o.adfmf.amx.dt.editor.databinding.AMXXmlContextSetupHook.setup(AMXXmlContextSetupHook.java:69)
o.bali.xml.model.XmlContext.deliverSetupEventHelper(XmlContext.java:1391)
o.bali.xml.model.XmlContext.deliverSetupEventAtXmlContextCreation(XmlContext.java:1342)
o.bali.xml.gui.jdev.JDevXmlContext.deliverSetupEventAtXmlContextCreation(JDevXmlContext.java:834)
o.bali.xml.model.XmlContext._initializeModel(XmlContext.java:326)
o.bali.xml.model.XmlContext._setSourceModel(XmlContext.java:2328)
o.bali.xml.model.XmlContext.setModel(XmlContext.java:346)
o.bali.xml.addin.XMLSourceNode._createAndInitXmlContext(XMLSourceNode.java:1782)
o.bali.xml.addin.XMLSourceNode._getXmlContext(XMLSourceNode.java:1732)
o.bali.xml.addin.XMLSourceNode.getXmlContext(XMLSourceNode.java:192)
o.adfmf.common.util.McAppUtils.getXmlModelFromXmlSourceNode(McAppUtils.java:877)
o.adfmf.amx.dt.editor.PreviewEditor.resolveCellFormatHeight(PreviewEditor.java:790)
o.adfmf.amx.dt.editor.PreviewEditor.updateAMXToStage(PreviewEditor.java:509)
o.adfmf.amx.dt.editor.PreviewEditor.editorShown(PreviewEditor.java:280)
com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.riseEditorShown(SplitPane.java:1914)
com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.doLayoutBottomTabs(SplitPane.java:757)
com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.doLayout(SplitPane.java:615)
com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.whenCurrentEditorChanges(NbEditorManager.java:1612)
com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.whenCurrentEditorChanges(TabGroup.java:1026)
com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.whenCurrentEditorChanges(TabGroup.java:1021)
com.oracle.jdeveloper.nbwindowsystem.editor.TabGroupState.whenCurrentEditorChanges(TabGroupState.java:811)
com.oracle.jdeveloper.nbwindowsystem.editor.TabGroupState.setCurrentSplitPanePos(TabGroupState.java:192)
com.oracle.jdeveloper.nbwindowsystem.editor.TabGroupState.activateEditor(TabGroupState.java:496)
com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.activateEditor(TabGroup.java:464)
com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.focusEditor(NbEditorManager.java:1476)
com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.whenEditorTabMousePressed(SplitPane.java:1523)
com.oracle.jdeveloper.nbwindowsystem.editor.SplitPane.mousePressed(SplitPane.java:1511)
j.a.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
j.a.Component.processMouseEvent(Component.java:6502)
jx.s.JComponent.processMouseEvent(JComponent.java:3320)
j.a.Component.processEvent(Component.java:6270)
j.a.Container.processEvent(Container.java:2229)
j.a.Component.dispatchEventImpl(Component.java:4861)
j.a.Container.dispatchEventImpl(Container.java:2287)
j.a.Component.dispatchEvent(Component.java:4687)
j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
j.a.LightweightDispatcher.processMouseEvent(Container.java:4489)
j.a.LightweightDispatcher.dispatchEvent(Container.java:4422)
j.a.Container.dispatchEventImpl(Container.java:2273)
j.a.Window.dispatchEventImpl(Window.java:2719)
j.a.Component.dispatchEvent(Component.java:4687)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:735)
j.a.EventQueue.access$ 200 (EventQueue.java:103)
j.a.EventQueue$ 3.run(EventQueue.java:694)
j.a.EventQueue$ 3.run(EventQueue.java:692)
j.security.AccessController.doPrivileged (Native Method)
j.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)
j.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)
j.a.EventQueue$ 4.run(EventQueue.java:708)
j.a.EventQueue$ 4.run(EventQueue.java:706)
j.security.AccessController.doPrivileged (Native Method)
j.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)
j.a.EventQueue.dispatchEvent(EventQueue.java:705)
o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
j.a.EventDispatchThread.run(EventDispatchThread.java:91)
Just a little update:
I upgraded MAF 2.1.3 and now I do not get the exception more.
Kind regards
Ognjen
-
Issue with the exception of the loop
Hello
I had 4 database, I use dblinks to check some tables and write the results in a table. I have created a table to contain the instance names so that my loop check and perform my procedure.
declare
sql_string1 VARCHAR2 (4000);
sql_string2 VARCHAR2 (100);
Start
sql_string2: = "truncate table Backup."
immediately run sql_string2;
for r in (select INSTANCE_NAME, del HOST_NAME)
loop
sql_string1: = ' insert into Backup
SELECT "' | r.HOST_NAME | " ' '||', '''|| r.INSTANCE_NAME | " ' '||' ,
INPUT_TYPE, STATUS, START_TIME, END_TIME V$RMAN_BACKUP_JOB_DETAILS@'|| r.INSTANCE_NAME;
immediately run sql_string1;
COMMIT;
end loop;
exception
WHILE OTHERS THEN
NULL;
end;
/
If all listeners work or dbs work this procedure to work with no problems but if one of them is closed, simply insert the values until it gets error but I want that if she gets error will be another value. How can I do?
I changed the values in the table led
SYS@crofxd01:WSTORED: > select instance_name del;
INSTANCE_NAM
------------
BLABLA
BLABLA
BLABLA
BLABLA
FPT
only the FPT is actual instance after I performed the procedure, I want to see that FPT values inserted DB.
Thank you
You must move the exceptions in the loop. Like this
declare
sql_string1 VARCHAR2 (4000);
sql_string2 VARCHAR2 (100);
Start
sql_string2: = "truncate table Backup."
immediately run sql_string2;
for r in (select INSTANCE_NAME, del HOST_NAME)
loop
sql_string1: = ' insert into Backup
SELECT "' | r.HOST_NAME | " ' '||', '''|| r.INSTANCE_NAME | " ' '||' ,
INPUT_TYPE, STATUS, START_TIME, END_TIME
OF V$RMAN_BACKUP_JOB_DETAILS@'|| r.INSTANCE_NAME;
Start
immediately run sql_string1;
exception
Whenthen
null;
end;COMMIT;
end loop;
end;But make sure that you specify that the exception in the EXCEPTION block. Do not THEN use than OTHERS. Because it will catch all exceptions (long-awaited by you and should not not by you). It will hurt one day.
-
Firefox cleans the exceptions list 'Allowed Sites - Installation of modules' after each reboot. I tried the new own profile - everything works fine. I don't want to installation and implementing all addons after reset of profile, so try to understand the problem.
Compensation for the "Site Preferences" (in the "Clear recent history" or Ctrl + Shift + Delete) same for the "last time" helped.
(permissions.sqlite contained an empty table instead of default lines)
-
Stopping everything in a loop after the last element of a 2D array
How to stop a while loop after the last element of a 2d array. I tried an uninitialized matrix wiring constant and comparison with table 2d, which has been indexed to a 1 d table, but that did not work.
Hahaha, Hey, it's true what they say, a picture is worth a thousand words
-
stop all loop after the last element of the array
I want to stop a while loop after the last element of an array. I can't use table size because the size of the array can change within the program. What should I do?
Why not use the function empty array like this...?
-
Windows Installer loop after installation of the training software
I have a MSI file missing because of training software now Installer is stuck in a loop, after that I tried to uninstall the program.p
Hi MWRN,
· What is the exact error message that you receive with the error code?
· What is the service pack installed on the computer?
· Do you remember any recent changes on the computer?
Try the steps listed in the link below: how to solve the problems that may occur when you install, uninstall, or upgrade one program on a Windows computer: http://support.microsoft.com/kb/2438651
-
Operating system does not stop. It continues to run after I pressed the close button.
Operating system does not stop automatically. Computer continues to run after I pressed the close button.
Hi Solodeseo,
Try method listed http://support.microsoft.com/kb/308029. Hope this will help.
Maybe you are looking for
-
How to 'validate' faces?
I'm new on Photos and try to understand how works the faces feature. before, in iPhoto there was a feature where he says "John can be in a 24 additional photos - click here to confirm" and then he grew up a thumbnail view of pictures with a tick and
-
Bug Windows 7 Spider Solitaire
during the game, I noticed the bug game... I had a game with 2 pieces of black ace 8
-
Windows cannot find RSoP.msc
I'm having the problem "Windows is not genuine". I received a reply (not sure how to post them on my original thread) and they told me to go to start, run and type "RSoP.msc". When I do this I get the answer: Windows cannot find RSoP.msc. Make sure y
-
Problem with card reader after the upgrade to Windows 7
Just upgraded to Windows 7 Pro to Vista business and cant get internal or external card reader connection. Not even connect the camera via the USB port works.
-
We used the IPSEC client inherited for some time, and I read and learn AnyConnect. I downloaded anyconnect-victory - 2.4.1012 - k9.pkg to my ASA and created a configuration xml file. I enabled AnyConnect on interfaces and activated the connection pr