Problem: getting task id in Gantt chart

Hello!
I'm developing project Gantt chart, now I'm implementing task update and creation.
I have a following problem: when I try to get a task id to update it using getTaskId() method of DataChangeEvent object, I get a java.lang.IndexOutOfBoundsException.
Here is part of code of my data change listener:
public void handleDataChanged(DataChangeEvent evt)
      int _type = evt.getActionType();
      if (_type == DataChangeEvent.UPDATE)
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("setCurrentRowWithKeyValue");
        Map params = operationBinding.getParamsMap();
        params.put("rowKey", evt.getTaskId()); // throwing exception in this line - evt.getTaskId()
        operationBinding.execute();   
}And here is exception stack trace:
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
javax.el.ELException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
     at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)
     at oracle.adf.view.faces.bi.component.gantt.UIGantt.broadcast(UIGantt.java:1776)
     at oracle.adf.view.faces.bi.component.gantt.UIProjectGantt.broadcast(UIProjectGantt.java:399)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:444)
     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:541)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1175)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     at java.util.ArrayList.RangeCheck(ArrayList.java:547)
     at java.util.ArrayList.get(ArrayList.java:322)
     at oracle.adf.view.faces.bi.event.DataChangeEvent.getTaskId(DataChangeEvent.java:461)
     at view.backing.GanttPage.handleDataChanged(GanttPage.java:217)
     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:597)
     at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
     ... 55 moreDo you have any suggestions about this issue?
Thank you in advance!

Hi Benny
Make sure the system in the system landscape has end user access as a permission for all the users who should access it.
Cheers

