6 Replies Latest reply on Oct 8, 2009 8:26 PM by Sonya Ling

    Got setAttribute: Non-serializable attribute error when new

    Sonya Ling Newbie

      Hi:
      I am new to JSFunit. I got setAttribute: Non-serializable attribute error as the following trace:
      java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1293) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1254) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
      at org.jboss.jsfunit.framework.WebConversationFactory.makeWebClient(WebConversationFactory.java:140)
      at org.jboss.jsfunit.framework.WebClientSpec.(WebClientSpec.java:116)
      at org.jboss.jsfunit.framework.WebClientSpec.(WebClientSpec.java:94)
      at org.jboss.jsfunit.framework.WebClientSpec.(WebClientSpec.java:78)
      at org.jboss.jsfunit.jsfsession.JSFSession.(JSFSession.java:58)
      at com.ceg.panda.test.web.jsfsession.JSFDemoTest.setUp(JSFDemoTest.java:44)

      JSFSession jsfSession = new JSFSession("/jsp/login.jsf"); on that line. I verified that it is a valid URL. I used jsfunitwar ant task to package. jsfunitwar does add jars and modify web.xml.

      I would appreciate if anybody can help me overcome this hurdle. Thanks.