Creating exception in a running thread

what are the various way i can create an exception inside a running thread. (without using any Thread's interuption method) ? i want to interupt my thread . what are the ways ?

PS If you mean you want to STOP the thread using an exception that will occur while it's running then - don't do that. The appropriate way to kill such a thread is to set a flag which your run method checks to determine if it should exit.
D.

Similar Messages

  • Exception error while running the page? help me please

    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select
    opi.invoice_num
    ,opi.purchase_orders
    ,op.payment_num
    ,opi.amount_paid Amountpaid
    ,op.check_date paymentDate
    ,op.check_number
    ,op.currency
    ,op.payment_method
    ,opi.invoice_amount
    ,opi.invoice_payment_status
    ,op.vendor_name
    ,op.vendor_site_code
    from ofsap_paid_invoices opi ,ofsap_payments op where opi.INVOICE_PAYMENT_ID=op.PAYMENT_ID) QRSLT WHERE (( UPPER(PaymentAmountFrom) like :1 AND (PaymentAmountFrom like :2 OR PaymentAmountFrom like :3 OR PaymentAmountFrom like :4 OR PaymentAmountFrom like :5)AND UPPER(PaymentAmountTo) like :6 AND (PaymentAmountTo like :7 OR PaymentAmountTo like :8 OR PaymentAmountTo like :9 OR PaymentAmountTo like :10)))
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.sql.SQLException: ORA-00904: "PAYMENTAMOUNTTO": invalid identifier
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.sql.SQLException: ORA-00904: "PAYMENTAMOUNTTO": invalid identifier
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    hi ,
    I have created a search page with autocustomization mode.
    I have created 2 transient attributes PaymentAmountFrom and PaymentAmountTo,
    I have wirtten coding for setting where clause dynamically.
    I have checked the Vo, attribute PaymentAmountTo is there.but still iam getting that exception error
    when i enter PaymentAmountFrom and PaymentAmountToand click go button,
    Iam getting the exception error.
    This is the code in AM
    public void setwhereclause(
    String amtFrom
    ,String amtTo
    ,String DateFrom
    ,String DateTo)
    PosPaymentVOImpl vo=getPosPaymentVO1();
    vo.setWhereClauseParams(null);
    vo.setWhereClause(null);
    System.out.println(vo.getQuery());
    String sql = " 1=1 ";
    if(amtFrom != "" && amtTo != "")
    sql = sql + " and AMOUNT_PAID " +
    " between '"+ amtFrom + "' and '"+ amtTo +"'";
    if(DateFrom != "" && DateTo != "")
    sql =" and trunc(Check_date) " +
    " between '"+ DateFrom + "' and '"+ DateTo +"'";
    vo.setWhereClause(sql);
    System.out.println(vo.getQuery());
    code in CO
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    OAQueryBean oaquerybean = (OAQueryBean)webBean.findIndexedChildRecursive("NQueryRN");
    if (pageContext.getParameter(oaquerybean.getGoButtonName()) != null)
    //OAViewObject vo= (OAViewObject)am.findViewObject("PosPaymentVO1");
    System.out.println("In Controller");
    String AmountFrom=pageContext.getParameter("SearchPaymentAmntFrom");
    String AmountTo=pageContext.getParameter("SearchPaymentAmntTo");
    String DateFrom=pageContext.getParameter("SearchPaymentDateFrom");
    String DateTo=pageContext.getParameter("SearchPaymentDateTo");
    Serializable[] para1 = {AmountFrom,AmountTo,DateFrom,DateTo};
    am.invokeMethod("setwhereclause",para1);
    please help.
    Edited by: 859076 on Jun 10, 2011 12:26 AM
    Edited by: 859076 on Jun 10, 2011 12:26 AM
    Edited by: 859076 on Jun 10, 2011 12:30 AM

  • Running Threads-need HELP ps

    hi all, i really need to submit this assignment and im at the point of banging my head on my PC coz java is making me run nuts.
    i the code is working fine except that i need to run threads for any number of commands entered at input in the order in which thy're entered. i've written all commands in seperate classes and extended thread in each of them. all classes are working on a file so im calling them in my main class below. The for loop at the bottom of code is really giving me trouble. im sure i have to use if statements to run threads for commands entered. how can i do it. somebody help ps.
    import java.io.*;
    import java.util.*;
    public class Command
         public static void main(String[] args)
              Create cr = new Create();
              cr.createFile();
              //int numberOfCommands = // count how many commands there are on the line
              String commandLine;
              String s1 = "&;";
              int numberofCommands;
              System.out.print("Enter command: " );
              try{
                   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                   commandLine = br.readLine();
    StringTokenizer st = new StringTokenizer(commandLine, "&;");
         numberofCommands = st.countTokens();
         System.out.println("Number of Commands = " + numberofCommands);
         while (st.hasMoreTokens())
                 System.out.println(st.nextToken());
    Thread t[] = new Thread[numberofCommands];
    System.out.println("Threads created");
    for (int i=0; i < numberofCommands; i++)
    }catch (Exception e){}
    }

    Do you actually have a question?
    You're catching exceptions silently. Never do that. The solution to your problems may be in that catch block.
    Why are you sure that you need to use if statements?
    Why do you have that array of Thread?
    What are you trying to accomplish?

  • Long running threads.

    Hello everyone,
    Thanks for your interest in this post. I have a design question on a feature we are currently working on - I have described it below as best as I can. I would be thankful for any direction or guidance from all the good and experienced folks here in this forum :)
    We have a system which receives some input data (say in the form of files or a db update) from external sources. We have a job which wakes up periodically, checks for the presence of new data and then does some parsing/data manipulation. I have posted it below and for the sake of brevity and conciseness kept it simple.
    public class Work{  
        private SomeVar _var;  
        //constructor here  
        public void doWork(){  
             //run job  
    }  Note we have multiple kind of input (so multiple Work classes each of which have different parse logic).
    So far so good.
    We have jdk 1.4 (no java.util.concurrent) and we dont have an option to use a scheduling f/w like quartz
    Its simple enough and we dont have a need for Listeners, dynamic scheduling etc.
    That leaves us with 2 options to implement this
    Option 1
    Create a thread for each kind of job on startup.
    Each thread checks for presence of input data and creates a Work object to process the job.
    public class WorkThread extends Thread{//some common functionality here}
    public class SpecificWorkThread extends WorkThread{  
           private MetaInfo _meta;  
           //constructor  
           public void run(){  
              while(true){  
                    //check for presence of input data  
                    Work _w = new Work();  
                    _w.doWork();  
                    //sleep for some time  
    pulic class Controller{
          psv main(String args[]){
         //for each job{
                 WorkThread t = new SpecificWorkThread();
                 t.start();
             //join on all threads
    }  As you can see this would create (from the main), a long running thread for each job type
    Option 2
    Have the input data check in the controller clas. When there is input data to parse, create a Thread which does the parsing.
    The thread in its run method parses and comes out. So for each parse cycle, a short lived thread is created, somthing like below
    public class WorkController{  
           psv main(String args[]){  
                   while(true){  
                      //check for input condition  
                      new SpecificWorkThread(new Work()).start();  
                     //sleep for sometime  
              public class SpecificWorkThread extends Thread{  
                  private Work _work;  
                  //constructor  
                  public void run(){  
                        _work.doWork();  
            The difference between the two is that while the first creates long running threads per job type, in option(2) a thread is created on demand. Each thread is short lived (it does its job and dies), but then a thread needs to be created every time for a job.
    Both would work and work correctly. What I would like to understand is if the options presented above just a programmer's prefence or is one option better than the other (performance, memory considerations) etc?
    Thanks for your patience in reading this post.
    cheers,
    ram.

    Generally creating a new thread is an expensive process. Well, everything is relative. My laptop can create & run & stop 7,000+ threads per second, test program below, YMMV. If you are dealing with thousands of thread creations per second, pooling may be sensible; if not, premature optimization is the root of all evil, etc.
    public class ThreadSpeed
        public static void main(String args[])
         throws Exception
            System.out.println("Ignore the first few timings.");
            System.out.println("They may include Hotspot compilation time.");
            System.out.println("I hope you are running me with \"java -server\"!");
         for (int n = 0; n < 5; n++)
             doit();
            System.out.println("Did you run me with \"java -server\"?  You should!");
        public static void doit()
         throws Exception
            long start = System.currentTimeMillis();
            for (int n = 0; n < 10000; n++) {
             Thread thread = new Thread(new MyRunnable());
             thread.start();
             thread.join();
            long end = System.currentTimeMillis();
            System.out.println("thread time " + (end - start) + " ms");
        static class MyRunnable
         implements Runnable
         public void run()
    }Edited by: sjasja on Jan 14, 2010 2:20 AM

  • Exception handling in run()

    Hi,
    now here is the situation
    one of my classes that i made ClassA calls a run method of ClassB
    ClassB in its run method calls a local method throwMethod() that throws an exception
    now i want this exception to goto ClassA but because run method doesnot say
    "Throws Exception" it is giving me some problem.
    here is a sample code of what i am trying to accomplish:
    public ClassA{
    public static void main(){
    ClassB b = new ClassB();
    try{
    b.run();}
    catch (Exception ex){
    System.out.println("yay Exception caught from classB's methodThrow  "); //
    }//main of classA
    }//classA
    publc ClassB implements Runnable{
    run() throws exception //this is not valid as the run() in Runnable doesnot 
    //throw any exceptions.
    methodThrow();
    }//run of classB
    public void methodThrow() thorws Exception{
    throws new Exception("Goto classA");
    }//methodThrow
    }//ClassBthis is what i am trying to do and its not letting me do this..
    i just want to ask this if a run method cannot throw any exception how i am supposed to handle exception if i want to handle that exception in the class calling the run of this class... or is it that i can only handle exception inside the run itself (which i cannot as this is not what i want to do..)
    OR how can i tell the ClassA (which calls the ClassB.run() ) that the run method didnt execute properly so that ClassA can handle that situation properly like : put a system.out.println("the class didnt run"); or something
    i would really appreciate the help...

    They are not part of a method signature, but they are
    part of the interface's contract, normally shown
    using @throws tags in the documentation. The JLS
    doesn't cover contracts, only the language. There's
    plenty of examples in the standard API where the
    interface's contract documents that a specific
    runtime exception is thrown under certain
    circumstances. But the fact that an unchecked exception is not described in the documentation doesn't mean that an implementing method must not throw it. So throwing any unchecked exception can never break a contract IMO, unless the docs specifically state that the exception must not be thrown, or must only be thrown in certain circumstances.
    For example, calling Iterator.next()
    after Iterator.hasNext() returns false breaks the
    contract of the Iterator interface, and causes a
    runtime exception to be thrown, but has no impact on
    the method signatures when overriding them. Right. Following up with that, let's say I have an Iterator that is iterating over some sort of stream (reading bytes or lines or something). If the stream is interrupted, it's appropriate to throw an exception even though such behavior is not documented in the Iterator interface, and you would not break a contract to throw an exception.
    The contract of
    Runnable is that it may be called and not create any
    recoverable exceptions, or else it will kill the
    calling thread. If there was a good reason for
    requiring the client to handle the exception, that
    reason won't magically go away if you change it so
    the compiler won't complain about it.Right. I had to think about it, but I don't see any advantage to crashing the thread versus logging the exception and gracefully finishing execution. So one might as well handle the exception rather than rethrowing it, since there will be no one (other than the VM) there to catch it.

  • How to create a schedule to run once?

    I am having some problems getting a schedule to run only once. If I leave the repeat_interval empty, the schedule does not run at all. The documentation explains all the options for setting the repeat frequency, but it does not explain how to run it only once at a set time/date. I have created a user interface to allow the users to create their own schedules and I'd rather not do something like a "yearly" interval with an end date of next week. I need the generic solution.
    Any ideas?

    Hi Ravi,
    Thanks for your reply!
    I have just discovered something very interesting! best explained by example:
    (I might log an SR through metalink too. I'll be sure to update this thread with the outcome...)
    I create 3 schedules and 3 simple jobs:
    schedule 1 - start_date in 2 minutes time (eg. 11:30:00), repeat_interval => null
    schedule 2 - start_date in 2 minutes, 20 seconds time (eg. 11:30:20), repeat_interval => 'FREQ=DAILY'
    schedule 3 - start_date in 2 minutes, 40 seconds time (eg. 11:30:40), repeat_interval => null
    jobs 1, 2 and 3 just insert a row into a table through a PL/SQL block.
    My test results are as follows:
    1. The first time these schedules are created only schedule 2 runs. Schedules 1 and 3 never run.
    2. I drop and re-create all schedules and jobs, (adjusting the time to a few minutes in the future) and re-submit the schedules and jobs and they all run. I can continue this as many times as I like now and the repeat_interval of null will now work fine.
    3. re-start the 10gR2 database.
    4. re-create the schedules and jobs and only schedule 2 runs again. Schedules 1 and 3 never run. (I'm back at step 1!! I can reproduce this problem anytime by following these steps)
    My script is below:
    declare
    start_datetime__w timestamp(3) with time zone;
    repeat_interval__w varchar2(200);
    begin
    * REPEAT INTERVAL NULL TEST
    * TIM_SCHED_2_1 - no repeat interval
    * TIM_SCHED_2_2 - a repeat interval
    * TIM_SCHED_2_3 - no repeat interval (identical to TIM_SCHED_2_1)
    * Results on my 10gR2 database (Redhat Enterprise Linux 4.4) are:
    * job 2 will always run
    * jobs 1 and 3 will only run after the successful run of job2 AND jobs 1 and 3 have been re-created
    * Why?
    * It seems the scheduler needs a wakeup call!!!
    * test table: create table tim (col1 varchar2(30), col2 date);
    -- Cleanup previous jobs:
    --dbms_scheduler.drop_job      (job_name      => 'TIM_JOB_2_1');
    --dbms_scheduler.drop_schedule (schedule_name => 'TIM_SCHED_2_1');
    --dbms_scheduler.drop_job      (job_name      => 'TIM_JOB_2_2');
    --dbms_scheduler.drop_schedule (schedule_name => 'TIM_SCHED_2_2');
    --dbms_scheduler.drop_job      (job_name      => 'TIM_JOB_2_3');
    --dbms_scheduler.drop_schedule (schedule_name => 'TIM_SCHED_2_3');
    repeat_interval__w := 'FREQ=DAILY';
    -- create schedule TIM_SCHED_2_1, repeat_interval__w = null
    start_datetime__w := '27-FEB-2007 11:34:00.000 AM +10:00';
    dbms_scheduler.create_schedule (schedule_name => 'TIM_SCHED_2_1',
    start_date => start_datetime__w,
    repeat_interval => null,
    end_date => null,
    comments => 'schedule created at '||to_char(sysdate,'DD-MON-YYYY HH24:MI:SS'));
    -- create schedule TIM_SCHED_2_2, with a repeat_interval set
    start_datetime__w := '27-FEB-2007 11:34:20.000 AM +10:00';
    dbms_scheduler.create_schedule (schedule_name => 'TIM_SCHED_2_2',
    start_date => start_datetime__w,
    repeat_interval => repeat_interval__w,
    end_date => null,
    comments => 'schedule created at '||to_char(sysdate,'DD-MON-YYYY HH24:MI:SS'));
    -- create schedule TIM_SCHED_2_3, repeat_interval__w = null (SCHEDULE IDENTICAL TO TIM_SCHED_2_1)
    start_datetime__w := '27-FEB-2007 11:34:40.000 AM +10:00';
    dbms_scheduler.create_schedule (schedule_name => 'TIM_SCHED_2_3',
    start_date => start_datetime__w,
    repeat_interval => null,
    end_date => null,
    comments => 'schedule created at '||to_char(sysdate,'DD-MON-YYYY HH24:MI:SS'));
    -- create jobs
    dbms_scheduler.create_job (job_name => 'TIM_JOB_2_1',
    schedule_name => 'TIM_SCHED_2_1',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin '||
    'insert into tim values (''TIM_JOB_2_1'', sysdate); '||
    'commit; '||
    'end;',
    number_of_arguments => 0,
    enabled => TRUE,
    comments => 'job created at '||to_char(sysdate,'DD-MON-YY HH24:MI:SS'));
    dbms_scheduler.create_job (job_name => 'TIM_JOB_2_2',
    schedule_name => 'TIM_SCHED_2_2',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin '||
    'insert into tim values (''TIM_JOB_2_2'', sysdate); '||
    'commit; '||
    'end;',
    number_of_arguments => 0,
    enabled => TRUE,
    comments => 'job created at '||to_char(sysdate,'DD-MON-YY HH24:MI:SS'));
    dbms_scheduler.create_job (job_name => 'TIM_JOB_2_3',
    schedule_name => 'TIM_SCHED_2_3',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin '||
    'insert into tim values (''TIM_JOB_2_3'', sysdate); '||
    'commit; '||
    'end;',
    number_of_arguments => 0,
    enabled => TRUE,
    comments => 'job created at '||to_char(sysdate,'DD-MON-YY HH24:MI:SS'));
    end;
    Cheers,
    Tim.

  • Exception occured while running page.

    Hi,
    While compiling EO it show the error for some attribute.
    So I have created new attribute CREATION_DATE,CREATED_BY,LAST_UPDATED_DATE,LAST_UPDATED_BY in EO
    While running the page I am getting following error,
    oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for LpgConnEO at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2364) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.sql.SQLException: ORA-00904: "CREATION_DATE": invalid identifier
    How to resolve this issue?
    Please suggest.
    Thanks & Regards,
    Sagarika

    Hi,
    I don't have CREATION_DATE column in my table.
    But while compiling the EO its showsing error as given below,
    Error(14,8): class uttara.oracle.apps.uttaraimc.schema.server.LpgConnEOImpl should be declared abstract; it does not define method setCreationDate(oracle.jbo.domain.Number) in class oracle.apps.fnd.framework.server.OAEntityImpl
    So I have created the new attribute as CREATION_DATE.
    Thanks & Regards,
    Sagarika

  • URGENT: How to run threads in sequence?

    Dear experts, I am new to writing threads. I would like to know how to run threads in sequence? How do I know when a thread finishes its task?
    In the following code, classes Process_A(), Process_B(), Process_C() and Process_D() are subclasses of Class Thread.
    I'd like to know if I am using the join() function correctly? My intention is to wait for the previous process to finish before running the current process.
    Could anyone kindly give me some solutions on how to run the processes in sequence?
    Thanks!!
    =============================================================
    Thread process;
    Vector process_names = new Vector();
    process_names.add("a");
    process_names.add("b");
    process_names.add("c");
    for(int i=0; i<process_names.size(); i++)
    String process_name = (String) process_names.elementAt(i);
    if(process_name.equals("a"))
    process = new Process_A();
    else if(process_name.equals("b"))
    process = new Process_B();
    else if(process_name.equals("c"))
    process = new Process_C();
    else if(process_name.equals("d"))
    process = new Process_D();
    timer = new javax.swing.Timer(1000, new ProcessListener());
    timer.start();
    // ProcessListener()
    class ProcessListener implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
    if(process!=null)
    if(process.isAlive())
    try
    process.join();
    catch(Exception ex)
    ex.printStackTrace();
    process.start();

    just look at this simple example u will get to know how to use join method
    This does exactly what u want
    class callme
    void call(String msg)
    System.out.println("["+msg);
    Try
    Thread.sleep(1000);
    catch(InterruptedException e)
    System.out.println("interrupted");
    System.out.println("]");
    class caller implements Runnable
    String msg;
    Callme target;
    Thread t;
    Public Caller(Callme targ, String s)
    target=targ;
    msg=s;
    t=new Thread(this);
    t.start();
    public void run()
    target.call9msg);
    class Synch
    public static void main(String arg[])
    Callme target=new Callme();
    Caller ob1=new Caller(target,"hello");
    Caller ob2=new Caller(target,"Synchronized");
    Caller ob3=new Caller(target,"world");
    Try
    ob1.t.join();
    ob2.t.join();
    ob3.t.join();
    catch(InterruptedException e)
    System.out.println("interrupted");
    waiting for dukes

  • Catching an exception thrown from another thread

    I have a SocketServer that creates new threads to handle incoming clients. If one of the threads throw a SQLException is it possible to catch that exception in the SocketServer that created that thread.
    I tried implementing this code and I cannot get the server to catch an exception thrown in the thread. Are my assumptions correct?
    I was reading something about Thread Groups and implementing an uncoughtException() method, but this looked like overkill.
    Thanks for your time!
    Some Example code would be the following where the ClientThread will do a database query which could cause an SQLException. I'd like to catch that exception in my Socket Server
          try
                 new ClientThread( socketServer.accept() , host, connection ).start();
          catch( SQLException e )
                 System.out.println( "DataSource Connection Problem" );
                  e.printStackTrace();
          }

    hehe, why?
    The server's job is to listen for an incoming message from a client and pass it off to a thread to handle the client. Otherwise the server will have to block on that incoming port untill it has finished handling the client and usually there are many incoming clients continuously.
    The reason I would want to catch an exception in the server based on the SQLException thrown in the thread is because the SQLException is usually going to be due to the fact the datasource connection has become unavalable, or needs to be refreshed. This datasource connection is a private variable stored in the socket server. The SocketServer now needs to know that it has to refresh that datasource connection. I would normally try to use somesort of flag to set the variable but to throw another wrench into my dilemma, the SocketServer is actually its own thread. So I can't make any of these variables static, which means I can't have the thread call a method on teh socket server to change the status flag. :)
    I guess I need implement some sort of Listener that the thread can notify when a datasource connection goes down?
    Thanks for the help so far, I figured java would not want one thread to catch another thread's exceptions, but I just wanted to make sure.

  • Running threads in background

    I'm developing something like a Task Scheduler for my
    application. The user will select as task and schedule
    it to run in the background at a given time. When the
    task has finished running, an email will be sent to the
    user with the results.
    So I need a Task Scheduler. My scheduler will run as a
    background process within the app server and poll the
    database for new tasks to be run. The polling will
    happen every 1 minute or so. It will pick up all the
    new tasks that are due to be run, and then start 1
    separate thread for each task. When the task is done,
    the task thread will email the results to the user.
    My question is - how do I run the scheduler thread (the
    one that polls the database) in the background? The
    thread can sleep for 1 minute and then poll again.
    The other question is - am I allowed to run Threads in
    an app server environment (someone told me I'm not
    allowed to do that, as per the J2EE Standard).
    I'm looking for a J2EE-compliant solution - one that
    can be easily shifted to any app server other than
    WebLogic.
    Thanks a lot in advance.
    Manish Jethani

    You will want to create a startup class that schedules a trigger to run every
    minute.
    Mike
    "Manish Jethani" <[email protected]> wrote:
    >
    I'm developing something like a Task Scheduler for my
    application. The user will select as task and schedule
    it to run in the background at a given time. When the
    task has finished running, an email will be sent to the
    user with the results.
    So I need a Task Scheduler. My scheduler will run as a
    background process within the app server and poll the
    database for new tasks to be run. The polling will
    happen every 1 minute or so. It will pick up all the
    new tasks that are due to be run, and then start 1
    separate thread for each task. When the task is done,
    the task thread will email the results to the user.
    My question is - how do I run the scheduler thread (the
    one that polls the database) in the background? The
    thread can sleep for 1 minute and then poll again.
    The other question is - am I allowed to run Threads in
    an app server environment (someone told me I'm not
    allowed to do that, as per the J2EE Standard).
    I'm looking for a J2EE-compliant solution - one that
    can be easily shifted to any app server other than
    WebLogic.
    Thanks a lot in advance.
    Manish Jethani

  • Is it possible to create a column in run time?

    Hi,
    I created a application that connect with Access database. I just wonder is it possible for user to create a column in run time, because the application need this kind of interaction.
    Many thanks,
    Ann

    Code that does it is here:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=453846&tstart=0&trange=15
    MOD

  • Exception Occurred while running CVM: java.lang.Exception: Invalid AD_TOP

    Hi Everyone,
    Database is up, while running adcfgclone.pl on Application Tier and getting below error. Any help is highly appreciated.
    Tech Stack details
    10gR2 - database
    E-Business Suite 12
    ====================
    Error in /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/admin/log/ApplyAppsTier_04021635.log
    Skipping prodsetup driver processing; driver file not found at: /oraapp01/oracle/DFIN/comn/clone//apps/driver/frcmde37ka_prodsetup.drv
    Executing runAutoConfig...
    Deleting files of type INSTALL
    Starting CVM.....
    Exception Occurred while running CVM: java.lang.Exception: Invalid AD_TOP
    StackTrace:
    java.lang.Exception: Invalid AD_TOP
    at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1499)
    at oracle.apps.ad.clone.ApplyApplTop.runCVM(ApplyApplTop.java:510)
    at oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:552)
    at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
    at oracle.apps.ad.clone.ApplyApplTop.doApply(ApplyApplTop.java:382)
    at oracle.apps.ad.clone.ApplyApplTop.<init>(ApplyApplTop.java:267)
    at oracle.apps.ad.clone.ApplyAppsTier.<init>(ApplyAppsTier.java:105)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
    at java.lang.Thread.run(Thread.java:797)
    Product Top Drivers executed :
    ApplyApplTop Completed Successfully.
    # Checking the status of AutoConfig run of ApplyApplTop
    # AutoConfig Completed successfully
    Thanks

    Here it is
    Error
    Starting Context Value Management System at Thu Apr 03 12:16:37 BST 2008
    Using version 120.8.12000000.4
    Options:
    Force : no
    Contextfile : /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/appl/admin/DFIN_frcmde37ka.xml
    Templatefile : /oraapp01/oracle/DFIN/apps/ad/12.0.0/admin/template/adxmlctx.tmp
    ValueUpdateFile : /oraapp01/oracle/DFIN/apps/apps_st/appl/ad/12.0.0/admin/template/adcvmat.xml
    Verifying value management system requirements:
    ContextFile : VALID
    Template File : VALID
    ValueUpdateFile : INVALID
    Deactivating Context Value Management System.System Exit Status: 1
    ========================================================================
    Restored the Context file in :
    /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/appl/admin/DFIN_frcmde37ka.xml
    Aborting the running of Context Value Management
    Exception Occurred while running CVM: java.lang.Exception: Fatal Exception
    StackTrace:
    java.lang.Exception: Fatal Exception
    at oracle.apps.ad.context.CtxValueMgt.processCSH(CtxValueMgt.java:1285)
    at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1571)
    at oracle.apps.ad.clone.ApplyApplTop.runCVM(ApplyApplTop.java:510)
    at oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:552)
    at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
    ------------

  • Exception Details while running HelloWorld Page

    Hi,
    I am getting the following error while running HelloworldPG.xml from Jdeveloper
    Any help in this will be greatly appreciated.
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)     at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:884)     at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)     at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)     at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)     at runregion.jspService(runregion.jsp:96)     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:534)## Detail 0 ##oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)     at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876)     at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)     at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)     at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)     at runregion.jspService(runregion.jsp:96)     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:534)## Detail 0 ##java.sql.SQLException: Io exception: The Network Adapter could not establish the connection     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)     at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678)     at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)     at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:371)     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)     at java.sql.DriverManager.getConnection(DriverManager.java:512)     at java.sql.DriverManager.getConnection(DriverManager.java:140)     at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:753)     at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:704)     at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:609)     at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:681)     at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:552)     at oracle.apps.fnd.security.DBConnObj.(DBConnObj.java:206)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)     at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)     at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)     at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)     at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211)     at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671)     at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363)     at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301)     at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172)     at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1986)     at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1890)     at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:1482)     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:996)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:360)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:225)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:184)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:147)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1107)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:971)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:940)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:907)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:1025)     at oracle.apps.fnd.common.WebAppsContext.init(WebAppsContext.java:3486)     at oracle.apps.fnd.common.WebAppsContext.(WebAppsContext.java:537)     at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:346)     at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)     at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)     at runregion.jspService(runregion.jsp:96)     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:534)oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)     at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876)     at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)     at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)     at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)     at runregion.jspService(runregion.jsp:96)     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:534)## Detail 0 ##java.sql.SQLException: Io exception: The Network Adapter could not establish the connection     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)     at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678)     at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)     at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:371)     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)     at java.sql.DriverManager.getConnection(DriverManager.java:512)     at java.sql.DriverManager.getConnection(DriverManager.java:140)     at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:753)     at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:704)     at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:609)     at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:681)     at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:552)     at oracle.apps.fnd.security.DBConnObj.(DBConnObj.java:206)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)     at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)     at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)     at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)     at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211)     at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671)     at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363)     at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301)     at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172)     at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1986)     at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1890)     at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:1482)     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:996)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:360)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:225)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:184)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:147)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1107)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:971)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:940)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:907)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:1025)     at oracle.apps.fnd.common.WebAppsContext.init(WebAppsContext.java:3486)     at oracle.apps.fnd.common.WebAppsContext.(WebAppsContext.java:537)     at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:346)     at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)     at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)     at runregion.jspService(runregion.jsp:96)     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:534)

    Can you please elaborate on the problem you had with the DBC file and how you resolved it. Our instance was refreshed recently. Since then I am getting this error :
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = No suitable driver; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:884)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at runregion.jspService(runregion.jsp:96)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: No suitable driver; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at runregion.jspService(runregion.jsp:96)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getConnection(DriverManager.java:532)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
    [ Exception message truncated ]
    This is the content of our new DBC file :
    #DB Settings
    #Sun Feb 26 22:36:05 EST 2006
    GUEST_USER_PWD=APPSDBA/APPSDBA
    APPL_SERVER_ID=0DBF592746421876E0440003BA0763D035769940832816096332902802117385
    FND_JDBC_BUFFER_DECAY_INTERVAL=300
    APPS_JDBC_DRIVER_TYPE=THIN
    FND_JDBC_BUFFER_MIN=1
    GWYUID=APPLSYSPUB/PUB
    FND_JDBC_BUFFER_MAX=5
    APPS_JDBC_URL=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS\=(PROTOCOL\=tcp)(HOST\=dev)(PORT\=3621))(CONNECT_DATA\=(SID\=hrd1)))
    FND_JDBC_STMT_CACHE_FREE_MEM=TRUE
    FND_JDBC_STMT_CACHE_SIZE=200
    TWO_TASK=hrd1
    FND_MAX_JDBC_CONNECTIONS=500
    FND_JDBC_USABLE_CHECK=false
    FNDNAM=APPS
    FND_JDBC_PLSQL_RESET=false
    DB_PORT=3621
    FND_JDBC_CONTEXT_CHECK=true
    FND_JDBC_BUFFER_DECAY_SIZE=5
    DB_HOST=dev.test.com
    Thanks !!!

  • Error running "threads" in jdb.

    When I run jdb against WebLogic SP2 running in Sun JVM 1.3.1_02, and I type
    the "threads" command to list the running threads, I get this exception:
    Group system:
    Internal exception:
    java.lang.StringIndexOutOfBoundsException
    at java.lang.StringBuffer.insert(StringBuffer.java:808)
    at
    com.sun.tools.example.debug.tty.Commands.printThreadGroup(Commands.ja
    va:295)
    at
    com.sun.tools.example.debug.tty.Commands.commandThreads(Commands.java
    :303)
    at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:351)
    at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:625)
    at com.sun.tools.example.debug.tty.TTY.main(TTY.java:924)
    Any ideas?
    Thanks,
    Bob

    When things like this happen, usually the right place to search for an answer
    is Sun's bugparade. Searching for 'com.sun.tools.example.debug.tty.Commands.printThreadGroup'
    results in:
    http://developer.java.sun.com/developer/bugParade/bugs/4432376.html
    Bob Lee <[email protected]> wrote:
    When I run jdb against WebLogic SP2 running in Sun JVM 1.3.1_02, and I type
    the "threads" command to list the running threads, I get this exception:
    Group system:
    Internal exception:
    java.lang.StringIndexOutOfBoundsException
    at java.lang.StringBuffer.insert(StringBuffer.java:808)
    at
    com.sun.tools.example.debug.tty.Commands.printThreadGroup(Commands.ja
    va:295)
    at
    com.sun.tools.example.debug.tty.Commands.commandThreads(Commands.java
    :303)
    at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:351)
    at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:625)
    at com.sun.tools.example.debug.tty.TTY.main(TTY.java:924)
    Any ideas?
    Thanks,
    Bob--
    Dimitri

  • Running thread behaviour on calling interrupt?

    if a thread T1 is running and interrupt is called on this thread,there will be no impact on thread T1 processing/behaviour. To handle this
    we have to call if (Thread.interrupted()) inside run method of thread T1 right?
    Interrupt will have impact when thread is under wait,sleep or join(or methods that throw InterruptedException),Right?
    In above question , impact refers to the case when InterruptedException will be thrown.
    Asked the question at http://www.coderanch.com/t/545582/threads/java/Impact-interrupt-Running-thread but did not get satisfactory reply though i have been thru api doc.

    Interrupting a thread sets a flag for that thread. Setting that flag will cause some blocking operations to throw an exception. e.g. sleep, wait, NIO read. Unless you do one of those operations, setting the flag doesn't do anything which is a problem for those who hope to stop a running thread in an untrusted third party library. ;)

