Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
JSF
NullPointerException in AutoScrollPhaseListener
shahid hussain
Greenhorn
Posts: 14
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi sir i have problem
SEVERE: Exception in PhaseListener RESTORE_VIEW 1 afterPhase
java.lang.NullPointerException
when i try to give and file path
for example my
jsp
file is MyJsp.jsp
when i execute it by
http://localhsot:8080/main/MyJsp.jsf
exceptio accures
SEVERE: Exception in PhaseListener RESTORE_VIEW 1 afterPhase java.lang.NullPointerException at org.apache.myfaces.renderkit.html.util.AutoScrollPhaseListener.afterPhase(AutoScrollPhaseListener.java:52) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:92) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:99) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at tyn.cm.filter.LoginFilter.doFilter(LoginFilter.java:191) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Jan 14, 2011 11:37:02 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.UnsupportedOperationException at javax.faces.context.FacesContext.getELContext(FacesContext.java:137)
my web.xml is
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <!-- a --> <servlet> <servlet-name>dwr-invoker</servlet-name> <!-- <display-name>DWR Servlet</display-name>--> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet> <servlet-name>FileUploader</servlet-name> <servlet-class>tyn.cm.servlet.FileUploader</servlet-class> </servlet> <!-- richfaces filter --> <filter> <display-name>RichFaces Filter</display-name> <filter-name>richfaces</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>richfaces</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <!-- Ajax4JSF filter as given in the 1.1.1 README file --> <filter> <display-name>Ajax4jsf Filter</display-name> <filter-name>ajax4jsf</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>ajax4jsf</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <filter> <filter-name>ExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> <init-param> <param-name>uploadMaxFileSize</param-name> <param-value>100m</param-value> </init-param> <init-param> <param-name>uploadThresholdSize</param-name> <param-value>100k</param-value> </init-param> </filter> <filter> <filter-name>loginFilter</filter-name> <filter-class>tyn.cm.filter.LoginFilter</filter-class> <init-param> <param-name>loginPage</param-name> <param-value>/login.jsp</param-value> </init-param> </filter> <servlet-mapping> <servlet-name>FileUploader</servlet-name> <url-pattern>/Upload</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> <!-- tree --> <filter-mapping> <filter-name>ExtensionsFilter</filter-name> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>ExtensionsFilter</filter-name> <url-pattern>*.jsf</url-pattern> </filter-mapping> <filter-mapping> <filter-name>loginFilter</filter-name> <url-pattern>*.jsf</url-pattern> <!-- 181 209 --> </filter-mapping> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>validate_email</servlet-name> <servlet-class>tyn.cm.servlet.ValidateEmail</servlet-class> </servlet> <servlet> <servlet-name>performSurvey</servlet-name> <servlet-class>tyn.cm.servlet.PerformSurvey</servlet-class> </servlet> <servlet> <servlet-name>couponSubscription</servlet-name> <servlet-class>tyn.cm.servlet.CouponSubscription</servlet-class> </servlet> <servlet> <servlet-name>doDirectPayment</servlet-name> <servlet-class>tyn.cm.servlet.DoDirectPayment</servlet-class> </servlet> <servlet> <servlet-name>MobileCouponRedirector</servlet-name> <servlet-class>tyn.cm.servlet.MobileCouponRedirector</servlet-class> </servlet> <servlet> <servlet-name>twoWayCouponGateway</servlet-name> <servlet-class>tyn.cm.servlet.TwoWayCouponGateway</servlet-class> </servlet> <servlet> <servlet-name>init</servlet-name> <servlet-class>net.sourceforge.wurfl.wurflapi.WurflServletInit</servlet-class> <!-- In case you want to provide your own custom servlet to Initialize the WURFL, modify and rebuild the Init.java servlet in WEB-INF/classes. Also replace the line above with the one here. <servlet-class>Init</servlet-class> --> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>signup</servlet-name> <servlet-class>tyn.cm.servlet.Signup</servlet-class> </servlet> <servlet> <servlet-name>fetchProfitability</servlet-name> <servlet-class>tyn.cm.servlet.FetchProfitability</servlet-class> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>doDirectPayment</servlet-name> <url-pattern>/doDirectPayment</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>validate_email</servlet-name> <url-pattern>/validate_email</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>performSurvey</servlet-name> <url-pattern>/survey</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>couponSubscription</servlet-name> <url-pattern>/couponSubscription</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>MobileCouponRedirector</servlet-name> <url-pattern>/c</url-pattern> <!-- should be very short name i.e. 'c' stands for 'coupon' --> </servlet-mapping> <servlet-mapping> <servlet-name>twoWayCouponGateway</servlet-name> <url-pattern>/twoWayCouponGateway</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>signup</servlet-name> <url-pattern>/signup</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>fetchProfitability</servlet-name> <url-pattern>/fetchProfitability</url-pattern> </servlet-mapping> <session-config> <session-timeout>180</session-timeout> </session-config> <!-- b --> <!-- <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> --> <!-- <filter-mapping>--> <!-- <filter-name>loginFilter</filter-name>--> <!-- <url-pattern>*.html</url-pattern>--> <!-- </filter-mapping>--> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </context-param> <!-- <error-page> <error-code>500</error-code> <location>/500.jsf</location> </error-page> <error-page> <error-code>404</error-code> <location>/404.jsf</location> </error-page> --> <!-- <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> --> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> <login-config> <auth-method>BASIC</auth-method> </login-config> <!-- <security-constraint> <web-resource-collection> <web-resource-name>Protected Context</web-resource-name> <url-pattern>/home.jsf</url-pattern> <url-pattern>/login.jsf</url-pattern> <url-pattern>/login2.jsf</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> --> </web-app>
any help??? please!!!
Abbasi
Every plan is a little cooler if you have a blimp. And a tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
javax.faces.application.ViewExpiredException
How to upload file in jsf using richfaces?
s:excelExport Exception in PhaseListener
richfaces and problems with navigation
Having issues with Tomcat 6.x
More...