Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0041364Localization Pack: SpainSIIpublic2019-07-16 11:072020-02-14 23:18
psanjuan 
Mery Anelo 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
0041364: SII module is not working in Java 11
SII module is not working in Java 11
In an instance with Java 11 install SII module. Configure it and try to send any invoice to SII.

Below error is shown.
SII Module is not compatible with Java 11. The problem is that in this Java version, some deprecated libraries have been finally removed.

In order to make SII works it is necessary to include 2 libraries from this package
https://search.maven.org/search?q=a:jaxws-ri [^]

those are:
saaj-impl.jar
and stax-ex.jar

Provisional fix provided to the customer:

Take the package above and Donwload it (com.sun.xml.sw) and extract it.
In the javaxw-ri/lib folder you can find all the libraries from the package
The missing ones are saaj-impl.jar and stax-ex.jar

Include these two libraries in the lib/runtime folder of the module. Compile.
SII module should work

Generic solution:

In Openbravo, we are working on creating a new module to include these missing libraries.

If those two libraries are finally included in this Openbravo module, the corresponding dependency will have to be implemented in SII module, otherwise SII module will have to include these two java libraries.
No tags attached.
has duplicate defect 0042187 closed Mery Anelo Error al enviar factura al SII 
jpg ScreenHunter_01 Jul. 08 11.18.jpg (187,015) 2019-07-16 11:30
https://issues.openbravo.com/file_download.php?file_id=13134&type=bug
jpg
Issue History
2019-07-16 11:07psanjuanNew Issue
2019-07-16 11:07psanjuanAssigned To => Opentix-Test
2019-07-16 11:28psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19139#r19139
2019-07-16 11:28psanjuanProposed Solution updated
2019-07-16 11:30psanjuanFile Added: ScreenHunter_01 Jul. 08 11.18.jpg
2019-07-16 11:31psanjuanProposed Solution updated
2019-07-16 11:50jfrancesIssue Monitored: jfrances
2019-07-18 11:02ivancaceresIssue Monitored: ivancaceres
2019-10-11 13:15psanjuanNote Added: 0115036
2019-11-07 12:50Jorge BravoAssigned ToOpentix-Test => Mery Anelo
2019-11-12 14:19psanjuanNote Added: 0115557
2019-11-12 14:22psanjuanNote Edited: 0115557bug_revision_view_page.php?bugnote_id=0115557#r19676
2019-11-28 14:50Jorge BravoStatusnew => scheduled
2019-11-29 18:45Mery AneloRelationship addedhas duplicate 0042187
2019-11-29 18:47Mery AneloNote Added: 0115993
2019-11-29 18:48Mery AneloNote Edited: 0115993bug_revision_view_page.php?bugnote_id=0115993#r19838
2019-11-29 18:49Mery AneloNote Edited: 0115993bug_revision_view_page.php?bugnote_id=0115993#r19839
2019-11-29 18:56hgbotCheckin
2019-11-29 18:56hgbotNote Added: 0115994
2019-11-29 18:56hgbotStatusscheduled => resolved
2019-11-29 18:56hgbotResolutionopen => fixed
2019-11-29 18:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.sii/rev/455ea8d18b21643225bc774d1dbf81a730172f08 [^]
2019-12-09 16:50Mery AneloStatusresolved => closed
2020-02-14 23:18Mery AneloNote Added: 0117824

Notes
(0115036)
psanjuan   
2019-10-11 13:15   
current workaround:

The SII Module, as of now, is not compatible with Java 11
The problem is that in this Java version, some deprecated libraries have been finally removed.

In Openbravo, we are working on creating a new module to include this missing libraries, so it can be extended if required.
By doing so, we ensure the consistency of the libraries versions.

However, as of now, the SII module is not working.
In order to make it work it is necessary to include 2 libraries from this package:
https://search.maven.org/search?q=a:jaxws-ri [^]

Donwload it (com.sun.xml.sw) and extract it.
In the javaxw-ri/lib folder you can find all the libraries from the package
The missing ones are saaj-impl.jar and stax-ex.jar
By including this two in the lib/runtime folder of the module and compiling again the application the SII module will work

This fix (including the libraries) should be a temporal fix for clients suffering the problem.
Once Openbravo creates the module with the libraries, the SII module should extend it instead of including any library.
(0115557)
psanjuan   
2019-11-12 14:19   
(edited on: 2019-11-12 14:22)
Current version of SII depends on a platform module https://centralrepository.openbravo.com/openbravo/org.openbravo.forge.ui/ForgeModuleDetail/JAXWS-Java-API-For-XML-Web-Services [^]
that includes missing Java libraries

Long term solution would be to refactor SII module to avoid it does depend on that external module.

(0115993)
Mery Anelo   
2019-11-29 18:47   
(edited on: 2019-11-29 18:49)
Test plan:
- Log as Group Admin Role
- Create a new Invoice
- Complete the other data and add lines.
- Complete the invoice
- Send the invoice "Send to SII"

(0115994)
hgbot   
2019-11-29 18:56   
Repository: erp/pmods/org.openbravo.module.sii
Changeset: 455ea8d18b21643225bc774d1dbf81a730172f08
Author: Mery Anelo <mery.anelo <at> smfconsulting.es>
Date: Fri Nov 29 14:55:25 2019 -0300
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.sii/rev/455ea8d18b21643225bc774d1dbf81a730172f08 [^]

Fixed bug 41364: Solve error exception related to SAAJMetaFactoryImpl

Add module dependency, SOAP with Attachments API for Java Implementation.

---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---
(0117824)
Mery Anelo   
2020-02-14 23:18   
Fixed in version 1.9.000