1 Reply Latest reply on Mar 19, 2008 3:13 PM by Stan Silvert

    troubles with JSFClientSession

    foures adrien Newbie

      hi,

      I want to develop a simple test on a jsf page

      JSFClientSession client = new JSFClientSession("/page/public/loginPC.dme");

      i can't instanciate a JSFClientSession with a xhtml jsf page
      i get the following exception when reloading the cactus page :

      java.lang.NullPointerException
      12:33:12,515 ERROR [STDERR] at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:368)
      12:33:12,515 ERROR [STDERR] at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
      12:33:12,515 ERROR [STDERR] at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
      12:33:12,515 ERROR [STDERR] at org.jboss.jsfunit.facade.DOMUtil.convertToDomLevel2(DOMUtil.java:143)
      12:33:12,515 ERROR [STDERR] at org.jboss.jsfunit.facade.JSFClientSession.doWebRequest(JSFClientSession.java:189)
      12:33:12,515 ERROR [STDERR] at org.jboss.jsfunit.facade.JSFClientSession.doInitialRequest(JSFClientSession.java:122)
      12:33:12,515 ERROR [STDERR] at org.jboss.jsfunit.facade.JSFClientSession.(JSFClientSession.java:75)
      12:33:12,515 ERROR [STDERR] at fr.sigems.dme.test.JSFUnitTest.testLogin(JSFUnitTest.java:28)

      i have ever tried to remove the processing instruction line in loginPC.xhtml, as proposed in JSFUNIT-70

      but i got an exception when executing this page with normal application
      can somebody help me?