This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Strange IllegalArgumentException: No bean specified

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!