I remember having issues with uploading files and getting them fixed after setting the encoding everywhere to UTF-8.

If you are using Wonder then add this to your Properties file:

er.extensions.ERXApplication.DefaultEncoding=UTF-8

Then make sure the components are all using UTF-8. You can check that in the .woo file.

That fixed it for me a while back.



On Oct 19, 2009, at 8:18 AM, Raghavender wrote:

We have an issue with WOFileUpload component of WO 5.4.3 version, if there
is a WOFileUpload component in a page then the Form encType should be
"multipart/form-data", then in this case the form data is not submitting to
the Server.  When we remove the WOFileUpload then the form data is
submitting.  Does anyone know a way to resolve this or a work-around?

I have followed accordingly specified in the below mentioned URL:
http://lists.apple.com/archives/Webobjects-dev/2008/Dec/msg00727.html
but still the issue exist, and following are the logs:-
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ======================================================================
aMethod -> POST
aURL -> /cgi-bin/WebObjects/Solar.woa/wo/ojhWnnt5cVNtxYlL66ORsM/ 5.0.7.1.15.1.3
anHTTPVersion ->HTTP/1.1

someHeaders ->{referer = [http://172.16.4.116:55615/cgi-bin/WebObjects/Solar.woa/wo/ojhWnnt5cVNtxYlL66ORsM/4.0.7.1.15.2 ]; accept-encoding = [gzip, deflate]; cookie = [ojhWnnt5cVNtxYlL66ORsM="GLOBAL [email protected]:55615"]; content- type = [multipart/form-data; boundary=---- WebKitFormBoundaryMyCt9X7guHzqi1xL]; origin = [http://172.16.4.116:55615 ]; user-agent = [Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/ 531.9]; accept = [application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5]; content-length = [3628]; host = [172.16.4.116:55615]; accept-language = [en-us]; connection = [keep-alive]; }

aContent -><class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver ._private.wonocopypushbackinputstr...@2c21840d of length 3628), has NOT been accessed>

someInfo ->null

DispatchRequest -> <Request (<Request httpVersion=HTTP/1.1 headers= {accept=[application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length= [3628], content-type=[multipart/form-data; boundary=---- WebKitFormBoundaryMyCt9X7guHzqi1xL], cookie= [ojhWnnt5cVNtxYlL66ORsM="GLOBAL [email protected]:55615"], host= [172.16.4.116:55615], origin=[http://172.16.4.116:55615], referer= [http://172.16.4.116:55615/cgi-bin/WebObjects/Solar.woa/wo/ ojhWnnt5cVNtxYlL66ORsM/4.0.7.1.15.2], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/WebObjects/Solar.woa/wo/ ojhWnnt5cVNtxYlL66ORsM/5.0.7.1.15.1.3 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={0.7.1.15.1.3.0 = (<class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@1299ee0b of length 0), has NOT been accessed>); 0.7.1.15.1.3.0.mimetype = ("image/gif"); 0.7.1.15.1.3.0.filename = ("InchesRulerHoriz.gif"); } > 57415 [WorkerThread9] INFO NSLog - Did not specify a -Config <name> option. Will default to Solar. 57416 [WorkerThread9] INFO NSLog - Did not specify a -Config <name> option. Will default to Solar.

takeValuesFromRequest -> <Request (<Request httpVersion=HTTP/1.1 headers={accept=[application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept-encoding= [gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[3628], content-type=[multipart/form-data; boundary=----WebKitFormBoundaryMyCt9X7guHzqi1xL], cookie= [ojhWnnt5cVNtxYlL66ORsM="GLOBAL [email protected]:55615"], host= [172.16.4.116:55615], origin=[http://172.16.4.116:55615], original_context_id=[5], referer=[http://172.16.4.116:55615/cgi-bin/ WebObjects/Solar.woa/wo/ojhWnnt5cVNtxYlL66ORsM/4.0.7.1.15.2], user- agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/ WebObjects/Solar.woa/wo/ojhWnnt5cVNtxYlL66ORsM/5.0.7.1.15.1.3 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={0.7.1.15.1.3.0 = (<class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@1299ee0b of length 0), has NOT been accessed>); 0.7.1.15.1.3.0.mimetype = ("image/gif"); 0.7.1.15.1.3.0.filename = ("InchesRulerHoriz.gif"); } >

takeValuesFromRequest WOContext -> <er.extensions.appserver.ERXWOContext54 contextID=6 requestSenderID=0.7.1.15.1.3 elementID=null sessionID=ojhWnnt5cVNtxYlL66ORsM request=<Request (<Request httpVersion=HTTP/1.1 headers={accept=[application/xml,application/ xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept-encoding=[gzip, deflate], accept-language=[en-us], connection= [keep-alive], content-length=[3628], content-type=[multipart/form- data; boundary=----WebKitFormBoundaryMyCt9X7guHzqi1xL], cookie= [ojhWnnt5cVNtxYlL66ORsM="GLOBAL [email protected]:55615"], host= [172.16.4.116:55615], origin=[http://172.16.4.116:55615], original_context_id=[5], referer=[http://172.16.4.116:55615/cgi-bin/ WebObjects/Solar.woa/wo/ojhWnnt5cVNtxYlL66ORsM/4.0.7.1.15.2], user- agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/ WebObjects/Solar.woa/wo/ojhWnnt5cVNtxYlL66ORsM/5.0.7.1.15.1.3 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={0.7.1.15.1.3.0 = (<class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@1299ee0b of length 0), has NOT been accessed>); 0.7.1.15.1.3.0.mimetype = ("image/gif"); 0.7.1.15.1.3.0.filename = ("InchesRulerHoriz.gif"); } > response=<er.extensions.appserver.ERXResponse (<er.extensions.appserver.ERXResponse httpVersion=HTTP/1.1 headers= {content-type=[text/html]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true >) status=200> pageElement=<ResourceEditPage name: ResourceEditPage subcomponents: null > pageComponent=<ResourceEditPage name: ResourceEditPage subcomponents: null > currentComponent=null url=/cgi-bin/WebObjects/ Solar.woa urlApplicationNumber=-1 distributionEnabled=false pageChanged=false pageReplaced=false>

[2009-10-19 14:26:21 IST] <WorkerThread9> java.lang.RuntimeException: set to ISO8859_1
        at Request.setDefaultFormValueEncoding(Request.java:15)
at er.extensions.appserver.ERXMessageEncoding.setDefaultFormValueEncodingToRequest (ERXMessageEncoding.java:168) at er.extensions.appserver.ERXMessageEncoding.setDefaultFormValueEncodingToRequest (ERXMessageEncoding.java:173) at er.extensions.appserver.ERXSession.takeValuesFromRequest (ERXSession.java:528)
        at Session.takeValuesFromRequest(Session.java:203)
at com.webobjects.appserver.WOApplication.takeValuesFromRequest (WOApplication.java:1724)
        at Application.takeValuesFromRequest(Application.java:177)
at com.webobjects.appserver ._private.WOComponentRequestHandler._dispatchWithPreparedPage (WOComponentRequestHandler.java:199) at com.webobjects.appserver ._private.WOComponentRequestHandler._dispatchWithPreparedSession (WOComponentRequestHandler.java:298) at com.webobjects.appserver ._private.WOComponentRequestHandler._dispatchWithPreparedApplication (WOComponentRequestHandler.java:332) at com.webobjects.appserver ._private.WOComponentRequestHandler._handleRequest (WOComponentRequestHandler.java:369) at com.webobjects.appserver ._private.WOComponentRequestHandler.handleRequest (WOComponentRequestHandler.java:442) at com.webobjects.appserver.WOApplication.dispatchRequest (WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately (ERXApplication.java:1802) at er.extensions.appserver.ERXApplication.dispatchRequest (ERXApplication.java:1767)
        at Application.dispatchRequest(Application.java:728)
at com.webobjects.appserver._private.WOWorkerThread.runOnce (WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run (WOWorkerThread.java:226)
        at java.lang.Thread.run(Thread.java:637)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rparada %40mac.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to