On my Tomcat logs I have something else: Jul 26, 2006 6:51:17 PM org.apache.tapestry.web.ServletWebResponse reset SEVERE: Unable to reset response buffer: java.lang.IllegalStateException java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java :307) at org.apache.tapestry.web.ServletWebResponse.reset(ServletWebResponse.java :128) at org.apache.tapestry.web.ServletWebResponse.getPrintWriter( ServletWebResponse.java:90) at $WebResponse_10cabf5ab61.getPrintWriter($WebResponse_10cabf5ab61.java) at $WebResponse_10cabf5aa3c.getPrintWriter($WebResponse_10cabf5aa3c.java) at org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse( ResponseRendererImpl.java:67)
I'm doing something wrong with my Sessions, I just don't know what. On 7/26/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
My bad: There is another error beneath this one, I just hadn't noticed it: "Cannot create a session after the response has been committed" And the stack trace includes this: Stack Trace: org.apache.catalina.connector.Request.doGetSession (Request.java:2214) org.apache.catalina.connector.Request.getSession(Request.java:2024) org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831) org.apache.tapestry.web.ServletWebRequest.getSession ( ServletWebRequest.java:82) $WebRequest_10cabda2aa0.getSession($WebRequest_10cabda2aa0.java) $WebRequest_10cabda2a59.getSession($WebRequest_10cabda2a59.java) org.apache.tapestry.engine.state.SessionScopeManager.getSession ( SessionScopeManager.java:48) org.apache.tapestry.engine.state.SessionScopeManager.get( SessionScopeManager.java:64) $StateObjectPersistenceManager_10cabda2b66.get($StateObjectPersistenceManager_10cabda2b66.java) $StateObjectPersistenceManager_10cabda2b65.get($StateObjectPersistenceManager_10cabda2b65.java) org.apache.tapestry.engine.state.StateObjectManagerImpl.get( StateObjectManagerImpl.java:50) org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get( ApplicationStateManagerImpl.java:60) $ApplicationStateManager_10cabda2a31.get($ApplicationStateManager_10cabda2a31.java) $ApplicationStateManager_10cabda2a32.get($ApplicationStateManager_10cabda2a32.java) $XWords_24.getUser($XWords_24.java) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) I have injected the User object into the parent class of XWords and if I try to access it through getUser, it returns a valid object and not an NPE. I'm sorry for the misleading error from before, I should have scrolled down a bit more. On 7/26/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote: > > I believe the java beans syntax for accessing a method that looked like: > > User- > public boolean isActive(); > > Would be "ognl:user.active". > > You can always force ognl to call your method via explicit functions > calls > as well: > > "ognl:user.isActive()" > > On 7/26/06, adasal < [EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED]: pt.te.universal.model.User.isActive ". > > Isn't that a string being returned? Can you do ! with a string here? > > isActive should be boolean. > > Adam > > > > > > On 26/07/06, Rui Pacheco < [EMAIL PROTECTED]> wrote: > > > > > > No luck. > > > > > > Has anyone done this before? > > > > > > On 7/26/06, Shing Hing Man < [EMAIL PROTECTED] > wrote: > > > > > > > > Please try : > > > > > > > > ognl:!user.active > > > > > > > > Shing > > > > > > > > --- Rui Pacheco < [EMAIL PROTECTED]> wrote: > > > > > > > > > Hi all > > > > > > > > > > I am trying to make my ASO available to an @If > > > > > component on my templates, > > > > > but I can't get past the following error: > > > > > "Unable to read OGNL expression '<parsed OGNL > > > > > expression>' of > > > > > [EMAIL PROTECTED]: > > > > > pt.te.universal.model.User.isActive". > > > > > > > > > > The ASO is being properly instanciated and I can > > > > > access it from my > > > > > component. > > > > > > > > > > I'm doing the evaluation on the template this way: > > > > > <span jwcid="@If" condition="ognl:! user.isActive"> > > > > > <span jwcid="@RedMenu">Red Menu</span> > > > > > </span> > > > > > > > > > > User is my ASO and isActive is a public NON abstract > > > > > method. > > > > > > > > > > How do I negatively test that condition? > > > > > > > > > > -- > > > > > Cumprimentos, > > > > > Rui Pacheco > > > > > > > > > > > > > > > > > Home page : > > > > http://uk.geocities.com/matmsh/index.html > > > > > > > > > > > > > > > > > > > > > > > > ___________________________________________________________ > > > > All new Yahoo! Mail "The new Interface is stunning in its > simplicity > > and > > > > ease of use." - PC Magazine > > > > http://uk.docs.yahoo.com/nowyoucan.html > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Cumprimentos, > > > Rui Pacheco > > > > > > > > > > > > > -- > Jesse Kuhnert > Tacos/Tapestry, team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. > > -- Cumprimentos, Rui Pacheco
-- Cumprimentos, Rui Pacheco