Similar Messages

  • Gantt Chart Related Problem

    Project Link:
    PPPM
    How to solve these problems.
    Problem 1:
    I have to scroll both the Gantt Chart and Task List scroll
    simultaneously. When i scroll Gantt Chart , then at the same time
    Task List and vice versa.
    Problem 2:
    How to stop Gantt Chart header movement stop when scroll the
    Gantt Chart.
    Problem 3:
    In the Gantt Chart Node, there are 2 section. One is dark
    section and other is lite section. I have to slide these scctions
    like like HDevidedBox effect.
    Please help me out from these problems.

    Hi Vedant,
    values are displayed in pie chart their label is not display.
    So you're able to view the value and label information when you hover over a slice i.e. viewing the tooltip, but you can't see the actual label for each slice of the pie. If you're not seeing all of the labels for the slices of the Pie chart, then this could due to a couple of reasons:
    1) the length of the label
    2) the position of the label
    3) the size of the chart
    Keep in mind that displaying all 41 labels on the chart could result in an extremely cluttered looking chart. AnyChart controls the visibility of the labels, depending on the above factors. So if your labels are quite lengthy, for example, and they are positioned to be displayed outside the chart, then AnyChart will display what labels it can for the given chart size. To work around this, having tooltips enabled is a good starting point. Alternatively, you could look at decreasing the length of the label text, changing the label position or even increasing the size of the chart. For further information on the label formatting, I would recommend reviewing AnyChart's online documentation, here: http://anychart.com/products/anychart/docs/users-guide/label-text-formatting.html?fromtree.
    Regards,
    Hilary

  • Transfer Gantt Chart View color's automatically to Team Planner View

    Hi there.  My project has 7 different resources with various Resource Names ending characters.  I've automatically color coded the bars on my Gantt Chart based on resource allocation by using Flags 1-7, Custom Fields, and the formula IIf(Left([Resource
    Names],3)="xxx",Yes,No).  I then change the format of each bar style to the color I desire.  
    I am looking for a way to automatically transfer the colors I have assigned the tasks in my Gantt Chart to the Team Planner view.  I don't believe there is a simple way to do this but would appreciate any help aside from manually formatting each of
    the tasks in Team Planner view.
    Thanks for the help!
    -Joe

    jbarrazotto --
    Alas, there is no way to do what you want with the Team Planner view.  This is because there is no dialog similar to the Bar Styles dialog where you can control the formatting.  Basically, the Team Planner view has definitions for Manually Scheduled
    tasks, Auto Scheduled tasks, Actual Work on tasks, External Tasks, and Late Tasks.  Using the corresponding buttons in the Styles section of the Format ribbon with the Team Planner Tools applied, you can control the fill color and the border color for
    every bar of one of those types.  But there is no way to add other buttons to the ribbon to control the Gantt-like bars that are shown in the Team Planner view.  So, what you want to do with the Team Planner view is not possible.  Sorry. 
    Hope this helps.
    Dale A. Howard [MVP]

  • Gantt chart creation

    can any one say me how to create gantt chart without using any tool...in java applet

    <HTML>
    <BODY>
    Is there a way to add extra columns for each task in a Gantt Chart.
    I have situation where there is tow more columns are coming towards each task. One column is having an image which tells some status and one other column is having current task of the main task. Please let me know is this achievable.
    Sample Chart is shown below
    <TABLE border=1>
    <TR>
    <TD colspan=3></td><tD colspan=4> 2007</tD><tD colspan=4> 2008</tD> <tD colspan=4> 2009</tD>
    </TR>
    <tr><TD colspan=3></td><td>Q1</td><td>Q2</td><td>Q3</td><td>Q4</td>
    <td>Q1</td><td>Q2</td><td>Q3</td><td>Q4</td><td>Q1</td><td>Q2</td><td>Q3</td><td>Q4</td>
    </tr>
    <td>Task </td><td>Sub Task</td> <td> Image </td>
    </tr>
    <tr>
    <td>aaaaaa</td>
    <td> 1</td>
    <td></td>
    <td colpsan=4>-------------- (goal 1)</td>
    </tr>
    <tr>
    <td>bbbbbbb</td>
    <td> 2</td>
    <td></td>
    <td colpsan=4>--------------(Enroll completed)</td>
    </tr>
    </TABLE>
    </BODY>
    </HTML>

  • Display of Assigned Resource Units or % in Gantt chart

    Is there a way in P6 to show how many of a particular resource is assigned to a task in the Gantt chart view/layout? For example, a task may have (7) laborers, (2) electricians, (1) operating engineer, and (1) concrete pump truck assigned. The "Resources" column in the Gantt view only shows laborer, electrician, operating engineer, concrete pump truck. It does not show how many of each are needed.

    Go for the workaround.
    Create a text User Defined Field (UDF).
    Add the numbers in UDF exactly in order of resources view in Gantt Chart.
    Add the UDF as bar label next to Resources label.
    Jawad
    Novo Rail, Sydney

  • Where can I get the sample code of gantt chart?

    hi, all
    I want to use gantt chart component.I find this video http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html.
    where can I get the sample code in this video?
    I have got the demo <strong>dvt-faces-demo.ear</strong>.but in this demo, the code of events process is too simple.I want more detail code of date change, denpendency change and so on.
    this is my mail [email protected]
    Thanks
    Best Regards
    kenshin
    Edited by: Himura Kenshin on 2010-8-20 上午4:57
    Edited by: Himura Kenshin on 2010-8-20 上午9:03

    Hi Katia,
    Essentially the same sample app which was referenced above (http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html). There are many features implemented in this sample which I'll be "reinventing the wheel" with. Its been a bit since I worked with the gantt component as I had to abandon for other development but will be getting back into it here shortly.
    Namely as I remember, I had difficult time getting the gantt to load quickly with large amount of tasks, difficulty getting the selected item when using context menus or buttons defined within the control, and a few other minor issues which could be fixed as I was using the first release of 11g and cannot remember specifics. I'll let you know as I get back into it if I see similar problems.
    For example, if you go to the ADF Demo Site (http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx) and click on "Project Gantt Custom Menu and Toolbar - add menus and buttons on the Project Gantt Menu and Toolbar". The buttons work, however if you first select a row in the left and then click the button, you have to click twice for it to work (in my findings the action listener never "fires"). So in my case I want to select a row and then have a custom event for that selected row when I click the button. There were other similar findings I had when I tried to go off of the examples.
    Hope this helps.
    Thank you,
    Kris

  • How to make the Level of Effort task visible in the Gantt Chart?

    Hi,
    I am facing an issue when trying to add a level of effort task. The bar of the task is simply not visible in the Gantt Chart.
    I take the following steps:
    - Add new task
    - Link task to predecessor milestone and successor milestone
    - Change task from activiy type to level of effort
    I can see the task being added in the Gantt Chart, the name of the task is visible, the duration of the task is calculated, but I do not see the green bar..
    What could be the problem? Can anybody help me with this issue? Thanks!

    Go to View .. Bars... and enable the bar for Level of Effort activities. If it's not there, create one.

  • Deleting task in Gantt chart - TaskId = 0

    Hi all,
    In JDeveloper 11.1.1.6, Project Gantt chart contains few simple tasks (with TaskId, start date, end date).
    When I try to delete some task, dataChangeEvent.getTaskId() throws "java.lang.IndexOutOfBoundsException: Index: 0, Size: 0" in my managed bean:
    <dvt:projectGantt id="projectGantt1"
    value="#{bindings.ArtikelView1.projectGanttModel}"
    var="row" startTime="2012-05-31"
    endTime="2012-08-29"
    tooltipKeys="#{projectGanttBean.tooltipKeys}"
    tooltipKeyLabels="#{projectGanttBean.tooltipLabels}"
    dataChangeListener="#{projectGanttBean.handleDataChanged}"
    nonWorkingDaysOfWeek="sat sun"
    nonWorkingDaysColor="#f7f3a5"
    doubleClickListener="#{projectGanttBean.handleDoubleClick}"
    partialTriggers=":::cb1">
    public void handleDataChanged(DataChangeEvent dataChangeEvent)
    BindingContainer bindings = getBindings();
    int _type = dataChangeEvent.getActionType();
    if (_type == DataChangeEvent.DELETE){
    OperationBinding operationBinding = bindings.getOperationBinding("deleteArtikel");
    Map params = operationBinding.getParamsMap();
    params.put("workOrder", dataChangeEvent.getTaskId()); =====> getTaskId() throws exception
    DataChangeEvent with action types TIME_CHANGED or DURATION_CHANGED works well on the same task (TaskId contains correct value for these action types)...
    Any idea what could be wrong?
    Thanks a lot for support
    Daniel
    =========
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces-Gültigkeitsdauer empfängt nicht behandelte Exceptions in Phase APPLY_REQUEST_VALUES 2
    javax.el.ELException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.faces.bi.component.gantt.UIGantt.broadcast(UIGantt.java:1783)
         at oracle.adf.view.faces.bi.component.gantt.UIProjectGantt.broadcast(UIProjectGantt.java:399)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at oracle.adf.view.faces.bi.component.gantt.UIGantt.broadcast(UIGantt.java:1818)
         at oracle.adf.view.faces.bi.component.gantt.UIProjectGantt.broadcast(UIProjectGantt.java:399)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:444)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:541)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1394)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:397)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.adf.view.faces.bi.event.DataChangeEvent.getTaskId(DataChangeEvent.java:464)
         at view.backing.projectGanttBean.handleDataChanged(projectGantt.java:104)
         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:597)
         ... 60 more
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server-Exception während PPR, #1
    javax.el.ELException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.faces.bi.component.gantt.UIGantt.broadcast(UIGantt.java:1783)
         at oracle.adf.view.faces.bi.component.gantt.UIProjectGantt.broadcast(UIProjectGantt.java:399)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at oracle.adf.view.faces.bi.component.gantt.UIGantt.broadcast(UIGantt.java:1818)
         at oracle.adf.view.faces.bi.component.gantt.UIProjectGantt.broadcast(UIProjectGantt.java:399)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:444)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:541)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1394)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:397)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.adf.view.faces.bi.event.DataChangeEvent.getTaskId(DataChangeEvent.java:464)
         at view.backing.projectGanttBean.handleDataChanged(projectGantt.java:104)
         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:597)
         ... 60 more

    In SAP Gantt Chart, you can record how much %age of an activity is completed but you can not get refelction of the same in Gantt chart. However you can see the actual dates of confirmation on Gantt chart by suitable selection of dates you want to view.
      SAP Gantt chart do not have this functionality like other project planning softwares.
    Regards,
    Mahendra Dighe

  • Problem with gantt chart displaying - Apex4.2

    Hi I'm using Apex 4.2 on localhost and
    I have got three tables: employee, engineer, dates
    -> engineer table is a specification of employee table, that means in employee you can find also the
    names of the engineers. Engineer only has an additional attribute.
    Here's the structure of the three tables:
    employee (e_id, lastname, surname....)
    engineer (e_id, attribute)
    appointment (a_id, e_id,start, end)
    Now my problem: By using the gantt chart the xml doesn't want to show the names of the engineers.
    If I only use this sql statement everything works but I only have the e_id from my engineer table:
    select
    null link,
    a.e_id,
    (select e_id from engineer where e_id = a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    If I try to use this statement in order to see the names of the employees no chart will be shown,
    only xml error:
    select
    null link,
    a.e_id,
    (select emp.lastname from employee emp, engineer e where emp.e_id = e.e_id and e.e_id=a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    I also created a view which combines the lastname from employee and the e_id from engineer
    but same problem.
    If I try:
    select
    null link,
    a.e_id,
    (select e_id from gantt_view where e.e_id=a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    Then I'll see e_ids in my gantt chart but if I want to see my employee names
    with this statement:
    select
    null link,
    a.e_id,
    (select lastname from gantt_view where e.e_id=a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    Nothing is shown on the gantt chart.
    I tested all sql statements on sql developer.
    There I was able to see my employee names.
    But for gantt charts it doesn't work.
    Any solutions?

    Great!
    Of course, hard to diagnose when there's nothing to see.
    Here's an old message in a thread from 2010. (To give credit, it's from Hilary Farrell.)
    >
    You are correct, the syntax outlined in the error message is incorrect, and I've logged bug 9799373 to track this. As a workaround, you can view sample syntax for Gantt charts on the 'Query' page of the Create wizard, in the 'Chart Query Example for Gantt' Show/Hide region below the text area for entering your chart query, and also in the Oracle APEX 4.0 User's Guide that will be available with our new release. Just in case other users hit the same issue and are unsure of the expected format:
    Chart Query Examples for Project Gantt Charts:
    SELECT NULL LINK,
    TASK_NAME NAME,
    TASK_ID ID,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS
    FROM TASKS
    SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
    TASK_NAME NAME,
    TASK_ID ID,
    PARENT_TASK_ID PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS
    FROM TASKS
    SELECT NULL LINK,
    TASK_NAME NAME,
    TASK_ID ID,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS,
    START_DATE-3 PLANNED_START,
    END_DATE+1 PLANNED_END
    FROM TASKS
    Chart Query Examples for Resource Gantt Charts:
    SELECT NULL LINK,
    RESOURCE_ID ID,
    NULL NAME,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END
    FROM TASKS
    SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
    RESOURCE_ID ID,
    RESOURCE_NAME NAME,
    PARENT_ID PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END
    FROM TASKS
    Thanks for reporting this issue, and I'm happy you were able to successfully generate your chart.
    Regards,
    Hilary
    Can you show us the query you are using?
    Oh. And what are the data types and lengths of your data?
    Howard

  • Problem getting resource gantt to work

    I am experimenting with gantt charts in apex 4.0.2 at the moment and having no success. I can find only sparse documentation regarding the building of gantt charts in APEX and have read the entries in the user guide.
    Looking at the xml in debug I see the following error message:
    chart Flash Chart error: ORA-20001: get_data error: ORA-20001: get_data error: ORA-20001: Fetch error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    I am basing the query on the following view:
    trainer_activity:
    trainer_id number(6,0)
    trainer_name varchar2(30)
    start_date date
    end_date date
    I used the wizard when creating the page to build the query and it returned the following:
    select null link, TRAINER_ID resource_id, TRAINER_NAME resource_name, null parent_id, START_DATE actual_start, END_DATE actual_end
    from "PG"."TRAINER_ACTIVITY"
    Attempts to build the query manually based on the examples within apex result in constant failures to parse the query. At least using the wizard I can get past the page build process and run the page.
    Any clues? Am I wasting my time using the charts because of bugs?
    Regards
    PaulG

    If you LOOKED at the article, it includes a zip file, which has a few files in it. These files have the table definitions for the data being queried in the chart..
    CREATE TABLE  "GANTT_INFO"
       (    "ID" NUMBER,
        "TASKS" VARCHAR2(4000),
        "START_DATE" DATE,
        "END_DATE" DATE,
        "STATUS" NUMBER,
        "DETAILS" VARCHAR2(4000),
        "EMP_ID" NUMBER,
        "PARENT_ID" NUMBER
    CREATE table "OBE_EMPLOYEES" (
        "EMPLOYEE_ID" NUMBER(6) NOT NULL,
        "FIRST_NAME"  VARCHAR2(20),
        "LAST_NAME"   VARCHAR2(25),
        "EMAIL"       VARCHAR2(25),
        "HIRE_DATE"   DATE,
        constraint  "OBE_EMPLOYEES_PK" primary key ("EMPLOYEE_ID")
    CREATE TABLE "EMP"
        "EMPNO" NUMBER(4,0) NOT NULL ENABLE,
        "ENAME" VARCHAR2(10 BYTE),
        "JOB"   VARCHAR2(9 BYTE),
        "MGR"   NUMBER(4,0),
        "HIREDATE" DATE,
        "SAL"    NUMBER(7,2),
        "COMM"   NUMBER(7,2),
        "DEPTNO" NUMBER(2,0)
      )Thus, you have the tables that are used in the demo presented.. The resource name in question is from the sample application with APEX, table name Emp..
    Thank you,
    Tony Miller
    Webster, TX
    Never Surrender Dreams!
    JMS
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Problems with Gantt Chart

    Hi,
    I have a Gantt Chart in my page, but there is something wrong with the scales; the major scale says, for example, "Monday, Oct 12", but the minor scale says "S" for sunday and then the major scale says "Tuesday, Oct 13" and the minor "Monday" and so on; they doesn´t correspond to each other... This is just happening in spanish, in english everything is fine, I don't know what can I do to fix this.
    I have another problem in the same Gantt: one task has "16/10/2009 08:00:00 a.m." for start date and "17/10/2009 08:00:00 p.m." for end date, which gives a duration of 2 days, but in the gantt it is displayed as a 3 days duration!! this happen for every task in the gantt. I've been testing and I found that if I change the end date to "17/10/2009 06:00:00 p.m." (just changing 8 to 6 pm) the duration is displayed just fine, with the 2 days it should be. Actually this strange behavior happens only when the hour is equal or grater than 8:00pm. I've searched in the developers guide but it doesn't say anything about this; I don´t know if the OAF Gantt use some e-business parameter, or something; I really don´t know what can be happening.
    I hope you can help me!
    Thanks and regards,
    Carlos V

    Not sure about changing the scale at runtime but from what I've learned, if it can't be done in Crystal Reports itself - it can't be done via code.  And in CR the only way I know of is to do the multiple charts in multiple subsections and conditionally suppress based on the number of records (Projects in your case).
    You could go to the development forum and ask the question about doing it programatically.

  • Gantt Chart Data not getting pouplated

    Hello,
    I am using Gantt charts in apex for showing up large data.
    I am following this method to store huge data which is in xml(more than 32k) into a page item. (http://apex.oracle.com/pls/otn/f?p=35254:5:877211585824396::NO).
    I set my session state like APEX_UTIL.set_session_state (p_name => 'P10_DATA', p_value => APEX_APPLICATION.g_x01) and pass this item into gantt chart
    The problem i am facing is that even though i see that the value of P10_DATA is populated with all the data during debugging, upon opening session and checking the item's value, it displays null !!!
    Note:For data with less than 32k, Gantt chart loads correctly and the item's value gets saved.
    Anyine please help me with this..
    Regards,
    Uday

    Hello,
    I am using Gantt charts in apex for showing up large data.
    I am following this method to store huge data which is in xml(more than 32k) into a page item. (http://apex.oracle.com/pls/otn/f?p=35254:5:877211585824396::NO).
    I set my session state like APEX_UTIL.set_session_state (p_name => 'P10_DATA', p_value => APEX_APPLICATION.g_x01) and pass this item into gantt chart
    The problem i am facing is that even though i see that the value of P10_DATA is populated with all the data during debugging, upon opening session and checking the item's value, it displays null !!!
    Note:For data with less than 32k, Gantt chart loads correctly and the item's value gets saved.
    Anyine please help me with this..
    Regards,
    Uday

  • Adf gantt chart: how to drag the task bar to another date

    hi all,
    how can I drag the task bar to another date in ADF Gantt Chart.
    do I need coding(like handler DataChangeEvent in dataChangeListener),
    or just set some properties.
    thank you for your help !
    zqh

    We are unable to drag the gantt bars in our application. Initially this used to work fine and we used to get a call back for the action type TIME_CHANGED in the data change event. But now neither we are getting handle around the bars for expanding/collapsing them nor we are getting any callback for this event.
    Looks like if the Edit feature is added in the featuresoff attribute of gantt then the gantt becomes un-interactive. Is there a way by which we can remove the Edit menu but still be able to drag/expand/collapse the task bars?
    Edited by: 907043 on Jun 25, 2012 2:45 AM

  • Resource details are not getting displayed in gantt chart -- R12 instance

    Hi All,
    we are working on a scenarior in R12 instance.
    when we run a resource constraint plan and navigate to Gantt chart the complete application is getting hanged and it is not Displaying any resource details.
    Before 2 days we were able to view the Gantt chart and resource details were populating properly.
    Resource Avalability and usage is correct.
    Thanks,
    Vasudha

    Hi
    In R12 Gantt chart is enhanced to show resource gantt in 3 different view. Res units view,resource hours view and res availability view.
    Please do the following and see if it works.
    On work bench go to Tools , preferences > set gantt chart preferences. even if u want to leave them as default, uncheck something save., and check again and save.
    Let me know if it works.
    Tnx
    Partha

  • Problems with BusinessGraphics Gantt Chart: WebDynpro 7.1 SP3

    Hi,
    i tried the BusinessGraphics Gantt Chart and went through the Code Example for Displaying a Gantt Chart on:
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/1cd93f5e0f9015e10000000a155106/content.htm
    Unfortunately my gantt does not look and behave like it should:
    1)  The bars are only small sqares in the middle of one day. I use the same data as in the sample, so the bars should be a couple of days long
    2) I added an action, added an EventID to the series and to the point, mapped the parameters. When clicking a point a roundtrip is done. I write a success message with the eventID but often the Gantt Picture is a broken image after this (small red cross).
    3) The tooltip of the point is not shown in the chart when pointing on the square
    Can anybody help, please?
    Thanks
    Frank

    Thanks a lot! This solved one of three problems. The trick is that you can set the marker for the points (without any effect) and for the series (with effect).
    The tooltip shows up now, too. No idea why now and not before...

Maybe you are looking for

  • Maintenance/turnaround Projects

    Dear All I'm working on complex maintenance/turnaroung project with massive number of activities, the problem is if i assign maintenance order to wbs or subnetwork then I can't use the full functionalities of PS like planning board functionalities, p

  • Process Order Creation/Modification BADI

    Hi all, I'm just trying to send standard LOIPRO idoc when a process order is saved on COR1 / COR2 transactions. First of all I've decided to do it via user-exit but I've seen that the order number (AUFNR) is not determinated yet, so finally I'm doing

  • Payment run parameters LOG - who and when deleted parameters ?

    Dear experts, could You please advise how to find a log which could show who and when deleted/changed payment run parameters ? thanks with regards Michał Szuman

  • Multi Language Solution (not by use of "Translate Application")

    Hi All, I try to implement a "multi language" functionality into my APEX Application but want to avoid the "Translate Application" method. As I'm not very keen in JavaScript and PL/SQL Coding, I need your help. What I want to do: I have a table tbl_l

  • GET PERNR thows to end Of Selection

    Hi i am new to the HR-ABAP I am writing one custoized Payslip Z program.  i have used Get Prnr macro.  However, it does not populate the PERNR structure and the related infotypes. Can someone help me where i am missing. I used appropriate LDB in Prog