I understand what's going on now.  No need to send me more war files, but my
thanks to Nischal for a great test case.

Struts2 wraps the request with StrutsRequestWrapper, and apparently modifies
getAttribute() calls to check XWork's ValueStack if there is no attribute
with the specified name.  XWork uses OGNL, and OGNL is trying to interpret
the attribute name as an expression.

We have some internal headers (e.g. X-AppEngine-BackendName) that we are
also using as request attributes in some cases.  As far as I can tell, this
is allowed by the servlet spec.  However, OGNL is interpreting the minus
signs as subtraction and the unknown strings as 0 and returning a
BigDecimal.  Weird.

Since XWork is returning a non-null value for one of our backend-related
attributes we think this is a request that should be redirect to a backend,
so we're going through some new code in 1.5 that isn't relevant in your
application.  However, we later fail because the attributes were of the
wrong type.

I will get this fixed in the next release, but I've been unable to find an
easy workaround for you folks.  There appears to be no way to disable the
use of OGNL in Struts2.  My best guess is that you can use the
struts.valueStackFactory constant to register a custom ValueStackFactory
that either does not use OGNL, or short-circuits this particular case.  If
you're not feeling very adventurous, I recommend that you remain on the
1.4.3 SDK for testing until 1.5.1 is released.

On Mon, May 16, 2011 at 4:29 PM, Shashank sharma <[email protected]>wrote:

> @Don
>
> I am getting the same error. Also using struts 2.0 and also noticed
> this after upgrading to 1.5. Should i send you the war or has someone
> else already sent it to you?
>
>
> On May 17, 2:13 am, Don Schwarz <[email protected]> wrote:
> > This is very strange.  Can one of you send me your war directory?
> >
> > On Mon, May 16, 2011 at 12:14 PM, Nischal Shetty
> > <[email protected]>wrote:
> >
> >
> >
> >
> >
> >
> >
> > > @Sean  Let's hope someone from the GAE team helps us. They've been
> super
> > > busy the entire last week. Hoping someone helps us out soon.
> >
> > > If you come across a possible solution please do update this thread,
> I'll
> > > do the same.
> >
> > > On 16 May 2011 00:11, svoeller <[email protected]> wrote:
> >
> > >> I'm experiencing the same issue - stack trace is identical. Also using
> > >> struts 2.0 and also noticed this after attempting to upgrade to 1.5.
> >
> > >> On May 13, 11:32 am, Nischal <[email protected]> wrote:
> > >> > GAE team, need your help here.
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "Google App Engine for Java" group.
> > >> To post to this group, send email to
> > >> [email protected].
> > >> To unsubscribe from this group, send email to
> > >> [email protected].
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > > --
> > > -Nischal
> > > +91-9920240474
> > > twitter: NischalShetty <http://twitter.com/nischalshetty>
> > > facebook: Nischal <http://facebook.com/nischal>
> >
> > > <http://www.justunfollow.com>     <http://www.buffr.com>
> >
> > >  --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to