• Simple Importer, not so simple...

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #28736  by Frogman27
 
I've been trying to get the simple importer running on an OSX Server 10.9 for over a week. At first the issue was ImageMagick. I believe that is resolved, but still can't get preview working, so maybe not. The simple importer doesn't work at all. When I try to run the ScanImporter.sh in a terminal window I get a huge list of command instruction for ImageMagick, and then the following error...

By default, 'file' is written in the MIFF image format. To
specify a particular image format, precede the filename with an image
format name and a colon (i.e. ps:image) or specify the image type as
the filename suffix (i.e. image.ps). Specify 'file' as '-' for
standard input or output.
Code: Select all
import: delegate library support not built-in `' (X11) @ error/import.c/ImportImageCommand/1303.
./ScanImporter.bsh: line 6: syntax error near unexpected token `('
./ScanImporter.bsh: line 6: `String token = DbSessionManager.getInstance().getSystemToken();'
Anyone have an idea? I've searched and found the same error talked about, but so far haven't found a solution. Anyone run into this and fixed it?
 #28747  by jllort
 
About scanImporter.bsh can you give me the url where you've got the the bsh script ?
What OpenKM version do you got installed ?
 #28770  by jllort
 
got to Administration -> Sctipting and execute:
Code: Select all
import com.openkm.core.*;
import com.openkm.api.*;
import java.io.*;
import com.openkm.module.db.stuff.DbSessionManager;
 
String token = DbSessionManager.getInstance().getSystemToken();
print(token);
 #28867  by jllort
 
That means this part of the code is going right. Try to add other parts until you get the error, seems is not what I suspected. Add few lines and test again to validate during increasing.

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.