We recently upgraded a big project we're working on to Tapestry 5.2.5. After
the upgrade, certain form submits just randomly stopped working.

On clicking submit, we get hit with the following error:
java.lang.NullPointerException @
org.apache.tapestry5.internal.services.ResponseCompressionAnalyzerImpl.isCompressable(ResponseCompressionAnalyzerImpl.java:65)

That Impl class is trying to find the position of a semicolon in the content
type string that gets passed to it, problem is that string is null.

The backend method which receives the form data disassembles it, sets some
parameters in an @Inject'ed object and then returns that same object.
Nothing has changed, other parts of the app that use identical logic work
just fine. I've compared the request headers of a functioning submit and the
broken one, everything is the same. The content type is added, everything
looks OK.

Weirdest part is that this only happens with Tomcat. I've tried 6.0.24 (the
same version as before the upgrade when the app worked fine), 6.0.32 and
even 7.0.14, fails every time. But when I run the app in Jetty, the submits
work perfectly and there are no exceptions.

This is a long shot since it's a really random exception, but maybe someone
else has experienced a similar thing or just has an idea how to tackle this
problem?

Thanks in advance.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-5-NPE-on-form-submit-tp4419202p4419202.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to