I'm sure this is entirely a hole of my own digging, but I'm stuck, un-sure which part is broken.
I started to move to java 15 but the code generation step failed. However if I revert to java 11 I get the same error as follows:
Dec 07, 2020 11:55:58 AM org.jooq.tools.JooqLogger warn
WARNING: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6235; cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":primaryKeyTypes}'. One of '{"http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":generatedAnnotationDate, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":constructorPropertiesAnnotation, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":constructorPropertiesAnnotationOnPojos, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":constructorPropertiesAnnotationOnRecords, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":pojosAsJavaRecordClasses, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":pojosAsScalaCaseClasses, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":pojosAsKotlinDataClasses, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":jpaVersion, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":globalDomainReferences, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":commentsOnEmbeddables, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":generatedSerialVersionUID, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":maxMembersPerInitialiser, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":newline, "http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd":indentation}' is expected.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/rob/.gradle/caches/modules-2/files-2.1/com.sun.xml.bind/jaxb-impl/2.3.0.1/2e979dabb3e5e74a0686115075956391a14dece8/jaxb-impl-2.3.0.1.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Dec 07, 2020 11:55:59 AM org.jooq.tools.JooqLogger error
SEVERE: Cannot read /home/rob/gits/gitlab/sgs4/jooq/build/tmp/generateJooq/config.xml. Error : Error generating code for catalog
org.jooq.codegen.GeneratorException: Error generating code for catalog
at org.jooq.codegen.JavaGenerator.generate(JavaGenerator.java:441)
at org.jooq.codegen.GenerationTool.run0(GenerationTool.java:879)
at org.jooq.codegen.GenerationTool.run(GenerationTool.java:233)
at org.jooq.codegen.GenerationTool.generate(GenerationTool.java:228)
at org.jooq.codegen.GenerationTool.main(GenerationTool.java:200)
Caused by: java.lang.NullPointerException
at org.jooq.codegen.JavaWriter.beforeClose(JavaWriter.java:227)
at org.jooq.codegen.GeneratorWriter.close(GeneratorWriter.java:339)
at org.jooq.codegen.JavaGenerator.closeJavaWriter(JavaGenerator.java:8566)
at org.jooq.codegen.JavaGenerator.generateCatalog(JavaGenerator.java:6253)
at org.jooq.codegen.JavaGenerator.generate(JavaGenerator.java:531)
at org.jooq.codegen.JavaGenerator.generate(JavaGenerator.java:436)
... 4 more
and I'm not sure which warning is, shall we say, understated. Is it the 'invalid content' or the 'Illegal reflective access'. I have attacted the generated config.xml as well as my extension of JavaGenerator.
Also, I don't explicitly involve com.sun.xml.bind/jaxb-impl/2.3.0.1 and am wondering how to get round that.
Is it the 'invalid content'
or the 'Illegal reflective access'.
Thank you for your patience. I don't know that I'm reporting a bug (or suspicion of one). Let me try to re-phrase:
Is the config.xml in the first message well formed (at least well formed enough that the warnings can be ignored)?
Is the "illegal reflection" safe to ignore or preferably correctable?
With these answered I can go back to digging and should I find or suspect a bug I will do my best to make a MCVE. But as this may be strictly related to gradle I'm not sure how that will turn out when translated to a pom.
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO5D8rziEKSyx8WPXH-vRuWhA-KMn5mXpSg%2BYyQ7aOiwqg%40mail.gmail.com.
Thank you for your patience. I don't know that I'm reporting a bug (or suspicion of one). Let me try to re-phrase:
Is the config.xml in the first message well formed (at least well formed enough that the warnings can be ignored)?
Is the "illegal reflection" safe to ignore or preferably correctable?
With these answered I can go back to digging and should I find or suspect a bug I will do my best to make a MCVE. But as this may be strictly related to gradle I'm not sure how that will turn out when translated to a pom.
Thanks again.
What I find most
confusing is the
SEVERE: Cannot read /home/rob/gits/gitlab/sgs4/jooq/build/tmp/generateJooq/config.xml. Error : Error generating code for catalog
org.jooq.codegen.GeneratorException: Error generating code for catalog
after having
reported those warning about that very same file. I have to
take it that "cannot read" is more "cannot parse"?
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO4uDsk1KdQVmt%3DVP7s9fsz4x_6Y6hPP42k6E9Vhocz%2BAQ%40mail.gmail.com.
I see from the jooq source that the error message is supposed to report which catalog it's having trouble with. I presume its an empty string at the point of the error (or we would get "null" a the name of the catalog).
SEVERE: Cannot read /home/rob/gits/gitlab/sgs4/jooq/build/tmp/generateJooq/config.xml. Error : Error generating code for catalog <missing catalogue name>
org.jooq.codegen.GeneratorException: Error generating code for catalog <missing catalogue name>
at org.jooq.codegen.JavaGenerator.generate(JavaGenerator.java:441)
at org.jooq.codegen.GenerationTool.run0(GenerationTool.java:879)
at org.jooq.codegen.GenerationTool.run(GenerationTool.java:233)
at org.jooq.codegen.GenerationTool.generate(GenerationTool.java:228)
at org.jooq.codegen.GenerationTool.main(GenerationTool.java:200)
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO4uDsk1KdQVmt%3DVP7s9fsz4x_6Y6hPP42k6E9Vhocz%2BAQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/619f0a7f-4c0a-6cf9-0a3d-704dad9b652e%40gmail.com.