S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua

hi all,

I am playing with Struts 2.1.1 built from sources and I am currently 
getting the exception below while using remote div, any clues?


TIA,
regards,
Giovanni

WARNING: Could not find property [struts.valueStack]
ognl.OgnlException: target is null for setProperty(null, preventCache, 
[Ljava.lang.String;@5f262a85)

   at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)
   at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
   at ognl.SimpleNode.setValue(SimpleNode.java:246)
   at ognl.ASTChain.setValueBody(ASTChain.java:172)
   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
   at ognl.SimpleNode.setValue(SimpleNode.java:246)
   at ognl.Ognl.setValue(Ognl.java:476)
   at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197)
   at 
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:150)
   at 
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:138)
   at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:196)
   at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:162)
   at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:85)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:104)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:75)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:105)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
   at 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:266)
   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
   at 

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua

hi,

Got rid of the issue by changing the following parameter in struts.xml

From:
constant name=struts.devMode value=true /   


To:
constant name=struts.devMode value=false /   


hard to guess this one ..

regards,
Giovanni

Giovanni Azua wrote:

hi all,

I am playing with Struts 2.1.1 built from sources and I am currently 
getting the exception below while using remote div, any clues?


TIA,
regards,
Giovanni

WARNING: Could not find property [struts.valueStack]
ognl.OgnlException: target is null for setProperty(null, 
preventCache, [Ljava.lang.String;@5f262a85)

   at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)
   at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
   at ognl.SimpleNode.setValue(SimpleNode.java:246)
   at ognl.ASTChain.setValueBody(ASTChain.java:172)
   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
   at ognl.SimpleNode.setValue(SimpleNode.java:246)
   at ognl.Ognl.setValue(Ognl.java:476)
   at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197)
   at 
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:150) 

   at 
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:138) 

   at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:196) 

   at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:162) 

   at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:85) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) 

   at 
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:104) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) 

   at 
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) 

   at 
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) 

   at 
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:75) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) 

   at 
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) 

   at 
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:105) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) 

   at 
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) 

   at 

Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Dave Newton
Hello,

Could you post the outline of the source that created
this error? Just curious as to what could have caused
that error--may be a bug.

Thanks,
Dave

--- Giovanni Azua [EMAIL PROTECTED] wrote:

 hi,
 
 Got rid of the issue by changing the following
 parameter in struts.xml
 
 From:
 constant name=struts.devMode value=true /   
 
 To:
 constant name=struts.devMode value=false /   
 
 hard to guess this one ..
 
 regards,
 Giovanni
 
 Giovanni Azua wrote:
  hi all,
 
  I am playing with Struts 2.1.1 built from sources
 and I am currently 
  getting the exception below while using remote
 div, any clues?
 
  TIA,
  regards,
  Giovanni
 
  WARNING: Could not find property
 [struts.valueStack]
  ognl.OgnlException: target is null for
 setProperty(null, 
  preventCache, [Ljava.lang.String;@5f262a85)
 at
 ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)
 at
 ognl.ASTProperty.setValueBody(ASTProperty.java:101)
 at

ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
 at
 ognl.SimpleNode.setValue(SimpleNode.java:246)
 at
 ognl.ASTChain.setValueBody(ASTChain.java:172)
 at

ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
 at
 ognl.SimpleNode.setValue(SimpleNode.java:246)
 at ognl.Ognl.setValue(Ognl.java:476)
 at

com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197)
 at 
 

com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:150)
 
 
 at 
 

com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:138)
 
 
 at 
 

com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:196)
 
 
 at 
 

com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:162)
 
 
 at 
 

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:85)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
 
 
 at 
 

com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
 
 
 at 
 

com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:104)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
 
 
 at 
 

com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
 
 
 at 
 

org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
 
 
 at 
 

com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
 
 
 at 
 

org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
 
 
 at 
 

com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
 
 
 at 
 

com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:75)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)
 
 
 at 
 

com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
 
 
 at 
 

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)
 
 
 at 
 

com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127)
 
 
 at 
 
=== message truncated ===


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



Re: S2 v2.1.1: exception updating remote div ..

2007-11-13 Thread Giovanni Azua

hi Dave,

Please find below all relevant sources.

Workflow is:
1-. Menu - ListOptimizationJobStatus.action
2-. ListOptimizationJobStatus.action - Displays 
listOptimizationJobStatus.jsp
3-. listOptimizationJobStatus.jsp Remote DIV refreshes every X secs and 
invokes RefreshOptimizationJobStatus.action
4-. RefreshOptimizationJobStatus.action invokes 
AjaxOptimizationJobStatus.jsp that

