ExecuteUpdat methode never returns

I m using OCI Driver with Connection Poolig..Weblogic 11g,Oracle 11g . I found that the executeUpdate method never returns, every 1 out of 100 times, approximately.
I m calling a procedur from Java,which only inser the insert data,in procedure for tracking I m inserting in one table and that procedure is "PRAGMA AUTONOMOUS_TRANSACTION".Please help me.
And the thead stack is below
"[STUCK] ExecuteThread: '81' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
     oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
     oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:482)
     oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:727)
     oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
     oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
     oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3657)
     oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4739)
     oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
     weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.InterfaceDAO.saveForLogging(InterfaceDAO.java:460)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CommonResponseHandler.processCommonResponse(Simah_CommonResponseHandler.java:93)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CreditReportHandler.mainProcessing(Simah_CreditReportHandler.java:1188)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CreditReportHandler.processRequest(Simah_CreditReportHandler.java:92)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CreditReportHandler.startHandler(Simah_CreditReportHandler.java:74)
     com.infotech.kastle.lending.interfaces.core.InterfaceManager.executeServices(InterfaceManager.java:314)
     com.infotech.kastle.lending.interfaces.core.InterfaceManager.executeServices(InterfaceManager.java:288)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.DBUtils.callingSimahCreditReport(DBUtils.java:1367)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.DBUtils.InterfaceTrigger(DBUtils.java:2004)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.DBUtils.checkInterfaceFiringForCust(DBUtils.java:1823)
     com.infotech.kastle.lending.action.corporate.BasicInfoISAction.execute(BasicInfoISAction.java:581)
     org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     com.infotech.kastle.lending.filter.UTF8EncodingFilter.doFilter(UTF8EncodingFilter.java:70)
     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
     weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

I m using OCI Driver with Connection Poolig..Weblogic 11g,Oracle 11g . I found that the executeUpdate method never returns, every 1 out of 100 times, approximately.
I m calling a procedur from Java,which only inser the insert data,in procedure for tracking I m inserting in one table and that procedure is "PRAGMA AUTONOMOUS_TRANSACTION".Please help me.
And the thead stack is below
"[STUCK] ExecuteThread: '81' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
     oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
     oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:482)
     oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:727)
     oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
     oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
     oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3657)
     oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4739)
     oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
     weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.InterfaceDAO.saveForLogging(InterfaceDAO.java:460)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CommonResponseHandler.processCommonResponse(Simah_CommonResponseHandler.java:93)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CreditReportHandler.mainProcessing(Simah_CreditReportHandler.java:1188)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CreditReportHandler.processRequest(Simah_CreditReportHandler.java:92)
     com.infotech.kastle.lending.interfaces.handlers.externalSystems.Simah_CreditReportHandler.startHandler(Simah_CreditReportHandler.java:74)
     com.infotech.kastle.lending.interfaces.core.InterfaceManager.executeServices(InterfaceManager.java:314)
     com.infotech.kastle.lending.interfaces.core.InterfaceManager.executeServices(InterfaceManager.java:288)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.DBUtils.callingSimahCreditReport(DBUtils.java:1367)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.DBUtils.InterfaceTrigger(DBUtils.java:2004)
     com.infotech.kastle.lending.interfaces.core.databaseUtils.DBUtils.checkInterfaceFiringForCust(DBUtils.java:1823)
     com.infotech.kastle.lending.action.corporate.BasicInfoISAction.execute(BasicInfoISAction.java:581)
     org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     com.infotech.kastle.lending.filter.UTF8EncodingFilter.doFilter(UTF8EncodingFilter.java:70)
     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
     weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

