You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Thibaut Gadiolet <th...@gmail.com> on 2009/06/01 23:04:01 UTC
@SessionState error
Hi folks,
As soon as I put the annotation @SessionState in my application, I get an
error.
*here is a sample of code from home.java*
* @SessionState
private String userName;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}*
*here is an extract from home.tml*
*You are logged with loggin: ${userName}*
*Here is the error:*
*Render queue error in Expansion[PropBinding[expansion Home(userName)]]:
Error invoking constructor java.lang.String(byte[], int, int, int) (at
String.java:338) (for service 'ApplicationStateManager'): No service
implements the interface [B.*
I spent my afternoon on this issue, I do not understand this error, No
service implements the interface [B. ???
I would be gratefull if someone could help me on this.
Thank you,
Thibaut
Re: @SessionState error
Posted by Thibaut Gadiolet <th...@gmail.com>.
Thank you so much ! It works perfectly right now !
On Mon, Jun 1, 2009 at 5:06 PM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> Em Mon, 01 Jun 2009 18:04:01 -0300, Thibaut Gadiolet <
> thibaut.gadiolet@gmail.com> escreveu:
>
> Hi folks,
>>
>
> Hi!
>
> @SessionState
>> private String userName;
>>
>
> Use @SessionState(create = false). This prevents Tapestry of trying to
> instantiate a String when userName wasn't set yet.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: @SessionState error
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 01 Jun 2009 18:04:01 -0300, Thibaut Gadiolet
<th...@gmail.com> escreveu:
> Hi folks,
Hi!
> @SessionState
> private String userName;
Use @SessionState(create = false). This prevents Tapestry of trying to
instantiate a String when userName wasn't set yet.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: @SessionState error
Posted by Howard Lewis Ship <hl...@gmail.com>.
@SessionState is meant for data holding POJOs, not simple types.
On Mon, Jun 1, 2009 at 2:04 PM, Thibaut Gadiolet
<th...@gmail.com> wrote:
> Hi folks,
>
> As soon as I put the annotation @SessionState in my application, I get an
> error.
>
> *here is a sample of code from home.java*
>
> * @SessionState
> private String userName;
>
> public String getUserName() {
> return userName;
> }
>
> public void setUserName(String userName) {
> this.userName = userName;
> }*
>
> *here is an extract from home.tml*
>
> *You are logged with loggin: ${userName}*
>
>
> *Here is the error:*
>
> *Render queue error in Expansion[PropBinding[expansion Home(userName)]]:
> Error invoking constructor java.lang.String(byte[], int, int, int) (at
> String.java:338) (for service 'ApplicationStateManager'): No service
> implements the interface [B.*
>
> I spent my afternoon on this issue, I do not understand this error, No
> service implements the interface [B. ???
>
> I would be gratefull if someone could help me on this.
>
> Thank you,
>
> Thibaut
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
Director of Open Source Technology at Formos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org