is rendered inside the Remote DIV.

I suspect might have something to do with the Tiles interceptor that is 
the default stack for the Action
Refresh* in the struts.xml below while those Refresh Actions do not 
produce any Tiles result but page ...

this is a wild guess though

Best regards,
Giovanni

* struts.xml *

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration 2.0//EN
   http://struts.apache.org/dtds/struts-2.0.dtd;
struts
   constant name=struts.enable.DynamicMethodInvocation value=false /
   constant name=struts.devMode value=true /
   constant name=struts.ui.theme value=xhtml /
   package name=webui extends=tiles-default
   action name=Refresh* 
   result/jsp/ajax/Ajax{1}.jsp/result
   /action
   /package
/struts

* tiles.xml *

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN
   http://struts.apache.org/dtds/tiles-config_2_0.dtd;
tiles-definitions
   definition name=webui.listDisplayOptimizationJobStatus 
template=/tiles/layout.jsp
   put-attribute name=title value=List of Optimization Job 
Status/

   put-attribute name=style value=/tiles/styledisplaytag.jsp/
   put-attribute name=body 
value=/jsp/list/listOptimizationJobStatus.jsp/

   /definition
/tiles-definitions

* layout.jsp *

%@ taglib uri=http://tiles.apache.org/tags-tiles; prefix=tiles %
%@ taglib prefix=s uri=/struts-tags %
%@ taglib prefix=sx uri=/struts-dojo-tags %
%@ page buffer = 1024kb %
tiles:importAttribute name=title scope=request/
html
   head
   titletiles:getAsString name=title//title
   meta http-equiv=Content-Type
   content=text/html; charset=iso-8859-1 /
   script type=text/javascript src=js/drop_down.js/script
   script type=text/javascript src=js/thumbnail_popup.js/script
   tiles:insertAttribute name=style/
   s:head theme=xhtml /
   sx:head cache=true /
   /head
body
   jsp:include page=menu.jsp /
   br /
   div id=bodyColumn
   div id=contentBox
   div class=section
   h2tiles:getAsString name=title//h2
   /div
   tiles:insertAttribute name=body/
   /div
   /div
/body
/html

* listOptimizationJobStatus.jsp 
*


%@ page contentType=text/html; charset=UTF-8 language=java %
%@ taglib prefix=s uri=/struts-tags%
%@ taglib prefix=sx uri=/struts-dojo-tags %

s:url var=jobStatus includeParams=get 
value=/RefreshOptimizationJobStatus.action /
sx:div id=jobStatus href=%{#jobStatus} updateFreq=5000 
autoStart=true indicator=indicator

/sx:div
img id=indicator src=img/indicator.gif alt=Loading... 
style=display:none/


* AjaxOptimizationJobStatus.jsp 
*


%@ page contentType=text/html; charset=UTF-8 %
%@ taglib prefix=display uri=http://displaytag.sf.net; %

%
   request.setAttribute(decorator, none);
   response.setHeader(Cache-Control,no-cache); // HTTP 1.1
   response.setHeader(Pragma,no-cache);// HTTP 1.0
   response.setDateHeader (Expires, 0);   // prevents 
caching at the proxy server

%

display:table name=applicationScope.jobStates defaultsort=7 
defaultorder=descending pagesize=15
   requestURI=/ListDisplayOptimizationJobStatus.action export=true 
sort=list
   
decorator=com.sag.optimizer.ui.web.displaytag.decorator.OptimizationJobDecorator 

   display:column property=optimizationRunId title=ID 
sortable=true headerClass=sortable /
   display:column property=historicBook0 title=Book 1 
sortable=true headerClass=sortable /
   display:column property=historicBook1 title=Book 2 
sortable=true headerClass=sortable /
   display:column property=priority title=Priority sortable=true 
headerClass=sortable /
   display:column property=permanent title=Frequency 
sortable=true headerClass=sortable /
   display:column property=status title=Status sortable=true 
headerClass=sortable /
   display:column property=progress title=Progress 
format={0,number,integer}% sortable=true headerClass=sortable /

   display:column property=result title=Result sortable=false /
/display:table

Dave Newton wrote:

Hello,

Could you post the outline of the source that created
this error? Just curious as to what could have caused
that error--may be a bug.

Thanks,
Dave