This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes concurrency issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "concurrency issue" Watch "concurrency issue" New topic
Author

concurrency issue

Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

Hi all,
I have a problem in struts say, If two different users submits their data at same time am getting null pointer exception HTTP status 500 error. In log file it doesn't states any error. What are all the various possible reasons of getting like this can any one suggest me an idea to sort out it out.

Note: If only one user submits the data at a time there is no error. It perfectly takes to next page
Manjesh Patil
Ranch Hand

Joined: Sep 24, 2010
Posts: 41

Which version of struts you are using .. struts2 or struts1.x?
Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

am using struts 1.3
Manjesh Patil
Ranch Hand

Joined: Sep 24, 2010
Posts: 41

Where do you see the NullPointerException ? written to the browser ? Exception trace is not available?
try chaning the bean scope to "request" and see ..

Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

Say its a user registration form each person fills data and submit if they submit individually no error it gets insert. but if they submit at a time it shows error in browser as 500 error null pointer exception. In error log nothing error has described
Manjesh Patil
Ranch Hand

Joined: Sep 24, 2010
Posts: 41

Sounds it is programmatic issue and the way you are handling the shared objects in the Action classes/Beans .This Issue does not seems to be originated from the framework, try putting more logs/debugs ..
Good luck.

rerards.

Sabarish Venkat
Ranch Hand

Joined: Jan 18, 2012
Posts: 136

Thank you manjesh let me see to it
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: concurrency issue
 
Similar Threads
Spring Portlet Exception
FacesMessages and valueChangeListener with immediate="true"
starting java program
Session Management
Struts2 wizard with scoped model driven