5 Replies Latest reply on May 11, 2009 8:30 AM by Nicklas Karlsson

    Problem using currentDate

    Jubril Adisa Novice

      I am trying to use currentDate,


      @In CurrentDate currentDate


      But the page is not loading, Is there something i am doing wrong?

        • 1. Re: Problem using currentDate
          Nicklas Karlsson Master

          You have a CurrentDate class named currentDate somewhere? Stacktrace?

          • 2. Re: Problem using currentDate
            Jubril Adisa Novice

            No i don't have another CurrentDate Class defined, Stachtrace is




            Caused by: java.lang.IllegalArgumentException: could not set field value: test.currentDate
                 at org.jboss.seam.Component.setFieldValue(Component.java:1894)
                 at org.jboss.seam.Component.access$600(Component.java:127)
                 at org.jboss.seam.Component$BijectedField.set(Component.java:2902)
                 at org.jboss.seam.Component.injectAttributes(Component.java:1703)
                 at org.jboss.seam.Component.inject(Component.java:1521)
                 at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                 at com.brefftjobs.action.Test_$$_javassist_3.getResumeText(Test_$$_javassist_3.java)
                 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:585)
                 at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                 at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
                 at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                 at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 


            • 3. Re: Problem using currentDate
              Arbi Sookazian Master

              Is CurrentDate your own custom class?  Does it have the @Name annotation?


              show the CurrentDate code.

              • 4. Re: Problem using currentDate
                Jubril Adisa Novice

                CurrentDate is a component bundled with Seam and not my own code

                • 5. Re: Problem using currentDate
                  Nicklas Karlsson Master

                  Hmmm, looks like it probably gets injected but there is a problem outjecting the value back. Wonder why it's trying to outject, some @Unwrap-thingie?