Tunning Required! One more one for the Challengers!

Hi all,
This is one more to challenge!
SELECT COUNT(1) FROM WHSE_LOC WHERE ((AREA_C,WKSTN_C) IN (SELECT AREA_C, WKSTN_C FROM WHSE_LOC WHERE AISLE_I = :B3 AND BIN_I = :B2 AND LVL_I = :B1 ) ) AND (AISLE_I,BIN_I,LVL_I) NOT IN (SELECT AISLE_I, BIN_I, LVL_I FROM WHSE_LOC WHERE AISLE_I = :B3 AND BIN_I = :B2 AND LVL_I = :B1 );
I have the above query in one among the packages. My DBA reports that this query is the longest running in our database from : 7.22PM to 8.15PM IST.
The record size currently is around 38500. This works when the records size is less than 5000 but when gone beyond that this fails. Can anybody help in this reg.?
The following is the description of the table:
desc whse_loc
Name Null? Type
AISLE_I NOT NULL NUMBER(3)
BIN_I NOT NULL NUMBER(3)
LVL_I NOT NULL NUMBER(2)
AREA_C NOT NULL CHAR(4)
WKSTN_C NOT NULL CHAR(4)
STRG_ZONE_I NOT NULL NUMBER(2)
SIZE_C NOT NULL CHAR(2)
PULL_SEQ_I NOT NULL NUMBER(6)
PUTAWAY_SEQ_I NOT NULL NUMBER(5)
STRG_LOC_STAT_C NOT NULL CHAR(3)
PALT_ID_CT_Q NOT NULL NUMBER(3)
PULL_PALT_ID_CT_Q NOT NULL NUMBER(3)
FLR_AIR_C NOT NULL CHAR(1)
PALT_PULL_ALLOW_F NOT NULL CHAR(1)
CTN_PULL_ALLOW_F NOT NULL CHAR(1)
SSP_PULL_ALLOW_F NOT NULL CHAR(1)
HOLD_STAT_C NOT NULL VARCHAR2(4)
HOLD_REAS_T VARCHAR2(32)
STRG_LOC_HOLD_TS DATE
HOLD_USER_ID CHAR(7)
MODF_USER_ID NOT NULL CHAR(7)
MODF_PGM_N NOT NULL CHAR(8)
MODF_TS NOT NULL DATE
DPT_Q NUMBER(1)
Pls. help me reg. optimizing the same!

You are accessing the table three times, and you can reduce that to one:
SQL> create table whse_loc (aisle_i, bin_i, lvl_i, area_c, wkstn_c)
  2  as
  3  select 1, 1, 1, 'A', 'A' from dual union all
  4  select 1, 1, 1, 'A', 'B' from dual union all
  5  select 1, 1, 2, 'A', 'A' from dual union all
  6  select 1, 1, 2, 'A', 'B' from dual union all
  7  select 1, 1, 2, 'A', 'C' from dual union all
  8  select 1, 1, 3, 'A', 'A' from dual union all
  9  select 1, 1, 3, 'A', 'B' from dual union all
10  select 1, 1, 3, 'A', 'C' from dual union all
11  select 1, 1, 3, 'A', 'D' from dual
12  /
Table created.
SQL> var B1 number
SQL> var B2 number
SQL> var B3 number
SQL> exec :B1 := 1; :B2 := 1; :B3 := 1
PL/SQL procedure successfully completed.
SQL> SELECT COUNT(1)
  2    FROM WHSE_LOC
  3   WHERE ( (AREA_C,WKSTN_C) IN
  4           ( SELECT AREA_C
  5                  , WKSTN_C
  6               FROM WHSE_LOC
  7              WHERE AISLE_I = :B3
  8                AND BIN_I = :B2
  9                AND LVL_I = :B1
10           )
11         )
12     AND (AISLE_I,BIN_I,LVL_I) NOT IN
13         (SELECT AISLE_I
14               , BIN_I
15               , LVL_I
16            FROM WHSE_LOC
17           WHERE AISLE_I = :B3
18             AND BIN_I = :B2
19             AND LVL_I = :B1
20         )
21  /
  COUNT(1)
         4
