• 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

Strange IllegalArgumentException: No bean specified

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I experience a strange problem in my Struts 1.3.10 application. Basically I get the following exception if I try to invoke one of my dispatch actions:


My (shortened) struts-config:


My (shortened) action:


The action's abort method is never called, I verified this in debug mode. The JSP calling the action looks like this:


As you can see we use JS onclicks to determine the dispatch action's method to call. Funny: if I remove the whole content of div "tab2" (from line 252 to 723, basically many divs marking specific areas ion the JSP) the appropriate action is called, so there must be a simple, stupid mistake I make in that area. I would expect the thrown exception if I forgot to define a form bean in struts-config or something basic like that, but the definition is there. Accessing the form and its content in general is possible as well since I can read the form bean's properties by EL. Any hints are appreciated.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's a *huge* JSP :(

It'd be handy to show the line from the action where the exception is happening...
 
Mike Himstead
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,

thanks for your advice, I reworded a few sentences in my previous post. The JSP is very long, I know, but I didn't want to leave out anything since I have no clue what's wrong here and I didn't want to cut out anything important. The main parts are a div containing text fields (->search filters) followed by a status bar and several "containers" (->divs) which structure the page. The containers show the search results. If I remove the containers from line 252 to 723 the actions work, if I put them back I get the mentioned exception. The action is not called when submitting the form (I debugged that), thus the exception isn't thrown by the action itself but by Struts' internal logic. I was thinking of a missing tag or something, but I couldn't find any.
 
Forget Steve. Look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic