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

Can I Use Jasper Reports Community Version and Without The Jasper Server? #158

Open
micihn opened this issue Sep 10, 2024 · 0 comments
Open

Comments

@micihn
Copy link

micihn commented Sep 10, 2024

Hello, i got this eeror when try to download the report

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\JasperReports\jasper_server.py", line 114, in execute
    return self.proxy.Report.execute(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\xmlrpc\client.py", line 1122, in _call_
    return self._send(self._name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\xmlrpc\client.py", line 1461, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\xmlrpc\client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\xmlrpc\client.py", line 1178, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\xmlrpc\client.py", line 1291, in send_request
    self.send_content(connection, request_body)
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\xmlrpc\client.py", line 1321, in send_content
    connection.endheaders(request_body)
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\http\client.py", line 1331, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\http\client.py", line 1091, in _send_output
    self.send(msg)
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\http\client.py", line 1035, in send
    self.connect()
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\http\client.py", line 1001, in connect
    self.sock = self._create_connection(
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\socket.py", line 852, in create_connection
    raise exceptions[0]
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\socket.py", line 837, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\controllers\main.py", line 106, in report_download
    response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\http.py", line 734, in route_wrapper
    result = endpoint(self, *args, **params_ok)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\controllers\main.py", line 60, in report_routes
    context).render_jasper(docids, data=data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\models\report_xml.py", line 191, in render_jasper
    jasper = r.execute()
             ^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\JasperReports\jasper_report_config.py", line 173, in execute
    pages = self.execute_report(
            ^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\JasperReports\jasper_report_config.py", line 259, in execute_report
    return server.execute(
           ^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\JasperReports\jasper_server.py", line 116, in execute
    self.start()
  File "C:\Program Files\Odoo 16.0.20240909\server\odoo\addons\jasper_reports\JasperReports\jasper_server.py", line 103, in start
    process = subprocess.Popen(command, env=env, cwd=cwd)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\subprocess.py", line 1026, in _init_
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\Odoo 16.0.20240909\python\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    RPC_ERROR
        at makeErrorFromResponse (http://localhost:8069/web/assets/debug/web.assets_backend.js:10508:19) (/web/static/src/core/network/rpc_service.js:34)
        at decoder.onload (http://localhost:8069/web/assets/debug/web.assets_backend.js:10398:25) (/web/static/src/core/network/download.js:551)

Is it because I didnt use the Jasper Server or something else? Thanks

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