Can't print any Jasper report with OpenERP multiprocessing (workers)

Bug #1286607 reported by Israel CA
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openobject-jasper-reports
New
Undecided
Unassigned

Bug Description

Hello,

When OpenERP is NOT working in Multiprocessing Mode, then everything works fine, but if OpenERP is working with Multiprocessing Mode (using --workers parameter), then no Jasper report works.

When I try to print any report I get this:

2014-03-01 20:29:12,817 5764 INFO TM_DATOS_REALES openerp.addons.jasper_reports.jasper_report: Requested report: '/mnt/hgfs/IsraelCA/opt/openerp/70openerp/jasper-reports/jasper_reports/custom_reports/poliz.jrxml'
2014-03-01 20:29:12,819 5764 INFO TM_DATOS_REALES openerp.addons.jasper_reports.jasper_report: Temporary data file: '/tmp/tmpKmV5aP'
Error occurred during initialization of VM
Unable to allocate bit map for parallel garbage collection for the requested heap size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2014-03-01 20:29:13,894 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:14,896 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:15,899 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:16,900 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:17,902 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:18,904 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:19,908 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:20,910 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:21,913 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:22,914 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:23,916 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:24,918 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:25,921 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:26,923 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:27,924 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:28,926 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:29,929 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:30,931 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:31,933 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:32,935 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:33,936 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:34,938 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:35,941 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:36,944 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:37,949 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:38,950 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:39,952 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:40,955 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:41,958 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:42,960 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:43,962 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:44,965 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:45,966 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:46,968 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:47,971 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:48,973 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:49,976 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:50,979 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:51,980 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:52,982 5764 ERROR TM_DATOS_REALES openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Conexión rehusada (111, 'Conexi\xc3\xb3n rehusada')
2014-03-01 20:29:52,982 5764 INFO TM_DATOS_REALES openerp.addons.jasper_reports.jasper_report: ELAPSED: 0.669376
2014-03-01 20:29:53,159 5764 ERROR TM_DATOS_REALES openerp.netsvc: RML is not available at specified location or not enough data to print!
(None, None, None)
Traceback (most recent call last):
  File "/opt/openerp/70openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/70openerp/server/openerp/service/web_services.py", line 654, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/70openerp/server/openerp/service/web_services.py", line 760, in exp_report_get
    return self._check_report(report_id)
  File "/opt/openerp/70openerp/server/openerp/service/web_services.py", line 738, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/opt/openerp/70openerp/server/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: ('RML is not available at specified location or not enough data to print!', (None, None, None))

Please advise.

Revision history for this message
Kitti Upariphutthiphong (kittiu) wrote :

Exactly the same problem if start with --worker

2014-06-13 17:54:17,667 4229 INFO SAHASAMIT werkzeug: 127.0.0.1 - - [13/Jun/2014 17:54:17] "POST /web/action/load HTTP/1.1" 200 -
2014-06-13 17:54:17,806 4229 INFO SAHASAMIT openerp.addons.jasper_reports.jasper_report: Requested report: '/home/kittiu/workspace/openerp_monta/monta-addons/jrxml_reports/custom_reports/monta_tax_invoice_full.jrxml'
2014-06-13 17:54:17,809 4229 INFO SAHASAMIT openerp.addons.jasper_reports.jasper_report: Temporary data file: '/tmp/tmp9yvgda'
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2014-06-13 17:54:18,850 4229 ERROR SAHASAMIT openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Connection refused (111, 'Connection refused')
2014-06-13 17:54:19,852 4229 ERROR SAHASAMIT openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Connection refused (111, 'Connection refused')
2014-06-13 17:54:20,854 4229 ERROR SAHASAMIT openerp.addons.jasper_reports.JasperReports.JasperServer: EXCEPTION: [Errno 111] Connection refused (111, 'Connection refused')

I have tried change to java 1.6, setting JAVA_HOME as suggested on some site, but nothing seem to work yet.

Revision history for this message
edgard (pimentelrojas) wrote :

It's easy in the file JasperServer.py
the line

command = ['java', '-Djava.awt.headless=true', 'com.nantic.jasperreports.JasperServer', unicode(self.port)]

replace to

command = ['java', '-Djava.awt.headless=true', '-Xms512M', '-Xmx1024M', 'com.nantic.jasperreports.JasperServer', unicode(self.port)]

it's all

Revision history for this message
Sengottuvel(India) (sengottuvl) wrote :

Thanks. It's woking fine for me

Revision history for this message
Myat (myatsn) wrote :

Hello,

I've already tired to change
command = ['java', '-Djava.awt.headless=true', '-Xms512M', '-Xmx1024M', 'com.nantic.jasperreports.JasperServer', unicode(self.port)]] , but nothing seem to work yet. still error :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.