Page 2 of 2

Re: Scanner and File Uploader

PostPosted:Fri Feb 25, 2011 4:37 am
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.

Re: Scanner and File Uploader

PostPosted:Fri Feb 25, 2011 5:01 pm
by jllort
Take a look at java console to see what happens. You might have version 1.6

Re: Scanner and File Uploader

PostPosted:Mon Feb 28, 2011 9:52 am
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.

Re: Scanner and File Uploader

PostPosted:Wed Mar 16, 2011 5:55 am
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)

Re: Scanner and File Uploader

PostPosted:Sat Mar 19, 2011 3:09 am
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

Re: Scanner and File Uploader

PostPosted:Tue Mar 22, 2011 5:53 pm
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

Re: Scanner and File Uploader

PostPosted:Mon Mar 28, 2011 5:25 pm
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.