Reg: Exception thrown Proc appeal

Hi Experts,

I'm working on an anonymous block, where I'm trying to call a procedure say PROC_A in PACKAGE_X. The procedure was private and was not usable outside; I made public by placing the signature in the package specification.

Now, when I call the PACKAGE_X.PROC_A in my anonymous block, it triggers "PLS-00306: wrong number or types of arguments in the call to PROC_A.

(fact sheet package_x) package

. . .

/ * newly created in spec package * /.

type tt_varchar2_type is table of the varchar2 (50);

() Proc_A

x TO int data type,

y IN the int data type.

int data type z,

TT ON NOCOPY tt_varchar2_type - < <-this is the problem

)

. . .

);

declare

type tt_varchar2_type is table of the varchar2 (50);

v_tt tt_varchar2_type;

Start

. . .

v_tt: = tt_varchar2_type();

package_x.Proc_A (5, 10, 15, v_tt);  -< <-this raises an exception

. . .

end;

I forgot something? Please notify.

Thank you and best regards,

-Nordine

(on Oracle 11.2.0.2.0)

declare

v_tt package_x.tt_varchar2_type;

Start

. . .

v_tt: = package_x. tt_varchar2_type().

package_x.Proc_A (5, 10, 15, v_tt);

. . .

end;

Tags: Database