Maybe you are looking for

  • Converting a pdf file to jpeg

    I want to copy some photographs currently held in pdf to another format such as jpeg. i tried copying a photograph from pdaf into a word document and it appeared with a full page black border line.  Copying photographs in jpeg I do not have this prob

  • Upgrade - SAP XI 3.0 to PI 7.0

    Hello, Can you please let me know the defined steps in upgrading XI 3.0 to PI 7.0?  I checked the blogs on this.  But couldn't get the right infomation on this.  Can any pass on this information? Thanks. Srinivas.

  • Coesistence ORACLE 9i and 8.1.7 on solaris 8 help!!!

    Hi, i 'm tryng to install oracle 9i r2 db server on the same sun sparc computer where a previous oracle 8i db server insist . The 9i OUI deinstalls the oracle 8i JRE and installs the new JRE, in this way the 8i loadjava doesn't work, because the refe

  • Transferencia por Bluetooth

    Aunque imagino los motivos por los que los productos iOS no tienen habilitada la transferencia de archivos con otros dispositivos aunque sea de forma limitada (fotos y videos) me gustaría conocer los motivos reales por los que no es posible. Supongo

  • Installing Updated Drivers for Vi

    Do I have to uninstall the Oct version drivers prior to installing the new drivers? Can I just install over top without a problem?Thanks much for any feedback. Wayne?