Page 1 of 2

OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Mon Jan 12, 2015 6:50 am
by Aku
Hello together,

(i am from Germany. Sorry for my english :D)

We use OpenKM 6.4.14 with Java jdk 1.7.0 Update 71 and Windows 7 64Bit.

The installation from OpenKM 6.4.14 was very easy.
The start from tomcat was successfully.
I create a importer crontab.

When i am using the import then i get following error:
Code: Select all
- Script error bsh.EvalError: Sourced file: inline evaluation of: ``import com.openkm.core.*; import com.openkm.api.*; import java.io.*; import c . . . '' : Typed variable declaration : Attempt to resolve method: getInstance() on undefined variable or class name: DbSessionManager : at Line: 6 : in file: inline evaluation of: ``import com.openkm.core.*; import com.openkm.api.*; import java.io.*; import c . . . '' : DbSessionManager .getInstance ( ) 
My import.bsh file:
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();
OKMDocument document = OKMDocument.getInstance();
OKMFolder folder = OKMFolder.getInstance();
 
public void autoImport(String okmPath, File fldpath){
  try {
    print("Scanning " + fldpath.getName() + "<br>");
    for (File file : fldpath.listFiles()) {
      print("Importing " + file.getName() + "<br>");
	try {
	  if (file.isDirectory()) {
	    try {
	      folder.createSimple(token, okmPath + file.getName());
	    } catch (ItemExistsException ie) {
	      print("folder already exists<br>");
	      // Folder already exists - just ignore exception
	    }
	    autoImport( okmPath + file.getName() + "/", file);
	  } else {
	    // Check if file is still being written to
	    long length = file.length();
	    Thread.sleep(1000);
	    if (file.length() > length) continue;  // Skip file this time
	    document.createSimple(token, okmPath + file.getName(), new FileInputStream(file));
	  }
	  print("Created " + okmPath + file.getName() + "<br>");
	} catch (Exception e) {
	  print ("Exception:" + e + "<br>");
	  // Something bad happened to prevent import. Skip to next file.
	 continue;
	}
       file.delete();
     }
  } catch (Exception e) {
    print("Exception: " + e + "<br>");
  }
}
 
autoImport("/okm:root/Scans/", new File("D:/OpenKM_Import"));
Following text stand in the log (catalina.2015-01-12.log):
Code: Select all
Jan 12, 2015 6:58:40 AM com.openkm.util.LoggerWatchdog doOnChange
Information: *** Log4j configuration file changed ***
Jan 12, 2015 7:01:11 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
Jan 12, 2015 7:01:26 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
Jan 12, 2015 7:01:27 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
Jan 12, 2015 7:01:28 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
Jan 12, 2015 7:01:29 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
Jan 12, 2015 7:01:29 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
Jan 12, 2015 7:01:30 AM net.xeoh.plugins.base.impl.classpath.loader.FileLoader loadFrom
Warnung: Supplied path does not exist. Unable to add plugins from there.
What is wrong? :(

Some more information.
When I had install OpenKM 6.3.0 on another computer with the same conditions, the import is successfully...

André

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Mon Jan 12, 2015 9:51 am
by jllort
I think this is a trial version no ?

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Mon Jan 12, 2015 10:33 am
by Aku
Yes, this is the trial version.

We want test first.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Tue Jan 13, 2015 7:21 pm
by jllort
I supposed. Trial version is special version that comes with obfuscated code, that's why you got this problem ( we're not pleased doing it, but after serveral times we've observate our code has been used as is, in other applications we should take this decision ). On next OpenKM release we will correct this problem on the DbSessionManager.

If you want test on one of our demo environment, simply contact with us http://www.openkm.com/en/contact.html and one of our sales & team guys will provide you a full operative demo for some weeks.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Wed Jan 14, 2015 12:29 pm
by Aku
Ok, thanks.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Tue Jan 20, 2015 6:02 am
by Aku
I haven't got an answer.
I have asked already two times...

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Tue Jan 20, 2015 2:46 pm
by Mromani
Sorry for hijacking, but do you have a trial of the current version 6.4.18? We would like to test the administration pages, but the Demo don't allow that.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Fri Jan 23, 2015 6:21 pm
by jllort
Hi,

Normally we do not share super administrator in demo, because user can break the application. Two possibilities, ask your sales team manager for it ( normally should said is not possible, because these are the rules ) or inquire for a meeting with technical staff to do questions about administration section and other technical stuff. Probably this option will be better and you'll get better answers and spend less time.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Sat Jan 24, 2015 5:22 am
by Mromani
And the Trial? Will you not update the Trial anymore? We don't want upload our data to a cloud service.

Thanks!

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Sat Jan 24, 2015 11:01 am
by jllort
Of course we will update the trial, but I can not tell you exactly when ( also will take in consideration test OCR zone and automation to be sure going right also on trial ) because actually after Christmas holidays we're on some overload.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Sun May 17, 2015 7:59 pm
by Mromani
Hi,

What is the expected ETA for a new trial? Our company would like to test OpenKM ASAP, but the Trial is still quite old.

Thanks!

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Sat May 23, 2015 5:31 pm
by pavila
We expect to release a new Trial with the new OpenKM 6.4.22 which may be out in a couple of weeks.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Tue May 26, 2015 7:48 am
by Koniec12
Nice information, good to know. Waiting for the realase.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Fri Jun 05, 2015 11:24 am
by pavila
I've just uploaded a new trial at http://download.openkm.com/trial/openkm ... taller.exe

Also for Linux: http://download.openkm.com/trial/openkm ... taller.run

Please test it.

Regards.

Re: OpenKM 6.4.14 DbSessionManager Problem

PostPosted:Tue Jun 09, 2015 9:23 am
by pldemon
Hi,

tested the Demo because of the new stuff inside the admin interface and the hope some stuff will come inside the community release ;)

1.) The text extraction is not working. If you upload a PDF file you will get an error message during the text indexing:
Code: Select all
WARN com.openkm.extractor.RegisteredExtractors- Text extraction failure: Full text indexing of 'application/pdf' is not supportedWARN com.openkm.dao.NodeDocumentUtilsDAO- There was a problem extracting text from '/okm:root/filetest.pdf': Full text indexing of 'application/pdf' is not supported
2.) "Check text extraction" inside the admin area is also not working. The list of supported "Text extractors" is empty.

3.) The plug-in lists for "Document converters", "Terminal commands", "Metadata adapters", "Text extractors" and "Antiviruses" inside the administration area are empty.

Cheers,