Bug 27426

Summary: Facturae (3rd party) n Mageia 8 Beta gives Java errors.
Product: Mageia Reporter: Jose Manuel López <joselp>
Component: RPM PackagesAssignee: Java Stack Maintainers <java>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, fri, mageia, ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: java-1.8.0-openjdk-1.8.0.272.b02-0.0.ea.4.mga8.src.rpm, java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.src.rpm CVE:
Status comment:

Description Jose Manuel López 2020-10-15 16:55:27 CEST
Description of problem: Facturae no works correctly in Mageia 8, appears bug of java.


Version-Release number of selected component (if applicable): Mageia 8 and Facturae


How reproducible: Install Facturae.jar and generate invoice, appears java bug in konsole


Steps to Reproduce:
1. Download facturae from: http://www6.mityc.es/aplicaciones/facturae/facturae_3.4_linux.jar
2. Install
3.Open and click in "Generar factura". In konsole appears: https://mega.nz/file/Dk1xhCaI#v2ptRmwdNIIsjrGEu9IgfZxNnbcJexPKtKTcBKqGGcw
Comment 1 Jose Manuel López 2020-10-15 16:56:00 CEST
In Mageia 7 this application works correctly.

Greetings!
Comment 2 Morgan Leijström 2020-10-15 19:02:43 CEST
Java is cooking in our Cauldron.  Test later :)

CC: (none) => fri

Comment 3 Lewis Smith 2020-10-15 21:49:09 CEST
@Jose
You do not say which version of Java you have (you always should give the exact version of packages you are reporting on):
 java-1.8.0-openjdk
 java-11-openjdk
Whichever one you have, try UNinstalling it, and installing the other one. And report back.

I do not know how much of the long log you reference is expected or not. Indeed, can you say that the application "does not work" (the log implies it did); or that it worked but with the java errors? Please clarify this.

Only the last few lines mention Java:

[DEBUG] ConnectionManager --> releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
[INFO ] FacturaeManager --> Commit done!
Exception in thread "Thread-3" java.lang.NullPointerException: inStream parameter is null
        at java.base/java.util.Objects.requireNonNull(Objects.java:246)
        at java.base/java.util.Properties.load(Properties.java:403)
        at es.mityc.appfacturae.ui.windows.GenerateInvoice321Window.loadConfiguration(GenerateInvoice321Window.java:651)
        at es.mityc.appfacturae.ui.windows.GenerateInvoice321Window.<init>(GenerateInvoice321Window.java:177)
        at es.mityc.appfacturae.ui.windows.GenerateInvoice321Window.getInstance(GenerateInvoice321Window.java:159)
        at es.mityc.appfacturae.ui.windows.GenerateInvoice321Window.getInstance(GenerateInvoice321Window.java:154)
        at es.mityc.appfacturae.ui.windows.MainWindow.generateAction(MainWindow.java:841)
        at es.mityc.appfacturae.ui.windows.MainWindow.access$900(MainWindow.java:121)
        at es.mityc.appfacturae.ui.windows.MainWindow$5$1.run(MainWindow.java:491)
        at java.base/java.lang.Thread.run(Thread.java:834)

Is this what you are reporting?
> appears java bug in konsole
> Java is cooking in our Cauldron.  Test later :)
So when you get a Java update, please re-try this and report back.

Summary: Facturae no works correctly in Mageia 8 Beta => Facturae (3rd party) n Mageia 8 Beta gives Java errors.
Source RPM: Facturae => java-1.8.0-openjdk-1.8.0.272.b02-0.0.ea.4.mga8.src.rpm, java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.src.rpm
CC: (none) => lewyssmith

Comment 4 Jose Manuel López 2020-10-16 10:51:12 CEST
Ok,Ok. I have checked that I have installed java 11. 

I have uninstalled java 11 and I have tried with java 1.8.2 and the application don't open.

With java 11 the application does open , but I can't generate a invoice because the bug java appears.
Comment 5 Lewis Smith 2020-10-16 20:15:27 CEST
Thank you for this clarification; and for trying the 'other' Java. Let us leave this bug with version 11.
In comment 3, the last lines before the Java errors imply that the the invoice was generated "[INFO ] FacturaeManager --> Commit done!", but immediately it then went wrong.

Assigning this to the Java team. If they know Java is due for updates, they may well repeat Morgan's advice to wait for that.

