5 Replies Latest reply on Mar 2, 2006 2:03 PM by Juan Acosta

    Admin CMS Portlet, upload file error

    Dave Chen Master

      When I tried to upload a file using the Admin CMS Portlet, I got the following error message:

      ( I am using JBoss AS 4.0.3 RC1, JBoss Portal 2.0, MySql 4.1)

      javax.servlet.ServletException: An error occured during the action request : Servlet execution threw an exception
      org.jboss.portal.core.servlet.CoreServlet.render(CoreServlet.java:174)
      org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:81)
      org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
      org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      javax.servlet.ServletException: Servlet execution threw an exception
      org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:74)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      org.jboss.portal.server.Component.invoke(Component.java:130)
      org.jboss.portal.server.invocation.portal.TargetInterceptor.invokeWindow(TargetInterceptor.java:167)
      org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:67)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:92)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)
      org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:78)
      org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
      org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      java.lang.NoSuchMethodError: org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
      org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(PortletFileUpload.java:101)
      org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet$20.perform(AdminCMSPortlet.java:926)
      org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet$1.run(AdminCMSPortlet.java:116)
      org.jboss.portal.core.security.jaas.IdentityPropagationLoginModule.propagate(IdentityPropagationLoginModule.java:102)
      org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet.perform(AdminCMSPortlet.java:97)
      org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet.processAction(AdminCMSPortlet.java:917)
      org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:342)
      org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeAction(DispatcherInterceptor.java:110)
      org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:191)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(PreferencesInterceptor.java:93)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94)
      sun.reflect.GeneratedMethodAccessor187.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:49)
      org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:74)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      org.jboss.portal.server.Component.invoke(Component.java:130)
      org.jboss.portal.server.invocation.portal.TargetInterceptor.invokeWindow(TargetInterceptor.java:167)
      org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:67)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:92)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)
      org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:78)
      org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
      org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      On server side:

      15:10:54,640 ERROR [[PortalServlet]] Servlet.service() for servlet PortalServlet
      threw exception
      java.lang.NoSuchMethodError: org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List
      ;
      at org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(
      PortletFileUpload.java:101)
      at org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet$20.perform(Ad
      minCMSPortlet.java:926)
      at org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet$1.run(AdminCM
      SPortlet.java:116)
      at org.jboss.portal.core.security.jaas.IdentityPropagationLoginModule.pr
      opagate(IdentityPropagationLoginModule.java:102)
      at org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet.perform(Admin
      CMSPortlet.java:97)
      at org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet.processAction
      (AdminCMSPortlet.java:917)
      at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:342)
      at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeActio
      n(DispatcherInterceptor.java:110)
      at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(Disp
      atcherInterceptor.java:191)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(Pre
      ferencesInterceptor.java:93)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.server.invocation.component.ContextDispatcherInterce
      ptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94)
      at sun.reflect.GeneratedMethodAccessor187.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.j
      ava:49)
      at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.
      java:98)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
      atcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
      ispatcher.java:539)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
      patcher.java:499)
      at org.jboss.portal.server.invocation.component.ContextDispatcherInterce
      ptor.invoke(ContextDispatcherInterceptor.java:58)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(Acce
      ssControlInterceptor.java:125)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(
      CacheInterceptor.java:74)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:238)
      at org.jboss.portal.server.Component.invoke(Component.java:130)
      at org.jboss.portal.server.invocation.portal.TargetInterceptor.invokeWin
      dow(TargetInterceptor.java:167)
      at org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(Ta
      rgetInterceptor.java:67)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(Conten
      tTypeInterceptor.java:117)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserCo
      ntextInterceptor.java:92)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:213)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(Inv
      ocationImpl.java:238)
      at org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)
      at org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMa
      inServlet.java:78)
      at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMai
      nServlet.java:71)
      at org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMa
      inServlet.java:62)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionF
      ilter.java:79)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:153)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:482)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)


      -------------------------

      The error is Method not found. I looked the Javadoc of the common upload, the parseRequest(ActionRequest ) : List
      that does not take an array. The error message says the method taking array type (Lxxx;) not found.

      http://jakarta.apache.org/commons/fileupload/apidocs/index.html


      Thank for help.

      [/url]