Page 1 of 1

Report not working?

PostPosted:Wed Nov 07, 2012 9:58 am
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?

Re: Report not working?

PostPosted:Thu Nov 08, 2012 7:54 am
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 ).

Re: Report not working?

PostPosted:Thu Nov 08, 2012 12:57 pm
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.

Re: Report not working?

PostPosted:Thu Nov 08, 2012 10:10 pm
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 )