Page 1 of 1

IOException: Internal Server Error

PostPosted:Mon Nov 19, 2012 6:29 am
by bc_santana
Hi all,

I'm receiving an error each time i try to upload any file larger than 4Mb using the uploader
error.png
error.png (40.89 KiB) Viewed 3593 times
this happens on both the client & server

This is the log from uploader
Code: Select all
Nov 19, 2012 9:13:55 AM com.openkm.applet.UploadWorker createDocumentHelper
INFO: createDocumentHelper(5D9F2EE6542E34A735ACCFA905C95D03, /okm:root, http://tac-svr01/OpenKM, C:\Users\Haitham\Desktop\123.pdf)
Nov 19, 2012 9:13:55 AM com.openkm.applet.protocol.HttpProtocol createDocument
INFO: createDocument(5D9F2EE6542E34A735ACCFA905C95D03, /okm:root, http://tac-svr01/OpenKM, C:\Users\Haitham\Desktop\123.pdf)
Nov 19, 2012 9:13:55 AM com.openkm.applet.UploadWorker createDocumentHelper
SEVERE: IOException: Internal Server Error
org.apache.http.client.HttpResponseException: Internal Server Error
	at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:67)
	at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:55)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:945)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
	at com.openkm.applet.protocol.HttpProtocol.createDocument(HttpProtocol.java:75)
	at com.openkm.applet.UploadWorker.createDocumentHelper(UploadWorker.java:105)
	at com.openkm.applet.UploadWorker.doInBackground(UploadWorker.java:76)
	at com.openkm.applet.UploadWorker.doInBackground(UploadWorker.java:43)
	at javax.swing.SwingWorker$1.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at javax.swing.SwingWorker.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Nov 19, 2012 9:13:55 AM com.openkm.applet.UploadWorker createDocumentHelper
INFO: createDocumentHelper: void
if i tried to add the file using add new document it will show 100% upload but says the file is still processing
error1.png
error1.png (3.36 KiB) Viewed 3593 times
OKM Version: 6.2.0 (build: 13077)
Server : 2008 x64
Client : Win 7 x64

Kindly advice on this issue

Thanx

Re: IOException: Internal Server Error

PostPosted:Tue Nov 20, 2012 12:18 pm
by pavila
Please, try to reproduce the error with OpenKM 6.2.1 which was released a couple of days ago.

Re: IOException: Internal Server Error

PostPosted:Wed Nov 21, 2012 5:47 am
by bc_santana
already upgraded to 6.2.1
but still having the same issue

things I've tried so far:
disabled my firewall
disabled my antivirus
tried to upload from the server with the internet turned off
checked the settings on tomcat, okm, mysql & IIS

i'm guessing this could be an IIS issue but i cant find any configuration that limits the upload size

today i'll try to disable the IIS & use the Apache server

Re: IOException: Internal Server Error

PostPosted:Wed Nov 21, 2012 8:09 am
by bc_santana
Solved
Finally!!! ^___^

It was an IIS issue as i suspected

if anyone ran into this problem here is how u can solve it

1- Go to webapps folder

2- Edit the web.config file and add the following under <configuration>
Code: Select all
<system.web>
	<httpRuntime maxRequestLength="2097151" />
</system.web>
where "2097151" is the maximum allowed in IIS

3- if there is no web.config then just create one from text file & add the following
Code: Select all
<configuration>
	<system.web>
	<httpRuntime maxRequestLength="2097151" />
	</system.web>
</configuration>
That's it ... now it's working fantastic ^___^

Cheers

Re: IOException: Internal Server Error

PostPosted:Thu Nov 22, 2012 6:18 pm
by jllort