erpcya / adempiere

ADempiere Business Suite ERP/CRM/MFG/SCM/POS done the Bazaar way in an open and unabated fashion. Focus is on the Community that includes Subject Matter Specialists, Implementors and End-Users.
www.adempiere.net
GNU General Public License v2.0
2 stars 5 forks source link

[Bug Report] Error cargando imagen del tema #46

Open yamelsenih opened 1 year ago

yamelsenih commented 1 year ago

Bug report

Cuando se carga el ADempiere con una referencia de imagen o logo de la empresa en la información de la compañía y, la misma no tiene binario o activo de la imagen genera un error del tipo NPE como se describe a continuación:

-----------> MImage.load: NO Data found for AD_Image_ID=1000028 [31]
===========> ThemeManager.getLogo: Could not write logo file, using default [31]
java.lang.NullPointerException
    at java.base/java.io.FileOutputStream.write(FileOutputStream.java:341)
    at org.adempiere.webui.theme.ThemeManager.getLogo(ThemeManager.java:80)
    at org.adempiere.webui.theme.ThemeManager.getLogo(ThemeManager.java:100)
    at org.adempiere.webui.theme.ThemeManager.getLargeLogo(ThemeManager.java:116)
    at org.adempiere.webui.panel.RolePanel.init(RolePanel.java:174)
    at org.adempiere.webui.panel.RolePanel.<init>(RolePanel.java:117)
    at org.adempiere.webui.window.LoginWindow.loginOk(LoginWindow.java:98)
    at org.adempiere.webui.panel.LoginPanel.validateLogin(LoginPanel.java:528)
    at org.adempiere.webui.window.LoginWindow.onEvent(LoginWindow.java:160)
    at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
    at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
    at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
    at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)

Steps to reproduce

  1. Coloque un ID de imagen o logo de la compañía que no tenga asociado una imagen
  2. Salga de ADempiere e inice sesión nuevamente

Screenshot or Gif

Link to minimal reproduction

Expected behavior

A clear and concise description of what you expected to happen.

Other relevant information

Additional context

Add any other context about the problem here.

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Bug reports

When the ADempiere is loaded with a reference of the image or logo of the company in the information of the company, the misma does not hold binary or active of the image generates an error of the NPE type as described below:

-----------> MImage.load: NO Data found for AD_Image_ID=1000028 [31]
===========> ThemeManager.getLogo: Could not write logo file, using default [31]
java.lang.NullPointerException
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:341)
at org.fulfil.webui.theme.ThemeManager.getLogo(ThemeManager.java:80)
at org.fulfill.webui.theme.ThemeManager.getLogo(ThemeManager.java:100)
at org.fulfil.webui.theme.ThemeManager.getLargeLogo(ThemeManager.java:116)
at org.fulfill.webui.panel.RolePanel.init(RolePanel.java:174)
at org.fulfil.webui.panel.RolePanel.<init>(RolePanel.java:117)
at org.fulfil.webui.window.LoginWindow.loginOk(LoginWindow.java:98)
at org.fulfil.webui.panel.LoginPanel.validateLogin(LoginPanel.java:528)
at org.fulfil.webui.window.LoginWindow.onEvent(LoginWindow.java:160)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)

Steps to reproduce

  1. Enter an image ID or logo of the company that does not have an image associated with it
  2. Go up to ADempiere and start the session again

Screenshots or Gifs

Link to minimal reproduction

Expected behavior

A clear and concise description of what you expected to happen.

Other relevant information

Additional context

Add any other context about the problem here.