• Report not working?

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #19179  by TonyW
 
Using: OpenKM CE 6.2.1-DEV (build: 7675)

I downloaded and installed the "FolderDocuments.rep" report. The report is active and displayed in the "Reports" menu.
When I execute the report using the menu, I get the "Report parameters" dialogbox and I can select a folder. When I then click "Execute" the dialogbox disapeares but nothing else happens: no report is visible, no error message, nothing.
When I go to "Administration -> Reports" I see the report in the list. I click on the execute-icon, I have to enter a parameter value, I click on the "create-pdf" icon but then I get the following error:
Code: Select all
Application error
Class: 	bsh.EvalError
Message: 	Sourced file: inline evaluation of: ``import javax.jcr.*; import javax.jcr.util.*; import org.apache.jackrabbit.*; imp . . . '' : Typed variable declaration : Attempt to resolve method: getSystemSession() on undefined variable or class name: DirectRepositoryModule
Date: 	Wed Nov 07 10:29:53 CET 2012
And still no report created!
I know that the "FolderDocuments" report is published on the wiki under "Version 5.x", but I remember having read somewhere that version 5.x reports are OK to work in version 6.x.
So what is wrong?
 #19191  by jllort
 
Two tips:

1- There was a bug that yesterday I solved you should update from integration.openkm.com ( then reports will be able from frontend )
2- This report need extra data ( from to dates ) and administration view is not able to put it, that's the reason why should not be tested ( or executed from this view ). Try to execute from frontend ( ensure you have enabled at profiles ).
 #19198  by TonyW
 
using now OpenKM CE 6.2.1-DEV (build: 7680)

I updated the openkm.war (deleted OpenKM folder in webapps,deleted localfolder in work/Catalina, and set hibernate to "update").

I still have the same issue: the report is not created, but visible in menu report, and gives a dialogbox to indicate the folder as parameter.
The report is activated in the users profile (default).

I have been looking at the code of the report (folderdocuments.jrxml).
I am NOT a java programmer, but when I see in the code
Code: Select all
import com.openkm.module.direct.*;
.....
Session jcrSession = DirectRepositoryModule.getSystemSession();
.....
and I take a look in http://http://doxygen.openkm.com/6.2.x I can not find anything of com.openkm.module.direct.
When I look at http://http://doxygen.openkm.com/5.1.x I can find information.
So maybe the conclusion is that the folderdocuments.jrxml is calling a method that is no longer available in version 6.2?
Or there is still something else that prevents the report of being created.
 #19208  by jllort
 
FolderDocuments.rep is a 5.x report, not all 5.x reports are compatible with 6.2 this will need some minimal work to get it running at 6.2 ( as you have seen some methods are not available in version 6.x )

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.