Assignee: bugsquad => java
CC: lewyssmith => (none)

Comment 6 Jose Manuel López 2020-12-14 09:17:37 CET
Hi,

I have tried Mageia 8 Beta 2 on a clean installation, and issue is still there.

Greetings!!
Comment 7 Morgan Leijström 2020-12-14 09:22:01 CET
Have you asked the program author what java is required?

Also, do you have a link to upstream except the download link?
Comment 8 Jose Manuel López 2020-12-14 09:33:44 CET
The author of the programme is the government of Spain.......(no comments)

Here are the programme requirements:

https://www.facturae.gob.es/formato/Paginas/descarga-aplicacion-escritorio.aspx

The programm is required for the send of invoices to Public Administrations,city councils, delegations, etc.
Comment 9 Jose Manuel López 2020-12-14 09:35:10 CET
The author of the programme is the government of Spain.......(no comments)

Here are the program requirements:

https://www.facturae.gob.es/formato/Paginas/descarga-aplicacion-escritorio.aspx

The program is required for the send of invoices to Public Administrations,city councils, delegations, etc.
Comment 10 Nicolas Lécureuil 2020-12-14 09:44:04 CET
is it compatible with java 11 ?

CC: (none) => mageia

Comment 11 Morgan Leijström 2020-12-14 09:46:59 CET
I guess your government like mine have some commitment of interoperability?  I guess you could ping the responsible if anything does not work with current java versions.
Comment 12 Aurelien Oudelet 2020-12-14 09:51:03 CET
According to https://www.facturae.gob.es/formato/Paginas/descarga-aplicacion-escritorio.aspx

it seems it supports JRE 1.8.

@Jose, default new installation of Mageia 8 Beta 2 installs JRE 11, not JRE 1.8.

I suggest:
# urpmi java-1.8.0-openjdk

CC: (none) => ouaurelien

Comment 13 Morgan Leijström 2020-12-14 10:35:03 CET
A problem is that we have decided to drop 1.8 (aka 8) in Mageia 8  (?)

As a backup solution maybe easiest is to install VirtualBox and elder Mageia or other OS in it...

But really, do ask for update of that program!

( Thanks for the heads up, I too have to check that the java based invoicing program I use works with JRE 11 ! (fribok)  )
Comment 14 Jose Manuel López 2020-12-14 11:30:06 CET
This is impresionant!!.... I have called to the two phones that appears on contact web. None works.....

I am alone in this.. I don't know where go to report this bug upstream...

What a government disaster !!!
Comment 15 Morgan Leijström 2020-12-14 12:06:26 CET
> I am alone in this.

That would be strange.  Try to get in contact with other users and find a solution and use pressure to government.

https://www.google.com/search?q=mageia+facturae+java
https://www.google.com/search?q=Linux+facturae+java
https://www.google.com/search?q=Linux+facturae+java+espana

Well i see you are at some of the hits already

Generally this is weird - Do they really have *legal* right to demand you use their custom method for delivering invoice?!  I would print an old style paper invoice and stuff it to nearest office if they do not accept pdf...
Comment 16 Jose Manuel López 2020-12-14 12:29:42 CET
Really... for law, the gobernment ordered that the invoices to public administrations are sent way electronic, and they have created this program for bussiness that haven't a program integration in their ERps. But yes, this is mandatory...

Here It is the source code of application: https://www.facturae.gob.es/formato/Paginas/descarga-aplicacion-escritorio.aspx
Comment 17 Dave Hodgins 2020-12-14 23:49:48 CET
Since they've stated "Technical support for the Facturae application for generating electronic invoices is no longer provided.", you may need to keep
an older Mageia release installed (for example in a VirtualBox guest), just
for that application.

CC: (none) => davidwhodgins

Comment 18 Jose Manuel López 2020-12-15 08:31:11 CET
True, I hadn't noticed that they indicate that they no longer support the application. I give the bug for closed because obviously, we cannot load Mageia the support of a non-distribution application.. 

I will review other options so as not to continue with an un supported program, for the time being I continue with Mageia 8 Beta 2 and a copy of the 7 in Virtualbox until I find an acceptable solution. 

Thank you for all the time and dedication to resolving these issues!!

Mageia 8 already looks spectacular!!

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 19 Morgan Leijström 2020-12-15 09:45:40 CET
Hilarious they tell you to use a method they do not support...

Yes Mageia 8 is looking great :)