File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struct config.xml(Null pointer Exception) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struct config.xml(Null pointer Exception)" Watch "struct config.xml(Null pointer Exception)" New topic

struct config.xml(Null pointer Exception)

shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
I am working an application which was developed on struts frame work.When i deploy and run the application, occasionally i used to get Null Pointer Exception after i login into that page.when i check the log file i used to get "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*).Is this error because of the version of struts config file does not match and it does not have a doc type tag in struts config file.
in Mkumar

Joined: Sep 08, 2008
Posts: 20
As you demonstrated errors, It appears that there are mismatching in the declared name attributes of either form-beans or any others components (like bean name,action name, data-source ..etc) please verify struts-config.xml once again and restart server.

or if possible please provide me struts-config.xml details so that i can confirm about the error.


Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

This seems to be a question about Struts configuration files, so let's try putting it in the Struts forum.
shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
Thanks for the reply.I cannot give the struts config file, Since it is confidential one.When I viewed my config file I found that there is no document type tag that was present in before the strut-config tag. in strut config file .Can I know is it ok if the document type tag is not present in struts config file?
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105

Refer this.

This post have sample struts-config.xml code.
May be you will get idea.

Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
I agree. Here's the link:
subject: struct config.xml(Null pointer Exception)
It's not a secret anymore!