File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struct config.xml(Null pointer Exception)

 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

-Manoj

 
Paul Clapham
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be a question about Struts configuration files, so let's try putting it in the Struts forum.
 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 105
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Refer this.
http://www.coderanch.com/t/498846/Struts/Struts-Without-Form-Bean.

This post have sample struts-config.xml code.
May be you will get idea.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic