Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent

Hello all,
I'm using JDev 11.1.1.2 and having this strange annoying error since upgrade from JDev 11.1.1.1. Older JDev worked correctly.
So this alert appears almost every time after click on ImageCommandLink, CommandButton, even if page does not contain CommandLink. PPR works fine after the alert. Does anyone know what this error means?
Message: Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate
StackTrace:
function(x217)
[AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate]
function(x246)
[AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate]
function()
function(x59)
[AdfRichRegion [oracle.adf.RichRegion] id=r1,
AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=r1:1:ol1,
AdfRichPanelBox [oracle.adf.RichPanelBox] id=r1:1:pb1,
AdfRichPanelTabbed [oracle.adf.RichPanelTabbed] id=r1:1:pt1,
AdfRichShowDetailItem [oracle.adf.RichShowDetailItem] id=r1:1:sdiPrep,
AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=r1:1:ol30,
AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:cil1,
AdfRichTable [oracle.adf.RichTable] id=r1:1:tblList,
AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c1,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c2,
AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c3,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c4,
AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c5,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c6,
AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c7,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c8,
AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c9,
AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:0:cil2,AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:0:cil4,
AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:0:cil5,AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:1:cil2,
AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:1:cil4,AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:1:cil5,
AdfRichShowDetailItem [oracle.adf.RichShowDetailItem] id=r1:1:sdiPayList,
AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate]
Line: 404
Char: 2
Code: 0
URI: http://127.0.0.1:7101/App-Web-context-root/afr/partition/ie/default/opt/boot-SHEPHERD-PS1-9296.js
The structure is as follows: a menu is located on the main page (CommandLinks), and navigation is carried out within the region. Within the region there is no CommandLink, so I guess menu is the one that makes problems. This problem did not exist in JDev 11.1.1.1.
Menu is implemented like this one: http://biemond.blogspot.com/2009/03/mainpage-and-task-flow-region.html

I also had the same problem.
Expect to solve.....
Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18
StackTrace:
function(x217)
[AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18]
function(x246)
[AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18]
function()
function(x59)
[AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it22,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it27,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it14,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it32,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it19,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it13,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it17,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it30,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it9]
Line: 404
Characters: 2
Code: 0
URI: http://127.0.0.1:7101/ERP-UserInterface-context-root/afr/partition/ie/default/opt/boot-SHEPHERD-PS1-9296.js