Similar Questions

  • Data protection Dell 'Exception thrown (RN:01 A 00002).

    Latitude E6520 Windows 7 64-bit new installation, installed Dell Data Protection, activated the function of encryption and it did not work for a few days.

    Today, I tried to start it to the top and 'Exception thrown (RN:01 A 00002)' after clicking 'Ok', I'm in disaster recovery mode.

    I entered my password and it says it is invalid. I even checked my backup password on my USB key (it requires you to create) and verified that my password IS correct.

    Now, I have a Samsung Evo 850 SSD that is "Self encrypting" feature enabled so that I can't erase the disc to reuse.

    I tried in Ubuntu, Diskpart everything.

    Any thoughts?

    Hello Speedstep and someone another reading in the future after this gets indexed.

    SpeedStep, while I thank you for your quick response, it is wildly inaccurate.

    Access to Data Protection from Dell use a company called 'Wave', which creates a lot of software suites of different security (ie the Embassey security).

    They have an article here:

    After talking to a person about the error, this happens when their software is used on a player not yet taken in charge by them or a corruption of software glitch/player. I found that, in my case, it was because their use TCG OPAL orders 1.0 while my Player supports 2.0 commands more recent.

    This caused my problem. -How do I fix this?

    I found a few blackhat tools that allow you to communicate to the piece of independent encryption of drives, but they were not successful. After some research, there is a hardware password PSID on the SSD. I found that someone has added to their Samsungs PSID reset tool drop-down list.

    Run this tool CLI enabled me to the SSDS to factory specifications and remove independent encryption caused by the DDPA.  Yay! Now, I have my SSD back.

    SpeedStep, I replace my SSD with another and I was able to use it successfully without any changes to my TPM secure or Bios. Again once, however I appreciate the quick response!

    If anyone needs the tool to reset Samsung PSID, feel free to just post below and we will get in touch.

  • 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

  • Show the exception thrown from the business layer

    All,

    In my AMImpl class, I have the following code:
        public 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  {
                }        
            }
                    
        }
    Call this method in my grain of support
        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";
        }
    How can I display the exception thrown from the business layer?

    thnks
    11.1.1.5 JDev

    Hello

    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.

  • Dynamics of stocks &amp; value (Exception thrown and not caught cascading list

    I have a really strange question in my Apex 4.0 environment where I'm building of dynamic actions and cascading list of values.

    I'm currently developing new features in an existing application, (original application developed using HTMLdb 1.6 and phased to Apex update 4.0.1), to add a dynamic action that sets a value in another field, using SQL. Dynamic action fails with "Exception thrown and not caught - jquery - 1.4.2.min.js line: 28 Char: 162'.» However, when I create a new application in the same workspace, and develop the same functionality is running smoothly.

    I assured that the models for each page/region are one exact copy of the other.

    < b > when I run the application in Firebug, I get the following: < /b >
    Day Friday, December 31, 2010 14:20:03 GMT
    Server Oracle-Application-Server - 11g
    X DB-Content-length 87
    Set-Cookie HTMLDB_IDLE_SESSION = December 31, 2010 23:20:03. path = /.
    Content-Length 87
    Keep-Alive timeout = 5, max = 99
    Connection Keep-Alive
    Content-Type text/html; Charset = UTF-8
    Content-Language en


    < b > to the application that works, I get response slightly different headers. < /b >

    Day Friday, December 31, 2010 14:20:37 GMT
    Server Oracle-Application-Server - 11g
    Cache-Control non-cache
    Pragma non-cache
    X DB-Content-length 14
    Content-Length 14
    Keep-Alive timeout = 5, max = 94
    Connection Keep-Alive
    Type of application/json content
    Content-Language en

    < b > view the Content-Type for the version which does not use "text/html", while the working version uses "application/json".
    Firebug also gives the following error: < /b >

    Eception exception: invalid JSON: Content-type: application/json Cache-Control: non-cache Pragma: non-cache {"value": "1"}

    < b > is - anyone has any idea what is happening?

    Thank you.

    Jon < /b >

    Hi John,.

    is it possible to have custom authentication when you set a cookie or when you set the HTTP header/mime type?

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • "Invalid cast exception" thrown when assigned the AutoCompleteStringCollection AutoCompleteCustomSource of TextBox property

    Hello

    I built a .NET c# wrapper around the TestStand users management module.

    When the application works as a stand-alone Windows Application, there is no exceptions or thrown errors. However, when the dll is integrated with TestStand and called from the FrontEndCallbacks movie file, I got up an invalid "Cast" exception when the AutoCompleteStringCollection is assigned to the textBox AutoCompleteCustomSource property.

    As stated earlier, it works perfectly well when it is a standalone application. I am at a loss to figure why this is happening. I would appreciate if someone could shed some light on this behavior.

    Thank you

    Arun

    Thanks for posting your example. The problem seems to be caused by the fact that your form is created in a thread of execution TestStand using the MTA COM threading model. .NET Windows forms must always be created son marked with the model STA thread. Probably your standalone application uses the STAThread attribute. Here are some references (rule FxCop, STAThread)

    You can work around this problem by creating a new STA thread in TestStand using a sequence of appeal step. Set Options to run to use new discussion and check the box Use Single-Threaded Apartment.

  • 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

    Play with my code I found what was wrong.
    I needed to add in the following line in my code block of exception:
    v_line := NULL; v_sr_no := v_sr_no + 1;
    
    Final code:
    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;
    
  • Reg: Pl/sql Proc

    Hi Experts,

    I have two tables like newproducts and oldproducts,

    Newproducts: Oldproducts: (TI with an Oproductnumber column)

    The productnumber Oproductnumber invoice number
    1 1 100
    100 2 2
    100 3 3
    4-4-101
    5 4 101

    whenever one of the product number (basedon invoice - to) put in correspondence with the code Oproduct in old products then we should insert some flags in final table.si match we fill there otherwise we will generate n.

    I think to implement a procedure from pl/sql to do this...

    can u guide me if possible anyway reduced instead of proc of pl/sql.


    Thank you
    S

    PL/SQL is 2 languages. The PL (logic programming) language based on Ada (part of the Pascal language family). And SQL (Structured Query Language).

    Oracle data are processed using SQL. Conditional processing in Oracle, and so on, the management of exceptions are made using PL.

    Then, before thinking where and how and that the process conditional flow will be - first solve the underlying problem. Information processing. How insert/change/remove the data from the database and address the fundamental requirement.

    Using the part PL the PL/SQL language for processing data are invariable more slowly and does not fit. The SQL standards instructions used for the treatment of data are INSERT, UPDATE, DELETE and MERGE.

    And these statements and the SQL language are what to look, at this point. No PL/SQL.

  • getVersionProperty Exception thrown

    I am creating a customized for our dam system connector and have a problem where I get many exceptions are thrown in the following form:

    2012-02-08 08:50:31, 145 [ConnectionHandler-kernel] ERROR NCommDelegate - caught exception

    java.lang.AssertionError: version! = null

    at com.adobe.drive.internal.data.manager.DataManager.getVersionProperty (DataManager.java:592 5)

    at com.adobe.drive.internal.biz.filesystem.XAttrManager.getXAttr(XAttrManager.java:120)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.createStatInfoEx (FileSystemServ ice.java:1410)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.access$ 500 (FileSystemService.ja goes: 102)

    to com.adobe.drive.internal.biz.filesystem.FileSystemService$ 5.execute (FileSystemService.jav one: 492)

    to com.adobe.drive.internal.biz.filesystem.FileSystemService$ 5.execute (FileSystemService.jav one: 452)

    to com.adobe.drive.internal.biz.filesystem.FileSystemService$ FSCallable.run (FileSystemServic e.java:1789)

    to com.adobe.drive.data.internal.persistence.PersistenceRunner$ 2.runWithTransaction (still nceRunner.java:186)

    to com.adobe.drive.data.internal.persistence.PersistenceModificationCallable.run (persistence ModificationCallable.java:71)

    at com.adobe.drive.data.internal.persistence.PersistenceRunner.run (PersistenceRunner.java:11 9)

    to com.adobe.drive.data.internal.persistence.PersistenceRunner.runWithTransaction (Persistenc eRunner.java:181)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.runWithTransaction (FileSystemSe rvice.java:1744)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.lookup (FileSystemService.java:4 51)

    at com.adobe.drive.internal.ncomm.filesystem.StatHandler.handleRequest(StatHandler.java:72)

    to com.adobe.drive.internal.ncomm.filesystem.AbstractHandler$ 1.call (AbstractHandler.java:204)

    at com.adobe.drive.model.context.Context.run(Context.java:88)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler.handleWithContext (AbstractHandl er.java:200)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler.handle(AbstractHandler.java:66)

    at com.adobe.csi.internal.ncomm.NCommDelegate.execute(NCommDelegate.java:107)

    at com.adobe.versioncue.internal.nativecomm.host.Host.execute(Host.java:200)

    at com.adobe.versioncue.internal.nativecomm.host.ConnectionHandler.handleRequest (ConnectionH andler.java:162)

    at com.adobe.versioncue.internal.nativecomm.host.ConnectionHandler.run (ConnectionHandler.jav one: 81)

    at java.lang.Thread.run(Thread.java:680)

    That's for simple navigation operations - I select "Open in the Finder" Adobe Reader and then make lots of calls to GetAssetsHandler (in which I make appropriate createFileUpdateRecipe() / createFielContainerUpdateRecipe() more createBasicData() for each container and assets.)  All my belongings have a series of version number.  It seems that some operations to open / read are also happening just before these exceptions.  I don't know the exceptions, I am actually able to make a few navigation base my mother, getting even glimpses of the JPEG files in the finder (so I think it open and read work).  I don't know what these version exceptions are caused by.

    I'm trying to follow the general flow connector sample FTP uses, but I'm a little puzzled.

    Thank you very much in advance.

    After further investigation, it seems that this exception is throw themselves to the assets of file that have a version number of '0', which is perfectly legal (in fact, common) for our dam.  Adobe Drive not really does support version zero-based numbers?

  • [Jena] Exception thrown with 2 adapter Jena

    I have tested integration with 2 adapter Jena and make a few exceptions that I couldn't with version 1. I'm testing with RDBMS Oracle 11.1.0.6.

    1. Add an OracleSemModel to a model by default Jena:

    Model oraModel = ModelOracleSem.createOracleSemModel (oracle, oraModelName);
    Model m = ModelFactory.createDefaultModel ();
    m.Add (oraModel);

    Exception stack trace:

    0 [main] SimpleLog.fatal FATALE - next: exception
    java.sql.SQLException: invalid column index
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
    at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:344)
    at oracle.spatial.rdf.client.jena.OracleSemIterator.getNodesFromResultSet(OracleSemIterator.java:414)
    at oracle.spatial.rdf.client.jena.OracleSemIterator.next(OracleSemIterator.java:315)
    at com.hp.hpl.jena.util.IteratorCollection.iteratorToList(IteratorCollection.java:52)
    at com.hp.hpl.jena.graph.impl.SimpleBulkUpdateHandler.addIterator(SimpleBulkUpdateHandler.java:57)
    at com.hp.hpl.jena.graph.impl.SimpleBulkUpdateHandler.add(SimpleBulkUpdateHandler.java:67)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:169)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:166)


    2. deletion of a template:

    Chart GraphOracleSem = new GraphOracleSem (oracle, oraModelName);
    graph.dropTables ();
    Graph.Close ();

    The following exception is thrown:

    694891 [hand] ERROR SimpleLog.error - could not close the Oracle connection
    java.sql.SQLException: ORA-00942: table or view does not exist
    ORA-06512: at "IX_SEM. ORACLE_ORARDF_GRANT', line 1
    ORA-06512: at line 1

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
    at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at oracle.spatial.rdf.client.jena.GraphOracleSem.invalidateCursor(GraphOracleSem.java:2639)
    at oracle.spatial.rdf.client.jena.GraphOracleSem.flushAdd(GraphOracleSem.java:1231)
    at oracle.spatial.rdf.client.jena.GraphOracleSem.close(GraphOracleSem.java:1152)

    It is clear that the index name (name derived based on model) is a bit too long :)

    I know that it is extra work for you to shorten the name. However, there is no alternative workaround.
    Could you use a simple mapping table to store URLs (for model names) ==> a short integer (sequence)?

  • Exception thrown

    Hi, I need to have 2 procedures in a package. With select procedure in the statement that causes the error and triggers in it and a second procedure to handle all errors and place them in the error table.

    What I did:

    create or replace package paketas as

    error_log procedure;

    ins procedure;

    end;

    /

    create or replace package body as a paketas

    ins procedure as

    l_num pls_integer;

    Start

    Select 0

    in l_num

    of the double

    where 1 = 0;

    lift;

    ins end;

    procedure as error_log

    number of n_code;

    n_massage varchar2 (100);

    Start

    exception - < < < < < < < < < < < < this place causes error

    while others then

    n_code: = SQLCODE;

    n_massage: = SUBSTR (SQLERRM, 1, 100);

    INSERT INTO mistakes (e_id, code, message, e_time)

    VALUES (er_id.nextval, n_code, n_massage, sysdate);

    end error_log;

    end paketas;

    /

    And in the package body I get error:

    "PLS-00103: encountered the symbol"EXCEPTION"when expecting one of the following values:

    (begin case declare exit for goto if loop mod null pragma

    raise return select update while < ID >

    < between double quote delimited identifiers of > < a variable binding > < <

    continue the narrow current delete fetch locking insert open rollback

    savepoint sql set run commit forall fusion pipe purge

    "

    Could you help me to solve this situation?

    Maybe something like this helps you

    create or replace package paketas as
      procedure error_log ( object_in in varchar2 );
      procedure ins;
    end;
    /
    show err
    
    create or replace package body paketas
    as
    --
    -- ---------------------------------------------------------
    --
    procedure ins
    as
      l_num pls_integer;
    begin
      select 0
        into l_num
        from dual
      where 1 = 0;
    exception
      when others then
          error_log ( 'INS');
    end ins;
    --
    -- ---------------------------------------------------------
    --
    procedure error_log ( object_in in varchar2 )
    as
      n_code    number;
      n_massage varchar2(100);
    begin
        n_code    := SQLCODE;
        n_massage := SUBSTR(SQLERRM, 1, 100);
        dbms_output.put_line('exception from object: ' || object_in );
        -- insert into log-table
        dbms_output.put_line(n_code);
        dbms_output.put_line(n_massage);
    exception
      when others then
        n_code    := SQLCODE;
        n_massage := SUBSTR(SQLERRM, 1, 100);
    --    INSERT INTO errors (e_id, code, message, e_time)
    --    VALUES (er_id.nextval, n_code, n_massage, sysdate);
        dbms_output.put_line('exception while exception-handling' );
        dbms_output.put_line(n_code);
        dbms_output.put_line(n_massage);
    end error_log;
    --
    end paketas;
    /
    show err
    
    exec paketas.ins
    
    exception from object: INS
    100
    ORA-01403: no data found
    
    PL/SQL procedure successfully completed.
    
  • Exception thrown by SsoUtil: failure of the SSO admin service

    I'm diagnosing a problem in an improved environment related modes running 6.0 Update 1 (2 vCenters, same domain) where I'm getting the following exception when calling UserSessionService.getUserSession ():

    [ERROR] data-service-pool-2704 70000426 100010 200005 c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl there was a problem when retrieving the list of system fields com.vmware.vise.vim.security.sso.exception.SsoServiceException: failure of the SSO admin service

    at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

    at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:179)

    at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

    at sun.reflect.GeneratedMethodAccessor496.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

    at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

    at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

    to com.sun.proxy. $Proxy503.getUserSession (unknown Source)

    Someone at - it guidance on this diagnosis?  I couldn't find much information about this error in the SDK documentation.  Thank you

    -Mike

    Cool! Now what remains is to you or your client to file a SR. I already logged bugs for these fixes and bugs are scheduled for update 3, which will come in February 2017. If you want to speed up the fix and get a warm official patch, connect the SR.

    I enclose the latest patches:

    1. for version 6.0 Patch 2:

    UserSessionServiceImpl_class_60p02_build3271482.zip

    class_loading_patch_for_60p02_build3271482.zip

    2. for version 6.0 Update 2

    UserSessionServiceImpl_class_60u2_build3617395.zip

    class_loading_patch_for_60u2_build3617395.zip

  • Reg: Exception handling

    Dear all,

    When I ran the plsql block below I got the error. Not sure, 'ORA-06510: PL/SQL: not supported by the user-defined exception ', why it comes.

    When no data found, I raise my own exception "userException. I'm a little confused. Ask to explain everything.

    DECLARE
    userException EXCEPTION;
    v_Name emp.ename%type;
    v_err VARCHAR2 (200);
    BEGIN
    -Statement
    BEGIN
    SELECT Ename INTO v_name FROM emp WHERE empno = 1;
    EXCEPTION
    WHEN no_data_found THEN
    v_err: = "no data available for the employee;
    raise userException;
    WHILE OTHERS THEN
    v_err: = "some other Exception."
    raise userException;
    END;
    EXCEPTION
    WHEN userException CAN
    raise_application_error (-20901, v_err, TRUE);
    END;


    Error report:
    ORA-20901: no data found for the employee
    ORA-06512: at line 19
    ORA-06510: PL/SQL: not supported by the user-defined exception
    ORA-01403: no data found

    The technical answer to your problem is with the third parameter of RAISE_APPLICATION_ERROR-specific.

    Document Oracle says

    "If the third optional parameter is TRUE , the error is placed on the stack of previous mistakes." If the parameter is FALSE (by default), the error replaces all previous error messages. »

    Understand that allows first to comment your EXCEPTION block and run the code

    SQL > declare

    2 userexception exception;

    v_name 3 emp.ename%type;

    4 v_err varchar2 (200);

    5. start

    6 - instruction

    7. start

    8. Select ename into v_name from emp where empno = 1;

    9 exception

    10 when no_data_found then

    11 v_err: no = "no data found for the employee;

    12 lift userexception;

    13 then than others then

    14 v_err: = 'some other exception';

    15 lift userexception;

    16 end;

    17 / * exception

    18 when userexception then

    19 raise_application_error (-20901, v_err, true); * /

    20 end;

    21.

    declare

    *

    ERROR on line 1:

    ORA-06510: PL/SQL: not supported by the user-defined exception

    ORA-06512: at the level of line 12

    ORA-01403: no data found

    ORA-06510 is the error that is raised. So when you set the third parameter to TRUE you are instructing oracle doesn't replace the original error stack. Now, let me delete the third parameter.

    SQL > declare

    2 userexception exception;

    v_name 3 emp.ename%type;

    4 v_err varchar2 (200);

    5. start

    6 - instruction

    7. start

    8. Select ename into v_name from emp where empno = 1;

    9 exception

    10 when no_data_found then

    11 v_err: no = "no data found for the employee;

    12 lift userexception;

    13 then than others then

    14 v_err: = 'some other exception';

    15 lift userexception;

    16 end;

    17 exception

    18 when userexception then

    19 raise_application_error (-20901, v_err);

    20 end;

    21.

    declare

    *

    ERROR on line 1:

    ORA-20901: no data found for the employee

    ORA-06512: at line 19

    See oracle now replaces the stack of error with just the user error message.

  • Exception thrown when install lib OSM7 unresolved references

    Hello
    I use jdevstudio11113install.exe to install the WL + ADF server.
    During the OSM 7.0.3 installation, I get an exception like

    < 17 October 2012 16:53:31 IST > < error > < hats > < BEA-149265 > < error has occurred in the execution of the request for deployment with the ID ' 1350473008281 'for task ' 0'. Error is: "weblogic.management.DeploymentException: [J2EE:160149] * error during the processing of library reference." Application library references, defined in pending *.
    * weblogic - application.xml: [Extension name: adf.oracle.domain, exact match: false], [name of the Extension: oracle.jsp.next, exact match: fake]. *'weblogic.management.DeploymentException: [J2EE:160149] error in the processing of library reference. References application library, defined in weblogic pending - application.xml: [Extension name: adf.oracle.domain, exact match: false], [name of the Extension: oracle.jsp.next, exact match: false].
    at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
    to weblogic.application.internal.BaseDeployment$ 1.next(BaseDeployment.java:1221)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
    Truncated. check the log file full stacktrace
    >

    However, I have checked the application.xml file - weblogic and did not find any entry for the extension name. Can someone help me solve this problem please?

    Thank you and best regards,
    Angèle

    You have not successfully created domain WebLogic. OSM is developed using the framework of the ADF and you select "Oracle JRF - 11.1.1.0 [Oracle_common]" & "JJRF Asynchronous services - 11.1.1.0 WEbServices Oracle [oracle _common]" while creating the WebLogic domain.

  • while reading mail using imap expired exception thrown

    Properties props = new Properties ();
    Properties props = System.getProperties ();

    props.setProperty ("mail.imaps.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
    props.setProperty ("mail.imaps.socketFactory.fallback", "false");
    props.setProperty ("mail.imaps.port", "143");
    props.setProperty ("mail.imaps.socketFactory.port", "143");
    props.setProperty ("mail.imaps.ssl.enable", "true");
    props.setProperty ("mail.imaps.connectiontimeout", "300000");
    props.setProperty ("mail.imaps.timeout", "900000");

    props.setProperty ("mail.imaps.connectiontimeout", "300000");
    props.setProperty ("mail.imaps.statuscachetimeout", "3000000");
    props.setProperty ("mail.imaps.connectionpooltimeout", "3000000");






    A session = Session.getDefaultInstance (propellers, null);
    session.setDebug (true);


    Store = session.getStore ("imaps");
    session.setDebug (true);
    Store.Connect (popServer, popUser, popPassword);

    -Try to get their hands on the default folder-
    record = store.getDefaultFolder ();
    If (file == null) throw new Exception ("no");

    --.. .and its Inbox-
    file = folder.getFolder ("INBOX");
    If (file == null) throw new Exception ("sdfdfsd");

    -Open the folder to read only-
    Folder.Open (Folder.READ_ONLY);

    -Make the message wrappers and treat them.
    Message waiting [] = folder.getMessages ();

    System.out.println ("ava au.com.covermore.EmailReader"
    "GSM"+ msgs.length);

    for (int msgNum = 0; msgNum < msgs.length; msgNum ++)
    {
    printMessage (msgs [msgNum]);
    processMessage (msgs [msgNum]);
    }



















    nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
    at javax.mail.Service.connect(Service.java:295)
    at javax.mail.Service.connect(Service.java:176)
    at MyMail.read111 (MyMail.java:139)
    at MyMail.main (MyMail.java:50)
    Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect (Native Method)
    at java.net.PlainSocketImpl.doConnect (unknown Source)
    at java.net.PlainSocketImpl.connectToAddress (unknown Source)
    at java.net.PlainSocketImpl.connect (unknown Source)
    at java.net.SocksSocketImpl.connect (unknown Source)
    at java.net.Socket.connect (unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect (unknown Source)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:205)
    to com.sun.mail.iap.Protocol. < init > (Protocol.java:113)
    to com.sun.mail.imap.protocol.IMAPProtocol. < init > (IMAPProtocol.java:110)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:632)
    ... 4 more

    Published by: 831679 on January 27, 2011 02:35

    It seems that you have two threads going on the same problem:
    How to read the Inbox using javamail since microsoft exchange server

    Here, you say that you cannot connect at all, but in the other thread, it
    shows JavaMail connection but if no SSL handshake. Those who are different
    failure modes.

Maybe you are looking for

  • Need drivers for Satellite C660D - 10L

    Hallo! I just unpacked my laptop Toshiba Satellite C660D - 10L, and the problem is that I can't find the drivers. My computer was delivered without BONES in there, so I'm going to install Windows 7 or XP, but the problem is that I can't find the apro

  • How to put in different lines

    I received a file where I swap shows the data in the rows into columns using transposes table 2D. The problem is now, now, it shows all in a single line. How do I divide it into several lines? From: Simplex-link duplex-linkn1                n0n0    

  • Help with the appearance

    I have this simple event, and I need to know why the value of a and b are not equal. After all, the while loop on the right is supposed to go before the while loop on the left. So I expect to see the same value. Thanks for any explanation. I have att

  • After you install the update for Vista (KB250189} why would slow down)

    After this connection to Explorer 9 update and other web sites really slows down. If uninstalling it goes back to normal but reinstalls on automatic update. Anyone else seen the same thing?

  • Process host and Windows Modules Installer has stopped working and was closed!

    Hello Some error messages I get are "host process for Windows Services stopped working and was closed" and "Windows Modules install Stopped Working and was closed." It didn't happen until three weeks ago, when I did a system restore. I searched the i