This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes File uploading problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "File uploading problem" Watch "File uploading problem" New topic
Author

File uploading problem

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Hello,

I am using Orielly's API for uploading file but my code line number 83 is throwing exception:


Exception:
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Hello,

Still waiting for favor

Best regards
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Farakh khan wrote:Hello,

Still waiting for favor

Best regards


You should consult the documentation for constructor of the class MultipartRequest, it may document why exceptions are thrown.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

I'm not sure. In top of the stack trace you find JkInputStream. That's the "Generic input stream impl on top of ajp" (direct quote from the Javadoc page). In other words, mod_jk or something other that uses AJP is active here, and seems to be causing the problems.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Rob Spoor wrote:I'm not sure. In top of the stack trace you find JkInputStream. That's the "Generic input stream impl on top of ajp" (direct quote from the Javadoc page). In other words, mod_jk or something other that uses AJP is active here, and seems to be causing the problems.


Rob Spoor you are really genius. Yes the mod_jk is connecting apache + tomcat on my dedicated server. Is there a way to fix it?

Best regards
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

I don't know, I've never had these issues with mod_jk. Sure, I've had other issues (NTLM mostly), but never these.

Could you perhaps show your mod_jk configuration settings, of both httpd.conf and the worker.properties files?
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Rob Spoor wrote:Could you perhaps show your mod_jk configuration settings, of both httpd.conf and the worker.properties files?


My worker.properties file


mod_jk.conf


Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
I restarted both tomcat and apache. Now its working but strange thing is that there are 5 computers in my network and its uploading only from 2 computers whilst 3 computers not work to upload file

it again started throwing following error:


Thanks again
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Is there a way to fix it?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

There probably is, but I don't know it...
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Rob Spoor wrote:There probably is, but I don't know it...

Thanks for updating
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File uploading problem
 
Similar Threads
Orielly Maultipart Request : unexpected end of part
Linkage error
File Upload problem w/ cos MultipartRequest
file upload, InterruptedIOException, "read timed out"
Illegal Argument exception