Exception cant aable trap.

hi friends,
am back :) after a Long gap am here. any ways am glad to see you all :)
i made a application regarding HR related using jdev 11.1.1.5.0 using Business components.
i had a Exception while am commiting the data's. am out of work space. so am just post the exception.
java.lang.classcastexception java.lang.stackoverflowerror cannot be able to cast to java.lang.exception.this Exception arrives sometimes sometimes may not.
In My application i did some kind of validation in eo level and bean level. and some sort of operation.
i cant able to trap it. one day i taken a crazy decision :( comment all of the code snip. again throwing...
i feel that am not properly confguring of one of my checkbox. i correct that the exception went off. but now again throwing the error randomly.
please any one could explain me. i understood the exception what it is try to say. but how do i trap . eventhough i folded up all of the codes by try catch block.

i understood that
"The stack overflow would point to some recursive code loop happening"
i did know the error from which part of my code. but it popuping while commit sometimes.
i had db trigger for after insert or update or delete. throw some raise application error.
specfic db trigger recursive looping to check all the records which already present in same date.
i always handle or catch the db triiger and popuping up as user understandable message.
my question from which part of the / section (i.e db code , eo impl code vo impl code bean code am impl code )code this exception is raising.
how do i found out ?
is there any way. ?

Similar Messages

  • Interface link trap in ios-xr

    Hello,
    How to enable interface link trap in cisco ASR9010? and how to verify it?
    I have enabled it on my ios-xr, i"m getting  all traps except interface link trap.
    Thank you.

    hi there,
    yup possible, you may need to configure
    snmp-server traps snmp linkup
    snmp-server traps snmp linkdown
    and
    RP/0/RSP0/CPU0:A9K-BNG(config)#snmp-server trap link ietf
    RP/0/RSP0/CPU0:A9K-BNG(config)#commit
    Mon Jun  2 14:07:05.833 EDT
    RP/0/RSP0/CPU0:Jun  2 14:07:05.908 : config[65901]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'root'. Use 'show configuration commit changes 1000000005' to view the changes.
    it could be your trap server doesn't like the cisco format of the trap hence that ietf may make that difference.
    RP/0/RSP0/CPU0:A9K-BNG(config)#do debug snmp pa
    Mon Jun  2 14:07:10.935 EDT
    RP/0/RSP0/CPU0:A9K-BNG(config)#int g 0/0/0/0
    RP/0/RSP0/CPU0:A9K-BNG(config-if)#shut
    RP/0/RSP0/CPU0:A9K-BNG(config-if)#commit
    Mon Jun  2 14:07:15.169 EDT
    LC/0/0/CPU0:Jun  2 14:07:15.188 : ifmgr[209]: %PKT_INFRA-LINK-5-CHANGED : Interface GigabitEthernet0/0/0/0, changed state to Administratively Down
    RP/0/RSP0/CPU0:Jun  2 14:07:15.192 : snmpd[1125]: t8 snmp_is_dst_address_reachable:Successfully got src address:1.0.0.3 to dest:1.0.0.3 in vrf:Default, vrf_id:1610612736, ifhandle:0x40
    RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 Src address updated as :3.0.0.233
    RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 snmp_send_pdu_udp_transport: Q-ing TRAP[sp 161, dp 41472]
    RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 snmp_is_dst_address_reachable:Successfully got src address:1.0.0.3 to dest:1.0.0.3 in vrf:Default, vrf_id:1610612736, ifhandle:0x40
    RP/0/RSP0/CPU0:A9K-BNG(config-if)#RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 Src address updated as :3.0.0.233
    xander

  • Raising exception for LONG variable

    Hi
    I am calling a procedure from HTML which passes data into a LONG
    type variable. If the length of data is more than 32KB , NULL is
    assigned to the LONG variable and no error is raised. Is there
    any way this exception can be trapped ? Any info in this regard
    will be much appreciated.
    Sharon
    null

    Solomon Yakobson wrote:
    Jiri in SF wrote:
    I would say right before you query the data from dblink, use DBMS_APPLICATION_INFO to set module or/and action for that session, then have a separate job scheduled every 5? minutes to scan for sessions with your module/action (it can be really any static text you want BLABLABLA works - the point is that you can easily identify these sessions) which hang for more than 2? minutes and send email or kill these sessionsWell, although it would give you geat level of flexibility, it would mean rewriting code and results in some overhead. Also, it would kill distributed transactions running for longer than set time, not distributed transactions waiting for locked resources longer than set time. To kill distributed transaction waiting for a locked resource more then a set time (as OP requested) OP could set initialization parameter DISTRIBUTED_LOCK_TIMEOUT to desired value. Obviously, same timeout will apply to all distributed queries, unfortunately, DISTRIBUTED_LOCK_TIMEOUT is not dynamic parameter
    SY.not sure what his issue is (maybe different from what we were facing), but our was not related to locking, it was basically hanging session. Remote server did not even see the session being connected yet it was hanging for hours on query across db-link. It was very rare - the session ran daily and hang maybe once a 6 months. In our case we just wanted to be informed that it hang, so production support could follow up on the issue.

  • Trying socket prog, got this Exception

    public class Test {
         public static void main(String[] args) throws IOException{
              Socket sock = null;
              PrintStream ps = null;
              BufferedReader br = null;
              try{
                   sock = new Socket("127.0.0.1",7);
                   ps = new PrintStream(sock.getOutputStream(),true);
                   br = new BufferedReader(new InputStreamReader(sock.getInputStream()));
              }catch(UnknownHostException e){
                      System.out.println("cannot find host"+e);
                      System.exit(1);
              catch(IOException e){
                   System.out.println("cant get I/O for host"+e);
                   System.exit(1);
              BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
              String s;
              System.out.println("write something:");
              s = read.readLine();
              ps.println(s);
              System.out.println("echo" +br.readLine());
              ps.close();
              br.close();
              read.close();
              sock.close();
              System.out.println("done!!!");
    }I am getting this Exception:
    cant get I/O for hostjava.net.ConnectException: Connection refused: connect
    Suggest me the solution

    For the example in the tutorials to work, you need an application called an "echo server" to be running in the background. Now on UNIX boxes this is reasonably common, but on Windows it is not.
    So you need to run a Echo Server for this to work, as it happens I've a small one:
    import java.net.*;
    import java.io.*;
    public class EchoServer
        public static void main( final String argv[] ) throws IOException
             ServerSocket ss = new ServerSocket(7);
            System.out.println( "Waiting for client" );
             Socket s =  ss.accept();
             InputStream is = s.getInputStream();
             OutputStream os = s.getOutputStream();
             int i = is.read();
            System.out.println( "Client Connected" );
             while( i != -1 )
                  os.write( i );
                  i = is.read();
                  System.out.write( i );
             ss.close();
            System.out.println( "Shut Down Server" );
    }Simply compile this, and run it in the background.
    javac EchoServer.java
    java EchoServer

  • Need help for traping imported java bean exception

    hi everyone
    i have imported a java bean into my forms 9i using java importer utility which tries to rename a file on a give path(bean works fine when executed through sql client).
    i have problem when called from when button pressed trigger, it throws me an ("FRM-40735 and ORA-105101 NON ORACLE EXCEPTION") error.
    i have imported java.lang.exception class and constructed an exception handler to trap java exception in the trigger
    as
    EXCEPTION
         WHEN ORA_JAVA.JAVA_ERROR then
              message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              --check for ORA-105101
         WHEN ORA_JAVA.EXCEPTION_THROWN THEN
              ex:= ORA_JAVA.LAST_EXCEPTION;
              message('Java Exception --: '||BIException.toString(ex));
              ORA_JAVA.CLEAR_EXCEPTION;
         WHEN OTHERS THEN
              message('error :'||SQLERRM);
    when i imported java.lang.exception i did not find any wrapper pl/sql function or procedure declared to read or get the error messages except for the functions named "new" ,my exception handler failed.
    so i tried with BIException which also fails to trap the error i have no idea about BIException and its usage with in forms ,Please do help me out with this issue ASAP.
    thanks in advance
    Rgds
    yash

    Hi,
    don't understand what the BIException is supposed to do in your code, can you try
         WHEN ORA_JAVA.EXCEPTION_THROWN then
         ex := ORA_JAVA.LAST_EXCEPTION;
         message('Exception: '||Exception_.toString(ex));
    where Exception_ is the imported java.lang.Exception package.
    Frank

  • SRM 7.0 Process-Controlled (BRF) Workflow -- Error message to Shopping Cart

    I am modifying a BRF Expression used to calculate approval levels.  During this calculation, I may run into error conditions (e.g. Currency tranlsation not found) that I want to display to the user (in the Shopping Cart).
    I have tried raising the following exceptions:
    /sapsrm/CX_WF_RULE_ERROR.
    /sapsrm/CX_WF_RULE_ABORT.
    Raising these exceptions do result in SLG1 log entries being written, but the User is not informed of the error (ie. at top of shopping cart where other messages display).
    I can probably jump out of the Webdynrpo to read logs, but thought there MUST be some standard way of passing error conditions from the BRF, back to WF, and then back to the Webdynpro Window.
    Anybody raise error messages back to the online user from Process-Controlled Workflow?
    Thanks,
    - Tim

    >
    Saravanan Dharmaraj wrote:
    > Hi Tim,
    >
    >    I am not sure about your business requirement, but if you want to display custom error message while user create a SC, SAP has provided a standard BADI - BBP_DOC_CHECK_BADI. You can implement this Badi to raise a custom error,warning message. You can build your brf logic in the BADI implementation..
    >
    >
    > Best Regards,
    > Saravanan Dharmaraj.
    Hi Saravanan,
    I am actually modifying the Approval Limit Checks (for multi-currency translations) that you recently coded in Maryland.  It can occur that errors occur in determining limits (new Currency translation I just added), or during the lookup of agents (ie user config is inconsistent).
    In these cases, I can make the shopping cart Dump, by raising untrapped error messages, or assertions.   However, I would like to raise exceptions that get trapped (such as the ones I identified in original post), and then make their way to the shopping cart.
    Unless I am missing something, I don't think the WF BADIs, or BRF are gonna communicate errors back to the shopping cart, even though these components are called during cart creation and checks.
    I realize that I can recode the Agent Determination BADIs,  BRF calls, or even read BRF logs within BBP_DOC_CHECK_BADI.  I mentioned this in my original posting as well.
    Anyway, any help is appreciated.
    Thanks,
    - Tim

  • Status report from Procedure/functions

    All,
    I have procedures /functions in my database. I need to return a status value back to the call procedures/functions to report the sub_procedure/function executed successfully.
    What is the status value if a procedure/function executed successfully? And what is the value for un_successful execution? Where I can get it from?
    Thanks a lot!

    This is really a design choice that you have to make in your application. PL/SQL stored procedures / functions do not return any implicit status codes on there own. In your PL/SQL code, you can check the SQLCODE built-in function for the status of the last SQL statement executed, but this is hardly the same thing (and really designed for use in exception handlers).
    You may choose to design you applications such that every call must return a status value. In this case, the values used to represent success or failure are up to you (I might suggest 0 for success and the error code - which will be non-zero - for failure). You can either use functions which always return a number (probably not a good idea to place this limitation on your application); you might design all stored procedures to return an output parameter which indicates success or failure.
    But, in general, your client code should be designed to correctly handle all Oracle exceptions - if no exception is raised, then success, else failure. And your PL/SQL should avoid bad practices like exception handlers which trap WHEN OTHERS and don't re-raise the exception.

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • RC-40201: Unable to connect to Database

    I am trying to run
    perl adclonectx.pl migrate
    on new linux server, I am getting error, I tried with some action metalink notes, but no luck,
    DB is up and runnin and listener is up and running,
    what else i need to check, i am not sure, i have created SR, but i have not got good action plan,
    Initializing the Apps Service Context variable Hash
    DEBUG: Apps Service Status context variable extracted from the given Apps context file
    s_apcstatus
    s_apc_restrict_status
    s_apcstatus_pls
    s_tnsstatus
    s_tcfstatus
    s_concstatus
    s_formsstatus
    s_reptstatus
    s_metcstatus
    s_metsstatus
    s_icsmstatus
    s_jtffsstatus
    s_icxblkstatus
    s_discostatus
    s_mwastatus
    PROMPT :
    Does the target system have more than one application tier server node (y/n) [y] ?
    ANSWER :
    y
    PROMPT :
    Does the target system application tier utilize multiple domain names (y/n) [n] ?
    ANSWER :
    n
    PROMPT :
    Default value found for s_tools_oh : /tmp/
    Default value found for s_weboh_oh : /tmp/
    PROMPT :
    Do you want to preserve the Display set to dbora12:1.0 (y/n) [y] ?
    ANSWER :
    n
    PROMPT :
    Location of the JDK on the target system [opt/java1.5]
    ANSWER :
    /usr/java/jdk1.5.0_21
    StackTrace:
    java.lang.Exception: Cant connect to database using DBUtil
    at oracle.apps.ad.context.CloneContext.checkDatabaseConnection(CloneContext.java:5694)
    at oracle.apps.ad.context.CloneContext.promptForPortPool(CloneContext.java:5376)
    at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:637)
    at oracle.apps.ad.context.CloneContext.main(CloneContext.java:6228)
    RC-40201: Unable to connect to Database OFMSREGT.

    Danny,
    Please mention the application release and the OS.
    Do you have proper entry in the hosts file? Can you connect to the database remotely?
    Do you have the latest AutoConfig (Rapid Clone) patches applied?
    Please see if these docs help.
    Note: 273477.1 - Running Perl Adcfgclone.Pl Appstier Gives Error
    Note: 421148.1 - Jdbc Errors Cloning Apps Tier
    Note: 271250.1 - Adcfgclone.pl tier apps Errors with RC-40201: Unable to connect to Database
    Note: 392989.1 - Oam Cloning Preclone while Failed trying to connect to the target DB
    Regards,
    Hussein

  • Needs help in custonm target recon

    Hi,
    I have written a code for custom target recon. I mapped UserId as the key field,now the requirement got changed and i need to map personid instead of userid.Already some 100+records are mapped with userid and i got the event linked status in reconciliation manager. Now I changed the key to person id and im getting the following exception.cant we change the key filed once the linking is done?
    ERROR [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - Class/Method: tcDa
    taBase/rollbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.finishReconciliationEvent(Unknown Source)
    at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.execute(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
    at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    INFO [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - Class/Method: tcDat
    aBase/setTransaction: ##########setTransaction getting called from: #######
    DEBUG [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.SERVER - Class/Method: tcData
    Obj/doRollback left.
    DEBUG [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.SERVER - Class/Method: tcData
    Obj/save left.
    ERROR [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.JMS - An error occurred while
    processing the off lined reconciliation events
    INFO [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.PERFORMANCE - Message Process:
    com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages : 1033
    DEBUG [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.AUDITOR - Class/Method: Audit
    Engine/getAuditEngine entered.
    ERROR [ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.JMS - Processing Reconciliati
    on Message with ID 77586 failed.

    please find the code
    private void executeScheduler(String query) throws Exception {
              logger.info("executeScheduler STARTS !!!!!!");
              logger.debug("query:::. " + query);
              String userStatus="";
              String groupId="";
              String divId="";                    
              CallableStatement statement;
              try {
                   statement = connection.prepareCall(query);
                   statement.setString(1, userID);
                   statement.setString(2, loginName);
                   ResultSet result = statement.executeQuery();               
                   if (null != result) {
                        while (result.next()) {
                        Hashtable<String,String> htUsrInfo= new Hashtable<String,String>();
                        Hashtable<String,String> mhSearchCriteria = new Hashtable<String,String>();
                        String firstName=result.getString(attributeConstants.FIRSTNAME);
                        if (null != firstName) {
                             htUsrInfo.put(attributeConstants.FIRST_NAME, firstName);
                        String lastName=result.getString(attributeConstants.LASTNAME);
                        if (null != lastName) {
                             htUsrInfo.put(attributeConstants.LAST_NAME, lastName);
                        String email=result.getString(attributeConstants.EMAIL);
                        if (null != email) {
                             htUsrInfo.put(attributeConstants.EMAIL_ID, email);
                        String userName=result.getString(attributeConstants.LOGINNAME);
                        logger.debug("user name from ln "+userName);
                        if (null != userName) {
                             htUsrInfo.put(attributeConstants.USER_ID, userName);
                        String usrPersonID=result.getString(attributeConstants.USR_PERSONID);
                        logger.debug("usrPersonID "+usrPersonID);
                        if (null != usrPersonID) {
                             htUsrInfo.put(attributeConstants.PERSON_ID, usrPersonID);
                             logger.debug("USER NAME IN TABLE "+userName);               
                             long createReconEvent=recon.createReconciliationEvent(rescObj, htUsrInfo,false);
                             //if child data is present
                             if (attrToSearch.equalsIgnoreCase("UserID")&& null != userName) {
                                  mhSearchCriteria.put("Users.User ID", userName);
                             else if (attrToSearch.equalsIgnoreCase("USR_PERSONID")&& null != usrPersonID) {
                                  mhSearchCriteria.put("USR_UDF_PERSON_ID", usrPersonID);     
                             tcResultSet usrResultSet = userOperationsApi.findAllUsers(mhSearchCriteria);
                             long userKey=0;
                             if(usrResultSet.getRowCount()==1){
                                  logger.debug("USER NAME IS ::: "+userName);
                             userKey=usrResultSet.getLongValue("Users.Key");
                             logger.debug("USER KEY "+userKey);
                             tcResultSet obResultSet = userOperationsApi.getObjects(userKey);
                             String objKey=obResultSet.getStringValue("Objects.Key");
                             logger.debug("objKey "+objKey);
                             logger.debug("User is ::::::: "+userName);
                             boolean flag=false;
                             int noOfObjects=obResultSet.getRowCount();
                             logger.debug("no of objects "+noOfObjects);
                             for(int i=0;i<noOfObjects;i++) {
                                  obResultSet.goToRow(i);
                                  String objectName = obResultSet.getStringValue(attributeConstants.OBJECTNAME);
                                  logger.debug("Object name :: "+objectName);
                                  if (objectName.equalsIgnoreCase(rescObj)){
                                       flag=true;
                                       userStatus=obResultSet.getStringValue(attributeConstants.OBJECTSTATUS);                                   
                                       if(userStatus.equals(attributeConstants.PROVISIONED)||userStatus.equals(attributeConstants.ENABLED)) {
                                            groupId=result.getString(attributeConstants.GROUPIDLIST);
                                            divId=result.getString(attributeConstants.DIVISIONFILERIDS);
                                            logger.info("STATUS IS PROVISIONED");
                                            logger.debug("User is:::: "+userName);
                                            String childRecordsDiv=getChildDataDiv(divId,createReconEvent,usrResultSet);
                                            String childRecordsGrp=getChildDataGrp(groupId,createReconEvent,usrResultSet);
                                            logger.debug("     "+childRecordsGrp+" "+childRecordsDiv+" "+userName);
                                            //recon.processReconciliationEvent(createReconEvent);
                                            recon.finishReconciliationEvent(createReconEvent);
                             if(!flag)
                                  groupId=result.getString(attributeConstants.GROUPIDLIST);
                                  divId=result.getString(attributeConstants.DIVISIONFILERIDS);
                                  String childRecords=getChildDataGrp(groupId,createReconEvent,usrResultSet);
                                  String childRecordsDiv=getChildDataDiv(divId,createReconEvent,usrResultSet);
                                  logger.debug("User is present..... "+userName+"childRecords exec " childRecordschildRecordsDiv);
                                  logger.debug("USER KEY in link event"+userKey);
                                  recon.linkEventToUser(createReconEvent, userKey);
                                  recon.finishReconciliationEvent(createReconEvent);
                             //recon.finishReconciliationEvent(createReconEvent);
              catch(SQLException e){
                   logger.error("SQLException:::::: "+e.getMessage());
              }catch(tcObjectNotFoundException e){
                   logger.error("tcObjectNotFoundException occured "+e.getMessage());
              }catch(tcAPIException e){
                   logger.error("tcAPIException occured "+e.getMessage());
              }catch(tcEventNotFoundException e){
                   logger.error("tcEventNotFoundException occured "+e.getMessage());
              }catch(tcUserNotFoundException e){
                   logger.error("tcUserNotFoundException occured "+e.getMessage());
              }catch(Exception e)
                             logger.error("EXCEPTION:::::: "+e.getMessage());
              }finally {
                   if (null != connection)
                        connection.close();
                        connection=null;
              logger.info("executeScheduler ENDS !!!!");
         }

  • Please Help Me Out of The Error

    Hello Everyone,
    I am executing the following Syntax to create a procedure which will spool all the data of my employee table and dumped into a Text file. The Procedure is creating successfully, but problem is when I am Executing the Procedure I am getting an error.
    The Syntax I am using to create the Procedure is:
    CREATE OR REPLACE PROCEDURE dump_emp
    IS
    file_handle UTL_FILE.FILE_TYPE;
    BEGIN
    file_handle := UTL_FILE.FOPEN('c:\file_dir\','dump.txt','w');
    FOR emp_rec IN (SELECT * FROM MANOJIT.EMPLOYEES) LOOP
    UTL_FILE.PUT_LINE(file_handle, emp_rec.emp_id || ',' || emp_rec.ename || ',' || emp_rec.department_id || ',' || emp_rec.salary);
    END LOOP;
    UTL_FILE.FCLOSE(file_handle);
    END dump_emp;
    The Error I am Getting when I Execute the Procedure is:
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_FILE", line 98
    ORA-06512: at "SYS.UTL_FILE", line 157
    ORA-06512: at "SYS.DUMP_EMP", line 5
    ORA-06512: at line 1
    Please Help me in this matter.

    One of the quirks of UTL_FILE is that its execptions are treated by Oracle as user defined - hence the cryptic message. In order to find which error you're getting you'll need to put in an EXCEPTION section and trap the UTL_FILE exceptions - see the docs for details.
    I would guess that the problem you're getting is this: your database is on a server and you're trying to write to your client machine (i.e. your PC). You can't do this. PL/SQL is a server-side language and can only see the directories on the database machine. If you want to dump stuff to your local machine you have to use the SQL*Plus spool command, using DBMS_OUTPUT instead of UTL_FILE if you want complex assemblages.
    cheers, APC

  • RAC node Hung

    Hi Friends,
    Server info:
    Windows 2003 server
    Oracle 10.2.0.5, 2 Node RAC
    We are having problem Hung Node 2 server due to Blue dump error. But in Oracle we are not getting any error on CRS & alertlogs. After restarted the server problem solved. How can we identify what could be the reason of server hang. We are not getting any error in Operating System side also. Is there any way to identify the problem of server hang after restarted server?
    Thanks in advance.

    user12159566 wrote:
    Hi,
    Thanks for your reply.
    OS side also having no logs generated except "*Blue Screen Trap (BugCheck, STOP: 0x0000FFFF (0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000))*" . As per my knowledge this is not a Node eviction problem. We are not able to find any node eviction log in Oracle logs.
    See this note:
    *RAC on Windows: Oracle Clusterware Node Evictions a.k.a. Why do we get a Blue Screen (BSOD) Caused By Orafencedrv.sys? [ID 337784.1]*

  • Unhandled error in icrg 102

    I HAVE THE NEXT ERROR 'UNHANDLED ERROR IN ICRG 102' IN ORACLE FORMS 5.0 WHEN I CREATE A RECORD GROUP WITH THE SENTENCE 'select nombres, to_char(ficha) from abogados order by nombres ' where nombres is data type VARCHAR2 and ficha is NUMBER. TOO I GOT IT THE SAME ERROR WHEN I CREATED A PROCEDURE WITH THE NEXT CODE:
    PROCEDURE Populate_The_List(list_id VARCHAR2, sql_stat VARCHAR2) IS
    group_id RecordGroup;
    outcome NUMBER;
    BEGIN
    --Create temporary record group.
    group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
    IF ID_NULL(group_id) THEN
    MESSAGE('Record Group could not be created in Populate_the_List.');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate record group.
    outcome := POPULATE_GROUP(group_id);
    IF outcome <> 0 THEN
    MESSAGE('Record Group could not be populated in Populate_the_List.');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate list item
    POPULATE_LIST(list_id, group_id);
    --Destroy the temporary record group to release resources
    DELETE_GROUP(group_id);
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('Internal error occurred in Populate_the_List.');
    RAISE FORM_TRIGGER_FAILURE;
    END Populate_the_List;
    ANYBODY CAN HELP ME WITH THE SOLUTION
    ATTE: ROBERTO
    SORRY FOR MY ENGLISH

    I'm not sure why you're using a WHEN OTHERS exception clause.
    Trapping all errors and issuing a rather unhelpful "An error occurred" message is seldom very useful. Allowing any errors you don't specifically want to handle to propagate normally makes debugging much easier.

  • Problem executing SELECT statement due to st_spatial column type

    I am using a CachedRowSet and cache.execute() will not run because it does not support the st_spatial column type. I have been told to use the column metadata to build a select statement of column names, and check the column's type before you add it to the select clause. But, I am unsure of what to do since I can't get column names without running a select statement first... I will attach some code for you to look at, but please give me suggestions!
    try{
    Class.forName("com.informix.jdbc.IfxDriver");
    CachedRowSet cache = new CachedRowSet();
    cache.setReadOnly(true);
    cache.setUrl(dbname);
    cache.setUsername(user);
    cache.setPassword(password);
    cache.setCommand("SELECT * FROM "+table);
    try{
    cache.execute();
    }catch(Exception e){
    out.print("Can't Display");
    OTHER JSP CODE THAT WORKS WITH THE RESULTS FROM ABOVE
    }catch(Exception exc){
    out.println(exc.toString());
    } // end try-catch

    I honestly don't have a clue. I have no idea what the st_spatial data type is, or where it is defined, and as a result, I don't know why Java would be complaining about it. I do know that java.sql.ResultSet doesn't care about it (it would internally recognize it as a plain old object type via the getObject() method and you would have to cast it to st_spatial).
    What I would check:
    Is the Informix driver up to date?
    Does the CachedRowSet class extend ResultSet or otherwise use it as an internal data structure? If so, does it properly create the ResultSetMetaData object and no exceptions are being trapped?
    Otherwise... when copying data from the ResultSet object into its own internal data structure, does it correctly realize that the st_spatial column should NOT be copied into a String or a slot in a String array?
    Does a quick and dirty command line version of your program properly use CachedRowSet to retrieve at least one record from your database?
    Basically, put the JSP aside and just test the CachedRowSet to make sure it is working correctly. I have no idea what's in that class since it is not a Java standard class, so I can't really give you any additional suggestions.

  • Lock record problem.

    Hi All. I use Firebird DB with WLS. In Firebird when no DataBase transaction parameters specified the default parameters is set. By default transaction isolation levels is "concurency, wait". It means that when 2 concurrent transations try to lock record (select ... from table for update), second transactoin waits while the first will be complete. I need exception in this case (nowait in transactoin parameters).
    In Firebird JDBC driver there is a file with mapping to standart jdbc transaction isolation levels:
    TRANSACTION_SERIALIZABLE=isc_tpb_consistency,isc_tpb_write,isc_tpb_wait
    TRANSACTION_REPEATABLE_READ=isc_tpb_concurrency,isc_tpb_write,isc_tpb_wait
    TRANSACTION_READ_COMMITTED=isc_tpb_read_committed,isc_tpb_rec_version,isc_tpb_write,isc_tpb_wait
    I change wait to nowait in this file, bat i dont no where i can set transaction isolation level on weblogic server. How I can do this?

    In the on-lock trigger, instead of Lock_record; you should write your own sql "select for update no wait".
    Then I am not sure... either write your own exception clause to trap the ORA-00054, or trap the exception in the on-error trigger.

Maybe you are looking for

  • IPod nano duribility

    I just received my iPod nano yesterday. For the most part it is a wonderful device. But.... it certainly is not durable. Scratches have appeared all over it with very little use. Unfortunately I purchased a black one. Scratches most likely don't show

  • How to activate my membership?

    Hi Adobe people, I've bought a year membership for the Adobe Creative Cloud at Slim.nl, a Dutch webshop for software with a discount for students and teachers. I installed CC, entered the serial code I got from Slim.nl and the membership seems to hav

  • Monitoring info package groups

    hi,   How can one monitor info package groups ....   any docs ....   mail id : [email protected] Thanks in advance Regards Snigdha

  • IDoc for PM Notification (tran IW21)

    Hi all, Does anybody knows if there is standard iDoc to create PM Notifications? I find FM ALM_ME_PM_NOTIFICATION, but I didn't find any BAPI. I've found business objects BUS2038 and BUS2080 but I think they aren't for PM Notification... Any help ple

  • C7280 all in one software help

    Hi, My computer stared saying "Scanner not found" when I tried to scan things. I have tried multiple things, including restoring the print/fax info from a previous TimeMachine backup.  the scanner will scan to a thumbdrive. The latest thing I tried w