• 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.
 #7086  by srich
 
I have now wasted 2 days of production trying to figure out how to get the scanner and file uploader applets to work. When I click on either of them, I get nothing, nothing happens. I have been searching all over the web for answers, including the OpenKM forums but I can't seem to find an appropriate answer. I have found a few posts that indicate I need to compile and move the scanner.jar but I can't find the scanner.jar file. I am not a programmer so I do not know how to compile any source code which I can't find either.
I am running the latest community version available for download.

Any detailed help here would be greatly appreciated. Without these two functions, the deal is off for upper management.
 #7087  by jllort
 
It's a bug in 5.0 that it's corrected in RC1 ( we're on final testing RC1 so release it'll be soon ).
 #7130  by srich
 
It appears the scanner either needs additional configuration or it does not fully initialize. When I click on the scanner applet icon, a security window is displayed asking if I trust content from the site, I click yes and nothing. Clicking the scanner applet icon after that does nothing.
 #7139  by pavila
 
Have you tested it on OpenKM RC1 ? Please, clean the browser and java plugin cache.
 #7144  by srich
 
I am running Ubuntu 10.04 LTS with Sun Java 6 and Firefox.

After clearing my browser and java cache, here is what I get in the java console when I click on the scanner applet button.
Code: Select all
init: com.openkm.applet.lang.Resources_en_US@82674b --- en_US
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: AppVersion: 5.1-SNAPSHOT (build: 1316)
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: openkm.token => 4C2895E1E258E1645F7AFB670CA02B6E
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: openkm.path => /okm:root/Home
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: openkm.lang => en-US
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: applet.locale => en_US
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: applet.url => http://kamino.mckade.net:8080/OpenKM
Nov 19, 2010 9:01:00 AM com.openkm.applet.Scanner init
INFO: applet.jsobject => [object Window]
Nov 19, 2010 9:01:00 AM com.openkm.applet.ScannerManager <init>
INFO: ########## ScannerManager ##########
JarLib.load
	Error = java.lang.UnsatisfiedLinkError: unsupported JNI version 0xFFFFFFFF required by /tmp/mmsc/mmsc3808784849555323326libjsane.so
JarLib.load
	Error = java.lang.UnsatisfiedLinkError: unsupported JNI version 0xFFFFFFFF required by /tmp/mmsc/mmsc3808784849555323326libjsane.so
java.lang.UnsatisfiedLinkError: unsupported JNI version 0xFFFFFFFF required by /tmp/mmsc/mmsc3808784849555323326libjsane.so
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
	at java.lang.Runtime.load0(Runtime.java:770)
	at java.lang.System.load(System.java:1003)
	at uk.co.mmscomputing.util.JarLib.loadX(JarLib.java:60)
	at uk.co.mmscomputing.util.JarLib.load(JarLib.java:10)
	at uk.co.mmscomputing.device.sane.jsane.<clinit>(jsane.java:140)
	at uk.co.mmscomputing.device.sane.SaneScanner.isAPIInstalled(SaneScanner.java:17)
	at uk.co.mmscomputing.device.scanner.Scanner.getDevice(Scanner.java:70)
	at com.openkm.applet.ScannerManager.<init>(ScannerManager.java:69)
	at com.openkm.applet.Scanner.init(Scanner.java:83)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1620)
	at java.lang.Thread.run(Thread.java:662)
JarLib.load
And this is what I get when I click the File Uploader button.
Code: Select all
Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Server VM
User home directory = /home/srich
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
init: com.openkm.applet.lang.Resources_en_US@13acc52 --- en_US
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: AppVersion: 5.1-SNAPSHOT (build: 1332)
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: openkm.token => 4C2895E1E258E1645F7AFB670CA02B6E
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: openkm.path => /okm:root/Home
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: openkm.lang => en-US
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: applet.locale => en_US
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: applet.url => http://kamino.mckade.net:8080/OpenKM
Nov 19, 2010 9:05:28 AM com.openkm.applet.Uploader init
INFO: applet.jsobject => [object Window]
javax.imageio.IIOException: I/O error reading PNG header!
	at com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:307)
	at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:637)
	at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1212)
	at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1560)
	at javax.imageio.ImageIO.read(ImageIO.java:1422)
	at javax.imageio.ImageIO.read(ImageIO.java:1374)
	at com.openkm.applet.MainFrame.<init>(MainFrame.java:111)
	at com.openkm.applet.Uploader.createGUI(Uploader.java:93)
	at com.openkm.applet.Uploader.access$000(Uploader.java:43)
	at com.openkm.applet.Uploader$1.run(Uploader.java:79)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: javax.imageio.IIOException: Bad length for IHDR chunk!
	at com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:239)
	... 17 more
