Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with weblogic 10 on struts form bean

 
vaibhav maddiwar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We have upgraded our weblogic server from version 8 to 10. We are using Struts framework to run our application.

Here is the issue which we are facing :-

When User click the Browser back button we are forwarding the user to same page using "history.forward(1)". Now if user clicks on submit the page I am getting following error message.



The same application is working fine with weblogic 8. Is there any problem with weblogic 10 setup? or there is something to do with cookie setting?

Please advise.

Thanks in Advance,
Vaibhav
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, have you tryied compiling the code with same JVM version used in weblogic 10?

Also, please post some code from where the error happens so we can take a look and maybe have some more ideas about the problem.

regards.
 
vaibhav maddiwar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcos,

Thanks a lot for your reply!

After doing some more research I found that I am getting same issue with Weblogic 8 but on different Environment. On DEV Environment application is working perfectly but on PREPROD Environment its throwing this error.

Also I am getting the similar error message if User try to run the same application on two different browser (But only on PREPROD).

I could not send you the code because this error is coming up from Request Processor.

I thing somehow my object data is getting lost if User clicks the back button or try two different windows due to which strus form is unable to populate the data.

My Question is why this is happing only in PREPROD Environment or Weblogic 10. But not on other Environments.

Any help is appreciated.

Thanks,
Vaibhav
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hum.. OK..

Some ideas

1) Check jvm versions on all environments and also the start mode for the server in every one of them(Development or production mode). You can see this information on admin console or in standart out from the server. I believe this might be causing the problem someway.... not sure thought..

2)Check code from application to look for changes in the bean state after using a back button or 2 concurrent browsers... Isn't the bean in a state that causes the problem after some tricky flow???

2) You should consider using a Synchronizer Token pattern to control flow in you app check:

http://www.corej2eepatterns.com/Design/PresoDesign.htm
http://www.coderanch.com/t/51602/Struts/Duplicate-form-submission-Synchronizer-Token
http://www.javaworld.com/javaworld/javatips/jw-javatip136.html

regards.
 
vaibhav maddiwar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After comparing Remote Start setup from DEV and PREPROD the only differenct I found is Arguments ...

In DEV it is :-

-Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=28015,suspend=n -Xdebug -Xnoagent -Xms100m -Xmx100m -XX:NewSize=64m -XX:MaxNewSize=64m -XX:SurvivorRatio=6 -Xrs


In PREPROD it is :-

-Xms100m -Xmx100m -XX:NewSize=64m -XX:MaxNewSize=64m -XX:SurvivorRatio=6 -Xrs

Kindly let me know if this might be the reason for my issue. I cannot not test it on PREPROD before having good knowledge on it...

Please advise
[ September 18, 2008: Message edited by: vaibhav maddiwar ]
 
vaibhav maddiwar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I got a workaround for this issue. I have disabled the cookie and enable URLRewriting using follwing lines of code in weblogic.xml.


I have edited my code according to support URLRewriting. All of my issues has been fixed

Thanks,
Vaibhav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic