Results 1 to 5 of 5

Thread: AbstractExcelView OPTIONS

  1. #1
    Join Date
    Sep 2004
    Posts
    18

    Default AbstractExcelView OPTIONS

    I am getting this stacktrace in the log when I render an excel spreadsheet using POI to Internet Explorer 6.0:

    org.springframework.web.servlet.support.RequestMet hodNotSupportedException: Request method 'OPTIONS' not supported
    at org.springframework.web.servlet.support.WebContent Generator.checkAndPrepare(WebContentGenerator.java :199)
    at org.springframework.web.servlet.support.WebContent Generator.checkAndPrepare(WebContentGenerator.java :178)
    at org.springframework.web.servlet.mvc.AbstractContro ller.handleRequest(AbstractController.java:116)
    at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:522)
    at org.springframework.web.servlet.FrameworkServlet.s ervice(FrameworkServlet.java:321)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletI nvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeSe rvlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :6350)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.inv okeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execu te(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)


    I know why this error is being printed from looking at the Spring source code, but I don't know what is sending an OPTIONS request to the servlet.

    Does anyone else get this error and do you know why?

    BTW: This does not affect anything, and the excel file renders correctly, but it fills the logs with stacktraces.

    Thanks!

  2. #2
    Join Date
    Sep 2004
    Posts
    18

    Default

    FYI: I am using AbstractExcelView and the previously mentioned stacktrace prints exactly 3 times for each time I render a report through Spring.

  3. #3
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    The stack trace you're getting is linked to the fact that IE is curious about the available HTTP verbs for this url. However, the excel view doesn't implement the doOptions method and the spring servlet which filters the request before dispatching it to the view render warns about this.
    I wonder whether spring shouldn't provide the normal behaviour on goOptions even for views which don't provide their implementation.
    So, for now, you'll have to cope with it but it is not specially an IE bug (for once)
    I'll file a JIRA improvement request about this.

    Olivier

  4. #4
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

  5. #5
    Join Date
    Sep 2004
    Posts
    18

    Default

    Thanks, that is what I figured was happening. I was considering extending the WebContentGenerator class from Spring and fixing this issue, but I don't like to start modifying open source libraries, it gets complicated when new versions come out.

Similar Threads

  1. Options of the BindUtils.bind methods
    By kwen@evidence3.com in forum Web
    Replies: 0
    Last Post: Sep 6th, 2005, 02:27 AM
  2. Replies: 0
    Last Post: Aug 25th, 2005, 06:18 AM
  3. Deployment configuration options
    By Patrick Bourke in forum Architecture
    Replies: 2
    Last Post: Jun 9th, 2005, 01:15 PM
  4. Replies: 1
    Last Post: Jun 5th, 2005, 04:08 PM
  5. Replies: 4
    Last Post: Apr 6th, 2005, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •