• Scanner and File Uploader

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #9142  by joako
 
I've got an office full of Macs. Should the applet function on MacOS? When I open it in Firefox I get a security warning which I accept and then nothing further.
 #9164  by jllort
 
Take a look at java console to see what happens. You might have version 1.6
 #9200  by pavila
 
Other user have reported applet problems in Mac platform. I don't have a Mac to try, so I'm not sure why it fails. The applet works on Windows and Linux, and should work in any IE/Firefox installation with the Java Plugin 1.6 installed.
 #9522  by joako
 
Yes the errors are as follows:
Code: Select all
MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security @ Wed Mar 16 01:51:15 EDT 2011]
Wed Mar 16 01:51:21 EDT 2011 JEP creating applet com.openkm.applet.Scanner (http://docs/OpenKM//com.openkm.frontend.Main/)
init: com.openkm.applet.lang.Resources_en_US@ad483 --- en_US
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@1e779a1 (
 (java.net.SocketPermission docs connect,accept,resolve)
)
 >>>
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: AppVersion: 5.0 (build: 3889)
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: openkm.token => 66104AD4CC075EA5743D43781EDC831A
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: openkm.path => /okm:root
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: openkm.lang => en-US
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: applet.locale => en_US
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: applet.url => http://docs/OpenKM/
Mar 16, 2011 1:51:21 AM com.openkm.applet.Scanner init
INFO: applet.jsobject => [object Window]
Mar 16, 2011 1:51:21 AM com.openkm.applet.ScannerManager <init>
INFO: ########## ScannerManager ##########
java.lang.NullPointerException
	at com.openkm.applet.ScannerManager.<init>(ScannerManager.java:70)
	at com.openkm.applet.Scanner.init(Scanner.java:79)
	at sun.applet.AppletPanel.run(AppletPanel.java:424)
	at jep.AppletFramePanel.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:680)
 #9595  by yozik
 
I too am on OS X
10.6.6
Code: Select all
$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
OpenKM 5.0.3 running on debian squeeze xen guest

the uploader doesn't work for me under OSX but does under Linux

I can post the output from the java console (rather chatty) here are some of the things that seem to stick out

i get the following when starting the upload applet
Code: Select all
network: Cache entry not found [url: http://192.168.2.212:8080/OpenKM/httpclient-4.0.1.jar, version: null]
network: Connecting http://192.168.2.212:8080/OpenKM/httpclient-4.0.1.jar with proxy=DIRECT
network: Connecting http://192.168.2.212:8080/OpenKM/httpclient-4.0.1.jar with cookie “JSESSIONID=F0D139EE954CC21079A62222E1738930”
java.io.FileNotFoundException: http://192.168.2.212:8080/OpenKM/httpclient-4.0.1.jar

java.io.FileNotFoundException: http://192.168.2.212:8080/OpenKM/httpcore-4.0.1.jar

java.io.FileNotFoundException: http://192.168.2.212:8080/OpenKM/commons-logging-1.1.1.jar

java.io.FileNotFoundException: http://192.168.2.212:8080/OpenKM/commons-codec-1.3.jar

java.io.FileNotFoundException: http://192.168.2.212:8080/OpenKM/httpmime-4.0.1.jar

java.io.FileNotFoundException: http://192.168.2.212:8080/OpenKM/apache-mime4j-0.6.jar
and then this when trying to upload a file
Code: Select all
basic: Told clients applet is started
java.lang.IllegalArgumentException: URI has an authority component

Mar 18, 2011 8:02:43 PM com.openkm.applet.MainFrame drop
WARNING: JSException: JavaScript error while calling "refreshFolder"
netscape.javascript.JSException: JavaScript error while calling "refreshFolder"
--
yozik
 #9684  by yozik
 
just to update, using my linux setup I get the same file not found errors in the java console but no URI error

I get this when uploading a file
Code: Select all
Mar 22, 2011 10:44:51 AM com.openkm.applet.MainFrame createDocumentHelper
INFO: uploadDocumentHelper(C5ED7C36BB6E6A6611B10B4E0DE5FCE8, /okm:personal/okmAdmin, http://127.0.0.1/OpenKM, /home/jeremy/Desktop/lbmon_secure.odt)
Mar 22, 2011 10:44:51 AM com.openkm.applet.Util createDocument
INFO: createDocument(C5ED7C36BB6E6A6611B10B4E0DE5FCE8, /okm:personal/okmAdmin, http://127.0.0.1/OpenKM, /home/jeremy/Desktop/lbmon_secure.odt)
network: Connecting http://127.0.0.1/OpenKM/com.openkm.frontend.Main/commons-logging.properties with proxy=DIRECT
network: Connecting http://127.0.0.1:80/ with proxy=DIRECT
network: Connecting http://127.0.0.1/OpenKM/com.openkm.frontend.Main/commons-logging.properties with cookie "lang=en-US; JSESSIONID=C5ED7C36BB6E6A6611B10B4E0DE5FCE8"
network: Cache entry not found [url: http://127.0.0.1/OpenKM/com.openkm.frontend.Main/META-INF/services/org.apache.commons.logging.LogFactory, version: null]
network: Connecting http://127.0.0.1/OpenKM/com.openkm.frontend.Main/META-INF/services/org.apache.commons.logging.LogFactory with proxy=DIRECT
network: Connecting http://127.0.0.1/OpenKM/com.openkm.frontend.Main/META-INF/services/org.apache.commons.logging.LogFactory with cookie "lang=en-US; JSESSIONID=C5ED7C36BB6E6A6611B10B4E0DE5FCE8"
network: Cache entry not found [url: http://127.0.0.1/OpenKM/com.openkm.frontend.Main/org/apache/log4j/Category.class, version: null]
network: Connecting http://127.0.0.1/OpenKM/com.openkm.frontend.Main/org/apache/log4j/Category.class with proxy=DIRECT
network: Connecting http://127.0.0.1/OpenKM/com.openkm.frontend.Main/org/apache/log4j/Category.class with cookie "lang=en-US; JSESSIONID=C5ED7C36BB6E6A6611B10B4E0DE5FCE8"
network: Connecting http://127.0.0.1:80/ with proxy=DIRECT
Mar 22, 2011 10:44:54 AM com.openkm.applet.Util createDocument
INFO: createDocument: OKM_OK path[/okm:personal/okmAdmin/lbmon_secure.odt]path
Mar 22, 2011 10:44:54 AM com.openkm.applet.MainFrame createDocumentHelper
INFO: importDocumentsHelper: void
Mar 22, 2011 10:44:54 AM com.openkm.applet.MainFrame drop
WARNING: JSException: JavaScript error while calling "refreshFolder"
I hope this helps in getting the uploader to work on OSX
 #9891  by pavila
 
This error message is not important. I don't know why happens, because the "refreshFolder" is called and works:
Code: Select all
JavaScript error while calling "refreshFolder"
On the other side, can you reproduce these errors in the online demo? File uploader should work in MacOSX (don't tested) but the Scanner applet I'm pretty sure that does not works. At the beginning of the console log, the applet version is printed. Please, tell me which version is shown.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.