Problem with Tomcat 8.0.35

279 views
Skip to first unread message

Andreas

unread,
Jun 6, 2016, 8:55:55 AM6/6/16
to memcached-session-manager
Hello,

we are using the memcached-session-manager for over a year now and were very pleased with its performance.
Lately we switched from Tomcat 7 to 8 and I migrated our source code to use the current version of
memcached-session-manager-1.9.2.

Unfortunately this version didn't store any session data on our memcache server.
To debug this problem I added the property sessionBackupAsync="false" to our configuration and thus obtained an error message
which didn't show up earlier:

2016-06-06 14:38:41,105 [http-8080-1] WARN  CoyoteAdapter - Exception while attempting to add an entry to the access log
java.lang.NoSuchFieldError: attributes
    at de.javakaffee.web.msm.MemcachedBackupSession.setAttributesInternal(MemcachedBackupSession.java:534)
    at de.javakaffee.web.msm.TranscoderService.deserialize(TranscoderService.java:129)
    at de.javakaffee.web.msm.MemcachedSessionService.loadFromMemcached(MemcachedSessionService.java:1146)
    at de.javakaffee.web.msm.MemcachedSessionService.findSession(MemcachedSessionService.java:595)
    at de.javakaffee.web.msm.MemcachedBackupSessionManager.findSession(MemcachedBackupSessionManager.java:208)
   
I thought the source of this error might be a change in the Tomcat sources and Eureka!:
The error only occurs in Tomcat 8.0.35. Tomcat 8.0.33 works nicely.

A diff for StandardSession between 33 and 35 shows:
https://fossies.org/diffs/apache-tomcat/8.0.33-src_vs_8.0.35-src/java/org/apache/catalina/session/StandardSession.java-diff.html

I guess this breaks the code for MemcachedBackupSession.
Could you please look into it?

Best regards

Andreas Moll

Martin Grotzke

unread,
Jun 6, 2016, 11:47:25 AM6/6/16
to memcached-session-manager

Thanks for finding this, I'm now working on it.

Cheers,
Martin


--

---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Grotzke

unread,
Jun 6, 2016, 5:28:47 PM6/6/16
to memcached-session-manager
I just released 1.9.3 with the fix for this. Thanks again, Andreas!

Cheers,
Martin


On 06/06/2016 05:47 PM, Martin Grotzke wrote:
> Thanks for finding this, I'm now working on it.
>
> Cheers,
> Martin
>
>
> Andreas <maila...@gmail.com <mailto:maila...@gmail.com>> schrieb am
> <mailto:memcached-session-...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>

--
inoio gmbh - http://inoio.de
Schulterblatt 36, 20357 Hamburg
Amtsgericht Hamburg, HRB 123031
Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn

signature.asc

Andreas Moll

unread,
Jun 6, 2016, 5:32:43 PM6/6/16
to memcached-se...@googlegroups.com
Am 06.06.2016 um 23:28 schrieb 'Martin Grotzke' via
memcached-session-manager:
> I just released 1.9.3 with the fix for this. Thanks again, Andreas!
>
> Cheers,
> Martin
Hello Martin,

that was lightning fast :)

Thanks a lot!

Andreas

Andreas

unread,
Jun 7, 2016, 3:05:06 AM6/7/16
to memcached-session-manager
Hello Martin,

I have tested your last release and it works like a charm with 8.0.35 :)

Keep up the good work!

Best regards

Andreas

Martin Grotzke

unread,
Jun 7, 2016, 4:46:26 AM6/7/16
to memcached-se...@googlegroups.com
Great to hear! :-)

Cheers,
Martin
signature.asc
Reply all
Reply to author
Forward
0 new messages