Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate pentaho report with user different from Admin #296

Open
maicoldlb09 opened this issue Sep 6, 2017 · 0 comments
Open

Comments

@maicoldlb09
Copy link

I've got this issue:
image
and this is my log server
2017-09-06 20:56:10,143 19343 ERROR ukvivential openerp.service.report: Exception: <Fault 0: 'Failed to invoke method execute in class com.willowit.reporting.PentahoRenderer: java.lang.String cannot be cast to java.lang.Integer'>
Traceback (most recent call last):
File "/home/mdlb/Templates/odoo/openerp/service/report.py", line 93, in go
result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)
File "/home/mdlb/Templates/odoo/openerp/report/init.py", line 40, in render_report
return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
File "/home/mdlb/Templates/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/home/mdlb/Templates/odoo/openerp/addons/base/ir/ir_actions.py", line 156, in render_report
return new_report.create(cr, uid, res_ids, data, context)
File "/home/mdlb/Templates/odoo/openerp/addons_pentaho/pentaho_reports/core.py", line 269, in create
rendered_report, output_type = report_instance.execute()
File "/home/mdlb/Templates/odoo/openerp/addons_pentaho/pentaho_reports/core.py", line 201, in execute
return self.execute_report()
File "/home/mdlb/Templates/odoo/openerp/addons_pentaho/pentaho_reports/core.py", line 239, in execute_report
rendered_report = proxy.report.execute(proxy_argument).data
File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in call
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1283, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1316, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1493, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 800, in close
raise Fault(**self._stack[0])
Fault: <Fault 0: 'Failed to invoke method execute in class com.willowit.reporting.PentahoRenderer: java.lang.String cannot be cast to java.lang.Integer'>
2017-09-06 20:56:10,483 19343 ERROR ukvivential openerp.addons.web.controllers.main: An exception occured during an http request
Traceback (most recent call last):
File "/home/mdlb/Templates/odoo/openerp/addons/web/controllers/main.py", line 72, in wrap
return f(*args, **kwargs)
File "/home/mdlb/Templates/odoo/openerp/addons/web/controllers/main.py", line 1577, in index
request.session.db, request.session.uid, request.session.password, report_id)
File "/home/mdlb/Templates/odoo/openerp/http.py", line 885, in proxy_method
result = dispatch_rpc(self.service_name, method, args)
File "/home/mdlb/Templates/odoo/openerp/http.py", line 115, in dispatch_rpc
result = dispatch(method, params)
File "/home/mdlb/Templates/odoo/openerp/service/report.py", line 34, in dispatch
res = fn(db, uid, *params)
File "/home/mdlb/Templates/odoo/openerp/service/report.py", line 141, in exp_report_get
return _check_report(report_id)
File "/home/mdlb/Templates/odoo/openerp/service/report.py", line 119, in _check_report
raise openerp.osv.orm.except_orm(exc.message, exc.traceback)
except_orm: ('', (<class 'xmlrpclib.Fault'>, <Fault 0: 'Failed to invoke method execute in class com.willowit.reporting.PentahoRenderer: java.lang.String cannot be cast to java.lang.Integer'>, <traceback object at 0x7f85464e3ab8>))
It works well when I generate the pentaho report as Admin user, Any suggestion ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant