struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ellson, Jared" <jell...@usbr.gov>
Subject OGNL making me nutty
Date Thu, 26 Mar 2015 23:05:36 GMT
Hi All,

I have a simple struts action class calling setters on a simple JPA object
and for some reason the setters are not working and it is blowing up.  I am
doing the exact same thing in other actions with in the same application
and it is working fine.  What am I missing?

*Struts.xml:*
<action name="governor" class="gov.usbr.mechdb.struts.GovernorAction" method
="action">
     <result name="success">/article.jsp</result>
</action>

*Error:*
16:50:20,324 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor] (default
task-55) Developer Notification (set struts.devMode to false to disable
this message):

Unexpected Exception caught setting 'selectedGovernor.pcase' on 'class
gov.usbr.mechdb.struts.GovernorAction: Error setting expression
'selectedGovernor.pcase' with value ['', '', ]

16:50:20,327 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor] (default
task-55) Developer Notification (set struts.devMode to false to disable
this message):

Unexpected Exception caught setting 'selectedGovernor.prvfull' on 'class
gov.usbr.mechdb.struts.GovernorAction: Error setting expression
'selectedGovernor.prvfull' with value ['', ]

16:50:20,329 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor] (default
task-55) Developer Notification (set struts.devMode to false to disable
this message):

Unexpected Exception caught setting 'selectedGovernor.tgate2' on 'class
gov.usbr.mechdb.struts.GovernorAction: Error setting expression
'selectedGovernor.tgate2' with value ['', ]

16:50:20,336 WARN  [com.opensymphony.xwork2.util.LocalizedTextUtil]
(default task-55) Missing key [invalid.fieldvalue.pcase] in bundles
[[org/apache/struts2/struts-messages,
com/opensymphony/xwork2/xwork-messages]]!

16:50:20,336 WARN  [com.opensymphony.xwork2.util.LocalizedTextUtil]
(default task-55) Missing key [invalid.fieldvalue.selectedGovernor.pcase]
in bundles [[org/apache/struts2/struts-messages,
com/opensymphony/xwork2/xwork-messages]]!

16:50:20,339 ERROR [org.apache.struts2.dispatcher.Dispatcher] (default
task-55) Could not find action or result

/MechDB/governor.action: No result defined for action
gov.usbr.mechdb.struts.GovernorAction and result input - action -
vfs:/Users/jellson/devTools/jboss/jboss8/standalone/deployments/MechDBEAR.ear/MechDB.war/WEB-INF/classes/struts.xml:25:89

at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
DefaultActionInvocation.java:371) [xwork-core-2.3.20.jar:2.3.20]

I don't think the true error is what the stack is saying it is because it
never makes it to my action.

*Here is what it is trying to set:*

private BigDecimal pcase;

public void setPcase(BigDecimal pcase) {


Thank you to anybody that can help...




-- 

Jared Ellson

U.S. Bureau of Reclamation

IT Specialist

Office: 303-445-3354

Cell: 303-916-0304

jellson@usbr.gov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message