Re: strange situation

2011-08-11 Thread David Canteros
Hi, thank you for your quick response.
My question was just out of curiosity because this behavior happens seldom
and this brings me no major problems .  It is rarely because there are other
projects  (developed with other frameworks) deployed on that server and the
strange page only appear with  tapestry applications. I'll try with tap
5.2.6

Thank you again!

David

--
David Germán Canteros


2011/8/10 Howard Lewis Ship hls...@gmail.com

 I believe this was a bug where under certain circumstances, a corrupt
 GZIP stream of page content would be streamed to the client; this is
 fixed in 5.2.6 for sure, but I thought it was fixed in 5.2.5 as well.

 Failing that, you need to be sure its Tapestry generating the corrupt
 content, rather than some other server in the middle (perhaps a
 firewall).  This isn't about shifting the blame, but merely about
 understanding the problem before looking for a fix.

 On Wed, Aug 10, 2011 at 1:56 PM, David Canteros
 davidcanteros@gmail.com wrote:
  Hi!
   I have a strange situation to share with you: a weird page appear
 when
  some users try to load some page of my tapestry application:  a lot of
  strange symbols appear instead of the correct page. But if they try again
  (or if they reload the page with F5) the correct page appear. This happen
  very rarely and I can not reproduce it... I have attached a screenshot
 for
  review. Just out of curiosity, has this ever happened to anyone else?‎
 
  Tapestry version: 5.2.5
  Server: Tomcat 6
  Browser: Firefox 4
 
  --
  David Germán Canteros
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 



 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry

 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!

 (971) 678-5210
 http://howardlewisship.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: strange situation

2011-08-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Aug 2011 11:32:59 -0300, David Canteros  
davidcanteros@gmail.com wrote:



Hi, thank you for your quick response.
My question was just out of curiosity because this behavior happens  
seldom and this brings me no major problems .  It is rarely because  
there are other projects  (developed with other frameworks) deployed on  
that server and the strange page only appear with  tapestry applications.


Only Tapestry (maybe some other framework too) automatically compresses  
responses, so this is not strange. ;) It could be a Tomcat problem too.
You can disable response compression by setting the  
tapestry.gzip-compression-enabled symbol to false.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: strange situation

2011-08-10 Thread Howard Lewis Ship
I believe this was a bug where under certain circumstances, a corrupt
GZIP stream of page content would be streamed to the client; this is
fixed in 5.2.6 for sure, but I thought it was fixed in 5.2.5 as well.

Failing that, you need to be sure its Tapestry generating the corrupt
content, rather than some other server in the middle (perhaps a
firewall).  This isn't about shifting the blame, but merely about
understanding the problem before looking for a fix.

On Wed, Aug 10, 2011 at 1:56 PM, David Canteros
davidcanteros@gmail.com wrote:
 Hi!
  I have a strange situation to share with you: a weird page appear when
 some users try to load some page of my tapestry application:  a lot of
 strange symbols appear instead of the correct page. But if they try again
 (or if they reload the page with F5) the correct page appear. This happen
 very rarely and I can not reproduce it... I have attached a screenshot for
 review. Just out of curiosity, has this ever happened to anyone else?‎

 Tapestry version: 5.2.5
 Server: Tomcat 6
 Browser: Firefox 4

 --
 David Germán Canteros


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: Strange situation with ognl