Nov 19, 2010 9:05:28 AM com.openkm.applet.MainFrame initGUI
SEVERE: null
java.lang.NullPointerException
	at com.openkm.applet.MainFrame.initGUI(MainFrame.java:151)
	at com.openkm.applet.MainFrame.<init>(MainFrame.java:116)
	at com.openkm.applet.Uploader.createGUI(Uploader.java:93)
	at com.openkm.applet.Uploader.access$000(Uploader.java:43)
	at com.openkm.applet.Uploader$1.run(Uploader.java:79)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
 #7183  by pavila
 
You need to install the libsane-dev package in Linux if you want to use the scanner applet.
 #7474  by srich
 
I have the scanner working in Windows but I can only scan 1 page. Is there a trick to scanning a multiple page document?
 #7528  by pavila
 
Scanner applet rely on TWAIN driver. Is possible to scan several pages with you scanner TWAIN driver? Anyway, this applet does not want to be a complete scanning solution. If you want to scan documents into OpenKM you should integrate the scanner (and possibily OCR) software with OpenKM to achieve a more professional target. This is the desired approach for our costumers.
 #8444  by mbleiweiss
 
I'm also having this problem. I'm running OpenKM 4.1 and everything is working great except for scanning in multiple pages with the scanner applet. It will scan in one page no problem. If you put in a multi-page document it tries to scan every separate page in as a new PDF with the same name. The first page goes into the repository, then any additional pages just throw an error since a file with the same name is already in the repository and it's trying to add page 2 as the same file name.

I have been back and forth to Fry's 4 times now. I have tried this with:

Epson S50 scanner
HP 6100 scanner
Xerox doc fed scanner

I tried to get different brands since I first thought this was a problem with the TWAIN software that was being called by the OpenKM scan applet. No matter what brand, no matter what scanner software is installed - no matter what I do, no scanner will scan in multiple pages using the scanner applet. I have to close OpenKM, use the vendor supplied scanning software to scan multiple pages into a PDF, then open OpenKM and use the "Upload Document" feature instead.

tl;dr Scanner applet doesn't work. It's not the scanner. HP/Epson/Xerox's software scans multi page PDFs just fine. Once you try multipage from OpenKM applet it chokes.
 #8450  by pavila
 
Well, the scanner applet is a quick-and-dirty way to upload an scanner document to OpenKM. Actually there is no support for multiple-page scanning because none of our clients need this. There are two ways to get this feature ready: somebody implements this and send us the patch to be added in future OpenKM revisions, o you can pay us to add this feature.
 #8452  by mbleiweiss
 
pavila wrote:there is no support for multiple-page scanning...none of our clients need this
Yikes... I guess I must have an extraordinary situation here since none of your other clients have documents more than 1 page long.

I suppose our devs here better get cracking on adding this functionality to the applet, I'll keep you posted on the progress of a patch. We have officially rolled OpenKM out here and need to stay with it now and we'll have to make it work.
 #8458  by jllort
 
Other scenario that can be useful to you, is connecting OpenKM as network drive (webdav) and using scanning software that comes with your scanner, and save directly files into that network drive.
 #8511  by pavila
 
mbleiweiss wrote:
pavila wrote:I suppose our devs here better get cracking on adding this functionality to the applet, I'll keep you posted on the progress of a patch. We have officially rolled OpenKM out here and need to stay with it now and we'll have to make it work.
I'm glad to receive your contributions. After all, this is the magic of GPL, isn't it?
 #9100  by shishir
 
Hi,

Is there any good news about multiple page scanning?

In a document repository one needs to scan/store multiple pages of the same document (eg. a sales contract spanning over 10 pages) as a single pdf file. In my current scanner software this feature is enabled by default but when I scan the document, open km comes back to interface with only a single page scanning so i am enforced to scan and store each page seperately.

The other option i have is to scan the document pages using native scanning software first as a single pdf and then upload that document. But it would be a really nice feature inbuilt into OpenKM if we can get it.

Thanks.

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.