Similar Messages

  • Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentCompon

    JDev 11.1.1.2.0
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichInputText [oracle.adf.RichInputText]
    the problem is with x220.getProperty("_parentId") its coming as null, why only someone from Oracle can tell this,
    AdfRichUIPeer.GetDomNodeForCommentComponent= function(x220)
    *var x221=x220.getProperty("_parentId");*
    var x222="compS|" + x220.getClientId();
    var x223=AdfAgent.AGENT.getElementById(x221);
    if (x223)
    var x224=x223.firstChild;
    if (x224)
    return AdfRichUIPeer._getCommentNodeForComponent(x224,x222);
    var x225=AdfPage.PAGE.getDomDocument().body;
    var x226=AdfRichUIPeer._findCommentNodeWithContent(x225,x222);
    if (x226!=null)
    return x226;
    AdfAssert.assertionFailed(
    "Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent." + x220,1);
    return null;}

    Please post your question on the internal Oracle Forums - No one on OTN has access to drop builds.

  • Assertion failed: Incorrect use of AdfRichUIPeer on adf tree

    Hi all,
    I am using adf tree component as given below.
    <af:tree value="#{bindings.QACodesParentVO.treeModel}"
    var="node"
    selectionListener="#{QAReasonCodesBean.denialCodesRowSelection}"
    rowSelection="single" id="t1"
    binding="#{QAReasonCodesBean.t1}"
    contentDelivery="immediate">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1">
    <af:showPopupBehavior popupId="p1"
    triggerType="contextMenu"
    alignId="ot1"/>
    </af:outputText>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup id="p1">
    <af:menu text="menu 1" id="m1">
    <af:commandMenuItem actionListener="#{QAReasonCodesBean.createItem}"
    disabled="#{!bindings.Create.enabled}"
    id="cmi3"
    text="#{viewcontrollerBundle.CREATE_ITEM}"/>
    <af:commandMenuItem disabled="#{!bindings.Delete.enabled}"
    id="cmi4"
    text="#{viewcontrollerBundle.DELETE_ITEM}">
    <af:showPopupBehavior popupId="::p5"
    triggerType="action"/>
    </af:commandMenuItem>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    This tree giving the following error when I am collapsing the expanded the tree nodes. Not in all cases only in few cases.
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichOutputText [oracle.adf.RichOutputText]
    id=pt21:r1:1:t1:2:ot1
    StackTrace:
    anonymous(x217)
    [AdfRichOutputText [oracle.adf.RichOutputText] id=pt21:r1:1:t1:2:ot1]
    anonymous(x248)
    [AdfRichOutputText [oracle.adf.RichOutputText] id=pt21:r1:1:t1:2:ot1]
    anonymous()
    anonymous(x367)
    [[object HTMLTableElement]]
    anonymous(x395)
    [[object HTMLTableElement]]
    anonymous(x302)
    [[object HTMLTableElement]]
    anonymous(x309,x310,x311)
    [[object HTMLTableElement],1,(empty)]
    anonymous(x481,x482,x483,x484)
    [[object HTMLTableElement],6,(empty),(empty)]
    anonymous(x88,x89)
    [[object HTMLDivElement],[object HTMLDivElement]]
    anonymous(x112,x113,x114)
    [AdfRichTree [oracle.adf.RichTree] id=pt21:r1:1:t1,[object HTMLDivElement],[object HTMLDivElement]]
    anonymous(x784,x785,x786,x787,x788)
    [[object Element],,(empty),,[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLFormElement],[object HTMLDivElement],(empty)]
    anonymous(x730,x731,x732,x733,x734)
    [[object Element],true,(empty),(empty),[object Object]]
    anonymous(x712,x713)
    [[object XMLDocument],[object Object]]
    anonymous(x617)
    [AdfDataTransferRequestEvent Object, status=4, context=[object Object], request=AdfXMLRequest Object completionState:4]
    anonymous(x7,x8)
    [AdfDhtmlPage Object,AdfDataTransferRequestEvent Object, status=4, context=[object Object], request=AdfXMLRequest Object completionState:4]
    anonymous(x83)
    [AdfXMLRequest Object completionState:4]
    anonymous(x87)
    [AdfXMLRequest Object completionState:4]
    anonymous()
    anonymous()
    [[object Event]]
    I am I doing any thing wrong in the tree code. How to resolve this issue.
    Regards
    Gayaz

    Hi, did you solved this ?

  • Assertion failed: Incorrect use of AdfRichUIPeer....

    Dear all,
    i have a table which its partial trigger is set to a button and that button's partial submit is set to true...
    now i got that error when trying to navigate between the input texts when the table is in the insertion mode -->
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichSelectOneChoice [oracle.adf.RichSelectOneChoice] id=r1:2:t1:17:soc1
    StackTrace:
    I searched the forum and changed the partial submit of the button to false and everything went fine with me , but am not sure why the partial submit of the button caused that problem ?
    Thanks in Advance,
    Lama
    Edited by: Delta on Sep 28, 2010 5:37 AM

    Hi,
    I too have come across this kind of exception.
    Generally we get this error message, when the adf tags are not used properly. I mean the syntax. In my case, i got this exception because of using render property.
    The page was supposed to render a taksflow from the list of 3 taskflows based on the value selected from a selectOneChoice. With this implementation, i got this error. Later i used visible property and then it starts working fine.
    Hence would like to have a look at your page/fragments. Can you post your code here.
    Thanks,
    Kiran Konjeti

  • This error is often caused by incorrect use of the "Strict" document type

    Okay...so I have 6 errors - all the same and has to do with my document type.
    I've searched the code and I am using a transitional doc type so why the errors?
    http://02cada7.netsolhost.com/Stasik_Family_Website/index.html

    Yeah I did that...but the cause doesn't make sense to me.
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    I'm not using a strict document time - I am using transitional and I am not using proprietary extensions.

  • Incorrect use of the TOP clause

    Hi
    I need to demonstrate the use of the TOP clause, however when I run my SQL it says incorrect use of the clause.
    Question: List the top 3 earners in the company( from the employees table). List employee_id, last_name, and the salary in descending order.
    below is my attempt:
    Select TOP 3 employee_id, last_name, salary
    FROM employees
    ORDER BY salary DESC;
    Any assistance will be appreciated
    Thanks

    Imtiyaaz wrote:
    Ok i've tried this:
    SELECT * from
    ( SELECT employee_id, last_name, salary
    FROM employees
    ORDER BY salary
    WHERE ROWNUM <= 3;
    and it works but I need to display the salary in descending order, if I do this:
    SELECT * from
    ( SELECT employee_id, last_name, salary
    FROM employees
    ORDER BY salary DESC
    WHERE ROWNUM <= 3;
    it does not display the top 3 salaries anymore but rather the first 3 rows of the table...?Are you sure that what you ran is what you posted? It works correctly for me:
    SQL > select * from (
      2  select employee_id, first_name, last_name, salary
      3  from hr.employees
      4  order by salary desc )
      5  where rownum <= 3;
    EMPLOYEE_ID FIRST_NAME           LAST_NAME                     SALARY
            100 Steven               King                           24000
            101 Neena                Kochhar                        17000
            102 Lex                  De Haan                        17000John

  • HELP!! SDO_RELATE inside Oracle procedure - ORA-13207: incorrect use of the

    Hello,
    I need help !
    I have a problem with queries inside procedures/packages.
    When execute sql
    SQL> SELECT LOC_OBJ_ID
    2 FROM VORO_LOC X, LBS_OZ_AREAS OZ
    3 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
    4 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
    LOC_OBJ_ID
    2211379
    i have results - it's OK
    The next sql is same, but with agregation
    SQL> SELECT COUNT(*) ILOSC
    2 FROM VORO_LOC X, LBS_OZ_AREAS OZ
    3 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
    4 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
    ILOSC
    1
    it's OK
    But when i want use this SQL inside proedurees in store result in variable i have problem
    SQL> declare
    2 V_NUMBER_NEI_LOC number;
    3 begin
    4 SELECT COUNT(*) ILOSC
    5 INTO V_NUMBER_NEI_LOC
    6 FROM VORO_LOC X, LBS_OZ_AREAS OZ
    7 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
    8 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
    9 end;
    10 /
    declare
    ORA-13207: incorrect use of the [SDO_RELATE] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 259
    ORA-06512: at line 4
    ORA-06512: at line 4
    Please help!

    This might be some issue with SQL in PL/SQL. We will check into this.
    In the meantime, can you try the dynamic SQL to execute that
    sdo_relate query to see if it works?
    Here is the example with dynamic SQL:
    declare
    V_NUMBER_NEI_LOC number;
    begin
    EXECUTE IMMEDIATE
    ' SELECT COUNT(*) ILOSC ' ||
    ' FROM VORO_LOC X, LBS_OZ_AREAS OZ ' ||
    ' WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, ' ||
    ' ''MASK=ANYINTERACT'') = ''TRUE'' ' ||
    ' AND OZ.OZ_NAME=''PTK'' AND OZ.OZ_GROUP=''GORCZEWSKA'' '
    INTO V_NUMBER_NEI_LOC;
    end;
    /

  • Error on running BEx Query: Variable does not exist or is incorrectly used

    Hi all,
    I have a characteristic in my query which I restrict using a variable with Mutliple Single values.
    When I run the query in the Analyzer or RSRT, I get the following error:
    "Variable does not exist or is incorrectly used"
    Please help me fix this error.
    Thanks and Regards,
    Srilakshmi B

    Hi,
    I have a characteristic in my query which I restrict using a variable with Mutliple Single values.
    When you define any Filter Values, BEx will ask you to select either Single Values or Variables or Value Ranges etc..
    If you want to select by Multiple single values, you should include all the values in the Restriction area.
    Please do not define any variables, unless the User wants to enter any thing. Look for any other variables which are not defined correctly..........
    Regards,
    Suman

  • ORA-13207: incorrect use of the [More than 2D not supported] operator

    Oracle 8.1.7.4:
    The same query works in an Oracle DB on Linux and Windows, but in a Solaris it gives me the following error:
    cc_redes_met_coaxial@ORAG2&gt; SELECT lot_f.lot_id id,
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    FROM lot_f,
    pedestal_f,
    G_GEOMETRY_0 lot_geom,
    2 G_GEOMETRY_0 ped_geom
    WHERE lot_f.feat_num = lot_geom.feat_num
    3 AND pedestal_f.acc_point_id = 611
    AND pedestal_f.feat_num = ped_geom.feat_num
    4 AND lot_f.g_version+0 = 0
    AND (lot_f.g_next_version &gt; 0 OR lot_f.g_next_version IS NULL)
    5 AND pedestal_f.g_version+0 = 0
    6 AND (pedestal_f.g_next_version &gt; 0 OR pedestal_f.g_next_version IS NULL)
    AND MDSYS.SDO_WITHIN_DISTANCE(lot_geom.geometry, ped_geom.geometry,'distance = 100' ) = 'TRUE';
    7 8 9 10 11 12 13 14 SELECT lot_f.lot_id id,
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13207: incorrect use of the [More than 2D not supported] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84
    ORA-06512: at line 1
    The data is in 3D. I took a look at the trace file but no useful information. It does not have to be 2d, right?
    I can use SDO_WITHIN_DISTANCE with data in 3d, can't I?
    Does anyone know what is going on? Maybe a bug?
    Regards,
    Alex

    Daniel,
    I created the spatial index in 2d, but if I collect stats on all tables the optimizer doesn't use the spatial index.
    I tried to influence the optimizer using hints, but it seems to ignore the hint clause. The query I did is above:
    SELECT /*+ INDEX(lot_geom G_GEOMETRY_0_SI) INDEX(ped_geom G_GEOMETRY_0_SI) */
         lot_f.lot_id id,
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    FROM lot_f,
    pedestal_f,
    G_GEOMETRY_0 lot_geom,
    G_GEOMETRY_0 ped_geom
    WHERE lot_f.feat_num = lot_geom.feat_num
    AND pedestal_f.acc_point_id = 611
    AND pedestal_f.feat_num = ped_geom.feat_num
    AND lot_f.g_version+0 = 0
    AND (lot_f.g_next_version > 0 OR lot_f.g_next_version IS NULL)
    AND pedestal_f.g_version+0 = 0
    AND (pedestal_f.g_next_version > 0 OR pedestal_f.g_next_version IS NULL)
    AND MDSYS.SDO_WITHIN_DISTANCE(lot_geom.geometry, ped_geom.geometry,
    'distance = 100' ) = 'TRUE';
    So I "forced" a plan that uses the spatial indexes deleting the statistics from the tables that have geometry columns. The execution plan looks like this:
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2652 Card=10182 Bytes=79969428)
    1 0 CONCATENATION
    2 1 NESTED LOOPS (Cost=876 Card=3428 Bytes=26923512)
    3 2 NESTED LOOPS (Cost=121 Card=1078 Bytes=8450442)
    4 3 NESTED LOOPS (Cost=4 Card=33 Bytes=129492)
    5 4 TABLE ACCESS (FULL) OF 'PEDESTAL_F' (Cost=1 Card=1 Bytes=16)
    6 4 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=3 Card=3268 Bytes=12771344)
    7 6 INDEX (RANGE SCAN) OF 'G_GEOMETRY_0_PRIMARY' (UNIQUE) (Cost=2 Card=3268)
    8 3 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=121 Card=3268 Bytes=12794220)
    9 8 DOMAIN INDEX OF 'G_GEOMETRY_0_SI' (Cost=51)
    10 2 TABLE ACCESS (BY INDEX ROWID) OF 'LOT_F' (Cost=1 Card=318 Bytes=4770)
    11 10 INDEX (RANGE SCAN) OF 'GI_LOT_F0_FEAT_NUM_0' (UNIQUE) (Cost=1 Card=318)
    12 1 NESTED LOOPS (Cost=876 Card=3428 Bytes=26923512)
    13 12 NESTED LOOPS (Cost=121 Card=1078 Bytes=8450442)
    14 13 NESTED LOOPS (Cost=4 Card=33 Bytes=129492)
    15 14 TABLE ACCESS (FULL) OF 'PEDESTAL_F' (Cost=1 Card=1 Bytes=16)
    16 14 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=3 Card=3268 Bytes=12771344)
    17 16 INDEX (RANGE SCAN) OF 'G_GEOMETRY_0_PRIMARY' (UNIQUE) (Cost=2 Card=3268)
    18 13 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=121 Card=3268 Bytes=12794220)
    19 18 DOMAIN INDEX OF 'G_GEOMETRY_0_SI' (Cost=51)
    20 12 TABLE ACCESS (BY INDEX ROWID) OF 'LOT_F' (Cost=1 Card=318 Bytes=4770)
    21 20 INDEX (RANGE SCAN) OF 'GI_LOT_F0_FEAT_NUM_0' (UNIQUE) (Cost=1 Card=318)
    But when I executed the query, I got:
    cc_redes_met_coaxial@ORAG2> /
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    ERROR at line 2:
    ORA-03113: end-of-file on communication channel
    Collecting stats on geometry tables makes the query work only because it doesn't use the spatial index.
    I took a look the trace file, but I didn't see any interesting information. I can send you if you want.
    Do you have any clue?
    Regards,
    Alex

  • Average getting calculated incorrectly using group by grouping sets

    Hi All
    I am using the group by grouping sets to calulate the running totals of aggregate functions like count, sum & avg.
    I get the grand totals of count & sum perfectly right but with avg i am getting the averages incorrectly as the number of rows retrieved by the select query increases.
    With few rows (3-4) the averages are round about correct but when the number of rows retreived increase say 5 or more than 5 I get absurd average figures
    Here is the query I am using
    <code>
    select AGENT.NAME,
         sum(decode(ACTIVITY.status,'New',1)) cnt,
                   sum(decode(ACTIVITY.status,'Open',1)) sumopen ,
         round(avg( decode (ACTIVITY.status,'Open',ACTIVITY.STATUS_DIFF)),0) avgopen,
              sum(decode(ACTIVITY.status,'Sent',1)) sumsent,
         round(avg( decode (ACTIVITY.status,'Sent',ACTIVITY.STATUS_DIFF)),0) avgsent,
                   sum(decode(ACTIVITY.status,'Dead',1)) sumdead,
         round(avg( decode (ACTIVITY.status,'Dead',ACTIVITY.STATUS_DIFF)),0) avgdead
                   from ACTIVITY, REQUEST , AGENT
                   where
                   REQUEST.DEALER_NUMBER = AGENT.DEALER_ID
                   and REQUEST.CONFIRMATION='Y'
                   and REQUEST.REQUEST_ID = ACTIVITY.REQUEST_ID
                   and REQUEST.REQUEST_TYPE='B'
                   and ACTIVITY.ACTIVITY_DATE between to_date('2006-01-01 ','YYYY-MM-DD') and to_date('2006-08-31','YYYY-MM-DD')
                   group by grouping sets((AGENT.DEALER_ID,AGENT.NAME), ())
    </code>
    Do let me know your suggestions
    Regards

    Not sure but may be
    See below query
    SQL> SELECT deptno,ROUND(AVG(sal))
      2  FROM emp
      3  GROUP BY ROLLUP(deptno,sal+rownum);
        DEPTNO ROUND(AVG(SAL))
            10            1300
                          2450
                          5000
                         "2917"      ---Sub total
           20             800
                          1100
                          2975
                          3000
                          3000
                         "2175"      ---Sub total 
          30               950
                          1250
                          1250
                          1500
                          1600
                          2850
                         "1567"    ---Sub total
                         "2073"   ----Grand total
    18 rows selected.
    Now you want
    SQL> SELECT (2917+2175+1567)/3 FROM dual;
    (2917+2175+1567)/3
            2219.66667
    While it is
    SQL> SELECT ROUND(SUM(sal)/COUNT(*)) FROM emp;
    ROUND(SUM(SAL)/COUNT(*))
                        2073Khurram

  • Squirrelmail: Unknown username or password incorrect, using SSL

    I'm trying to use SSL for email on Mac OSX Server. It works fine from clients using Mozilla Thunderbird but Squirrelmail won't connect. Using the webmail interface I get "Unknown username or password incorrect" every time I try to login.
    I went through the squirrelmail conf.pl script and made sure it had cyrix and that the authentication method matches the one checked in Server Admin. The configtest.php returns info followed by this error:
    ERROR: You need the openssl PHP extension to use SMTP/IMAP TLS!
    The thing is I've tryed this without SSL and still get the "Unknown username" error. In other words, I'm willing to go without SSL IMAP if it will just get this to work but it seems likely there is some other problem than the missing PHP library.
    On php.net it has the following:
    To use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR].
    I would rather not diverge from Apple's standard config but why isn't SSL for IMAP assumed in the php config that ships on Mac OSX Server? What is the best way to enable the openssl module of php without breaking anything else? Anyway, where are the php files on Mac OSX server?
    Mac mini; iMac G5; PowerMac G3 B&W, Rev1, 400Mhz   Mac OS X (10.4.3)  

    It's just not supported and not needed.
    The traffic is local, never hits a network so no need to encrypt the traffic.
    I would recommend that you have the IMAP SSL option in ServerAdmin set to "Use" not "Require" so that is allows both port 143 and 993.
    Have your imap clients connect to port 993 (ssl). Also have this port open through the firewall if needed.
    Your Squirrelmail web site should be set to use HTTPS so it's authentication (actually all content) is encrypted over the public internet.
    SquirrelMail config can be configured for regular imap on port 143. And block this port at the firewall.
    With this setup, anything traversing the public internet is secured.
    Jeff

  • Intentionally incorrect use of language features, specifically "ref" in C#, as a hint to colleagues

    I recently came across a piece of code something like this (roughly C#):
    public bool ValidateStuff(ref ArrayList listOfErrors, Stuff thingsToValidate)
    if (!thingsToValidate.isValid() )
    errors.add("New error!");
    ArrayList errors = [];
    bool valid = ValidateStuff(ref errors, stuffToValidate);
    The key thing is the "ref" keyword - there is no need to use that keyword given the functionality here, and when I asked why it was there I was told that it had only been added as a kind of warning that the errorsparameter
    is manipulated by the method, it's not purely used as input.
    This immediately seemed wrong to me (ref has a purpose, and here it is not being used according to its purpose), but the idea of forcing (since you have to
    use ref when calling the method) a reminder of slightly counter-intuitive usage seemed reasonable, and I couldn't immediately think of a better way, apart from liberal
    use of comments. What do you think?
    Extra credit: how could this method be better? Perhaps by simply returning a new List of errors which is added to the main List in the calling code? By providing two methods, one for the test and one for the errors? Or is it fine as it is?

    That will be no good to use in other class, plus it's even less verbose then
    public
    bool ValidateStuff(ArrayList
    listOfErrors,
    Stuff thingsToValidate)
    (Remember, the whole point that his colleague wants to add "ref" is to make the possible side-effect verbose)
    So I think it doesn't fit the original poster's situation.

  • ALE Message type HRMD_A Infotype 0001 is incorrect using PROOF flag = X

    Hi
    We have an issue using HRMD_A for Infotype 0001 with the PROOF flag swithed on. Using the PROOF flag triggers a call of HR_MAINTAIN_MASTERDATA instead of a direct write to db tables. However sometimes the update of Infotype 1 is incomplete and records are lost. The data goes through a transformation in the inbound BAdi, here I have checked the sequence is still correct. But when the data is written to Infotype 1 it seems to overwrite the last entries.
    If anyone has any experience with this, I would be very interested for any input.
    Thanks in advance
    Sonny

    Hi Sandip
    Thx for your response. If I understand you correctly you suggest I use the HR_INFOTYPE_OPERATION. This could be an alternative, but I would prefer to understand the reason behind the error.
    HR_INFOTYPE_OPERATION actually calls HR_MAINTAIN_MASTERDATA, so this FM might not solve the issue, but it does give the option for updating one record at a time.
    Sonny

  • Incorrect Used Space Canvio 1.0 TB

    I've had the Canvio for about 2 or 3 weeks when I noticed that my computer displays that 965 GB's are used and only 500 some bytes remain.  when totalling up the individual folder capacities on the Canvio, only about 320 GB's are used.
    Anyone else have a similar problem or suggstions?
    I also notice that when looking for support, the product number for my model, HDTB110XK3BA is not listed, not very helpful.

    By default, the System Restore feature monitors all the drives and creates shadow storage (which is invisible to Windows Explorer). The evidence is a folder named System Volume information.
    You can turn off that monitoring (well, usually it works). In Windows XP, it's on the System Restore tab of System Properties (sysdm.cpl). They changed the tab name in later versions to System Protection. This one is from Windows Vista.
    Your drive is here. So far as I know, the same tech support phone number works for all this stuff: 800-457-7777. If not, they will redirect you.
    -Jerry

  • Time display incorrect using Output (generatePDFOutput) module

    I needed to manipulate the date & time to display the day, date time with am/pm and timezone. So using formcalc with renderPDFForm as the module i am using this formCalc code:
    $.rawValue = Concat(Num2Date(Date(), "EEEE MMM DD YYYY")," ", Num2Time(Time(),  "h:MM:SS A Z"))
    This works correctly and it prints out " Tuesday May 01 2012 1:26:02 PM EDT" this is exactly what I want and it is correct, but for 508 purposes we switched out renderPDFForm and are now using generatePDFOutput. There has been no change to the code but now my pint out says "Tuesday May 01 2012 1:16:15 PM GMT-04:00"  Why is this gmt part now showing is it due to the module is there code to get around it?

    I changed the RenderPDF to generatePDFOutPut and I am getting the expected time format.
    Not sure what is wrong with the settings you made.
    If you still have issues, keep the RenderPDF option and then add the transformPDF service to flatten it out. That way it can keep the same format.
    Thanks
    Srini

Maybe you are looking for