1 Reply Latest reply: Aug 26, 2013 1:09 AM by Sébastien RSS

    ADF Calendar : java.lang.IllegalArgumentException

    Sébastien

      Hi,

       

      I am working on an ADF Calendar based on my own absence table. I have mapped the mandatory attributes into my View Object and dropped this view into an ADF Calendar.

       

      When I render ma page or change the current month of the calendar it raises an java.lang.IllegalArgumentException error but after that the calendar is well rendered with all my absences.

       

      Any suggestions on this issue?

       

      For information I used this two articles for my calendar:http://www.oracle.com/technetwork/developer-tools/jdev/calendar-091799.html

      - http://www.oracle.com/technetwork/developer-tools/jdev/calendar-091799.html

      - http://www.gebs.ro/blog/oracle/oracle-adf-calendar-step-by-step-implementation/

       

      Regards,

       

      Sébastien

       

      <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: java.lang.IllegalArgumentException
      java.lang.IllegalArgumentException
          at java.sql.Date.valueOf(Date.java:138)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:114)
          at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:870)
          at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:574)
          at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:351)
          at oracle.adf.model.binding.DCMethodParameterDef.resolveParameterValue(DCMethodParameterDef.java:225)
          at oracle.adf.model.binding.DCMethodParameter.resolveParameterValue(DCMethodParameter.java:57)
          at oracle.adf.model.binding.DCInvokeMethod.fetchAndSaveParameterValues(DCInvokeMethod.java:325)
          at oracle.adf.model.binding.DCInvokeMethod.fetchParameterValues(DCInvokeMethod.java:303)
          at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1536)
          at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
          at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
          at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
          at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
          at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
          at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding.executeCalendarActionBinding(FacesCtrlCalendarBinding.java:344)
          at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel._getActvitiesListMap(FacesCtrlCalendarBinding.java:748)
          at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel.getTimeActivities(FacesCtrlCalendarBinding.java:500)
          at oracle.adfinternal.view.faces.renderkit.rich.AbstractCalendarRenderer.getOrganizedActivities(AbstractCalendarRenderer.java:1477)
          at oracle.adfinternal.view.faces.renderkit.rich.CalendarMonthRenderer._renderMonthGrid(CalendarMonthRenderer.java:191)
          at oracle.adfinternal.view.faces.renderkit.rich.CalendarMonthRenderer.encodeAll(CalendarMonthRenderer.java:114)
          at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1693)
          at oracle.adfinternal.view.faces.renderkit.rich.CalendarRenderer.encodeAll(CalendarRenderer.java:446)
          at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1431)
          at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
          at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
          at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
          at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2778)
          at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
          [...]
          at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
          at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
          at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)