Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3173

Regression : NullPointerException in org.apache.struts.util.RequestUtils.rationalizeMultipleFileProperty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.10
    • Fix Version/s: 1.3.12, 1.4.0
    • Component/s: Core
    • Labels:
      None

      Description

      With version 1.3.10 we got the following error but not with previous stable version.
      We are using a Form with fileUpload.
      Here is the stack trace :
      java.lang.NullPointerException
      at java.lang.Class.isAssignableFrom(Native Method)
      at org.apache.struts.util.RequestUtils.rationalizeMultipleFileProperty(RequestUtils.java:506)
      at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:459)
      at org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
      at org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
      at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
      at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
      at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
      at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
      at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        Attachments

          Activity

            People

            • Assignee:
              niallp Niall Pemberton
              Reporter:
              xpoinsard@openpricer.com Xavier Poinsard
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: