Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception creating bean of class org.dhsinfo. content.AddFileForm: {1}'

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What could lead to a run-time error such as:


[ServletException in:/frame/content/content.jsp] Exception creating bean of class org.dhsinfo.content.AddFileForm: {1}'


The strange thing is that the application worked without any problem before. I did not touch anything. I re-ran the application a day later and this problem poped up.

It occurred when I tried to display the content.jsp in the browser window. The content.jsp portion is like:

The action mapping in the struts-config.xml is like:

and the form-bean in the struts-config.xml is like:

The AddFileForm.java in the org.dhsinfo.content directory is like:
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried the same code another day later. The code worked fine again.

It is really a strange problem. What I am worried about is that I cannot have something that works on day 1, does not work on day 2, and works again on day 3. Who knows what is going to happen on day 4.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic