Peter Rader
JCHJava Community | Help. Code. Learn.
•Created by Peter Rader on 8/14/2024 in #java-help
Huge WSDL produce a jdk.internal.org.objectweb.asm.MethodTooLargeException
There is a wsdl that is huge. https://raw.githubusercontent.com/attester/virtualbox-soap/master/sdk-files/vboxweb.wsdl
The wsdl has a portType (vboxPortType) having about 10.000 lines of code.
The wsdl generate a java-interface (org.virtualbox.service.VboxPortType) having 35k lines / 1800 methods.
This is the stacktrace:
11 replies
JCHJava Community | Help. Code. Learn.
•Created by Peter Rader on 6/27/2024 in #java-help
InvocationTargetException using JCI
I try to run a simple main to compile(!) some java code. This is my pom:
And this is my main-class:
My output is:
(0:0) : Error while executing the compiler: java.lang.reflect.InvocationTargetException
What am I doing wrong?67 replies
JCHJava Community | Help. Code. Learn.
•Created by Peter Rader on 6/21/2024 in #java-help
Switch from commons-fileupload to commons-fileupload-jakarta-servlet6
I need to change my fileupload-integration to the jakarta6-version. The old code is . Using the new version I have this constructor:
new JakartaServletFileUpload<FileItem<I>, FileItemFactory<I>>();
. How to use the constructor properly?24 replies
JCHJava Community | Help. Code. Learn.
•Created by Peter Rader on 4/23/2024 in #java-help
Live only exception with jaxb
Iv got an exception that I can not reproduce locally.
This is the writeMetadata method:
4 replies
JCHJava Community | Help. Code. Learn.
•Created by Peter Rader on 4/7/2024 in #java-help
HQL not working. Gives strange Exception in console.
How could that happen?
I have this HQL:
SELECT mfr.id FROM EMailToEMailFolderOrdered mfr WHERE NOT(SIZE(mfr.EMail) = MAX(mfr.orderNumber) AND MIN(mfr.orderNumber)=1) GROUP BY mfr.id
55 replies
JCHJava Community | Help. Code. Learn.
•Created by Peter Rader on 3/26/2024 in #java-help
HQL very slow
A HQL query I use is very slow.
What the query should do:
The Query should output two columns:
1.
Integerµint8
as a concat of the java-type, the letter 'µ' and then the database-native type.
2. int8 (29)
what means that the type int8 is used 29 times.
Ok, the reason why this query is slow is: SIZE(t.SQLDatabaseColumn)
is executed multiple times.
How to improve the speed in HQL?4 replies