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

Dispatch Action Not working

 
Tihor Atpug
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using a combination of Struts 1.3 and Spring in my project, I am using Dispatch Action for all my action classes. Lately when I check the logs of the application, I see the following error,


javax.servlet.ServletException: Request[/viewDef] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.


This error doesn't happen all the time for the same action classes and I am getting troubled by this .

Regards,
Rohit
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JR !
Your post doesn't provide enough information regarding what exactly happening.
Look here, for what I want to say

How you're accessing the dispatch action, the URL? Provide the struts-config.xml action mapping snippet ?
 
Tihor Atpug
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this helps, this is the whole stack trace..




The struts config mapping


I am trying to access the url directly by typing the address in the browser.

Regards,
Rohit


 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to access the url directly by typing the address in the browser.


What is the url you tried ? it should have "method" parameter in query String .something like ?method=xyz
 
Tihor Atpug
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup.. am accessing the url with all the prameters and no widespace and stuff.. and as I said.. most of the time the url works fine.. just 4-5 times of hundred I get this error.

Regards,
Rohit
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tihor Atpug wrote:Yup.. am accessing the url with all the prameters and no widespace and stuff..

Then is it possible to you to post the URL ?
Tihor Atpug wrote:and as I said.. most of the time the url works fine.. just 4-5 times of hundred I get this error.

Try logging the URL every time the request comes, so that you can see which particular URL patter throws this exception.

Also some limitations to my knowledge, because I don't know Spring, (no idea of this action "org.springframework.web.struts.DelegatingActionProxy"), so asking this question in Spring forum will help you.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic