I was having some problems with the HTTP service. I was trying to submit
the following request to the HTTP service:

dopost url
http://shlomit2-zpro:9080/Glossary/Preload/Import/CategoryTermsAction.do
header content-type=multipart/form-data parameter currentPageAction=IMPORT
parameter cache= contentfile
categoriesAndTermsFile=c:/IBM/InformationServer/TestAutomation/Sample.csv
session 3

When run through 1 STAF instance this worked perfectly, and when run
through another instance, the server gave the following error:

[10/5/08 16:09:37:251 GMT+02:00] 00000034 WebApp        E   SRVE0026E:
[Servlet Error]-[action]:
org.apache.commons.fileupload.FileUploadException: the request was rejected
because no multipart boundary was found:
      at org.apache.commons.fileupload.FileUploadBase.parseRequest
(FileUploadBase.java:327)
      at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:193)
      at org.apache.struts.util.RequestUtils.populate
(RequestUtils.java:443)
      at org.apache.struts.action.RequestProcessor.processPopulate
(RequestProcessor.java:805)
      at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:203)
      at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1194):
      at org.apache.struts.action.ActionServlet.doPost
(ActionServlet.java:432)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)

When I googled this error, the source code for the apache upload service
came up - seems that the code is looking for boundary= header and if it
does not find it, it throws that exception.


When I checked the versions of HTTP service on these 2 instances, I saw
that the version on the instance that had the error was the most recent
version of HTTP service - Version 3.0.0: 06/20/2008 (from the history
file), but on the instance where it worked, the version was: Version 3.0.0
Beta 10: 09/29/2005. So it seems like this bug crept in, in the last few
versions of 3.0.0. When replacing the newest 3.0.0 with the Beta 10
version, the request worked.

I'm not sure how to report bugs for this service, but you need any extra
information let me know.

Thanks,
--------------------------------------------
Hayden Marchant
Software Engineer
IBM InfoSphere Metadata Workbench
Jerusalem
Tel: +972 2 649 1117
Tie Line: 81131817
Fax: +972 2 649 1112
----------------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to