• 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

Dispatch Action Not working

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic