Tuesday, August 9, 2022

Re: [ERROR] Unexpected internal compiler error | BytecodeSignatureMaker.java:59 | at com.google.gwt.dev.Compiler.main(Compiler.java:113)

Thanks for the assistance.

After poking around a bit, I removed the dependency and switched to using Element2 for websock work.

On Fri, Aug 5, 2022 at 11:41 AM Jens <jens.nehlmeier@gmail.com> wrote:
GWT (gwt-dev) depends on ASM 9.2 which supports up to Java 18. On your compile classpath you have gwt-websockets which depends on ASM 5.x. Seems like that ASM version is used during GWT compilation. 

ASM's ClassVisitor constructor checks the byte code version of the class file and if it is too high then this exception will be thrown.

-- J.

Michael Joyner schrieb am Mittwoch, 3. August 2022 um 22:36:02 UTC+2:

Trying to update to gwt 2.10.0, have it mostly figured out, but I'm getting the following stack trace.

Any suggestions on what I need to look for?

I've already did the exclude module's thing on multiple dependencies to keep gwt 2.8 stuff out of the classpath. There is no GWT servlet stuff.

Using Gradle, JDK 17, Linux, IntelliJU

plugins {
    id "java"
    id "war"
    id "org.wisepersist.gwt"
    id "org.gretty"
}

> Task :compileGwt
Compiling module com.newsrx.butter.Butter
[ERROR] Unexpected internal compiler error
java.lang.IllegalArgumentException
        at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
        at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.<init>(BytecodeSignatureMaker.java:59)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
        at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
        at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
        at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:41)
        at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:36)
        at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:100)
        at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:349)
        at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:532)
        at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:464)
        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:210)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:190)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:131)
        at com.google.gwt.dev.Compiler.compile(Compiler.java:192)
        at com.google.gwt.dev.Compiler.compile(Compiler.java:143)
        at com.google.gwt.dev.Compiler.compile(Compiler.java:132)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:110)
        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
        at com.google.gwt.dev.Compiler.main(Compiler.java:113)


Dependency graph attached.


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6d3ae1a3-0d62-49a6-b02e-73be14a1f6fcn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CALao4gMe49kW8Tf%2Bk125dOFhLe3NDTsjDEmM1SDhOpdqDWudcQ%40mail.gmail.com.

Saturday, August 6, 2022

Re: GXT 2.3.1 to 4.0.2 migration

I have described in another thread about patches in GXT. The link:

You can extract all the source code of the GXT jar and created a repository for your company, or put all the source code in the same repository of your app. The GXT 2.x is deprecated, for that reason, I believe the best choice is you create a fork of GXT 2.x.

Em sáb., 6 de ago. de 2022 às 10:49, Lorenzo Aditi <dhia.xdk.bingo@gmail.com> escreveu:
do you mean to unzip the jar, modify the .java file, compile it and zip into a jar ?

Le vendredi 5 août 2022 à 22:19:54 UTC+2, Ricardo Serathiuk a écrit :
Try to change the line 322 of ListField to this:
sb.append(m.get(prop).toString());



Em sex., 5 de ago. de 2022 às 16:34, Lorenzo Aditi <dhia.xd...@gmail.com> escreveu:
Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a42bf19d-356a-4c4c-8b56-2992667d03f6n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAPwuz4BPpBqxA5JzxCY5WrCpLydvo--8_cF%2BdD%2BBFLqhNA8CjQ%40mail.gmail.com.

Re: GXT 2.3.1 to 4.0.2 migration

You can create the same java file in the same package in your project's source directory and then adjust the implementation. It should then override the one in your dependencies.

-- J.

dhia.xd...@gmail.com schrieb am Samstag, 6. August 2022 um 15:49:46 UTC+2:
do you mean to unzip the jar, modify the .java file, compile it and zip into a jar ?

Le vendredi 5 août 2022 à 22:19:54 UTC+2, Ricardo Serathiuk a écrit :
Try to change the line 322 of ListField to this:
sb.append(m.get(prop).toString());



Em sex., 5 de ago. de 2022 às 16:34, Lorenzo Aditi <dhia.xd...@gmail.com> escreveu:
Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/450e6da6-0cf4-451b-b72a-b46a0734c3c2n%40googlegroups.com.

Re: GXT 2.3.1 to 4.0.2 migration

do you mean to unzip the jar, modify the .java file, compile it and zip into a jar ?

Le vendredi 5 août 2022 à 22:19:54 UTC+2, Ricardo Serathiuk a écrit :
Try to change the line 322 of ListField to this:
sb.append(m.get(prop).toString());



Em sex., 5 de ago. de 2022 às 16:34, Lorenzo Aditi <dhia.xd...@gmail.com> escreveu:
Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a42bf19d-356a-4c4c-8b56-2992667d03f6n%40googlegroups.com.

Friday, August 5, 2022

Re: GXT 2.3.1 to 4.0.2 migration

How to change that? It is a .class file (compiled) of a the gxt dependency. I don't have the hand over that.
Do you mean creating a class that extends ListField and overriding that method? If so is there a way in java to tell the compiler to use the overidden class instead?

Le vendredi 5 août 2022 à 22:19:54 UTC+2, Ricardo Serathiuk a écrit :
Try to change the line 322 of ListField to this:
sb.append(m.get(prop).toString());



Em sex., 5 de ago. de 2022 às 16:34, Lorenzo Aditi <dhia.xd...@gmail.com> escreveu:
Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/511d4224-aad8-4919-849b-5216da9b6ab1n%40googlegroups.com.

Re: GXT 2.3.1 to 4.0.2 migration

Try to change the line 322 of ListField to this:
sb.append(m.get(prop).toString());



Em sex., 5 de ago. de 2022 às 16:34, Lorenzo Aditi <dhia.xdk.bingo@gmail.com> escreveu:
Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAPwuz4C5eak8ZXynhQZJBBAdkwreCoEJ%3D81f7YKV9prvErUSRw%40mail.gmail.com.

GXT 2.3.1 to 4.0.2 migration

Hello,

We used to have GWT 2.4 & GXT 2.2.5 and we migrated to GWT 2.8.1.

Now I am using GWT 2.8 with gxt 2.2.5 and Jdk 1.8.0_291, even when upgrading gxt-2.3.1a-gwt22 I still get this error when maven is building I got this error

jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java' > Line 322: The method append(boolean) is ambiguous for the type > StringBuffer

After searching I thought it is imposible to resolve it, I don't have the right to edit the dependency.

So I decided to upgrade gxt to 4.0.2, am I right?

but when I did all the app broke, most of the Types don't exist anymore and the migration is not well documented on sencha website, they provide a unique page that doesn't help.

Do you have  a tutorial or a guide that helps? or maybe a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2c202184-3d3b-4f3f-a547-50e488d4c244n%40googlegroups.com.