Upload with Direct action
Upload with Direct action
- Subject: Upload with Direct action
- From: Suhas Indra <email@hidden>
- Date: Wed, 20 Aug 2003 20:03:33 +0530
Hello folks
We are using a plug-in to upload the file contents to Webserver. The file
information will be submitted to a direct action method. There is an
independent Form along with the plug-in.
As we all know WO 5.2 has many changes to the upload component, somehow the
communication between the upload plug-in and server is broken.
I browsed through the Release notes of WO 5.2 and 5.2.1.
The file contents are the last item to be uploaded. Direct action method
fetches the form values in the order of submission. In spite of this, the
request is blocked at the form value parsing routine.
The exception looks similar to Apple Reference: 3181505 in WO 5.2.1 release
notes.
Mac OS 10.2.4
WO 5.2.1
December Developer Tools
FrontBase 3.19
Please let me know the possible problem.
Thank you.
Regards
Suhas
Upload data:
POST http://ServerAddress 1.1
content-type: multipart/form-data; boundary=AaB03x
Content-Length: 36900
Content-type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-disposition: form-data; name="session"
HRVB4HLawhgULbJUJTWAug
--AaB03x
Content-disposition: form-data; name="file"; filename=sampleImag
e.jpg; fileType=JPEG; fileCreator=????
Content-type:application/mac-binhex40
(This file must be converted with BinHex 4.0)
...
....
Exception thrown:
<com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception
while handling action named "null" on action class "null"
:java.lang.NullPointerException
[2003-08-20 19:51:23 IST] <WorkerThread8> java.lang.NullPointerException
at
com.webobjects.appserver.WOMultipartIterator$WOFormData.name(WOMultipartIter
ator.java:538)
at
com.webobjects.appserver.WOMultipartIterator$WOFormData._addToFormValues(WOM
ultipartIterator.java:634)
at
com.webobjects.appserver.WOMultipartIterator._nextFormData(WOMultipartIterat
or.java:322)
at
com.webobjects.appserver.WORequest._getFormValuesFromMultipartFormData(WOReq
uest.java:1705)
at
com.webobjects.appserver.WORequest.formValues(WORequest.java:1393)
at
com.webobjects.appserver.WORequest.formValuesForKey(WORequest.java:878)
at
com.webobjects.appserver._private.WODirectActionRequestHandler._submitButton
sActionPathFromRequest(WODirectActionRequestHandler.java:52)
at
com.webobjects.appserver._private.WODirectActionRequestHandler.getRequestHan
dlerPathForRequest(WODirectActionRequestHandler.java:98)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOAc
tionRequestHandler.java:203)
at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOAct
ionRequestHandler.java:142)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:12
47)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java
:167)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:248
)
at java.lang.Thread.run(Thread.java:491)
--------------------------------------------------------------
Robosoft Technologies - Partners in Product Development
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.