Date Differance in days (except Sat/Sun)

Hi all,
I have a report. In this report, we want the difference between current date, and payment date......but it should not consider the weekends......
My Current formula is timestampdiff(sql_tsi_day,"Payments Period"."Payment Date",current_date)
Can anybody suggest me, how could this be achieved?

hi,
Refer this one
http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/calcuate-the-difference-between-two-given-dates-excluding-weekends-2041897
or
Re: calculation of Business day in OBIEE
thanks,
saichand.v

Similar Messages

  • Count of days exclude sat'day and sunday

    Hi,
    I'm able to get count of days in current month as of today but not able to exclude weekends. Please advise.
    My query
    SELECT TRUNC(SYSDATE)-TRUNC(SYSDATE,'MM') FROM DUAL
    I want very simple query something like show below. please don't use connect and level key words because they aren't supported by OBIEE.
    SELECT TRUNC(SYSDATE)-TRUNC(SYSDATE,'MM') FROM DUAL
    where wday not in ('sat','sun');
    Thanks
    ASH

    Cheer this
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/calcuate-the-difference-between-two-given-dates-excluding-weekends-2041897
    Re: Date Differance in days (except Sat/Sun)
    Cheers
    Nawneet

  • Urgent: Removal of sat/sun days from the sql date query

    Hi All,
    I have a date field in my database table and I would like to get the details from the db table for the condition (SYSDATE - I/PDATE)< 2 i.e I need all the details which are 2 days old. But with this condition I would like to exclude the saturdays and sundays.
    Say if I am running this query on wednesday then it returns me the details for sat/sun which I do not want. It sould return me the thursday and friday details.
    My question can we this in SQL??? Can anybody help me??
    Thanks and regards,
    Kshitij

    refer to http://technet.oracle.com:89/ubb/Forum88/HTML/002539.html

  • Schedule_ship_date not to sat ,sun (Holiday) in report in oracle

    Hi All,
    I have the below query in which the column (ool.schedule_ship_date - (DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0)))) schedule_postprocesing) gives the details of schedule date but the requirement is the it will not take the holiday(Means sat, sun) in the report.
    Could you please help me how to modify this column so that it will not include the sat,sun dates.
    {SELECT NULL,--pa.segment1 project_number,
      ooh.order_number,
      ool.line_number
      ||'.'
      ||ool.shipment_number line_num,
      ool.schedule_ship_date,
      ool.request_date,
      NVL(ool.ordered_quantity,0) - NVL(ool.cancelled_quantity,0) ext_qty ,
      ool.ordered_quantity,
      ool.schedule_ship_date,
      ool.inventory_item_id,
      ool.ship_from_org_id,
      NULL,--  pa.project_id,
      ool.header_id,
      ool.line_id,
      ooh.attribute1,
      fnd.meaning Pegging_Level,
      DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0))) lead_times,
      ool.schedule_ship_date                                                 - (DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0)))) schedule_postprocesing
    FROM oe_order_headers ooh,
      oe_order_lines ool,
      --  pa_projects pa,
      mtl_system_items_b msi,
      fnd_lookups fnd
    WHERE 1           = 1
    AND ooh.header_id = ool.header_id
      --  AND ool.project_id = pa.project_id
    AND DECODE(msi.end_assembly_pegging_flag,'I','Y','X','Y','N') <> 'Y'
    AND NVL(ool.cancelled_flag,'N')                                = 'N'
    AND NVL (ooh.open_flag, 'Y')                                   = 'Y'
    AND ool.inventory_item_id                                      = msi.inventory_item_id
    AND ool.ship_from_org_id                                       = msi.organization_id
    AND ooh.order_number                                           = NVL(:P_SALES_ORDER_NO,ooh.order_number)
    AND ool.line_number                                            = NVL(:P_LINE_NO,ool.line_number)
    AND fnd.lookup_code                                            =msi.end_assembly_pegging_flag
    AND fnd.lookup_type                                            ='ASSEMBLY_PEGGING_CODE'
    AND ool.project_id                                            IS NULL;
    }

    1) The query does not run. Please run it yourself before posting a question.
    2) You seem to be simply adding variable_lead_time in your calculations. Is your order quantity always 1? If not, you need to multiple the variable lead time by the quantity.
    3) When posting query, use the tag to make it readable.
    4) Remove unnecessary columns /clauses /comments from the query before posting.  e.g. in your select, leave in only the lead time related columns
    5) Does your client use pre-processing lead time?  If they do, you may have to include it as well.
    6) Typically, the supplier lead time is given in calendar days for purchased items.  Why would you treat it differently?
    And finally the probable answer to your question
    Say you have a scheduled_ship_date of 15th Mar and your lead time calculations come out to be 20 days.  As you mentioned, you would like to back up 20 work days from Mar 15.
    Here is what you do:
    Identify the calendar to use (most likely from mtl_parameters.calendar_code)
    Find the sequence number for 15th Mar from bom_calendar_dates for that calendar code.
    Substract the 20 from the sequence number.
    Identify the date from bom_calendar_dates for that new sequence number.
    That is your answer.
    Sandeep Gandhi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Schedule_ship_date not to sat , sun in report in oracle

    Hi All,
    I have the below query in which the column (ool.schedule_ship_date - (DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0)))) schedule_postprocesing) gives the details of schedule date but the requirement is the it will not take the holiday(Means sat, sun) in the report.
    Could you please help me how to modify this column so that it will not include the sat,sun dates.
    {SELECT NULL,--pa.segment1 project_number,
    ooh.order_number,
    ool.line_number
    ||'.'
    ||ool.shipment_number line_num,
    ool.schedule_ship_date,
    ool.request_date,
    NVL(ool.ordered_quantity,0) - NVL(ool.cancelled_quantity,0) ext_qty ,
    ool.ordered_quantity,
    ool.schedule_ship_date,
    ool.inventory_item_id,
    ool.ship_from_org_id,
    NULL,-- pa.project_id,
    ool.header_id,
    ool.line_id,
    ooh.attribute1,
    fnd.meaning Pegging_Level,
    DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0))) lead_times,
    ool.schedule_ship_date - (DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0)))) schedule_postprocesing
    FROM oe_order_headers ooh,
    oe_order_lines ool,
    -- pa_projects pa,
    mtl_system_items_b msi,
    fnd_lookups fnd
    WHERE 1 = 1
    AND ooh.header_id = ool.header_id
    -- AND ool.project_id = pa.project_id
    AND DECODE(msi.end_assembly_pegging_flag,'I','Y','X','Y','N') 'Y'
    AND NVL(ool.cancelled_flag,'N') = 'N'
    AND NVL (ooh.open_flag, 'Y') = 'Y'
    AND ool.inventory_item_id = msi.inventory_item_id
    AND ool.ship_from_org_id = msi.organization_id
    AND ooh.order_number = NVL(:P_SALES_ORDER_NO,ooh.order_number)
    AND ool.line_number = NVL(:P_LINE_NO,ool.line_number)
    AND fnd.lookup_code =msi.end_assembly_pegging_flag
    AND fnd.lookup_type ='ASSEMBLY_PEGGING_CODE'
    AND ool.project_id IS NULL;
    }

    Hi,
    I have added the same but it is not working as my ool.schedule_ship_date='20-Mar-2012' but due to POSTPROCESSING_LEAD_TIME=3 for one item so the date if we will not take saturday & sunday then it has to show the calculated value='15-Mar-2012' But instead of this it is showing '17-Mar-2012'. Please advise.
    {SELECT NULL,--pa.segment1 project_number,
      ooh.order_number,
      ool.line_number
      ||'.'
      ||ool.shipment_number line_num,
      ool.schedule_ship_date,
      ool.request_date,
      NVL(ool.ordered_quantity,0) - NVL(ool.cancelled_quantity,0) ext_qty ,
      ool.ordered_quantity,
      ool.schedule_ship_date,
      ool.inventory_item_id,
      ool.ship_from_org_id,
      NULL,--  pa.project_id,
      ool.header_id,
      ool.line_id,
      ooh.attribute1,
      fnd.meaning Pegging_Level,
      DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0))) lead_times,
      ool.schedule_ship_date                                                 - (DECODE(planning_make_buy_code,2,NVL(ceil(POSTPROCESSING_LEAD_TIME) ,0) + ceil(NVL(FIXED_LEAD_TIME,0)),ceil(NVL(FIXED_LEAD_TIME,0))+ ceil(NVL(VARIABLE_LEAD_TIME,0)))) schedule_postprocesing
    FROM oe_order_headers ooh,
      oe_order_lines ool,
      --  pa_projects pa,
      mtl_system_items_b msi,
      fnd_lookups fnd
    WHERE 1           = 1
    AND ooh.header_id = ool.header_id
      --  AND ool.project_id = pa.project_id
    AND DECODE(msi.end_assembly_pegging_flag,'I','Y','X','Y','N') <> 'Y'
    AND NVL(ool.cancelled_flag,'N')                                = 'N'
    AND NVL (ooh.open_flag, 'Y')                                   = 'Y'
    AND ool.inventory_item_id                                      = msi.inventory_item_id
    AND ool.ship_from_org_id                                       = msi.organization_id
    AND ooh.order_number                                           = NVL(:P_SALES_ORDER_NO,ooh.order_number)
    AND ool.line_number                                            = NVL(:P_LINE_NO,ool.line_number)
    AND fnd.lookup_code                                            =msi.end_assembly_pegging_flag
    AND fnd.lookup_type                                            ='ASSEMBLY_PEGGING_CODE'
    AND to_char(ool.schedule_ship_date,'Day','nls_date_language=english') not in ('Saturday','Sunday')
    AND ool.project_id                                            IS NULL;}

  • Production finish date differs from basic finish date in backward schedulin

    Hi, experts.
    When i do scheduling the planned order,
    production finish date differs from basic finish date in backward scheduling as below.
    Scheduling: Backward
    Basic finish date : 2010.01.22
    Basic start date : 2010.01.21
    Production finish date : 2010.01.23  09:00:00
    Production start date ; 2010.01.22 03:57:09
    *GR time : 0.
    *Scheduling Margin key : 0.
    I don't know why production finish date set in 2010.01.23 09:00. ( Basic finish date +1 day)
    Please reply me.
    Thanks.

    Dear Jong,
    1) what is the parameter used in MRP run, Basic scheduling or lead time scheduling
    2) you must find a exception Mssg for that plan order in MD04
    3) basic scheduling take the time from material master & lead time scheduling will take time
    from Routing
    Regards
    Madhu

  • Days between two days except weekend

    Hi all he lp me in getting a oracle query to find out the days between 2 input dates excluding the weekends...

    >
    Hi all he lp me in getting a oracle query to find out the days between 2 input dates excluding the weekends...
    >
    Something like this should work
    with dates as (select sysdate fromDate, sysdate + 10 toDate from dual),
      days as (select sysdate + level - 0 myDay from dates
               connect by level < toDate - fromDate)
    select count(*) from days where to_char(myDay, 'Dy') not in ('Sat', 'Sun')
    COUNT(*)
    6The 'dates' query just provides the start and end dates. The 'days' query produces a date value for each day in the range between the start and end.
    Then the last query counts those days if they are not a Saturday or Sunday.
    You can adjust the 'days' query depending on whether you want both the start and end date included. For example if start is today and end is tomorrow (Friday) the above query result will be '1'.
    Are you forgetting to mark your questions ANSWERED when they have been? Total Questions: 12 (10 unresolved)

  • Week ending date after 365 days in sql

    Hi Experts,
    I need to find the week ending date after 365 days of the given week start date .
    Example : Week start date : 23-Jan -2011 (Sunday)
    Desired week end date : 28-Jan-2012 (Saturday)
    How to achive this through sql ?
    Thanks .

    Hi,
    Check below this may help you, adjust "(t.day_num+1)" as per your requirment.
    with t as
    (select decode(to_char(trunc(sysdate + 365), 'dy'),'mon',1,
                                                      'tue',2,
                                                      'wed',3,
                                                      'thu',4,
                                                      'fri',5,
                                                      'sat',6,
                                                      'sun',7) day_num
                                                      from dual
    select to_char(trunc(sysdate + 365)+ (7-(t.day_num+1)),'dd dy-mm-yyyy')   
                                                      from t ;

  • Exception in Sun App Server 9

    Hi ,
    i was wondering why i get this stacktrace below when i access JSP page
    [#|2006-10-25T10:58:40.919+0800|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;_RequestID=b573afc9-2776-432e-a955-15a99f9cff71;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
         at com.sun.faces.renderkit.html_basic.ButtonRenderer.getClearHiddenFieldScript(ButtonRenderer.java:313)
         at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:212)
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239)
         at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.renderComponent(PopupCalendarRenderer.java:328)
         at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.encodeEnd(PopupCalendarRenderer.java:213)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
         at com.sun.rave.web.ui.renderer.PanelGroupRenderer.encodeChildren(PanelGroupRenderer.java:61)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.renderer.TableColumnRenderer.encodeChildren(TableColumnRenderer.java:173)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.renderer.TableRowGroupRenderer.encodeChildren(TableRowGroupRenderer.java:185)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.renderer.TableRenderer.encodeChildren(TableRenderer.java:157)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:241)
         at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:893)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:241)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:153)
         at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
         at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
         at biz.autoscan.ils.security.SecurityFilter.doFilter(SecurityFilter.java:76)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:789)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:328)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
    But it was working fine when i use app server bundled with the Creator

    i dont know if this is related to the popup calendar thingy as u can see
    at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.renderComponent( PopupCalendarRenderer.java:328)
    at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.encodeEnd(PopupC alendarRenderer.java:213)
    Here is my structure of my JSP page but this error doesnt happen for all the pages.. only certain pages that has a ajax popup calendar bind to the table.
    Login.jsp ---> ( FilterPage.jsp) ( there is always a filter for every page ) -->SearchA.jsp
    my SearchA.jsp structure would as below
    -propertysheet
           -propertysection
                  -property
                         -table
                              -column1
                                ajax auto complete
                              -column2
                                 static text
                              - column3
                                 static text ( showing date )
                                 group panelDate
                                      popupCalendar
                                      msgforPopupCalendarHere is the subsequent stacktrace i got in my server.log
    [#|2006-10-25T10:58:40.915+0800|WARNING|sun-appserver-pe9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;_RequestID=b573afc9-2776-432e-a955-15a99f9cff71;|executePhase([b]RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1bf1be2) threw exception
    com.sun.rave.web.ui.appbase.ApplicationException
         at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
         at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
         at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
         at biz.autoscan.ils.security.SecurityFilter.doFilter(SecurityFilter.java:76)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:789)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:328)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
    Caused by: java.lang.NullPointerException
         at com.sun.faces.renderkit.html_basic.ButtonRenderer.getClearHiddenFieldScript(ButtonRenderer.java:313)
         at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:212)
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239)
         at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.renderComponent(PopupCalendarRenderer.java:328)
         at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.encodeEnd(PopupCalendarRenderer.java:213)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
         at com.sun.rave.web.ui.renderer.PanelGroupRenderer.encodeChildren(PanelGroupRenderer.java:61)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.renderer.TableColumnRenderer.encodeChildren(TableColumnRenderer.java:173)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.renderer.TableRowGroupRenderer.encodeChildren(TableRowGroupRenderer.java:185)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.renderer.TableRenderer.encodeChildren(TableRenderer.java:157)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:241)
         at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
         at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:893)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:241)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:153)
         at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
         ... 37 more
    |#]

  • Date shifting 1 day back on 1 of many systems :S

    This piece of java software I am responsible for is running throughout numerous locations in my country, there is only 1 location which has trouble with the dates being displayed incorrectly, birthdates of clients are displayed as a day earlier. It seems pretty safe to say it is a problem on their end... But still, they're asking me for an explanation as to why java would treat a date differently in this rare case.
    The date (a birthdate) comes from an oracle database, it is a date without a time (trunced date). It enters the application as a member of the client-class, it is NOT being set or changed after that. It goes through several layers in the application, then ends up in a GUI class which unwraps it from the "client"-object and puts a SimpleDateFormat (new SimpleDateFormat("dd-MM-yyyy")) on it.
    My first and only hunch was the timezone settings, but that seems to be OK!
    Does anyone here have any clue as to what might cause this strange behaviour?

    I have in fact tried changing the timezone from +1:00 to 0:00, and it is the only way I can reproduce this problem on my local machine here. I figured since java dates always has a time (since java data is based on milliseconds from epoch), the trunced sql date will end up being at midnight, the first millisecond of that date sorta speak. When the timezone differs -1, it will become 23:00 (11PM) the previous day, so the date ends up displayed as the day before.
    So, yes, timezone difference can cause this same problem.
    However, the people I am dealing with here ensure me their timezones are set correctly :S
    Not sure how credible this response is though...

  • Recordset where date is 90 days or older.

    Hello,
    I am trying to build a recordset from a MSSQL database of records where c.date is 91 days or older.  It's been 3 years since I touched Coldfusion so my code below is a little rusty....
    <cfset todayDate = Now()>
    <!--- Populate Open Quotes --->
    <cfquery name="Quotes" datasource="quote">
    SELECT q.qid, q.cdate, q.name, q.region, q.cuid, q.quid, q.status, c.company,
    c.sitecity
    FROM quote q, customer c
    WHERE q.status = 'open' AND q.cuid = c.uniqueid AND q.cdate < (<cfoutput>#todaydate#</cfoutput>-90)
    ORDER BY cdate
    </cfquery>
    Any help on this would be greatly appreciated.....
    Thanks In Advance.
    Gary

    There are a few ways to do it. My preference is to use the DateAdd() function to calculate the date 90 days ago:  #DateAdd("d", -90, now())#
    Of course that will also include the time as well:  2009-12-21 17:21:00.  You can truncate the time (ie convert it to a date only) by using either the CreateODBCDate() function:
    WHERE q.cdate < #CreateODBCDate(DateAdd("d", -90, now()))# 
    ... OR by using cfqueryparam with the data type "cf_sql_date"
    WHERE q.cdate <    <cfqueryparam value="#DateAdd("d", -90, now())#" cfsqltype="cf_sql_date">
    Generally cfqueryparam is the better option for databases like MS SQL because a) it uses bind variables to help improve performance b) helps protect against sql injection. It also has some other nice features like the "list" and "null" attributes.
    http://www.adobe.com/devnet/coldfusion/articles/sql_injection.html
    (<cfoutput>#todaydate#</cfoutput>-90)
    BTW: You do not need to use <cfoutput> tags inside a cfquery. There may be exceptions, but generally any #variable# used inside a CF tag will be evaluated automatically (without cfoutput tags).

  • Increasing the date by 30 days

    Hello all,
    Thanks for taking the time to read this message.
    I am getting the date as a string from the registry entry, in this format yyyyMMddHHmmss.
    I would like to add 30 days to this again set it in the registry, I know how to set it in the registry, but dont know how i can increase this date by 30 days.
    I know how to increase it from the current time ..like this.
    new Date(System.currentTimeMillis() + (30L * 24L * 60L * 60L * 1000L));
    but dont know how to increase from the taken time.
    hope you understand my question.
    Thanks

    Calendar.add()Thanks for the reply. I have absolutely no idea what
    you just said, it would be great if you could give me
    an example.Click [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#add(int, int)]here.
    Or here...
    Calculating Java dates: Take the time to learn how to create and use dates
    Working in Java time: Learn the basics of calculating elapsed time in Java
    Formatting a Date Using a Custom Format
    Parsing a Date Using a Custom Format

  • Reg: Uncaught Exception: com.sun.forte.st.mpmt.ipc$AnIPCException

    I am developing programs using sun studio 12 on SunFireT1000 Server having Solaris 10 OS .
    My program is getting compiled and running well but i have probems in profiling.
    When I try to profile, I got the following error
    "Uncaught Exception: com.sun.forte.st.mpmt.ipc$AnIPCException
    er_print exited due to internal error
    Exception in thread Window_thread."
    Even for the programs that I profiled earlier I am now getting the same error.
    If I login with a different user name I am able to profile the same project without the above error but I cannot modify the source code.
    Kindly suggest a solution to overcome the above problem.
    Thanks in advance,
    Mahendraarman.D

    Hi Mahendraarman,
    Thank you for the report! Usually this error message (exception) indicates a problem in "er_print",
    or in the dialog between "analyzer" and "er_print". Could you please check if there is a "core" file
    from "er_print"? If there is no 'core" file, please, make sure the limit on coredumpsize is unlimited,
    and start analyzer again:
    {code}
    % csh
    % limit coredumpsize unlimited
    % limit
    cputime unlimited
    filesize unlimited
    datasize unlimited
    stacksize 10240 kbytes
    coredumpsize unlimited
    descriptors 256
    memorysize unlimited
    % analyzer
    {code}
    If you get a core file from "er_print", please, run "pstack core" and post its output.
    You wrote that you can view the experiment using another user's account. This is
    very important detail. Do you have ".er.rc" file in your $HOME directory?
    If yes, could you, please, rename it and start analyzer again?
    {code}
    % mv $HOME/.er.rc $HOME/.er.rc.0
    % analyzer
    {code}
    If you cannot get a core file, and there is no $HOME/.er.rc file, could you please
    run analyzer under truss, and send me the truss output?
    {code}
    % truss -a -e -f -o /tmp/analyzer.tr analyzer
    {code}
    When the problem happens, send me this file: /tmp/analyzer.tr
    My email address is: Nikolay dot Molchanov at Sun dot Com
    Thanks in advance,
    Nik

  • Posting date and clearing date different in G/L clearing document

    Hi Friends,
    While clearing a G/L manually using F-03, the clearing date is entered in the selection screen.
    The clearing document which is posted is posted with the posting date same as the clearing date mentioned in the selection screen of F-03.
    In what situations can the posting date of a G/l clearing document be different from the clearing date?
    Regards,
    Shilpi

    Hi,
    The Clearing Date in F-03 is actually the Posting date, so in this case the posting date will be same as clearing date. But a clearing document can also be created when you reverse a FI document, in this case the Reversal document will have a clearing date different than posting date. Let me know if this info helps you

  • How to get the date of first day of a week for a given date

    Hi gurus
    can any one say me how to get the date of first day(date of Sunday) of a week for a given date in a BW transformations. For example for 02/23/2012 in source i need to get 02/19/2012(Sunday`s date) date in the result. I can get that start date of a week using  BWSO_DATE_GET_FIRST_WEEKDAY function module. But this function module retrieves me the  start date as weeks monday(02/20/2012) date. But i need sundays(02/19/2012) date as the start date. So it would be really great if anyone sends me the solution.
    Thanks
    Rav

    Hi,
    The simplest way would be to subtract 1 from the date date which you are already getting in transformation routine, but instead of doing that subtraction manually which might need bit of errort, you can simply use another FM to subtract 1 from given date.
    RP_CALC_DATE_IN_INTERVAL
    Regards,
    Durgesh.

Maybe you are looking for

  • Corrupted User Accounts in Windows Vista 64 Home Premium?

    ***FYI I'm using my desktop. Toshiba Satellite L305-S5908 Model #: PSLB8U-05202F Windows Vista 64 So just today, I had accidently dropped my laptop. I was logged into my user account, and it completely froze a few moments after. I had to reboot it, a

  • Connecting to mass storage and printers on another router

    I have my wireless router connected to another router that router is connected to the internet. My wireless connection works fine getting to the internet, but I am unable to see the other items connected to the first router. This would be my network

  • UPDATE_INSERT Error

    Hi Experts, Need urgent help. Right now i am using UPDATE_INSERT for my Receiver JDBC Adapter. But i am getting error in communication channel monitoring that : *ORA-00933: SQL command not properly ended * and in oracle if i am trying to run the belo

  • Organizer fails to respond

    Elements 9 installed early 2011.  Have opened Organizer and loaded new photos and used individual photos for printing, etc..  Clicked on desktop icon and opened Organizer as usual but I cannot access any photos or even backup to a DVD.  Message "Orga

  • How can i use itunes store Apple id

    hello i am kamal i have apple id but not support in itore stor how to  use itones store apple id? plase