2006-05-12 Thread Schulte Marcus
can you post the exception-stack you're getting?

 -Original Message-
 From: Rui Pacheco [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 12:51 PM
 To: Tapestry users
 Subject: Strange situation with ognl
 
 
 Hi all
 
 I have a class extending BasePage. That class declares a 
 get/set for Model,
 Model being the name of my value object. I also have a 
 private instance of
 Model on that class to use with pageBeginRender and to handle 
 data received
 by the form.
 
 On my html I have a normal TextField named grease and on 
 the value I have
 value=ognl:model.grease
 On my Model class I have public getters and setters for grease.
 
 But when I call the page, I end up with an exception, saying 
 ognl can't find
 property model.
 Any hints to what might cause this? Now, this worked before, 
 but suddenly
 ognl stopped seeing my Model. Very strange, as I dont 
 remember any sweeping
 changes that could cause this.
 
 Just for the record, I have the free pdf for Kent's book. The 
 answer might
 be there and I'm not seeing it, but I am trying! :D
 -- 
 Cumprimentos,
 Rui Pacheco
 

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



Re: Strange situation with ognl

2006-05-12 Thread Rui Pacheco
 context:/Regime.html 125
classpath:/org/apache/tapestry/pages/Exception.html 15
context:/Produtos.html 121
classpath:/org/apache/tapestry/html/RequestDisplay.html 23
classpath:/org/apache/tapestry/html/ExceptionDisplay.html 36
context:/Temas.html 132 context:/Abreviaturas.html 148 context:/Home.html
129 tapestry.ognl.ExpressionCache
 cached expression count 26 cached expressions index
exception.stackTrace
exception.properties
! last
true
id
systemPropertiesRenderer
beans.evenOdd.next
exception
context
exceptions
@[EMAIL PROTECTED]
trace
activator
adapterFactory.getRenderableAdaptor(property.value)
exception.message
property
assets.stylesheet
property.name
request.getSession(false) != null
model.search
last
reportStatusRenderer
exception.exceptionClassName
request
false tapestry.asset.ResourceDigestSource
 resource count 1 /org/apache/tapestry/pages/Exception.css
e004ce617d9497ce498469d43acbaa34
JVM System Properties
 catalina.base /opt/tomcat catalina.home /opt/tomcat catalina.useNaming
true common.loader ${catalina.home}/common/classes,${catalina.home
}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home
}/common/lib/*.jar file.encoding UTF-8 file.encoding.pkg sun.io
file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.printerjob sun.print.PSPrinterJob java.class.path
/opt/tomcat/bin/bootstrap.jar
/opt/tomcat/bin/commons-logging-api.jar java.class.version 49.0
java.endorsed.dirs /opt/tomcat/common/endorsed java.ext.dirs
/usr/java/jdk1.5.0_06/jre/lib/ext java.home /usr/java/jdk1.5.0_06/jre
java.io.tmpdir /opt/tomcat/temp java.library.path
/usr/java/jdk1.5.0_06/jre/lib/i386/client
/usr/java/jdk1.5.0_06/jre/lib/i386
/usr/java/jdk1.5.0_06/jre/../lib/i386 java.naming.factory.initial
org.apache.naming.java.javaURLContextFactory java.naming.factory.url.pkgs
org.apache.naming java.runtime.name Java(TM) 2 Runtime Environment, Standard
Edition java.runtime.version 1.5.0_06-b05 java.specification.name Java
Platform API Specification java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.5 java.util.logging.config.file
/opt/tomcat/conf/logging.properties java.util.logging.manager
org.apache.juli.ClassLoaderLogManager java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/ java.vendor.url.bug
http://java.sun.com/cgi-bin/bugreport.cgi java.version 1.5.0_06
java.vm.info mixed
mode, sharing java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc.
java.vm.version 1.5.0_06-b05 line.separator
os.arch i386 os.name Linux os.version 2.6.9-34.ELsmp package.access sun.,
org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper
.,sun.beans. package.definition sun.,java.,org.apache.catalina.,
org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. path.separator :
server.loader ${catalina.home}/server/classes,${catalina.home
}/server/lib/*.jar shared.loader ${catalina.base}/shared/classes,${
catalina.base}/shared/lib/*.jar sun.arch.data.model 32 sun.boot.class.path
/usr/java/jdk1.5.0_06/jre/lib/rt.jar
/usr/java/jdk1.5.0_06/jre/lib/i18n.jar
/usr/java/jdk1.5.0_06/jre/lib/sunrsasign.jar
/usr/java/jdk1.5.0_06/jre/lib/jsse.jar
/usr/java/jdk1.5.0_06/jre/lib/jce.jar
/usr/java/jdk1.5.0_06/jre/lib/charsets.jar
/usr/java/jdk1.5.0_06/jre/classes sun.boot.library.path
/usr/java/jdk1.5.0_06/jre/lib/i386 sun.cpu.endian little sun.cpu.isalist
sun.io.unicode.encoding UnicodeLittle sun.jnu.encoding UTF-8
sun.management.compiler HotSpot Client Compiler sun.os.patch.level unknown
tomcat.util.buf.StringCache.byte.enabled true user.country US user.dir
/opt/tomcat user.home /root user.language en user.name root user.timezone
Europe/Lisbon




On 5/12/06, James Carman [EMAIL PROTECTED] wrote:


I don't think attachments will make it through to the list.  Can you just
paste it in?



  _

From: Rui Pacheco [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 8:07 AM
To: Tapestry users
Subject: Re: Strange situation with ognl



I attached the page.

On 5/12/06, Schulte Marcus [EMAIL PROTECTED] wrote:

can you post the exception-stack you're getting?

 -Original Message-
 From: Rui Pacheco [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 12:51 PM
 To: Tapestry users
 Subject: Strange situation with ognl


 Hi all

 I have a class extending BasePage. That class declares a
 get/set for Model,
 Model being the name of my value object. I also have a
 private instance of
 Model on that class to use with pageBeginRender and to handle
 data received
 by the form.

 On my html I have a normal TextField named grease and on
 the value I have
 value=ognl:model.grease
 On my Model class I have public getters and setters for grease.

 But when I call the page, I end up with an exception, saying
 ognl can't find
 property model.
 Any hints to what might cause this? Now, this worked before

RE: Strange situation with ognl

2006-05-12 Thread James Carman
What's the fully-qualified name of the class and can you paste in your
.application file contents?


-Original Message-
From: Rui Pacheco [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 12, 2006 8:57 AM
To: Tapestry users
Subject: Re: Strange situation with ognl

The .html is at the root of the web application where it usually is. I
renamed the package that holds all the classes, but I've changed the path on
the .application file.

How can I make it see the new classes?

On 5/12/06, James Carman [EMAIL PROTECTED] wrote:

 Tapestry is generating a subclass of BasePage for your page.  It's not
 using
 your page with the getters/setters.  Did you move your .html file?

 -Original Message-
 From: Rui Pacheco [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 8:32 AM
 To: Tapestry users
 Subject: Re: Strange situation with ognl

 Ok, but I dont know how the whole page will look like. Here it goes:



 An exception has occurred.

 You may continue by *restarting /universal-agc/app?service=restart* the
 session.

   org.apache.tapestry.BindingException Unable to read OGNL expression
 'parsed OGNL expression' of [EMAIL PROTECTED]:
 $BasePage_2.model binding: ExpressionBinding[Abreviaturas model.search]
 location: context:/Abreviaturas.html, line 104
   99 td align=left class=titulo colspan=3 100 select jwcid=
 [EMAIL PROTECTED] multiple=ognl:false class=itemsarea 101
 option
 value=IDID/option 102 option value=HeadingAbreviatura/option
 103
 /selectnbsp; 104 input jwcid=[EMAIL PROTECTED]
 value=ognl:model.search
 class=itemsarea/nbsp;Pesquisar 105 /td 106 td align=right
 class=tituloa href=# page=AbreviaturasEdit
 jwcid=@PageLinkInserir/a/td 107 /tr 108 trtd align=center
 class=titulo colspan=6nbsp;/td/tr 109 trtd align=center
 class=titulo colspan=6nbsp;/td/tr
 org.apache.hivemind.ApplicationRuntimeException Unable to read OGNL
 expression 'parsed OGNL expression' of [EMAIL PROTECTED]:
 $BasePage_2.model component: [EMAIL PROTECTED]  location:
 context:/Abreviaturas.html
ognl.NoSuchPropertyException$BasePage_2.model
 name: model  target: [EMAIL PROTECTED]  Stack Trace:

-
 ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123)

- ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
- ognl.ASTProperty.getValueBody(ASTProperty.java:96)
- ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
- ognl.SimpleNode.getValue(SimpleNode.java:210)
- ognl.ASTChain.getValueBody(ASTChain.java:109)
- ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
- ognl.SimpleNode.getValue(SimpleNode.java:210)
- ognl.Ognl.getValue(Ognl.java:333)
- ognl.Ognl.getValue(Ognl.java:310)
-
org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled
(ExpressionEvaluatorImpl.java:91)
-


$ExpressionEvaluator_10b28608204.readCompiled($ExpressionEvaluator_10b286082
 04.java)

- org.apache.tapestry.binding.ExpressionBinding.resolveExpression(
ExpressionBinding.java:110)
- org.apache.tapestry.binding.ExpressionBinding.getObject(
ExpressionBinding.java:103)
- org.apache.tapestry.binding.AbstractBinding.getObject(
AbstractBinding.java:87)
- $TextField_5.getValue($TextField_5.java)
- org.apache.tapestry.form.TextField.renderFormComponent(
TextField.java:43)
- org.apache.tapestry.form.AbstractFormComponent.renderComponent(
AbstractFormComponent.java:122)
-
 org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

- org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:434)
-
 org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:487)

- org.apache.tapestry.form.Form.renderComponent(Form.java:250)
-
 org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

-
 org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)

-
 org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

- org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275)
-
 org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:366)

-
org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(
ResponseRendererImpl.java:71)
-


$ResponseRenderer_10b286080f9.renderResponse($ResponseRenderer_10b286080f9.j
 ava)

- org.apache.tapestry.engine.PageService.service(PageService.java:68)
- $IEngineService_10b28608167.service($IEngineService_10b28608167.java)

- org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
EngineServiceOuterProxy.java:66)
- org.apache.tapestry.engine.AbstractEngine.service(
AbstractEngine.java:248)
- org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
InvokeEngineTerminator.java:60)
-


$WebRequestServicer_10b28608143.service($WebRequestServicer_10b28608143.java
 )

-


$WebRequestServicer_10b2860813f.service($WebRequestServicer_10b2860813f.java

Re: Strange situation with ognl

2006-05-12 Thread Rui Pacheco

The class name is pt.textoeditores.universal.agc.pages.Abreviaturas

The content of the file is
?xml version=1.0?
!DOCTYPE application PUBLIC -//Apache Software Foundation//Tapestry
Specification 4.0//EN 
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;
application
   meta key=org.apache.tapestry.page-class-packages value=
pt.textoeditores.universal.agc.pages/
/application


On 5/12/06, James Carman [EMAIL PROTECTED] wrote:


What's the fully-qualified name of the class and can you paste in your
.application file contents?


-Original Message-
From: Rui Pacheco [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 8:57 AM
To: Tapestry users
Subject: Re: Strange situation with ognl

The .html is at the root of the web application where it usually is. I
renamed the package that holds all the classes, but I've changed the path
on
the .application file.

How can I make it see the new classes?

On 5/12/06, James Carman [EMAIL PROTECTED] wrote:

 Tapestry is generating a subclass of BasePage for your page.  It's not
 using
 your page with the getters/setters.  Did you move your .html file?

 -Original Message-
 From: Rui Pacheco [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 8:32 AM
 To: Tapestry users
 Subject: Re: Strange situation with ognl

 Ok, but I dont know how the whole page will look like. Here it goes:



 An exception has occurred.

 You may continue by *restarting /universal-agc/app?service=restart*
the
 session.

   org.apache.tapestry.BindingException Unable to read OGNL expression
 'parsed OGNL expression' of [EMAIL PROTECTED]:
 $BasePage_2.model binding: ExpressionBinding[Abreviaturas model.search]
 location: context:/Abreviaturas.html, line 104
   99 td align=left class=titulo colspan=3 100 select jwcid=
 [EMAIL PROTECTED] multiple=ognl:false class=itemsarea 101
 option
 value=IDID/option 102 option value=HeadingAbreviatura/option
 103
 /selectnbsp; 104 input jwcid=[EMAIL PROTECTED]
 value=ognl:model.search
 class=itemsarea/nbsp;Pesquisar 105 /td 106 td align=right
 class=tituloa href=# page=AbreviaturasEdit
 jwcid=@PageLinkInserir/a/td 107 /tr 108 trtd align=center
 class=titulo colspan=6nbsp;/td/tr 109 trtd align=center
 class=titulo colspan=6nbsp;/td/tr
 org.apache.hivemind.ApplicationRuntimeException Unable to read OGNL
 expression 'parsed OGNL expression' of
[EMAIL PROTECTED]:
 $BasePage_2.model component: [EMAIL PROTECTED]  location:
 context:/Abreviaturas.html
ognl.NoSuchPropertyException$BasePage_2.model
 name: model  target: [EMAIL PROTECTED]  Stack Trace:

-
 ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123)

- ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
- ognl.ASTProperty.getValueBody(ASTProperty.java:96)
- ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
- ognl.SimpleNode.getValue(SimpleNode.java:210)
- ognl.ASTChain.getValueBody(ASTChain.java:109)
- ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
- ognl.SimpleNode.getValue(SimpleNode.java:210)
- ognl.Ognl.getValue(Ognl.java:333)
- ognl.Ognl.getValue(Ognl.java:310)
-

org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled
(ExpressionEvaluatorImpl.java:91)
-



$ExpressionEvaluator_10b28608204.readCompiled($ExpressionEvaluator_10b286082
 04.java)

- org.apache.tapestry.binding.ExpressionBinding.resolveExpression(
ExpressionBinding.java:110)
- org.apache.tapestry.binding.ExpressionBinding.getObject(
ExpressionBinding.java:103)
- org.apache.tapestry.binding.AbstractBinding.getObject(
AbstractBinding.java:87)
- $TextField_5.getValue($TextField_5.java)
- org.apache.tapestry.form.TextField.renderFormComponent(
TextField.java:43)
- org.apache.tapestry.form.AbstractFormComponent.renderComponent(
AbstractFormComponent.java:122)
-
 org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

- org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:434)
-
 org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java
:487)

- org.apache.tapestry.form.Form.renderComponent(Form.java:250)
-
 org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

-
 org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)

-
 org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

- org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275)
-
 org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java
:366)

-
org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse
(
ResponseRendererImpl.java:71)
-



$ResponseRenderer_10b286080f9.renderResponse($ResponseRenderer_10b286080f9.j
 ava)

- org.apache.tapestry.engine.PageService.service(PageService.java:68)
-
$IEngineService_10b28608167.service($IEngineService_10b28608167.java

RE: Strange situation with ognl

2006-05-12 Thread James Carman
Is the page template called Abreviatura.html?  Sorry for the silly
questions, but this is going to turn out to be something simple.  I'm sure
of it.  Is the .application file named the same thing as your servlet in
your web.xml file?  


-Original Message-
From: Rui Pacheco [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 12, 2006 9:03 AM
To: Tapestry users
Subject: Re: Strange situation with ognl

The class name is pt.textoeditores.universal.agc.pages.Abreviaturas

The content of the file is
?xml version=1.0?
!DOCTYPE application PUBLIC -//Apache Software Foundation//Tapestry
Specification 4.0//EN 
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;
DEFANGED_application
DEFANGED_meta key=org.apache.tapestry.page-class-packages value=
pt.textoeditores.universal.agc.pages/
/application


On 5/12/06, James Carman [EMAIL PROTECTED] wrote:

 What's the fully-qualified name of the class and can you paste in your
 .application file contents?


 -Original Message-
 From: Rui Pacheco [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 8:57 AM
 To: Tapestry users
 Subject: Re: Strange situation with ognl

 The .html is at the root of the web application where it usually is. I
 renamed the package that holds all the classes, but I've changed the path
 on
 the .application file.

 How can I make it see the new classes?

 On 5/12/06, James Carman [EMAIL PROTECTED] wrote:
 
  Tapestry is generating a subclass of BasePage for your page.  It's not
  using
  your page with the getters/setters.  Did you move your .html file?
 
  -Original Message-
  From: Rui Pacheco [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 12, 2006 8:32 AM
  To: Tapestry users
  Subject: Re: Strange situation with ognl
 
  Ok, but I dont know how the whole page will look like. Here it goes:
 
 
 
  An exception has occurred.
 
  You may continue by *restarting /universal-agc/app?service=restart*
 the
  session.
 
org.apache.tapestry.BindingException Unable to read OGNL expression
  'parsed OGNL expression' of [EMAIL PROTECTED]:
  $BasePage_2.model binding: ExpressionBinding[Abreviaturas model.search]
  location: context:/Abreviaturas.html, line 104
99 td align=left class=titulo colspan=3 100 select jwcid=
  [EMAIL PROTECTED] multiple=ognl:false class=itemsarea 101
  option
  value=IDID/option 102 option value=HeadingAbreviatura/option
  103
  /selectnbsp; 104 input jwcid=[EMAIL PROTECTED]
  value=ognl:model.search
  class=itemsarea/nbsp;Pesquisar 105 /td 106 td align=right
  class=tituloa href=# page=AbreviaturasEdit
  jwcid=@PageLinkInserir/a/td 107 /tr 108 trtd align=center
  class=titulo colspan=6nbsp;/td/tr 109 trtd align=center
  class=titulo colspan=6nbsp;/td/tr
  org.apache.hivemind.ApplicationRuntimeException Unable to read OGNL
  expression 'parsed OGNL expression' of
 [EMAIL PROTECTED]:
  $BasePage_2.model component: [EMAIL PROTECTED]  location:
  context:/Abreviaturas.html
 ognl.NoSuchPropertyException$BasePage_2.model
  name: model  target: [EMAIL PROTECTED]  Stack Trace:
 
 -
  ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123)
 
 - ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
 - ognl.ASTProperty.getValueBody(ASTProperty.java:96)
 - ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
 - ognl.SimpleNode.getValue(SimpleNode.java:210)
 - ognl.ASTChain.getValueBody(ASTChain.java:109)
 - ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
 - ognl.SimpleNode.getValue(SimpleNode.java:210)
 - ognl.Ognl.getValue(Ognl.java:333)
 - ognl.Ognl.getValue(Ognl.java:310)
 -
 
 org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled
 (ExpressionEvaluatorImpl.java:91)
 -
 
 


$ExpressionEvaluator_10b28608204.readCompiled($ExpressionEvaluator_10b286082
  04.java)
 
 - org.apache.tapestry.binding.ExpressionBinding.resolveExpression(
 ExpressionBinding.java:110)
 - org.apache.tapestry.binding.ExpressionBinding.getObject(
 ExpressionBinding.java:103)
 - org.apache.tapestry.binding.AbstractBinding.getObject(
 AbstractBinding.java:87)
 - $TextField_5.getValue($TextField_5.java)
 - org.apache.tapestry.form.TextField.renderFormComponent(
 TextField.java:43)
 - org.apache.tapestry.form.AbstractFormComponent.renderComponent(
 AbstractFormComponent.java:122)
 -
  org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
 
 - org.apache.tapestry.AbstractComponent.renderBody(
 AbstractComponent.java:434)
 -
  org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java
 :487)
 
 - org.apache.tapestry.form.Form.renderComponent(Form.java:250)
 -
  org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
 
 -
  org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
 
 -
  org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
 
 - org.apache.tapestry.AbstractPage.renderPage

Re: Strange situation with ognl

2006-05-12 Thread Rui Pacheco

The name of the .application file was wrong. I changed it, redeployed the
application and now everything works like a charm.

On 5/12/06, James Carman [EMAIL PROTECTED] wrote:


Is the page template called Abreviatura.html?  Sorry for the silly
questions, but this is going to turn out to be something simple.  I'm sure
of it.  Is the .application file named the same thing as your servlet in
your web.xml file?


-Original Message-
From: Rui Pacheco [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 9:03 AM
To: Tapestry users
Subject: Re: Strange situation with ognl

The class name is pt.textoeditores.universal.agc.pages.Abreviaturas

The content of the file is
?xml version=1.0?
!DOCTYPE application PUBLIC -//Apache Software Foundation//Tapestry
Specification 4.0//EN 
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;
DEFANGED_application
DEFANGED_meta key=org.apache.tapestry.page-class-packages value=
pt.textoeditores.universal.agc.pages/
/application


On 5/12/06, James Carman [EMAIL PROTECTED] wrote:

 What's the fully-qualified name of the class and can you paste in your
 .application file contents?


 -Original Message-
 From: Rui Pacheco [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 8:57 AM
 To: Tapestry users
 Subject: Re: Strange situation with ognl

 The .html is at the root of the web application where it usually is. I
 renamed the package that holds all the classes, but I've changed the
path
 on
 the .application file.

 How can I make it see the new classes?

 On 5/12/06, James Carman [EMAIL PROTECTED] wrote:
 
  Tapestry is generating a subclass of BasePage for your page.  It's not
  using
  your page with the getters/setters.  Did you move your .html file?
 
  -Original Message-
  From: Rui Pacheco [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 12, 2006 8:32 AM
  To: Tapestry users
  Subject: Re: Strange situation with ognl
 
  Ok, but I dont know how the whole page will look like. Here it goes:
 
 
 
  An exception has occurred.
 
  You may continue by *restarting /universal-agc/app?service=restart*
 the
  session.
 
org.apache.tapestry.BindingException Unable to read OGNL expression
  'parsed OGNL expression' of [EMAIL PROTECTED]:
  $BasePage_2.model binding: ExpressionBinding[Abreviaturas model.search
]
  location: context:/Abreviaturas.html, line 104
99 td align=left class=titulo colspan=3 100 select jwcid=
  [EMAIL PROTECTED] multiple=ognl:false class=itemsarea 101
  option
  value=IDID/option 102 option
value=HeadingAbreviatura/option
  103
  /selectnbsp; 104 input jwcid=[EMAIL PROTECTED]
  value=ognl:model.search
  class=itemsarea/nbsp;Pesquisar 105 /td 106 td align=right
  class=tituloa href=# page=AbreviaturasEdit
  jwcid=@PageLinkInserir/a/td 107 /tr 108 trtd
align=center
  class=titulo colspan=6nbsp;/td/tr 109 trtd align=center
  class=titulo colspan=6nbsp;/td/tr
  org.apache.hivemind.ApplicationRuntimeException Unable to read OGNL
  expression 'parsed OGNL expression' of
 [EMAIL PROTECTED]:
  $BasePage_2.model component:
[EMAIL PROTECTED]  location:
  context:/Abreviaturas.html
 ognl.NoSuchPropertyException$BasePage_2.model
  name: model  target: [EMAIL PROTECTED]  Stack Trace:
 
 -
  ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java
:123)
 
 - ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
 - ognl.ASTProperty.getValueBody(ASTProperty.java:96)
 - ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
 - ognl.SimpleNode.getValue(SimpleNode.java:210)
 - ognl.ASTChain.getValueBody(ASTChain.java:109)
 - ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
 - ognl.SimpleNode.getValue(SimpleNode.java:210)
 - ognl.Ognl.getValue(Ognl.java:333)
 - ognl.Ognl.getValue(Ognl.java:310)
 -
 
 org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled
 (ExpressionEvaluatorImpl.java:91)
 -
 
 



$ExpressionEvaluator_10b28608204.readCompiled($ExpressionEvaluator_10b286082
  04.java)
 
 - org.apache.tapestry.binding.ExpressionBinding.resolveExpression(
 ExpressionBinding.java:110)
 - org.apache.tapestry.binding.ExpressionBinding.getObject(
 ExpressionBinding.java:103)
 - org.apache.tapestry.binding.AbstractBinding.getObject(
 AbstractBinding.java:87)
 - $TextField_5.getValue($TextField_5.java)
 - org.apache.tapestry.form.TextField.renderFormComponent(
 TextField.java:43)
 - org.apache.tapestry.form.AbstractFormComponent.renderComponent(
 AbstractFormComponent.java:122)
 -
  org.apache.tapestry.AbstractComponent.render(AbstractComponent.java
:617)
 
 - org.apache.tapestry.AbstractComponent.renderBody(
 AbstractComponent.java:434)
 -
  org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java
 :487)
 
 - org.apache.tapestry.form.Form.renderComponent(Form.java:250)
 -
  org.apache.tapestry.AbstractComponent.render(AbstractComponent.java
:617