You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sam Karl <sa...@gmail.com> on 2008/02/08 20:28:53 UTC

What cd be wrong?

Hi,

        I'm new to struts and portlets. I tried out the this tutorial as a
start.

         http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html

After implementing all functionalities described in that tutorial, the
"editBookMark" option doesn't work.  I get the following exception when I
try to edit the newly added link

javax.portlet.PortletException: Error executing action editBookmark

Caused by: java.lang.IllegalArgumentException: Null object: Preference key



My EditBookmarkAction class does implement PortletPreferencesAware and has a
setter for the preference and everything. So I'm guessing the reason is the
edit action class gets called before it loads the jsp if that makes sense.
But I'm not sure how to fix it :) Or is it a different issue? Could any one
shed some light on that?


Thanks,
Sam

Re: What cd be wrong?

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
BTW: What timestamp has your struts2-portlet jar snapshot? I made a
change on the 7'th of january that you may not have which are causing
the error. Have you tried deleting your local snapshot version from
the repository? If you have a maven proxy repository, remember to
delete it there as well.

Nils-H

On Feb 11, 2008 10:41 PM, Nils-Helge Garli Hegvik <ni...@gmail.com> wrote:
> That is odd... I can't reproduce the error... What are the exact steps
> you're going through to produce this error? I'm trying with the
> downloaded source.
>
> Nils-H
>
>
> On Feb 11, 2008 5:43 PM, Sam Karl <sa...@gmail.com> wrote:
> > Yes. I do have that hidden field oldName. I tried with the downloaded prj
> > too. Didn't work for me. I'm not sure what I'm missing. Thx. for the reply.
> >
> > Sam
> >
> >
> > On Feb 9, 2008 12:26 PM, Nils-Helge Garli Hegvik <ni...@gmail.com> wrote:
> >
> > > Have you remembered the "oldName" hidden field in the edit form? And
> > > have you tried downloading the source for the tutorial and see if you
> > > get the same behaviour with it?
> > >
> > > Nils-H
> > >
> > > On Feb 8, 2008 8:28 PM, Sam Karl <sa...@gmail.com> wrote:
> > > > Hi,
> > > >
> > > >         I'm new to struts and portlets. I tried out the this tutorial as
> > > a
> > > > start.
> > > >
> > > >
> > > http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html
> > > >
> > > > After implementing all functionalities described in that tutorial, the
> > > > "editBookMark" option doesn't work.  I get the following exception when
> > > I
> > > > try to edit the newly added link
> > > >
> > > > javax.portlet.PortletException: Error executing action editBookmark
> > > >
> > > > Caused by: java.lang.IllegalArgumentException: Null object: Preference
> > > key
> > > >
> > > >
> > > >
> > > > My EditBookmarkAction class does implement PortletPreferencesAware and
> > > has a
> > > > setter for the preference and everything. So I'm guessing the reason is
> > > the
> > > > edit action class gets called before it loads the jsp if that makes
> > > sense.
> > > > But I'm not sure how to fix it :) Or is it a different issue? Could any
> > > one
> > > > shed some light on that?
> > > >
> > > >
> > > > Thanks,
> > > > Sam
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: What cd be wrong?

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
That is odd... I can't reproduce the error... What are the exact steps
you're going through to produce this error? I'm trying with the
downloaded source.

Nils-H

On Feb 11, 2008 5:43 PM, Sam Karl <sa...@gmail.com> wrote:
> Yes. I do have that hidden field oldName. I tried with the downloaded prj
> too. Didn't work for me. I'm not sure what I'm missing. Thx. for the reply.
>
> Sam
>
>
> On Feb 9, 2008 12:26 PM, Nils-Helge Garli Hegvik <ni...@gmail.com> wrote:
>
> > Have you remembered the "oldName" hidden field in the edit form? And
> > have you tried downloading the source for the tutorial and see if you
> > get the same behaviour with it?
> >
> > Nils-H
> >
> > On Feb 8, 2008 8:28 PM, Sam Karl <sa...@gmail.com> wrote:
> > > Hi,
> > >
> > >         I'm new to struts and portlets. I tried out the this tutorial as
> > a
> > > start.
> > >
> > >
> > http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html
> > >
> > > After implementing all functionalities described in that tutorial, the
> > > "editBookMark" option doesn't work.  I get the following exception when
> > I
> > > try to edit the newly added link
> > >
> > > javax.portlet.PortletException: Error executing action editBookmark
> > >
> > > Caused by: java.lang.IllegalArgumentException: Null object: Preference
> > key
> > >
> > >
> > >
> > > My EditBookmarkAction class does implement PortletPreferencesAware and
> > has a
> > > setter for the preference and everything. So I'm guessing the reason is
> > the
> > > edit action class gets called before it loads the jsp if that makes
> > sense.
> > > But I'm not sure how to fix it :) Or is it a different issue? Could any
> > one
> > > shed some light on that?
> > >
> > >
> > > Thanks,
> > > Sam
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: What cd be wrong?

Posted by Sam Karl <sa...@gmail.com>.
Yes. I do have that hidden field oldName. I tried with the downloaded prj
too. Didn't work for me. I'm not sure what I'm missing. Thx. for the reply.

Sam

On Feb 9, 2008 12:26 PM, Nils-Helge Garli Hegvik <ni...@gmail.com> wrote:

> Have you remembered the "oldName" hidden field in the edit form? And
> have you tried downloading the source for the tutorial and see if you
> get the same behaviour with it?
>
> Nils-H
>
> On Feb 8, 2008 8:28 PM, Sam Karl <sa...@gmail.com> wrote:
> > Hi,
> >
> >         I'm new to struts and portlets. I tried out the this tutorial as
> a
> > start.
> >
> >
> http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html
> >
> > After implementing all functionalities described in that tutorial, the
> > "editBookMark" option doesn't work.  I get the following exception when
> I
> > try to edit the newly added link
> >
> > javax.portlet.PortletException: Error executing action editBookmark
> >
> > Caused by: java.lang.IllegalArgumentException: Null object: Preference
> key
> >
> >
> >
> > My EditBookmarkAction class does implement PortletPreferencesAware and
> has a
> > setter for the preference and everything. So I'm guessing the reason is
> the
> > edit action class gets called before it loads the jsp if that makes
> sense.
> > But I'm not sure how to fix it :) Or is it a different issue? Could any
> one
> > shed some light on that?
> >
> >
> > Thanks,
> > Sam
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: What cd be wrong?

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Have you remembered the "oldName" hidden field in the edit form? And
have you tried downloading the source for the tutorial and see if you
get the same behaviour with it?

Nils-H

On Feb 8, 2008 8:28 PM, Sam Karl <sa...@gmail.com> wrote:
> Hi,
>
>         I'm new to struts and portlets. I tried out the this tutorial as a
> start.
>
>          http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html
>
> After implementing all functionalities described in that tutorial, the
> "editBookMark" option doesn't work.  I get the following exception when I
> try to edit the newly added link
>
> javax.portlet.PortletException: Error executing action editBookmark
>
> Caused by: java.lang.IllegalArgumentException: Null object: Preference key
>
>
>
> My EditBookmarkAction class does implement PortletPreferencesAware and has a
> setter for the preference and everything. So I'm guessing the reason is the
> edit action class gets called before it loads the jsp if that makes sense.
> But I'm not sure how to fix it :) Or is it a different issue? Could any one
> shed some light on that?
>
>
> Thanks,
> Sam
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org