Someone has already opened a bug/feature request for this
see:  Bugs item #1400778 Internal error cloning object exception unhelpful.

.....


Wow your also quick and have already fixed it. 
However with a error in the sentence:

May be you model object does not implement Serializable. 
May be your model object does not implement Serializable. 


cheers Thijs




Juergen Donnerstag wrote:
But I think we should still improve the error message.
Why is it a RuntimeException and not WicketRuntimeException?
And may we can add to the error message something like "... May be you
model object is not serializable? object=" + value.toString()

Juergen

On 1/9/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
  
OK, Igor spotted the thing that is not working...

When it still doesn't work with the Serializable, could you /then/
file a bug report?

Martijn


On 1/9/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
    
There has been some work on session management, so I guess this may be
considered to be a bug. Could you please file a bug report?

Thanks,

Martijn


On 1/9/06, Crash_neo <[EMAIL PROTECTED]> wrote:
      
I'm having trouble with a very simple file.
For the record this works on wicket 1.1
I am now using wicket head.

If you run the attached files on HEAD you get this Error:


java.lang.RuntimeException: Internal error cloning object
        wicket.Session.setAttribute(Session.java:838)
        wicket.Session.update(Session.java:892)

wicket.protocol.http.WebSession.update(WebSession.java:282)
        wicket.RequestCycle.cleanUp(RequestCycle.java:797)
        wicket.RequestCycle.steps(RequestCycle.java:1067)
        wicket.RequestCycle.request(RequestCycle.java:534)

wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

on a tomcat 5.5.9 webserver

If you remove the FORM it works fine.

It breaks on
line 833:    new
ObjectOutputStream(out).writeObject(value);


Is this an error occurred by the 1.1 -> 1.2 migration,  thus am I doing
something wrong?
Or is it really an error?

Cheers  Thijs









 UserId: Message goes here
 username: Message goes here
 UserId:
 UserName:

import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;
import wicket.markup.html.form.Form;
import wicket.markup.html.form.TextField;
import wicket.model.PropertyModel;

public class Index2 extends WebPage{

  public Index2(){
    User user = new User();
    add(new Label("userId", new PropertyModel(user, "userId")));
    add(new Label("userName", new PropertyModel(user, "userName")));
    add(new UserForm("userInputForm", user));
  }
  private final class UserForm extends Form
  {
    public UserForm(String id, User user)
    {
      super(id);
      add(new TextField("userIdInput", new PropertyModel(user, "userId")));
      add(new TextField("userNameInput", new PropertyModel(user,
"userName")));
    }
    protected void onSubmit(){}
  }

  private class User{
    int userId = 200;
    String userName = "Thijs";
    public User(){}

    public int getUserId() {  return userId;  }

    public void setUserId(int userId) {  this.userId = userId;  }

    public String getUserName() {   return userName;  }

    public void setUserName(String userName) {  this.userName = userName;  }

  }

}


        
--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1

      
--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

    


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
  

Reply via email to