No I haven't customized exception reporting. It looks like the error went away when I switched my inheritance model.

It happens when I have the following hierarchy

AbstractCMSComponent extends BaseComponent (injects ASOs used by many components)
AbstractNewsComponent extends AbstractCMSComponent
ArticleLinker extends AbstractNewsComponent
Article extends AbstractNewsComponent

And then I have within Article.jwc a reference to ArticleLinker.


The exception went away when I made:
ArticleLinker extends AbstractCMSComponent.

If you are interested in this because you think It might be caused by something internal in Tapestry I can try to reproduce the error and write a test for it.

Thanks.

Raul.

P.D. Nice interview at Java Posse podcasts. I believe that many people is attracted to frameworks like Ruby on Rails not only because of the technology itself but because of their audio and video tutorials and propaganda.



Howard Lewis Ship wrote:
Looks there's two exceptions here: some underlying exception getting
obscured by some other error generating the exception report. Have you
customized exception reporting?

On 2/9/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote:
Hi I'm getting a Null pointer exception when I try to activate one of my
pages once a link is clicked. The Tapestry exception report page does
not show up. Any Help is appreciated :).

Raul.

Page class:

public abstract class News extends AbstractCMSPage implements
IExternalPage {

        public abstract Integer getArticleId();
        public abstract void setArticleId(Integer articleId);

        public void activateExternalPage(Object[] params, IRequestCycle cycle) {
                setArticleId((Integer) params[0]);
        }

}


Listener method in ArticleLink Component:

@InjectPage("News")
public abstract News getNewsPage();


public IPage openArticlePage(Integer id) {
        getNewsPage().setArticleId(id);
        return getNewsPage();

}


Jetty browser display:

HTTP ERROR: 500

INTERNAL_SERVER_ERROR
RequestURI=/portal/Home,frontPageNews2.$ArticleLink_1.itemLink.direct

Powered by Jetty://




Stack Trace:


1001682 [BoundedThreadPool0-13] WARN org.mortbay.log -
/portal/Home,frontPageNews2.$ArticleLink_1.itemLink.direct
java.lang.NullPointerException
        at
org.apache.tapestry.util.exception.ExceptionAnalyzer.buildDescription(ExceptionAnalyzer.java:177)
        at
org.apache.tapestry.util.exception.ExceptionAnalyzer.analyze(ExceptionAnalyzer.java:86)
        at
org.apache.tapestry.util.exception.ExceptionAnalyzer.reportException(ExceptionAnalyzer.java:378)
        at
org.apache.tapestry.error.RequestExceptionReporterImpl.reportRequestException(RequestExceptionReporterImpl.java:59)
        at
$RequestExceptionReporter_1095175e27d.reportRequestException($RequestExceptionReporter_1095175e27d.java)
        at
org.apache.tapestry.error.ExceptionPresenterImpl.presentException(ExceptionPresenterImpl.java:53)
        at
$ExceptionPresenter_1095175e265.presentException($ExceptionPresenter_1095175e265.java)
        at
org.apache.tapestry.engine.AbstractEngine.activateExceptionPage(AbstractEngine.java:121)
        at
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:280)
        at
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
        at
$WebRequestServicer_1095175e2bb.service($WebRequestServicer_1095175e2bb.java)
        at
org.apache.tapestry.services.impl.DisableCachingFilter.service(DisableCachingFilter.java:48)
        at
$WebRequestServicerFilter_1095175e2bd.service($WebRequestServicerFilter_1095175e2bd.java)
        at
$WebRequestServicer_1095175e2bf.service($WebRequestServicer_1095175e2bf.java)
        at
$WebRequestServicer_1095175e2b7.service($WebRequestServicer_1095175e2b7.java)
        at
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
        at
$ServletRequestServicer_1095175e29b.service($ServletRequestServicer_1095175e29b.java)
        at
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
        at
$ServletRequestServicerFilter_1095175e297.service($ServletRequestServicerFilter_1095175e297.java)
        at
$ServletRequestServicer_1095175e29d.service($ServletRequestServicer_1095175e29d.java)
        at
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
        at
$ServletRequestServicerFilter_1095175e295.service($ServletRequestServicerFilter_1095175e295.java)
        at
$ServletRequestServicer_1095175e29d.service($ServletRequestServicer_1095175e29d.java)
        at
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
        at
$ServletRequestServicerFilter_1095175e299.service($ServletRequestServicerFilter_1095175e299.java)
        at
$ServletRequestServicer_1095175e29d.service($ServletRequestServicer_1095175e29d.java)
        at
$ServletRequestServicer_1095175e28f.service($ServletRequestServicer_1095175e28f.java)
        at
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:141)
        at 
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:408)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:820)
        at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:811)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108)
        at
org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:811)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:351)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:177)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:164)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:534)
        at org.mortbay.jetty.Server.handle(Server.java:220)
        at org.mortbay.jetty.Server.handle(Server.java:201)
        at org.mortbay.jetty.HttpConnection.doHandler(HttpConnection.java:362)
        at org.mortbay.jetty.HttpConnection.access$1600(HttpConnection.java:45)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:592)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:486)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:195)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:297)
        at
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:676)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:402)









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to