You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Simon Raveh <Si...@nominum.com> on 2003/09/27 23:24:29 UTC

Null PointerException Exception in Tapestry.fireObservedChange(Tapestry.java:1371)

Hi,

Using Tapestry-3.0-beta-2 I was able to set value to persistence properties
by overriding the initialize method of  AbstractPage.

After I upgrade to Tapestry-3.0-beta-3 I'm getting a null pointer exception
from inside Tapestry.

The change to the fireObservedChange is the one that is causing the problem.
In the static method fireObservedChange the call component.getPage() return
null if the page is still in the initialize mode.

Simon

here is the stack trace:

org.apache.tapestry.Tapestry.fireObservedChange(Tapestry.java:1371)
org.apache.tapestry.AbstractComponent.fireObservedChange(AbstractComponent.j
ava:343)
com.nominum.management.web.presentation.pages.ServiceGroupPage$Enhance_32.se
tFilter(ServiceGroupPage$Enhance_32.java)
com.nominum.management.web.presentation.pages.ServiceGroupPage.initialize(Se
rviceGroupPage.java:57)
org.apache.tapestry.AbstractPage.<init>(AbstractPage.java:165)
org.apache.tapestry.html.BasePage.<init>(BasePage.java:73)
com.nominum.management.web.FMCBasePage.<init>(FMCBasePage.java:31)
com.nominum.management.web.ProtectedPage.<init>(ProtectedPage.java:33)
com.nominum.management.web.presentation.pages.BrowserPage.<init>(BrowserPage
.java:45)
com.nominum.management.web.presentation.pages.ServiceGroupPage.<init>(Servic
eGroupPage.java:33)
com.nominum.management.web.presentation.pages.ServiceGroupPage$Enhance_32.<i
nit>(ServiceGroupPage$Enhance_32.java)
java.lang.Class.newInstance0(Native Method)
java.lang.Class.newInstance(Class.java:232)
org.apache.tapestry.pageload.PageLoader.instantiatePage(PageLoader.java:740)
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:802)
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:194)
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:236)
org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:714)
com.nominum.management.web.presentation.pages.TopFrame.selectPage(TopFrame.j
ava:108)
com.nominum.management.web.presentation.pages.TopFrame.viewServices(TopFrame
.java:88)
java.lang.reflect.Method.invoke(Native Method)
org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java
:301)
org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:87)
org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMa
p.java:141)
org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(L
istenerMap.java:146)
org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:160)
org.apache.tapestry.engine.DirectService.service(DirectService.java:210)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:912)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:238
)
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:199)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1058)
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401)
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
org.apache.tapestry.RedirectFilter.doFilter(RedirectFilter.java:148)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5451)
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:780)
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3105)
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2588)
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org