The HttpSessionBindingEvent.getName() returns null when used in HttpSessionListener.attributeAdded, and the application is marked distributable(in a cluster configuration, but it doen't matter if there is only one node in the cluster). I have attached a test that shows this behaviour: The output when the application is not marked distributable: Replicating a session cheking event.getSession( )=org.apache.catalina.session.StandardSessionFacade@f 42160 cheking event.getSession( ).getId( )=67D7ED949770118ECCE414F7A16E3D3C checking event.getName()=attrName checking event.getValue()=attrValue Test ok. The output when the application is marked distributable (in the WEB-INF): Replicating a session cheking event.getSession( )=org.apache.catalina.cluster.session.DeltaSessionFacade@b3cac9 cheking event.getSession( ).getId( )=037FD127C843A30552D411A6CC513EB6 checking event.getName()=attrName checking event.getValue()=null getValue() not correct!!!! Testk not ok!!!! Regards,
Created attachment 15086 [details] A war with source & compiled code. To test hit: http://localhost:8080/TestTomcat/test.jsp and look at the console output.
Sorry is getValue() what is returning null, not getName().
Raul, does this still happen in 5.5.12? I tried to use your WAR file but it provides no console output.
Hola, your war is wrong bundled, but after I moved the test at correct directory structure I see the problem and fix it :-) See changes at DeltaSession Revision 326850! Many thanks to pointing out this Peter
(In reply to comment #4) > Hola, > > your war is wrong bundled, but after I moved the test at correct directory > structure I see the problem and fix it :-) See changes at DeltaSession Revision > 326850! > > Many thanks to pointing out this > Peter You are right, sorry for the problems in the war. Now it is fixed. Thanks a lot