5 Replies Latest reply on Dec 16, 2010 1:37 AM by zhangyy

    a question about Multi-level directory

    zhangyy

      hi,when i use jsfunit to test,throws the following exception

      testInitialPageErrornull

       

      java.lang.NullPointerException
      at org.jboss.jsfunit.framework.FaceletsErrorPageException.isFaceletsErrorPage(FaceletsErrorPageException.java:55)
      at org.jboss.jsfunit.framework.FaceletsErrorPageDetector.afterRequest(FaceletsErrorPageDetector.java:39)
      at org.jboss.jsfunit.framework.JSFUnitWebConnection.notifyListenersAfter(JSFUnitWebConnection.java:101)
      at org.jboss.jsfunit.framework.JSFUnitWebConnection.getResponse(JSFUnitWebConnection.java:83)
      at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1405)
      at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1324)
      at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
      at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:369)
      at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354)
      at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)
      at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)
      at org.jboss.jsfunit.jsfsession.JSFSession.<init>(JSFSession.java:81)
      at org.jboss.jsfunit.jsfsession.JSFSession.<init>(JSFSession.java:58)
      at JSFUnitTest.setUp(JSFUnitTest.java:23)
      at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:155)
      at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:120)
      at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:94)
      at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:225)
      at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java:1)
      at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:102)
      at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:225)
      at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:1)
      at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
      at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:73)
      at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:225)
      at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java:1)
      at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

      my source:

      import java.io.IOException;
      import javax.faces.application.FacesMessage;
      import javax.faces.component.UIComponent;
      import junit.framework.Test;
      import junit.framework.TestSuite;
      import org.jboss.jsfunit.jsfsession.JSFClientSession;
      import org.jboss.jsfunit.jsfsession.JSFServerSession;
      import org.jboss.jsfunit.jsfsession.JSFSession;
      public class JSFUnitTest extends org.apache.cactus.ServletTestCase {
      private JSFClientSession client;
      private JSFServerSession server;
      /**
      * Start a JSFUnit session by getting the /index.faces page.
      */
      public void setUp() throws IOException {
      // Initial JSF request
      System.out.println("begin");
      JSFSession jsfSession = new JSFSession("/pages/proxy/listProxy.faces");
      System.out.println("jsfSession"+jsfSession);
      this.client = jsfSession.getJSFClientSession();
      System.out.println(client.getContentPage());
      this.server = jsfSession.getJSFServerSession();
      }
      public static Test suite() {
      System.out.println("begin1");
      return new TestSuite(JSFUnitTest.class);
      }

      import java.io.IOException;

       

      import javax.faces.application.FacesMessage;

      import javax.faces.component.UIComponent;

       

      import junit.framework.Test;

      import junit.framework.TestSuite;

       

      import org.jboss.jsfunit.jsfsession.JSFClientSession;

      import org.jboss.jsfunit.jsfsession.JSFServerSession;

      import org.jboss.jsfunit.jsfsession.JSFSession;

       

      public class JSFUnitTest extends org.apache.cactus.ServletTestCase {

      private JSFClientSession client;

      private JSFServerSession server;

       

      /**

      * Start a JSFUnit session by getting the /index.faces page.

      */

      public void setUp() throws IOException {

      // Initial JSF request

      System.out.println("begin");

      JSFSession jsfSession = new JSFSession("/pages/proxy/listProxy.faces"); // throw exception

      System.out.println("jsfSession"+jsfSession);

      this.client = jsfSession.getJSFClientSession();

      System.out.println(client.getContentPage());

      this.server = jsfSession.getJSFServerSession();

      }

       

      public static Test suite() {

      System.out.println("begin1");

      return new TestSuite(JSFUnitTest.class);

      }

      how to resolve?
      thanks
        • 1. Re: a question about Multi-level directory
          ssilvert

          You can get that error if there is a mismatch between versions of JSFUnit and HtmlUnit.  Check to make sure that you have all the correct versions of all your jars and that your classpath is clean.  The dependency list is on the Getting Started page.

           

          Also, there is a discussion about this error in this thread.

           

          Regards,

           

          Stan

          • 2. Re: a question about Multi-level directory
            zhangyy

            thanks for your help,i will try.

            • 3. Re: a question about Multi-level directory
              zhangyy

              thanks for your help,

              According to your offered method, I solved the above problem,but a new exception happened.

              test :

              500 Internal Server Error for http://localhost:8083/testjsf/pages/proxy/listProxy.faces

               

              com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 Internal Server Error for http://localhost:8083/testjsf/pages/proxy/listProxy.faces
              at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:531)
              at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308)
              at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:369)
              at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354)
              at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)
              at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)
              at org.jboss.jsfunit.jsfsession.JSFSession.<init>(JSFSession.java:81)
              at org.jboss.jsfunit.jsfsession.JSFSession.<init>(JSFSession.java:58)
              at JSFUnitTest.setUp(JSFUnitTest.java:23)
              at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
              at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
              at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
              at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
              at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
              at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
              at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
              at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
              at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
              at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
              at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
              at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
              at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
              at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
              at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

               

               

              my console

               

              2010-12-03 17:20:46.675::WARN:  EXCEPTION
              java.lang.IllegalStateException: No SessionHandler or SessionManager
              at org.mortbay.jetty.Request.getSession(Request.java:1022)
              at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:151)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:112)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:46.329::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:47.548::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:47.564::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:47,546 [-] [btpool0-2] ERROR StrictErrorReporter runtimeError: message=[The data necessary to complete this operation is not yet available.] sourceName=[http://localhost:8083/testjsf/js/libs/jquery/jquery.js] line=[19] lineSource=[null] lineOffset=[0]
              2010-12-03 17:20:47.970::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:47.986::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:47.986::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
              2010-12-03 17:20:47.01::WARN:  EXCEPTION
              java.lang.NullPointerException
              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)
              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)
              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)
              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)
              at java.util.AbstractMap.size(Unknown Source)
              at java.util.Collections$UnmodifiableMap.size(Unknown Source)
              at java.util.HashMap.<init>(Unknown Source)
              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)
              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)
              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)
              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:46.675::WARN:  EXCEPTION

              java.lang.IllegalStateException: No SessionHandler or SessionManager

              at org.mortbay.jetty.Request.getSession(Request.java:1022)

              at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:151)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:112)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:46.329::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:47.548::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:47.564::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:47,546 [-] [btpool0-2] ERROR StrictErrorReporter runtimeError: message=[The data necessary to complete this operation is not yet available.] sourceName=[http://localhost:8083/testjsf/js/libs/jquery/jquery.js] line=[19] lineSource=[null] lineOffset=[0]

              2010-12-03 17:20:47.970::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:47.986::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:47.986::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              2010-12-03 17:20:47.01::WARN:  EXCEPTION

              java.lang.NullPointerException

              at org.mortbay.jetty.HttpFields$1.hasMoreElements(HttpFields.java:227)

              at com.sun.faces.context.BaseContextMap$BaseIterator.hasNext(BaseContextMap.java:225)

              at com.sun.faces.context.BaseContextMap$BaseSet.size(BaseContextMap.java:150)

              at java.util.Collections$UnmodifiableCollection.size(Unknown Source)

              at java.util.AbstractMap.size(Unknown Source)

              at java.util.Collections$UnmodifiableMap.size(Unknown Source)

              at java.util.HashMap.<init>(Unknown Source)

              at org.jboss.jsfunit.context.JSFUnitExternalContext.<init>(JSFUnitExternalContext.java:97)

              at org.jboss.jsfunit.context.JSFUnitFacesContext.release(JSFUnitFacesContext.java:229)

              at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:126)

              at com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:346)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:735)

              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

              how to resolve?
              thanks

               

              • 4. Re: a question about Multi-level directory
                ssilvert

                I've never see that one before.  Maybe you are running into this problem?

                 

                http://jira.codehaus.org/browse/JETTY-1169

                 

                Stan

                • 5. Re: a question about Multi-level directory
                  zhangyy

                  Sorry for late reply, very grateful for your help

                  Sorry for late reply, very grateful for your help