1 row selected.That is your current query. The last predicate can be simplified like this:
SQL> SELECT COUNT(1)
  2    FROM WHSE_LOC
  3   WHERE (AREA_C,WKSTN_C) IN
  4         ( SELECT AREA_C
  5                , WKSTN_C
  6             FROM WHSE_LOC
  7            WHERE AISLE_I = :B3
  8              AND BIN_I = :B2
  9              AND LVL_I = :B1
10         )
11     AND (  aisle_i != :B3
12         OR bin_i != :B2
13         OR lvl_i != :B1
14         )
15  /
  COUNT(1)
         4
1 row selected.Note that the query below doesn't give the right result:
SQL> SELECT COUNT(*)
  2  FROM  (SELECT DISTINCT AREA_C, WKSTN_C
  3         FROM   WHSE_LOC
  4         WHERE  AISLE_I = :B3 AND
  5                BIN_I   = :B2 AND
  6                LVL_I   = :B1)
  7  /
  COUNT(*)
         2
1 row selected.By using an analytic function, the table scans are reduced to one:
SQL> select sum(count_area_wkstn-1)
  2    from ( select whse_loc.*
  3                , count(*) over (partition by area_c, wkstn_c) count_area_wkstn
  4             from whse_loc
  5         )
  6   where aisle_i = :b3
  7     and bin_i = :b2
  8     and lvl_i = :b1
  9  /
SUM(COUNT_AREA_WKSTN-1)
                      4
1 row selected.Doing the same with other parameters:
SQL> exec :B1 := 2; :B2 := 1; :B3 := 1
PL/SQL procedure successfully completed.
SQL> SELECT COUNT(1)
  2    FROM WHSE_LOC
  3   WHERE ( (AREA_C,WKSTN_C) IN
  4           ( SELECT AREA_C
  5                  , WKSTN_C
  6               FROM WHSE_LOC
  7              WHERE AISLE_I = :B3
  8                AND BIN_I = :B2
  9                AND LVL_I = :B1
10           )
11         )
12     AND (AISLE_I,BIN_I,LVL_I) NOT IN
13         (SELECT AISLE_I
14               , BIN_I
15               , LVL_I
16            FROM WHSE_LOC
17           WHERE AISLE_I = :B3
18             AND BIN_I = :B2
19             AND LVL_I = :B1
20         )
21  /
  COUNT(1)
         5
1 row selected.
SQL> SELECT COUNT(1)
  2    FROM WHSE_LOC
  3   WHERE (AREA_C,WKSTN_C) IN
  4         ( SELECT AREA_C
  5                , WKSTN_C
  6             FROM WHSE_LOC
  7            WHERE AISLE_I = :B3
  8              AND BIN_I = :B2
  9              AND LVL_I = :B1
10         )
11     AND (  aisle_i != :B3
12         OR bin_i != :B2
13         OR lvl_i != :B1
14         )
15  /
  COUNT(1)
         5
1 row selected.
SQL> select sum(count_area_wkstn-1)
  2    from ( select whse_loc.*
  3                , count(*) over (partition by area_c, wkstn_c) count_area_wkstn
  4             from whse_loc
  5         )
  6   where aisle_i = :b3
  7     and bin_i = :b2
  8     and lvl_i = :b1
  9  /
SUM(COUNT_AREA_WKSTN-1)
                      5
1 row selected.And yet another combination, with the explain plans so you can see the number of table scans.
SQL> exec :B1 := 3; :B2 := 1; :B3 := 1
PL/SQL procedure successfully completed.
SQL> set autotrace on explain
SQL> SELECT COUNT(1)
  2    FROM WHSE_LOC
  3   WHERE ( (AREA_C,WKSTN_C) IN
  4           ( SELECT AREA_C
  5                  , WKSTN_C
  6               FROM WHSE_LOC
  7              WHERE AISLE_I = :B3
  8                AND BIN_I = :B2
  9                AND LVL_I = :B1
10           )
11         )
12     AND (AISLE_I,BIN_I,LVL_I) NOT IN
13         (SELECT AISLE_I
14               , BIN_I
15               , LVL_I
16            FROM WHSE_LOC
17           WHERE AISLE_I = :B3
18             AND BIN_I = :B2
19             AND LVL_I = :B1
20         )
21  /
  COUNT(1)
         5
