aspose file tools*
The moose likes Struts and the fly likes Strange IllegalArgumentException: No bean specified Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange IllegalArgumentException: No bean specified" Watch "Strange IllegalArgumentException: No bean specified" New topic
Author

Strange IllegalArgumentException: No bean specified

Mike Himstead
Ranch Hand

Joined: Apr 12, 2006
Posts: 178
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.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Apr 12, 2006
Posts: 178
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange IllegalArgumentException: No bean specified