voyent
[D2DFaceletViewHandler] Problem in renderResponse: replacement  XML
Forum Index -> General Help
Author Message
Andreh

Joined: 11/Dec/2006 00:00:00
Messages: 33
Offline


I'm getting started with IceFaces, and I'm creating a little project here...

But I get this stacktrace, Does someone have an idea of what could It be?
=/

Thanks!

Code:
15:01:43,328 ERROR [D2DFaceletViewHandler] Problem in renderResponse: replacement
 java.lang.NullPointerException: replacement
 	at java.util.regex.Matcher.replaceFirst(Unknown Source)
 	at java.lang.String.replaceFirst(Unknown Source)
 	at com.icesoft.faces.facelets.D2DFaceletViewHandler.getRenderedViewId(D2DFaceletViewHandler.java:231)
 	at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:245)
 	at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:149)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
 	at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:390)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 	at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688)
 	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
 	at org.apache.jsp.index_jsp._jspService(index_jsp.java:49)
 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 	at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
 	at java.lang.Thread.run(Unknown Source)
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi,

It looks like a problem parsing the JSF page. Could you post that?

Thanks,
Philip

.
manfred_berry

Joined: 14/Dec/2006 00:00:00
Messages: 3
Offline


I'm having the same problem.

Anyone and idea?
manfred_berry

Joined: 14/Dec/2006 00:00:00
Messages: 3
Offline


Ok. figured it out.

The context paremeter for the xhtml file ending was missing in the web.xml file.
This seems a bug in the "ICEfaces integration for MyEclipse Enterprise Workbench v5.x" as this is supposed to go in there directly when using this plugin.
Anyway. Just add this to you web.xml file and you should be ok:

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
Andreh

Joined: 11/Dec/2006 00:00:00
Messages: 33
Offline


but, I've already tried to put this in the web.xml...

I noticed that when I comment this part, I don't get that Exception above...
any idea of what could it be?
Code:
 <application>
 <view-handler>
 com.icesoft.faces.facelets.D2DFaceletViewHandler
 </view-handler>
 </application>


and I use Eclipse WTP with the IceFaces plugin, so is there a bug on the plugin?

thanks!
manfred_berry

Joined: 14/Dec/2006 00:00:00
Messages: 3
Offline


ups sorry. I put in the wrong contex-parameter in my previous post.
(copy/paste error)

It's:
Code:
 <context-param>
 	<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 	<param-value>.xhtml</param-value>
 </context-param>
 


change the param-value to the facelets file ending you are using, if it's not the default .xhtml
muralib12

Joined: 03/May/2010 00:00:00
Messages: 5
Offline


facing the same problem: got following Exception....

Code:
 java.lang.NullPointerException
 	com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:267)
 	com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:158)
 	com.icesoft.faces.context.BridgeFacesContext$SwitchViewHandler.renderView(BridgeFacesContext.java:792)
 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
 	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 	com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:51)
 	com.icesoft.faces.context.View$2$1.respond(View.java:80)
 	com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:233)
 	com.icesoft.faces.context.View$2.serve(View.java:114)
 	com.icesoft.faces.context.View.servePage(View.java:186)
 	com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:111)
 	com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:43)
 	com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:181)
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:55)
 	com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:48)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:55)
 	com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:92)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:55)
 	com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:183)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
 	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 


faces-config.xml
Code:
<?xml version="1.0"?>
 <!DOCTYPE faces-config PUBLIC
   "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
   "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
 
 <faces-config>
 	<application>
 		<!-- Enables Facelets -->
 		<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
 		
 		<view-handler>
 
 			com.icesoft.faces.facelets.D2DFaceletViewHandler
  
 		</view-handler>
 
 		<variable-resolver>
 
 			org.springframework.web.jsf.DelegatingVariableResolver
  
     	</variable-resolver>
 
 	</application>
 </faces-config>


using latest icefaces trunk files and spring webflow-2.0.3
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team