1 row selected.
Execution Plan
Plan hash value: 2315582378
| Id  | Operation            | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT     |          |     1 |    90 |    13   (8)| 00:00:01 |
|   1 |  SORT AGGREGATE      |          |     1 |    90 |            |          |
|*  2 |   FILTER             |          |       |       |            |          |
|*  3 |    HASH JOIN SEMI    |          |     1 |    90 |     9  (12)| 00:00:01 |
|   4 |     TABLE ACCESS FULL| WHSE_LOC |     9 |   405 |     4   (0)| 00:00:01 |
|*  5 |     TABLE ACCESS FULL| WHSE_LOC |     1 |    45 |     4   (0)| 00:00:01 |
|*  6 |    TABLE ACCESS FULL | WHSE_LOC |     1 |    39 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   2 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "WHSE_LOC" "WHSE_LOC"
              WHERE "AISLE_I"=TO_NUMBER(:B3) AND "BIN_I"=TO_NUMBER(:B2) AND
              "LVL_I"=TO_NUMBER(:B1) AND LNNVL("AISLE_I"<>:B1) AND LNNVL("BIN_I"<>:B2)
              AND LNNVL("LVL_I"<>:B3)))
   3 - access("AREA_C"="AREA_C" AND "WKSTN_C"="WKSTN_C")
   5 - filter("AISLE_I"=TO_NUMBER(:B3) AND "BIN_I"=TO_NUMBER(:B2) AND
              "LVL_I"=TO_NUMBER(:B1))
   6 - filter("AISLE_I"=TO_NUMBER(:B3) AND "BIN_I"=TO_NUMBER(:B2) AND
              "LVL_I"=TO_NUMBER(:B1) AND LNNVL("AISLE_I"<>:B1) AND LNNVL("BIN_I"<>:B2)
              AND LNNVL("LVL_I"<>:B3))
Note
   - dynamic sampling used for this statement
SQL> SELECT COUNT(1)
  2    FROM WHSE_LOC
  3   WHERE (AREA_C,WKSTN_C) IN
  4         ( SELECT AREA_C
  5                , WKSTN_C
  6             FROM WHSE_LOC
  7            WHERE AISLE_I = :B3
  8              AND BIN_I = :B2
  9              AND LVL_I = :B1
10         )
11     AND (  aisle_i != :B3
12         OR bin_i != :B2
13         OR lvl_i != :B1
14         )
15  /
  COUNT(1)
         5
1 row selected.
Execution Plan
Plan hash value: 3820410662
| Id  | Operation           | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT    |          |     1 |    90 |     9  (12)| 00:00:01 |
|   1 |  SORT AGGREGATE     |          |     1 |    90 |            |          |
|*  2 |   HASH JOIN SEMI    |          |     1 |    90 |     9  (12)| 00:00:01 |
|*  3 |    TABLE ACCESS FULL| WHSE_LOC |     1 |    45 |     4   (0)| 00:00:01 |
|*  4 |    TABLE ACCESS FULL| WHSE_LOC |     1 |    45 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   2 - access("AREA_C"="AREA_C" AND "WKSTN_C"="WKSTN_C")
   3 - filter("AISLE_I"<>TO_NUMBER(:B3) OR "BIN_I"<>TO_NUMBER(:B2) OR
              "LVL_I"<>TO_NUMBER(:B1))
   4 - filter("AISLE_I"=TO_NUMBER(:B3) AND "BIN_I"=TO_NUMBER(:B2) AND
              "LVL_I"=TO_NUMBER(:B1))
Note
   - dynamic sampling used for this statement
SQL> select sum(count_area_wkstn-1)
  2    from ( select whse_loc.*
  3                , count(*) over (partition by area_c, wkstn_c) count_area_wkstn
  4             from whse_loc
  5         )
  6   where aisle_i = :b3
  7     and bin_i = :b2
  8     and lvl_i = :b1
  9  /
SUM(COUNT_AREA_WKSTN-1)
                      5
1 row selected.
Execution Plan
Plan hash value: 1194892149
| Id  | Operation            | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT     |          |     1 |    52 |     5  (20)| 00:00:01 |
|   1 |  SORT AGGREGATE      |          |     1 |    52 |            |          |
|*  2 |   VIEW               |          |     9 |   468 |     5  (20)| 00:00:01 |
|   3 |    WINDOW SORT       |          |     9 |   405 |     5  (20)| 00:00:01 |
|   4 |     TABLE ACCESS FULL| WHSE_LOC |     9 |   405 |     4   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   2 - filter("AISLE_I"=TO_NUMBER(:B3) AND "BIN_I"=TO_NUMBER(:B2) AND
              "LVL_I"=TO_NUMBER(:B1))