Similar Messages

  • Runtime,waitFor and exitValue() methods:child programm never return

    Sorry,my english is really bad!
    i do a programm with tests all the night different java programms.
    I have to compile and after run it.
    My problem is that even if the output and error streams are displayed,each time i have a big programm,the child process always stay blocked.
    I decided to use the dos command ....>>Results.txt to store the datas.
    But the problem is that the wait for and exitvalue methods never returns.

    Hi,
    you must provide a way to read not only the error stream (>>) but also the output stream (>). You can make it from java too. Something like this:
    Runtime rt = java.lang.Runtime.getRuntime();
    Process proc = rt.exec(cmd, null, workdir);
    int inp;
    while ((inp = proc.getInputStream().read()) != -1) {
      System.out.write(inp);
    int err;
    while ((err = proc.getErrorStream().read()) != -1) {
      System.out.write(err);
    proc.waitFor();Best regards,
    Martin

  • SAXParser.parse never returns!

    I'm using sockets to transfer xml data. When I feed my InputSource (containing the xml document) into the SAXPaser.parse method I can see the events being fired correctly (ie: startDocument, characters, startElement,etc) apart from the endDocument event. The parse method is executing all my code but it never returns! What should cause it to return? Do I need to close the socket connection or should it recognise when it has reached the final closing element?

    I couldn't find that exact implementation but I looked into the crimson version and it reads until it hits an EOF. It's a reasonable guess that the xerces version does the same. I think it has to read in the whole file becasue it cannot tell whether the document is well-formed otherwise.

  • Method "jumping" return statement

    (Sorry for my bad English)
    Hi, i have a method that makes comparison between Strings, here it is :
        public String comparacion(String cc,String ci,int tlnm,int ndc){              
                  int te = ci.indexOf(' ');                                         
                  if( te != -1 ){
                      String[] palabras = ci.split(" ");
                      int index = palabras.length - 1;                                                                                                                    
                      String nombre = "";                                    
                      int indice = 0;               
                      for( int k = 0; k <= index; k++ ){                                              
                           for( int lcc = cc.length() - 1,lci = palabras[k].length() - 1 ;
                                    lci >= 0 && lcc >= 0;
                                    lcc--,lci-- ){
                                char ccc = cc.charAt(lcc);
                                char cci = palabras[k].charAt(lci);
                                if( ccc != cci ){
                                    break;                               
                                if( "DE".equals(palabras[k]) || "DEL".equals(palabras[k]) ||
                                    "LA".equals(palabras[k]) || "LOS".equals(palabras[k]) ||
                                    "SAN".equals(palabras[k]) ){
                                    indice++;
                                    //System.out.println(index + " " + indice );                                   
                                    break;
                                if( ccc == cci ){                     
                                    if( lci == 0 ){                                                                                           
                                        nombre += palabras[k] + " ";                                                     
                                        indice++;                                   
                                        //System.out.println("Afuera = " + index + " " + indice + " " + nombre);                                                                  
                                if( indice == index ){
                                    System.out.println(index + " " + indice);
                                    return null;
                                if( tlnm - 1 == ndc  ){                                   
                                    //System.out.println(index + " " + indice );                                   
                                    System.out.println("Posible nombre mal escrito en el catalogo : " + ci );                                       
                  if( te == -1 ){                                      
                      for( int lcc = cc.length() - 1,lci = ci.length() - 1; lci >= 0 && lcc >= 0; lcc--, lci-- ){
                           char ccc = cc.charAt(lcc);
                           char cci = ci.charAt(lci);
                           if( ccc != cci ){
                               //Son diferentes
                               //System.out.println(cci + " es diferente de " + ccc);
                               //return "Es doble supongo : " + cc ;                                     
                               break;
                           if( ccc == cci ){                     
                               //System.out.println(cci + " " + ccc);
                               if( lci == 0 ){
                                   //System.out.println("Son iguales : " + ci + " " + cc);                                      
                                   //return "Son iguales : " + ci + " y " + cc;                               
                  return null;
           }The problem is in the if that evaluates if indice is equal as index if true and if my understanding of the return statement is right, then it should stop there and return to the
    function where it was called from right? Unfortunately this is not happening, in fact i tested with the System.out.println and it enters when the condition is true but it seems
    it skips the return and keeps going on the rest of the code. Any idea of what could be the issue ?
    -Daniel

    Hello Daniel,
    IMHO your code has several issues wich make it hard to read and therefore hard to debug:
    1. choose better variable names. Variable names should clearly express what they contain or what meaning they have. e.g.: int te = ci.indexOf(' '); // bad
    int indexOfSpace = ci.indexOf(' '); // better
    // but in your case it really should have been:
    boolean isSingleWord = -1 == ci.indexOf(' ');2. you schould never return null unless null is a valid member of the result set (and not some kind of error indikator).
    I understand that you plan to have it return something but my impression is that String meight not be the appropriate return type. The other option is that the name of this method is not appropriate.
    3. what keep you from using <b>StringTokenizer</b>?
    4. why do you iterate over the single characters yourself instead of relying on <b>String.equals()</b>?
    5. the line if( te == -1 ) expresses the opposit of the first <b>if</b>, so you should turn it into <b>else</b>.
    6. you should extract the bodies of <tt>if( te != -1 )</tt> and <tt>if( te == -1 )</tt> (after turning it to else) to their own methods.
    7. the part if( "DE".equals(palabras[k]) || "DEL".equals(palabras[k])
          "LA".equals(palabras[k]) || "LOS".equals(palabras[k]) ||
          "SAN".equals(palabras[k]) )should better be written this way:private static final List<String> KEYWORD_LIST = Arrays.asList(new String[]{ "DE","DEL","LA", "LOS","SAN"]);
    if(KEYWORD_LIST.contains(palabras[k]))8. The keyword check that does not depend on anything declared in the inner loop so it shuld be moved out of it.
    9. the check of the input parameters tlnm and ndc do not depent on anything in both of the loops so it should be moved behind (or before) them.
    10. if( ccc != cci ){
        break;                               
    if( ccc == cci ){
    } again this is the opposit so instead of breaking the loop you should have formed a better <b>if</b>.
    hope this helps.
    bye
    TPD

  • WITH vs INNER QUERY on 11g (100% CPU & Never Return vs 2-3 Seconds)

    I cannot figure out why this is happening. We have an 11g database and a pipelined stored function. The following will never return. The db cpu goes up to about 100%.
    FOR myRow IN (
      WITH subquery AS (
        SELECT ...
      SELECT
      FROM subqery
    LOOP
      PIPE ROW(...);
    END LOOP;If it's formatted the following way, it behaves the same way...:
    FOR myRow IN (
      SELECT
      FROM (
        SELECT ...
    LOOP
      PIPE ROW(...);
    END LOOP;However, using the SELECT * FROM (...) method, without the procedure, returns fine:
    SELECT * FROM (
      SELECT * FROM (
    )But this never returns:
    WITH subquery AS (
      SELECT ...
    SELECT
    FROM subqueryI have no idea how to diagnose this. It's as if one method tries to store results one way, while the other does not. Any thoughts would be greatly appreciated!!

    This is the explain for the /*+materialize*/ and subquery form:
    Plan hash value: 2761872157
    | Id  | Operation                  | Name                      | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT           |                           |     1 |   130 |       |  3427   (2)| 00:00:42 |
    |   1 |  TEMP TABLE TRANSFORMATION |                           |       |       |       |            |          |
    |   2 |   LOAD AS SELECT           |                           |       |       |       |            |          |
    |*  3 |    HASH JOIN               |                           |     5 |  1090 |       |  3425   (2)| 00:00:42 |
    |   4 |     TABLE ACCESS FULL      | U_MASTER                  |   579 |  4632 |       |     5   (0)| 00:00:01 |
    |*  5 |     HASH JOIN RIGHT OUTER  |                           | 83280 |    16M|  4152K|  3418   (2)| 00:00:42 |
    |   6 |      VIEW                  |                           | 83280 |  3171K|       |   857   (2)| 00:00:11 |
    |*  7 |       HASH JOIN            |                           | 83280 |  4066K|       |   857   (2)| 00:00:11 |
    |*  8 |        TABLE ACCESS FULL   | U_MASTER                  |   246 |  1722 |       |     5   (0)| 00:00:01 |
    |   9 |        VIEW                |                           | 83280 |  3497K|       |   851   (2)| 00:00:11 |
    |* 10 |         HASH JOIN          |                           | 83280 |  3903K|  2704K|   851   (2)| 00:00:11 |
    |* 11 |          TABLE ACCESS FULL | T_MASTER                  | 78886 |  1771K|       |   377   (2)| 00:00:05 |
    |* 12 |          TABLE ACCESS FULL | T_CONTAINER_IN            | 84469 |  2062K|       |   191   (3)| 00:00:03 |
    |* 13 |      HASH JOIN OUTER       |                           | 83280 |    13M|  1048K|  1634   (2)| 00:00:20 |
    |  14 |       TABLE ACCESS FULL    | C_MASTER                  | 16742 |   850K|       |   127   (2)| 00:00:02 |
    |  15 |       VIEW                 |                           | 83280 |  9678K|       |   937   (2)| 00:00:12 |
    |* 16 |        HASH JOIN           |                           | 83280 |  9678K|       |   937   (2)| 00:00:12 |
    |* 17 |         TABLE ACCESS FULL  | U_MASTER                  |   246 |  2706 |       |     5   (0)| 00:00:01 |
    |  18 |         VIEW               |                           | 83280 |  8783K|       |   931   (2)| 00:00:12 |
    |* 19 |          HASH JOIN         |                           | 83280 |  5530K|  2704K|   931   (2)| 00:00:12 |
    |* 20 |           TABLE ACCESS FULL| T_MASTER                  | 78886 |  1771K|       |   377   (2)| 00:00:05 |
    |* 21 |           TABLE ACCESS FULL| T_CONTAINER_IN            | 84469 |  3712K|       |   191   (3)| 00:00:03 |
    |  22 |   VIEW                     |                           |     1 |   130 |       |     2   (0)| 00:00:01 |
    |  23 |    TABLE ACCESS FULL       | SYS_TEMP_0FD9D670A_23115C |     1 |   103 |       |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - access("A"."PICKUP_LOC_UNIT"="B"."U_ID")
           filter(("A"."STATUS"=1 OR "A"."STATUS"=2) AND "B"."FAC_ID"=161 AND
                  "from$_subquery$_008"."TO_UNIT_ID" IS NULL AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("A"."ORIGIN_DATETIME"))
                  <=SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) OR "B"."FAC_ID"=161 AND "from$_subquery$_008"."PREV_T_ID" IS NULL
                  AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_008"."TASK_DATE_TIME"))>SYS_EXTRACT_UTC(SYSTIMEST
                  AMP(6)) AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("A"."ORIGIN_DATETIME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP(6))
                  AND "from$_subquery$_008"."TO_UNIT_ID" IS NOT NULL OR "from$_subquery$_008"."FAC_ID"=161 AND
                  "from$_subquery$_014"."TASK_DATE_TIME" IS NULL AND ("from$_subquery$_008"."UNIT_TYPE_ID"=2 OR
                  "from$_subquery$_008"."UNIT_TYPE_ID"=3) AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_008"."TAS
                  K_DATE_TIME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) OR "from$_subquery$_008"."FAC_ID"=161 AND
                  ("from$_subquery$_008"."UNIT_TYPE_ID"=2 OR "from$_subquery$_008"."UNIT_TYPE_ID"=3) AND
                  SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_008"."TASK_DATE_TIME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP
                  (6)) AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_014"."TASK_DATE_TIME"))>SYS_EXTRACT_UTC(SYST
                  IMESTAMP(6)))
       5 - access("from$_subquery$_008"."QCSJ_C000000000600000"="G"."PREV_T_ID"(+) AND
                  "from$_subquery$_008"."C_ID_IN"="G"."C_ID_IN"(+))
       7 - access("H"."TO_UNIT_ID"="I"."U_ID")
       8 - filter("I"."UNIT_TYPE_ID"=1 OR "I"."UNIT_TYPE_ID"=2 OR "I"."UNIT_TYPE_ID"=3)
      10 - access("G"."T_ID"="H"."T_ID")
      11 - filter("H"."STATUS"=1)
      12 - filter("G"."REJECT"=0)
      13 - access("A"."C_ID"="C"."C_ID_IN"(+))
      16 - access("D"."TO_UNIT_ID"="E"."U_ID")
      17 - filter("E"."UNIT_TYPE_ID"=1 OR "E"."UNIT_TYPE_ID"=2 OR "E"."UNIT_TYPE_ID"=3)
      19 - access("C"."T_ID"="D"."T_ID")
      20 - filter("D"."STATUS"=1)
      21 - filter("C"."REJECT"=0) This is the explain for the with statement form (the one that never returns):
      Plan hash value: 868902620
    | Id  | Operation                        | Name                         | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                 |                              |     5 |   840 |       |  1493   (2)| 00:00:18 |
    |*  1 |  FILTER                          |                              |       |       |       |            |          |
    |   2 |   NESTED LOOPS OUTER             |                              |     5 |   840 |       |  1493   (2)| 00:00:18 |
    |*  3 |    HASH JOIN                     |                              | 83280 |    11M|       |  1484   (2)| 00:00:18 |
    |   4 |     TABLE ACCESS FULL            | U_MASTER                     |   579 |  4632 |       |     5   (0)| 00:00:01 |
    |*  5 |     HASH JOIN OUTER              |                              | 83280 |    10M|  1048K|  1477   (2)| 00:00:18 |
    |   6 |      TABLE ACCESS FULL           | C_MASTER                     | 16742 |   850K|       |   127   (2)| 00:00:02 |
    |   7 |      VIEW                        |                              | 83280 |  6424K|       |   937   (2)| 00:00:12 |
    |*  8 |       HASH JOIN                  |                              | 83280 |  6424K|       |   937   (2)| 00:00:12 |
    |*  9 |        TABLE ACCESS FULL         | U_MASTER                     |   246 |  2706 |       |     5   (0)| 00:00:01 |
    |* 10 |        HASH JOIN                 |                              | 83280 |  5530K|  2704K|   931   (2)| 00:00:12 |
    |* 11 |         TABLE ACCESS FULL        | T_MASTER                     | 78886 |  1771K|       |   377   (2)| 00:00:05 |
    |* 12 |         TABLE ACCESS FULL        | T_CONTAINER_IN               | 84469 |  3712K|       |   191   (3)| 00:00:03 |
    |* 13 |    VIEW PUSHED PREDICATE         |                              |     1 |    29 |       |     0   (0)| 00:00:01 |
    |* 14 |     HASH JOIN                    |                              |   845 | 46475 |       |   384   (2)| 00:00:05 |
    |* 15 |      TABLE ACCESS FULL           | U_MASTER                     |   246 |  1722 |       |     5   (0)| 00:00:01 |
    |  16 |      NESTED LOOPS                |                              |       |       |       |            |          |
    |  17 |       NESTED LOOPS               |                              |   845 | 40560 |       |   378   (2)| 00:00:05 |
    |* 18 |        TABLE ACCESS FULL         | T_MASTER                     | 78886 |  1771K|       |   377   (2)| 00:00:05 |
    |* 19 |        INDEX RANGE SCAN          | IDX_T_CONTAINER_IN_PREV_T_ID |     1 |       |       |     0   (0)| 00:00:01 |
    |* 20 |       TABLE ACCESS BY INDEX ROWID| T_CONTAINER_IN               |     1 |    25 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(("A"."STATUS"=1 OR "A"."STATUS"=2) AND "B"."FAC_ID"=161 AND "from$_subquery$_008"."TO_UNIT_ID" IS
                  NULL AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("A"."ORIGIN_DATETIME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) OR
                  "B"."FAC_ID"=161 AND "from$_subquery$_008"."PREV_T_ID" IS NULL AND
                  SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_008"."TASK_DATE_TIME"))>SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) AND
                  SYS_EXTRACT_UTC(INTERNAL_FUNCTION("A"."ORIGIN_DATETIME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) AND
                  "from$_subquery$_008"."TO_UNIT_ID" IS NOT NULL OR "from$_subquery$_008"."FAC_ID"=161 AND
                  "from$_subquery$_014"."TASK_DATE_TIME" IS NULL AND ("from$_subquery$_008"."UNIT_TYPE_ID"=2 OR
                  "from$_subquery$_008"."UNIT_TYPE_ID"=3) AND SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_008"."TASK_DATE_TI
                  ME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) OR "from$_subquery$_008"."FAC_ID"=161 AND
                  ("from$_subquery$_008"."UNIT_TYPE_ID"=2 OR "from$_subquery$_008"."UNIT_TYPE_ID"=3) AND
                  SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_008"."TASK_DATE_TIME"))<=SYS_EXTRACT_UTC(SYSTIMESTAMP(6)) AND
                  SYS_EXTRACT_UTC(INTERNAL_FUNCTION("from$_subquery$_014"."TASK_DATE_TIME"))>SYS_EXTRACT_UTC(SYSTIMESTAMP(6)))
       3 - access("A"."PICKUP_LOC_UNIT"="B"."U_ID")
       5 - access("A"."C_ID"="C"."C_ID_IN"(+))
       8 - access("D"."TO_UNIT_ID"="E"."U_ID")
       9 - filter("E"."UNIT_TYPE_ID"=1 OR "E"."UNIT_TYPE_ID"=2 OR "E"."UNIT_TYPE_ID"=3)
      10 - access("C"."T_ID"="D"."T_ID")
      11 - filter("D"."STATUS"=1)
      12 - filter("C"."REJECT"=0)
      13 - filter("from$_subquery$_008"."C_ID_IN"="G"."C_ID_IN"(+))
      14 - access("H"."TO_UNIT_ID"="I"."U_ID")
      15 - filter("I"."UNIT_TYPE_ID"=1 OR "I"."UNIT_TYPE_ID"=2 OR "I"."UNIT_TYPE_ID"=3)
      18 - filter("H"."STATUS"=1)
      19 - access("G"."PREV_T_ID"="from$_subquery$_008"."QCSJ_C000000000600000")
      20 - filter("G"."REJECT"=0 AND "G"."T_ID"="H"."T_ID")Just wanted to say thanks again for any additional help you can provide!
    Edited by: asmallgrin on Feb 3, 2010 7:28 AM

  • Calling a method that returns values in a map - using JSTL

    Hi I have a method within an object that returns a List for a particular category
    public List<String> getFieldsInCategory(String categoryName){
        return _categoryFieldsMap.get(categoryName); //This is a map that returns a list                                                             
      }Trying to call the above function in jsp, the object is available as "document",
    how do i pass a key to the above function to return a List.
       <c:forEach items="${document.fieldsInCategory('ABSTRACT')}" var="temp">How do i get the list by passing a string key to my method,
    please let me know how to go about this.
    Thanks

    JSTL can not directly call methods that take parameters.
    All it can do is access javabean properties - ie via the revealed get/set methods.
    You can fudge it by having a seperate variable to set:
    Map  _categoryFieldsMap;
    String category = null;
    public void setCategory(String category){
      this.category = category;
    public String getCategory(String category){
      return category;
    public List<String> getFieldsInCategory(){
        return _categoryFieldsMap.get(categoryName); //This is a map that returns a list                          
      }You would then do it like this in your JSP:
    <c:set target="document.category" value="ABSTRACT"/>
    <c:forEach items="${document.fieldsInCategory}" var="temp">
    ...The other alternative is to return the entire map to the page.
    EL accesses maps quite handily.
    so given a method that returns the map:
    public Map getCategoryFieldsMap(){
    return _categoryFieldsMap;
    then the expression: ${document.categoryFieldsMap.ABSTRACT} returns what you are after.
    Hope this helps,
    evnafets

  • Calling a method that returns an object Array

    Hello.
    During a JNICALL , I wish to call a method which returns an object array.
    ie my java class has a method of the form
    public MyObject[] getSomeObjects(String aString){
    MyObject[] theObjects=new MyObject[10];
    return theObjects
    Is there an equivalent to (env)->CallObjectMethod(...
    which returns a jobjectArray instead of a jobject, and if not could somebody suggest a way around this.
    Thanks,
    Neil

    I believe an array oj jobjects is also a jobject. You can then cast it to another class.

  • How to find out the value a method is returning using JDI

    Is it possible to find out what value (not simply the type) a method returns. I'd have thought there would be some access under MethodExitEvent but I can't find anything.

    Is it possible to find out what value (not simply the
    type) a method returns.There's currently no way to access a method's return value in
    method exit events
    This is Bug Id: 4195445
    Synopsis: JVMDI spec: Add return value to Method Exit Event
    http://developer.java.sun.com/developer/bugParade/bugs/4195445.html
    See also:
    http://developer.java.sun.com/developer/bugParade/bugs/4813046.html
    This will be fixed in the next major release of J2SE (code named 'tiger')

  • Where can I find a method to return the number of constants in an enum?

    I'd like to get the number of constants in an enum, but can not find any documentation on the topic.
    The only method I find reference to is the values() method.
    Are there other methods?
    Is there a method to return the number of items in the values array?
    Thanks,
    Norm

    Encephalopathic wrote:
    A_Sailor wrote:
    I had a mental block there.In my field, we call this a "cerebral spasm".From what I know of your field, that's a strange place to keep your cerebrum ;-)

  • Methods that return more than one object.

    Hello everyone,
    I don't know if this has ever been proposed or if there's an actual solution to this in any programming language. I just think it would be very interesting and would like to see it someday.
    This is the thing: why isn't it possible for a method to return more than one object. They can receive as many parameters as wanted (I don't know if there's a limit), but they can return only 1 object. So, if you need to return more than one, you have to use an auxiliary class...
    public class Person {
       private String name;
       private String lastName;
       public Person(String name, String lastName) {
          this.name = name;
          this.lastName= lastName;
       public String getName() {
           return name;
       public String getLastName() {
           return lastName;
    }So if you want to get the name of somebody you have to do this, assuming "person" is an instance of the object Person:
    String name = person.getName();And you need a whole new method (getLastName) for getting the person's last name:
    String lastName = person.getLastName();Anyway, what if we were able to have just one method that would return both. My idea is as follows:
    public class Person {
       private String name;
       private String lastName;
       public Person(String name, String lastName) {
          this.name = name;
          this.lastName= lastName;
       public String name, String lastName getName() {
           return this.name as name;
           return this.lastName as lastName;
    }And you would be able to do something like:
    String name = person.getName().name;and for the last name you would use the same method:
    String lastName = person.getName().lastName;It may not seem like a big deal in this example, but as things get more complicated simplicity becomes very useful.
    Imagine for example that you were trying to get information from a database with a very complex query. If you only need to return 1 column you have no problem, since your object can be an array of Strings (or whatever type is necessary). But if you need to retrieve all columns, you have three options:
    - Create 1 method per column --> Not so good idea since you're duplicating code (the query).
    - Create and auxiliary object to store the information --> Maybe you won't ever use that class again. So, too much code.
    - Concatenate the results and then parse them where you get them. --> Too much work.
    What do you think of my idea? Very simple, very straight-forward.
    I think it should be native to the language and Java seems like a great option to implement it in the future.
    Please leave your comments.
    Juan Carlos García Naranjo

    It's pretty simple. In OO, a method should do one thing. If that thing is to produce an object that contains multiple values as part of its state, and that object makes sense as an entity in its own right in the problem domain--as opposed to just being a way to wrap up multiple values that the programmer finds it convenient to return together--then great, define the class as such and return an instance. But if you're returning multiple values that have nothing to do with each other outside of the fact that it's convenient to return them together, then your method is probably doing too much and should be refactored.
    As for the "if it increases productivity, why not add it?" argument, there are lots of things that would "increase productivity" or have some benefit or other, but it's not worth having them in the language because the value they add is so small as to no be worth the increase in complexity, risk, etc. MI of implementation is one great example of something that a lot of people want because it's convenient, but that has real, valid utility only in very rare cases. This feature is another one--at least in the domain that Java is targetting, AFAICT.

  • Adobe took early termination penalty   $ 764.30 from my account 10days ago insisting staff mistake but never returned  $ 764.30 back. I have chatted with two staffs for this and all I got was "please wait with patient"... 10 days already have passed since

    This is totally insane!! They took someone's money in a sec by 'MISTAKE' but haven't returned after 10days.
    I already have chatted with two staffs about this but different from what they promised, this still has not solved yet!
    My devoted time for this was totally wasted and I am still in suffering.
    I think this is theft!!!  What shall I do more?!

    I am really sorry to bring this issue to the forum but had no choice. Like I mentioned above, I already have contacted them but never returned me back. Sick of chatting with those staffs who act like answering machine and wasting my time because of their mistake. After I finally decided to post this last night, then they called me this morning that I have to wait 5days more.
    Sorry again, and thanks for your reply.
    J

  • Web Service Method that returns an ArrayList

    Hi guys,
    I have to create a web service method that returns an ArrayList, but it's not working. My problem is:
    With the "@XmlSeeAlso" annotation, my client prints the result, but the ArryaList is not from java.util, it's from org.me.calculator so I can't use it.
    If I remove this annotation, I get no result, with this error message on Tomcat 6:
    [javax.xml.bind.JAXBException: class java.util.ArrayList nor any of its super class is known to this context.]
    I'm a newbie, and trying to understand web services (I read some posts here, but didn't get the point, from its answers), but this problem I just can't figure out how to solve....
    WEb Service
    package org.me.calculator;
    import java.io.Serializable;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import java.util.*;
    import java.util.ArrayList;
    import javax.xml.bind.annotation.XmlSeeAlso;
    * @author eduardo.domanski
    @WebService()
    @XmlSeeAlso({java.util.ArrayList.class}) // With this, I can see the result on client, but, the ArrayList is an org.me.calculator.ArrayList class.... Strange...
    public class CalculatorWS {
        @WebMethod(operationName = "valores")
        public ArrayList valores(@WebParam(name = "a") int a,
                           @WebParam(name = "b") int b) {
            ArrayList teste = new ArrayList();
            ArrayList a1 = new ArrayList();
            a1.add(a);
            a1.add(b);
            ArrayList a2 = new ArrayList();
            a2.add(a+b);
            a2.add(a-b);
            teste.add(a1);
            teste.add(a2);
            return  teste; 
    }CLient
    package org.me.calculator.client;
    import java.io.*;
    import java.net.*;
    import java.util.ArrayList;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ClientServlet extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet ClientServlet</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet ClientServlet at " + request.getContextPath() + "</h1>");
            try { // Call Web Service Operation
                org.me.calculator.CalculatorWSService service = new org.me.calculator.CalculatorWSService();
                org.me.calculator.CalculatorWS port = service.getCalculatorWSPort();
                // TODO initialize WS operation arguments here
                int i = 8;
                int j = -6;
                // TODO process result here
                ArrayList result = (ArrayList) port.valores(i, j);
                out.println("Result = " + result);
            } catch (Exception ex) {
                System.out.println(ex);
            // TODO handle custom exceptions here
            out.println("</body>");
            out.println("</html>");
            out.close();
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            processRequest(request, response);
    }THank you all,
    Eduardo
    Edited by: EduardoDomanski on Apr 23, 2008 4:40 AM

    I forgot to say that, when I try to return an ArrayList of an object, for example, ClassA, which is on the package org.me.classes, on my Server App, the ArrayList is returned, but the objects are from type org.me.calculator.ClassA. It should be from org.me.classes.ClassA, right?
    This package also exists on my client App, to use the object, but as the returned type is from another package, I can't even cast it. I tried some annotations @Xml... but it failed.
    Packages
    ServerApp
    org.me.calculator
    CalcWS.java
    org.me.classes
    ClassA.java
    Client App
    org.me.classes
    ClassA.java
    The return from my method should be an ArrayList of org.me.classes.ClassA, but when I print it, on client, it's from org.me.calculator.ClassA.
    Does anybody knows, or had the same problem?
    Thanks,
    Eduardo

  • JNI_CreateJavaVM() (1.4.0) NEVER returns if I call it from DLL !

    Hello,
    I'm invoking java application from C++ exe (Win2000) and this works almost fine (except DestroyJavaVM()), but if the same piece of code that handles Java resides in DLL then JNI_CreateJavaVM() (1.4.0) NEVER returns and the process gets stuck !!!
    What could be the reason ?
    Thanx !

    Hi,
    JVM can start java application from DLL if the application (that embeds java application and DLL) has message loop (or simple endless while loop, I tested).
    Vitally

  • Function or method which returns the full PDC path of webdynpro iview

    Hi All,
    I have created a webdynpro application and created a webdynpro Iview in portal and attached this view to a role.  I am looking for any standard function module or method which returns the full PCD path of the webdynpro iview, when it executed from portal.
    Regards,
    H.K.Hayath Basha.

    Well in ABAP, we don't have portal APIs to access potal catalog info.
    The only available Portal Interface is IF_WD_PORTAL_INTEGRATION
    Abhi

  • Toolkit.getDefaultToolkit() in Java service never returns on Windows

    I'm stumped by this problem. It appears to be specific to a single machine as I can reproduce it reliably there but not on other machines. I'm hoping someone has some thoughts on what could be going on.
    Here's the scenario:
    I have Tomcat 5 running as a service on a new installed Windows 2000 Server with up to date service packs and j2sdk1.4.2_06. The service is configure to run headless.
    I have a webapp that performs simple image transformations using AWT and Java2D. Any invocation of Toolkit.getDefaultToolkit() never returns. The thread just sits there consuming no CPU and does not throw an exception. I've narrowed it further to a call to new sun.awt.windows.WToolkit() in getToolKit(). sun.awt.windows.WToolkit is the value of the system property awt.toolkit.
    I can reproduce this exact behavior in a different scenario: the server is running sshd on cygwin. If I ssh to the server and run the following class, it also hangs at new sun.awt.windows.WToolkit().
    public class ToolkitTester
      public static void main(String[] args)
        System.out.println("awt.toolkit = " + System.getProperty("awt.toolkit"));
        System.out.print("Invoking: new sun.awt.windows.WToolkit()... ");
        new sun.awt.windows.WToolkit();
        System.out.println("done.");
    }Running this same class from a shell on the server works just fine.
    I have tried j2sdk1.4.2_03 and jdk1.5 with the same results. I've replicated this second scenario (logging in over ssh) on another Windows 2000 server and do not see this behavior.
    Any thoughts?
    Alon

    Okay. Here's the fix...
    The 'no video card' comment was actually pretty close. The issue appears to be with DirectDraw support. We found this by watching regmon as the testing code ran. Installing a new video driver may have addressed this but so does disabling using DirectDraw as described here:
    http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html#dither
    java -Dsun.java2d.noddraw=true
    Wow. Weird one.
    Alon

Maybe you are looking for

  • Exception is not thrown immediately in Hibernate 3.  Why??

    I am using Hibernate 3. If I execute "session.update" and the update is not successful (e.g. value too large), the exception is not thrown immediately. For example, System.out.println ("pass 1"); session.update(dataBean) ; System.out.println ("pass 2

  • How to use copy and paste

    how can i use the copy and paste thing in Nokia E71?

  • Got a new iPhone, using the same laptop, doesn't sync

    I bought my first iPhone. I installed iTunes to my laptop and setup my first iPhone on it. Everything I selected to sync, would sync to the phone. I've recently had to exchange my iPhone for a new one. I connected my second iPhone to the same laptop.

  • How can i get a memory card out if i inserted it in the wrong place?

    I was entering a memoery card into my mac when i accidently pushed it in to the CD opening instead of the one right under it that is for memoery cards out of cameras. Now the memoery card is stuck in there and i tried everything but i cant get it out

  • Importing directly to Photoshop

    I would like to know how to import pictures directly into photoshop. Currently the photos I import go to IPhoto, and then I have to find the right file. Not only is this more time consuming than I'd like it is difficult to find the files sometimes. A