View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001159 | savapage-server | [All Projects] General | public | 2021-01-08 11:11 | 2021-02-08 11:14 |
Reporter | rijkr | Assigned To | rijkr | ||
Priority | high | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 1.2.0 | ||||
Target Version | 1.3.0 | Fixed in Version | 1.3.0 | ||
Summary | 0001159: Adapt to Java 11 | ||||
Description | IST-1: Java 11 compiler reveals minor errors in junit tests of BigDecimal localize and parse methods. SOLL-1: Do not anticipate on how Java applies currency symbol to BigDecimal values. IST-2: Java 11 compiler shows error "package javax.xml.soap does not exist". This is because this package is deprecated since Java 9 and is removed in Java 11. SOLL-2: Fix by adding Jakarta XML Web Services from Jakarta EE 8 as Maven dependency: <dependency> <groupId>jakarta.xml.ws</groupId> <artifactId>jakarta.xml.ws-api</artifactId> <version>2.3.3</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.3.3</version> <scope>runtime</scope> </dependency>See https://stackoverflow.com/questions/54573998/java-11-package-javax-xml-soap-does-not-exist As explained in Java 11 "java --help-extra" add "--illegal-access=debug" to VM args. This will write a stacktrace to stdout so "Illegal reflective access warnings" can be pinpointed. IST-3: Illegal reflective access warnings (iText 5.5.13.1): WARNING: Illegal reflective access by com.itextpdf.text.io.ByteBufferRandomAccessSource. SOLL-3: Use PdfReader(FileInputStream is) instead of PdfReader(String filename) to instantiate PdfReader. See https://stackoverflow.com/questions/53301158/itext-java-11-illegal-reflective-access-by-com-itextpdf-io-source-bytebufferran IST-4: Illegal reflective access warnings (jasperreports 6.16.0). WARNING: Illegal reflective access by net.sf.jasperreports.engine.util.ClassUtils (file: ... jasperreports-6.16.0.jar) to constructor com.sun.org.apache.xerces.internal.util.XMLGrammarPoolImpl() SOLL-4: Add "net.sf.jasperreports.compiler.xml.parser.cache.schemas=false" to jasperreports.properties. See https://github.com/TIBCOSoftware/jasperreports/issues/61 | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-08 11:11 | rijkr | New Issue | |
2021-01-08 11:11 | rijkr | Status | new => assigned |
2021-01-08 11:11 | rijkr | Assigned To | => rijkr |
2021-01-08 12:29 | rijkr | Relationship added | related to 0001058 |
2021-01-08 13:57 | rijkr | Status | assigned => resolved |
2021-01-08 13:57 | rijkr | Resolution | open => fixed |
2021-01-08 13:57 | rijkr | Fixed in Version | => 1.3.0 |
2021-02-08 11:13 | rijkr | Description Updated | View Revisions |
2021-02-08 11:14 | rijkr | Description Updated | View Revisions |