Note
   - dynamic sampling used for this statementRegards,
Rob.

Similar Messages

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • More than one outbound interface for the webservice scenario

    Hi Experts,
    Is it possible to have more than one outbound interface for the Webservice synchronous scenario? I have tried it , but I couldn't implement it.
    I would like to have your suggestions.
    Regards
    Sara

    Hey,
    Creation of a wsdl file
    /people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    N:1 seemz he was refering to multimapping scenario.
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Enter more than one personnel number for the same confirmation in CO11N

    More than one labor working on Machine work center simultaneously.
    So that during production orders confirmation in CO11N we need to enter more than one personnel number for the same confirmation but in CO11N the system allow me to enter only one personnel number.
    Note: I can not distinguish between the productions for each labor so that I can not enter separate confirmation for each labor.

    Hi,
    You can use the User Exit: CONFPP07  Single Screen Entry: Inclusion of User-Defined Subscreens
    for this purpose..
    Take help from the ABAPer for this enhancement..
    Regards,
    Siva

  • More the one Po exists for the material

    Hi Plz help
    System giving erroru201D More then one Po exists for the material" while creating DO for subcontract PO.
    Manju

    Hii,
    Can you tell us the Error Message Number
    Regards,
    Kumar

  • Aleatory One factory fails for the operation "encode"-JPEG

    I've a very strange problem with JAI.write using JPEG, but is happening aleatory. Some times it works, some times I get the exception and some other times don't. What I've seen is that when I got first this error, then all the rest of the images throws it. I mean, I'm working OK and then I got the exception, from there, all the images, no matter that they were not trowing exceptions before, now they do, so I don't know what is happening. I'll post some code snippets and the full stack trace of the exception. Hope you can help me:
    First, I have a class that is a JSP-Tag:
    RenderedOp outputImage = JAI.create("fileload", imgFile.getAbsolutePath());
    int widthSize = outputImage.getWidth();
    int heightSize = outputImage.getHeight();
    try{
        outputImage.dispose();                         
    }catch(Exception e){}
    outputImage = null;That's the first thing, now, the second, this is a Servlet that writes the image to the browser (GetImageServlet its name, which appears in the stack trace):
    FileSeekableStream fss = new FileSeekableStream(file);
    RenderedOp outputImage = JAI.create("stream", fss);
    int widthSize = outputImage.getWidth();
    int heightSize = outputImage.getHeight();
    if ((outputImage.getWidth() > 0) && (outputImage.getHeight() > 0)) {
                        if ((isThumbnail) && ((outputImage.getWidth() > 60) || (outputImage.getHeight() > 60))) {
                             outputImage = ImageManagerJAI.thumbnail(outputImage, 60);
                        } else if (outputRotate != 0) {
                             outputImage = ImageManagerJAI.rotate(outputImage, outputRotate);
                        OutputStream os = resp.getOutputStream();
    resp.setContentType("image/jpeg");
         ImageManagerJAI.writeResult(os, outputImage, "JPEG");
                        outputImage.dispose();
                        os.flush();
                        os.close();
    outputImage = null;
    imgFile = null;The code of ImageManagerJAI.writeResult, which is a method I use above:
    public static void writeResult(OutputStream os, RenderedOp image, String type) throws IOException {
              if ("GIF".equals(type)) {
                   GifEncoder encoder = new GifEncoder(image.getAsBufferedImage(), os);
                   encoder.encode();
              } else {
                   JAI.create("encode", image, os, type, null);
         }And the full exception trace is:
    Error: One factory fails for the operation "encode"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 more
    javax.media.jai.util.ImagingException: All factories fail for the operation "encode"
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1687)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         ... 26 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 more
    Caused by:
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 moreI'm using JDK 1.6, Tomcat 5.5, Windows XP, and JAI 1.1.2_01 (the jars are in the WEB-INF/lib of the project AND in the jdk 6/jre/lib/ext, while the dlls are only on jdk 6/jre/bin)
    Please help, I don't know what to do, I've weeks with this problem. Dukes available pleaseeee!

    Hi
    you can check if you get in the error logs an message like 'Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode.' may be the problem of JAI native accelerator

  • Want to add one more link in the first screen when user gets into EBP

    Hi All,
    I want to add one more link to the template <b>WELCOME</b> in Internet Service <b>BBPGLOBAL</b>. This is the first screen that the user gets when he logs into EBP.
    The issue is the same screen is different in DEV and TEST environment.
    I verified the code in the template in both systems but they are exactly the same.
    Also, checked the Parameters in the Templates and they too match.
    While going through the code, I found out that MENU_NODE_TAB is used in a repeat loop to verify user has access to the further links.
    But the surprising thing is the code is same in both the systems, but Test evnironment is reflecting the link I want to add in DEV environment.
    Am I missing something??
    Pls let me know.
    Thanks in advance.
    <b>I will reward full points for helpful answers!!</b>
    Regards,
    Sanaa

    Hi,
    In welcome.html there is a ITS code to initialize array with information about transaction (line 87).
    This code is in the loop:
    repeat with idx from 1 to MENU_NODE_TAB-TEXT.dim;
      if( (MENU_NODE_TAB-S_IDENT[idx] == "BBPSC01" && A_GEN_URL<i> == "") ||
          (MENU_NODE_TAB-S_IDENT[idx] == "BBPSC03" && A_GEN_URL<i> == "") || 
          (MENU_NODE_TAB-S_IDENT[idx] == "BBPSC02")                       );
        A_S_IDENT<i>      = MENU_NODE_TAB-S_IDENT[idx];
        A_GEN_URL<i>      = MENU_NODE_TAB-GEN_URL[idx];
        A_OBJECT_ID<i>    = "parent.launchpad.menu.M" & MENU_NODE_TAB-OBJECT_ID[idx] & ".root.name + parent.launchpad.menu.M" & MENU_NODE_TAB-OBJECT_ID[idx] & ".path";
        A_TEXT<i>         = quotFilter(MENU_NODE_TAB-TEXT[idx]);
        A_INTRODUCTION<i> = #WELCOME_SENTENCE6;
        found = 1;
      end;
    end;
    If You want to add this 4 links on begining - extend this array (in line 87):
    <!-- initialize array with information about transaction on startpage -->
    A_S_IDENT[1] = "custom_link1"; A_GEN_URL[1] = "www.google.com"; A_OBJECT_ID[1] = ""; A_TEXT[1] = "google"; A_INTRODUCTION[1] = "google link";
    A_S_IDENT[2] = "custom_link2"; A_GEN_URL[2] = "www.rediffmail.com"; A_OBJECT_ID[2] = ""; A_TEXT[2] = "rediffmail"; A_INTRODUCTION[2] = "redi link";
    A_S_IDENT[3] = "custom_link3"; A_GEN_URL[3] = "www.yahoo.com"; A_OBJECT_ID[3] = ""; A_TEXT[3] = "yahoo"; A_INTRODUCTION[3] = "yahoo link";
    A_S_IDENT[4] = "custom_link4"; A_GEN_URL[4] = "www.greetings.com"; A_OBJECT_ID[4] = ""; A_TEXT[4] = "greets"; A_INTRODUCTION[4] = "greeting link";
    A_S_IDENT[5] = ""; A_GEN_URL[5] = ""; A_OBJECT_ID[5] = ""; A_TEXT[5] = ""; A_INTRODUCTION[5] = "";
    A_S_IDENT[6] = ""; A_GEN_URL[6] = ""; A_OBJECT_ID[6] = ""; A_TEXT[6] = ""; A_INTRODUCTION[6] = "";
    etc.
    <!-- Search for shopping transaction in launchpad -->
    repeat with idx from 5 to MENU_NODE_TAB-TEXT.dim;
    Regards,
    Marcin

  • How do I upload to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC :) )

    How do I upload photos to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC )

    100pat wrote:
    Thanks, I can do it fine from my Windows desktop PC, I just want to know how to do it from an iPhone4
    Like I said before ask facebook or look at their support site to see if that is even a feature.

  • Error: One factory fails for the operation "encode"

    Dear all,
    This is my first attempt to use JAI. I am getting the following error message. Any ideas why this could happen?
    Thanks
    Error: One factory fails for the operation "encode"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:494)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at com.sun.media.jai.opimage.FileStoreRIF.create(FileStoreRIF.java:138)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:494)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at RectifyIt.actionPerformed(RectifyIt.java:715)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1834)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2152)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5463)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
         at java.awt.Component.processEvent(Component.java:5228)
         at java.awt.Container.processEvent(Container.java:1961)
         at java.awt.Component.dispatchEventImpl(Component.java:3931)
         at java.awt.Container.dispatchEventImpl(Container.java:2019)
         at java.awt.Component.dispatchEvent(Component.java:3779)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3883)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813)
         at java.awt.Container.dispatchEventImpl(Container.java:2005)
         at java.awt.Window.dispatchEventImpl(Window.java:1757)
         at java.awt.Component.dispatchEvent(Component.java:3779)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    Error: One factory fails for the operation "filestore"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException

    I'm not an expert in JAI either, but I noticed you have an OutOfMemoryError at the bottom of your stacktrace. I'd focus on that.
    Are you dealing with a large image? Maybe try holding as little of the image in memory as possible. Do you have a small Java heap size? Maybe try increasing the footprint. etc...
    CowKing

  • Hi:) I want to cancel my "one year membership" for the education-programm without loosing to much money. Are there any good ideas?

    Hi:) I want to cancel my "one year membership" for the education-programm without loosing to much money. Are there any good ideas?

    You paid for one year and that's just it. If you don't use it then that's nothing anyone can change. feel free to contact sales support.
    Mylenium

  • Is there any way I can get more fonts for the online photoshop?

    I know that this might sound a bit silly since I'm getting the services for free, but I was just curious if there was a way I could get more fonts for the online version. Maybe I'd be better off with the full program. Just curious! (:

    When you say online version, do you mean you are using the Creative Cloud trial?
    Photoshop accesses fonts on your computer, so all you have to do is purchase or download free ones from a fonts website.
    Here is a website with reasonably high quality free fonts: http://www.fontsquirrel.com/.
    Good luck!

  • [Devices Page] Show more information for the offline devices

    Spotify should show more information for the offline devices that are under a user's account. The main reason I ask is because I have noticed on numerous occasuions that multiple devices in the list show the exact same name.
    An example in the screenshot below:
    It would be great if each device had more information e.g MAC address, last IP access, computer name and so forth.

    Updated: 2015-07-28
    Marked as new idea and edited the title slightly to make it easier to find via search. ;)
    You might also want to add your kudos to a similar idea about the ability to name offline devices here.

  • Will there be more documents for the ultrasparct1

    hi, I'm a Hardware Engineer and very interesting in the UltrasparcT1, however, I find most of the Doc are written for the software engineers, and there 's seldom topic about the core implementation itself. I think the instruction simulator is for software engineer and the RTL code is for hareware, can I get more doc for the RTL code?

    Yes, we (at Sun) are definitely working on that. We will release more documentation for OpenSPARC T1 and more tools "ASAP" ... so hang in there and keep your eyes open for announcements!
    = Dave

  • Any More Games for the Ipod Available?

    Is there anywhere at which I could download more games for the Ipod? I'm kind of doubting there is just because the click wheel probably isn't best used as a game controller, but anyway, I'm curious. Oh yeah, if there are any games, I want to make sure they're secure, I don't want them to mess up my Ipod simply because they were made of poor quality.

    You can install text-based games that are played through the iPod's notes feature without voiding the warranty.
    (13586)

Maybe you are looking for

  • Animated GIF w/layers

    I saw an animated gif that had a background layer and an animated layer as a gif (downloaded from the web and opened it in FW MX 2004 mac). Is it possible to export an animated GIF from FW that will have this set-up? It would save a ton of space. yes

  • Anyway to install Windows 7 without the DVD?

    I want to know if it is possible for me to install windows 7 on my MacBook Pro 15 inch, released in March 2011 without the physical disc. I have the ISO file, the CD key, but I don't have a DVD. Is it possible

  • Deposit process between branches

    Hello , Is there any solution how to manage the incoming payments and deposits between branches and the general office. My customer has few branches that all work with SAP Business one on the same DB They get payments from customers in every branch.

  • Dynamic Update Statement

    How do I invoke a dyanmic update statement where the variable in the WHERE clause is a varchar? for instance code below will not work b/c the value in the where clause is missing single quotation marks '<varible>' v_dml_str := 'UPDATE D_UNIT_KP' || '

  • Control indicators for controlling area BP01 do not exist

    Dear Experts/Gurus, I am getting the following error message "Control indicators for controlling area BP01 do not exist" while trying to upload employees HR Master data in PA40. Please let me know how to sort out this issue asap. Rgds, Vikrant