I have just updated the Jetty on Branch_3_0 to 4.2.x.

Please follow the instructions on SourceForge to check out a fresh JBoss-3.0.x and try again.

Use -r Branch_3_0 and the module name jboss-3.0 (from memory)

If the problem persists in this latest version, we will look at it.

Cheers,


Jules


Mikhail Akopov wrote:
Using jboss+jetty [3.0.4 Date:200211021607]
I have a struts form where user should

 1. upload the file(when clicking on upload button the form is
    submitted to /gui2/do/import/upload)
 2. after file is uploaded(the same wizard form is loaded, but with a
    message that file has been uploaded instead of browse/upload input
    boxes), click on the next button(eg submit the form to
    /gui2/do/import/wizard)

 The problem is with step 2. If i upload the file large than ~3200 bytes
 and, after the form is reloaded, submit the form again immediately i get a
 400 Bad Request exception from org.jboss.jbossweb and random
 debug logs (1) or (2). However if the file has smaller size or i wait
 ~ 90+ seconds before submitting the form again - everything works
 correctly - log (3). What can be the reason for such a strange
 behaviour?


   public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException
     HttpSession session = request.getSession(false);
     ...
     Seance seance = null;
     if (session != null) {
       seance = (Seance)session.getAttribute(com.supportwizard.gui2.Constants.SEANCE_KEY);
     }
     if (seance == null) {
       log.debug("Session is dead and no autologin parameters, session="+session+" ,seance="+seance+", request="+request.toString());
       RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/errors/redirector.jsp");
       dispatcher.forward(request, response);
     }
     ...
   }


 (1)
 DEBUG [org.apache.struts.util.PropertyMessageResources] getMessage(en_US,org.apache.struts.taglib.bean.format.int)
 DEBUG [org.apache.struts.util.PropertyMessageResources] loadLocale(en_US)
 DEBUG [org.apache.struts.util.PropertyMessageResources] loadLocale(en)
 DEBUG [org.apache.struts.util.PropertyMessageResources] loadLocale(ru_RU)
 DEBUG [org.apache.struts.util.PropertyMessageResources] loadLocale()
 DEBUG [com.supportwizard.gui2.servlets.system.GUIActionServlet] Session is dead and no autologin parameters, session=null ,seance=null,
 request=/gui2+/do+/import/upload
 POST /gui2/do/import/upload HTTP/1.0
 erer: http://localhost:8080/gui2/import/wizard.d

 Accept-Language: ru
 Content-Type: multipart/form-data; bound
 ccept-Encoding: gzip, deflate


 (2)
 DEBUG [com.supportwizard.gui2.servlets.system.GUIActionServlet] Session is dead and no autologin parameters, session=null ,seance=null,
 request=/gui2+/do+/import/upload
 POST /gui2/do/import/upload HTTP/1.0
 erer: http://localhost:8080/gui2/import/wizard.d

 Accept-Language: ru
 Content-Type: multipart/form-data; bound
 cept-Encoding: gzip, deflate
 Us


 DEBUG [com.supportwizard.gui2.servlets.system.GUIActionServlet] Session is dead and no autologin parameters,
 session=org.mortbay.jetty.servlet.HashSessionManager$Session@5293b7 ,seance=null, request=/gui2+/import/wizard.do+null
 POST /gui2/import/wizard.do HTTP/1.1
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, */*
 Referer: http://localhost:8080/gui2/do/import/upload
 Accept-Language: ru
 Content-Type: application/x-www-form-urlencoded
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
 Host: localhost:8080
 Content-Length: 168
 Connection: keep-alive
 Cache-Control: no-cache
 Cookie: JSESSIONID=1npnkfckzbdv2


 WARN  [com.supportwizard.gui2.beans.hotlinks.HotlinksProcessor] hotlink is invalid - Parameter "keyid" is mandatory
 DEBUG [com.supportwizard.gui2.beans.hotlinks.HotlinksProcessor] isHotlink=false, error=Parameter "keyid" is mandatory
 ...


 (3)
 INFO  [org.apache.struts.action.RequestProcessor] Processing a 'POST' for path '/import/wizard'
 DEBUG [org.apache.struts.util.RequestUtils]  Looking for ActionForm bean instance in scope 'session' under attribute key 'importMultiWizard'
 DEBUG [org.apache.struts.util.RequestUtils]  Recycling existing ActionForm instance of class 'com.supportwizard.gui2.beans.data.importer.ImportMultiForm'
 DEBUG [org.apache.struts.util.RequestUtils]  --> com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40
 DEBUG [org.apache.struts.action.RequestProcessor]  Storing ActionForm bean instance in scope 'session' under attribute key 'importMultiWizard'
 DEBUG [org.apache.struts.action.RequestProcessor]  Populating bean properties from this request
 DEBUG [org.apache.commons.beanutils.BeanUtils] BeanUtils.populate(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40,
 {activeTab=[Ljava.lang.String;@754792, formSuffix=[Ljava.lang.String;@2de59c, uploadURL=[Ljava.lang.String;@3d8738, wizardID=[Ljava.lang.String;@78ac3a,
 prevTab=[Ljava.lang.String;@7343c7, formID=[Ljava.lang.String;@66cceb})
 DEBUG [org.apache.commons.beanutils.BeanUtils]   setProperty(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40, activeTab, [dataFormat])
 DEBUG [org.apache.commons.beanutils.BeanUtils]   setProperty(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40, formSuffix, [text])
 DEBUG [org.apache.commons.beanutils.BeanUtils]   setProperty(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40, uploadURL,
 [/gui2/do/import/upload])
 DEBUG [org.apache.commons.beanutils.BeanUtils]   setProperty(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40, wizardID, [importMulti])
 DEBUG [org.apache.commons.beanutils.BeanUtils]   setProperty(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40, prevTab, [fileName])
 DEBUG [org.apache.commons.beanutils.BeanUtils]   setProperty(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40, formID, [])
 DEBUG [org.apache.struts.action.RequestProcessor]  Validating input form properties
 DEBUG [org.apache.struts.action.RequestProcessor]   No errors detected, accepting input
 DEBUG [org.apache.struts.action.RequestProcessor]  Looking for Action instance for class com.supportwizard.gui2.actions.data.importer.ImportMultiAction
 DEBUG [org.apache.struts.action.RequestProcessor]   Returning existing Action instance
 DEBUG [com.supportwizard.gui2.actions.data.importer.ImportMultiAction] perform(activeTab=dataFormat)
 DEBUG [com.supportwizard.gui2.actions.data.importer.ImportMultiAction]
 prepareMeta(com.supportwizard.gui2.beans.data.importer.ImportMultiForm@211e40,request=/gui2+/import/wizard.do+null
 POST /gui2/import/wizard.do HTTP/1.1
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, */*
 Referer: http://localhost:8080/gui2/do/import/upload
 Accept-Language: ru
 Content-Type: application/x-www-form-urlencoded
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
 Host: localhost:8080
 Content-Length: 123
 Connection: keep-alive
 Cache-Control: no-cache
 Cookie: JSESSIONID=6l67qlgnj3fgo

 )
 ...



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to