You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ziberfrenico <lu...@gmail.com> on 2010/12/16 12:02:50 UTC
Funny exception with StringBuffer with jsf
Hi, I am really freaking out with an exception i couldn't solve during this 4
last days,and I must develop the project that will change the world. I'm
using maven + myfaces + tomahawk + spring. This is the exception i get when
de application is run with jetty maven plugin:
com.sun.facelets.FaceletViewHandler handleRenderException
GRAVE: Error Rendering View[null]
java.lang.NullPointerException
at java.lang.StringBuffer.(StringBuffer.java:103)
at
com.sun.facelets.FaceletViewHandler.getRenderedViewId(FaceletViewHandler.java:763)
at
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:505)
at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
at
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
at
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:286)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
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:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Obviously i tried to search for a solution on Google but i did not suceed.
I will apreciatte a lot a solution.
PD: I attach pom.xml and web.xml. Oops,by the way,¡m on mac. Sorry for my
english,i'm working on it.
Thanks in advance.
pom.xml:
4.0.0
web
socialdoo
war
1.0.0-RELEASE
socialdoo: organiza y comparte tu vida
http://socialdoo.com
net.java.dev.ajax4jsf
ajax4jsf
1.0.6
org.springframework
spring
2.5.6
jar
org.springframework
spring-aspects
2.5.6
jar
org.springframework.security
spring-security-core-tiger
2.0.6.RELEASE
org.springframework
spring-webmvc
2.5.6
org.springframework
spring-context
2.0.5
org.springframework
spring-web
2.5.3
com.sun.facelets
jsf-facelets
1.1.14
javax.el
el-api
2.2
provided
org.apache.myfaces.core
myfaces-impl
2.0.2
org.apache.myfaces.core
myfaces-api
2.0.2
org.apache.myfaces.test
myfaces-test20
1.0.0
javax.servlet
servlet-api
2.5
jar
org.apache.myfaces.tomahawk
tomahawk20
1.1.10
maven-taglib
maven-taglib-plugin
1.4.2
plugin
commons-io
commons-io
1.3.2
jar
commons-discovery
commons-discovery
0.4
jar
commons-lang
commons-lang
2.4
jar
xerces
xercesImpl
2.9.1
cglib
cglib-nodep
2.2
jar
postgresql
postgresql
9.0-801.jdbc4
log4j
log4j
1.2.16
javax.jms
jms
com.sun.jdmk
jmxtools
com.sun.jmx
jmxri
javax.mail
mail
1.4
java.net
http://download.java.net/maven/1
legacy
java.net
http://download.java.net/maven/2
legacy
jboss.org
jboss.org
http://repository.jboss.com/maven2
org.apache.maven.plugins
maven-compiler-plugin
1.5
1.5
maven-eclipse-plugin
2.5
2.0
org.mortbay.jetty
maven-jetty-plugin
true
8
${basedir}/target/socialdoo.war
18080
60000
org.mortbay.jetty.Request.maxFormContentSize
500000
socialdoo
web.xml:
<?xml version="1.0"?>
com.sun.faces.expressionFactory
com.sun.el.ExpressionFactoryImpl
MyFacesExtensionsFilter
org.apache.myfaces.webapp.filter.ExtensionsFilter
maxFileSize
20m
Ajax4jsf Filter
ajax4jsf
org.ajax4jsf.Filter
forceparser
false
MyFacesExtensionsFilter
*.jsf
MyFacesExtensionsFilter
/faces/myFacesExtensionResource/*
extensionsFilter
org.apache.myfaces.webapp.filter.ExtensionsFilter
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
uploadMaxFileSize
100k
Set the threshold size - files below this limit are stored
in memory, files above this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
uploadThresholdSize
100k
extensionsFilter
*.jsf
extensionsFilter
/faces/*
webAppRootKey
uniqueAppRootNamee
org.ajax4jsf.VIEW_HANDLERS
com.sun.facelets.FaceletViewHandler
javax.faces.DEFAULT_SUFFIX
.xhtml
Faces Servlet
javax.faces.webapp.FacesServlet
1
Faces Servlet
*.faces
Faces Servlet
/faces/*
30
filter.MySessionListener
javax.faces.STATE_SAVING_METHOD
server
facelets.DEVELOPMENT
true
This parameter tells MyFaces if javascript code should be
allowed in the rendered HTML output. If javascript is
allowed, command_link anchors will have javascript code that
submits the corresponding form. If javascript is not
allowed, the state saving info and nested parameters will be
added as url parameters. Default: "true"
org.apache.myfaces.ALLOW_JAVASCRIPT
true
> If true, a javascript function will be rendered that is
able to > restore the > former vertical scroll on every
request. Convenient feature if > you have pages > with long
lists and you do not want the browser page to always > jump
to the top > if you trigger a link or button action that
stays on the same > page. > Default: "false" >
org.apache.myfaces.AUTO_SCROLL
true
ajax4jsf
Faces Servlet
REQUEST
FORWARD
INCLUDE
MyFacesExtensionsFilter
Faces Servlet
MyFacesExtensionsFilter
*.faces
MyFacesExtensionsFilter
*.jsf
MyFacesExtensionsFilter
*.jsp
MyFacesExtensionsFilter
/faces/*
wsdl
text/xml
xsd
text/xml
index.faces
PLEASE HELP :-((:working:
--
View this message in context: http://old.nabble.com/Funny-exception-with-StringBuffer-with-jsf-tp30471637p30471637.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.