[Tomcat, HTTPD, Servlets & JSP] - Re: Session is getting merge with other session
by bstansberry@jboss.com
I've found that different people mean different things when they say "clustered". Just to be certain, please confirm that the application's web.xml includes the
<distributable/>
tag.
If yes, please post the content of your jboss-web.xml file, if you have one.
Also, you use the word "merged". When I hear that I think, for example, the 2nd page shows one user's name and another user's address, or something like that. A combination of data. I can't imagine how that would happen. I can imagine 2 users ending up with the same session id, and thus one user seeing the others data (but none of their own.) However, I've never heard of that happening with clustered webapps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114853#4114853
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114853
18 years, 4 months
[JBossCache] - Session is getting merge with other session in Jboss cache
by igain
Hi,
I have been using J2EE application on jboss-4.2.0.GA in a clustered mode from past 6 months and it is working perfectly.
But in last 2-3 days I got 2 unusual reports.
In our application there is module called Online Application which is a 3 step process
1) 1st page captures all personal information like first name, last name address etc.
2) When user hit continue button 2nd page comes and it display some use agreement and a check box for " I Agree" as well 4 text box
2 of them displays firstName and lastname and both are read only text box. Other 2 to take input from for DOB and SSN.
3) After filling out all these information when user hit submit button. All information goes to server for processing.
No unusual behavior is on 2nd page 2 user reported that when they hit continue button on 1st page, on next page rather then displaying their name application is displaying some other name.
And this name is another user who submitted his information in our application.
this means session is getting merged with some other user's session. Which i don't understand. Is it possible in Jboss clustering that 2 user's session can get merged ?
Is there any way to guarantee that each time a new session should get created?
For your information I am using struts 1.1, jboss-4.2.0.GA and mysql as DB.
jboss-4.2.0.GA is running in clustered mode, there 2 nodes in cluster env.
Any help would greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114847#4114847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114847
18 years, 4 months
[Tomcat, HTTPD, Servlets & JSP] - Session is getting merge with other session
by igain
Hi,
I have been using J2EE application on jboss-4.2.0.GA in a clustered mode from past 6 months and it is working perfectly.
But in last 2-3 days I got 2 unusual reports.
In our application there is module called Online Application which is a 3 step process
1) 1st page captures all personal information like first name, last name address etc.
2) When user hit continue button 2nd page comes and it display some use agreement and a check box for " I Agree" as well 4 text box
2 of them displays firstName and lastname and both are read only text box. Other 2 to take input from for DOB and SSN.
3) After filling out all these information when user hit submit button. All information goes to server for processing.
No unusual behavior is on 2nd page 2 user reported that when they hit continue button on 1st page, on next page rather then displaying their name application is displaying some other name.
And this name is another user who submitted his information in our application.
this means session is getting merged with some other user's session. Which i don't understand. Is it possible in Jboss clustering that 2 user's session can get merged ?
Is there any way to guarantee that each time a new session should get created?
For your information I am using struts 1.1, jboss-4.2.0.GA and mysql as DB.
jboss-4.2.0.GA is running in clustered mode, there 2 nodes in cluster env.
Any help would greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114846#4114846
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114846
18 years, 4 months
[JBoss AOP] - Please help with reflection
by bornmw
Hi!
I have a very stupid problem with reflection.
My exception is:
| java -cp .:/projects/lib/jboss-aop_1.5.5.GA/lib-50/jboss-aop-jdk50.jar:/usr/local/pluto-1.1.4/shared/lib/portlet-api-1.0.jar:/usr/local/pluto-1.1.4/webapps/AOPPortlet/WEB-INF/lib/concurrent.jar:/usr/local/pluto-1.1.4/webapps/AOPPortlet/WEB-INF/lib/javassist-snapshot.jar:/usr/local/pluto-1.1.4/webapps/AOPPortlet/WEB-INF/lib/jboss-common.jar:/usr/local/pluto-1.1.4/webapps/AOPPortlet/WEB-INF/lib/trove.jar ConstrTest
| constructor = public Test()
| Exception in thread "main" java.lang.VerifyError: (class: org/jboss/aop/advice/ViewAspect0, method: invoke signature: (Lorg/jboss/aop/joinpoint/Invocation;)Ljava/lang/Object;) Unable to pop operand off an empty stack
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
| at java.lang.Class.getConstructor0(Class.java:2699)
| at java.lang.Class.newInstance0(Class.java:326)
| at java.lang.Class.newInstance(Class.java:308)
| at org.jboss.aop.advice.PerVmAdvice.generateInterceptor(PerVmAdvice.java:132)
| at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:56)
| at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:68)
| at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:618)
| at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:888)
| at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:650)
| at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
| at org.jboss.aop.ClassAdvisor.access$300(ClassAdvisor.java:82)
| at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:299)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271)
| at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:591)
| at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:579)
| at Test.<clinit>(Test.java)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
| at java.lang.Class.newInstance0(Class.java:355)
| at java.lang.Class.newInstance(Class.java:308)
| at ConstrTest.main(ConstrTest.java:16)
|
|
My code is:
| ClassLoader loader = Thread.currentThread().getContextClassLoader();
| Class clazz = loader.loadClass("Test");
| for (int j = 0; j < clazz.getConstructors().length; j++) {
| Constructor constructor = clazz.getConstructors()[j];
| System.out.println("constructor = " + constructor);
| }
| Test t = (Test) clazz.newInstance();
| System.out.println("t = " + t);
|
Test is a class that is aspectized at compile-time.
What am I doing wrong? Or is it not possible to construct aspectized classes using reflection at all?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114845#4114845
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114845
18 years, 4 months