[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[transformer-dev] Transformation failing ..
|
Hello all,
Was trying to use the Eclipse Transformer to transform the javax namespace to jakarta namespace. Ran into below issue:
----------------------
main] ERROR Transformer - Unexpected failure
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Unknown Source)
at aQute.bnd.classfile.ConstantPool.utf8Info(ConstantPool.java:710)
at aQute.bnd.classfile.MethodParametersAttribute$MethodParameter.write(MethodParametersAttribute.java:78)
at aQute.bnd.classfile.MethodParametersAttribute.write(MethodParametersAttribute.java:44)
at aQute.bnd.classfile.Attribute.writeAttributes(Attribute.java:134)
at aQute.bnd.classfile.MemberInfo.write(MemberInfo.java:55)
at aQute.bnd.classfile.ClassFile.write(ClassFile.java:134)
at org.eclipse.transformer.action.impl.ClassActionImpl.apply(ClassActionImpl.java:488)
at org.eclipse.transformer.action.impl.ElementActionImpl.apply(ElementActionImpl.java:73)
at org.eclipse.transformer.Transformer.transform(Transformer.java:1242)
at org.eclipse.transformer.Transformer.basicRun(Transformer.java:200)
at org.eclipse.transformer.Transformer.run(Transformer.java:156)
at org.eclipse.transformer.cli.TransformerCLI.run(TransformerCLI.java:387)
at org.eclipse.transformer.cli.TransformerCLI.runWith(TransformerCLI.java:58)
at org.eclipse.transformer.cli.JakartaTransformerCLI.main(JakartaTransformerCLI.java:24)
[main] INFO Transformer - Transformer Return Code [ 3 ] [ Transform Error ]
-----------
Attaching the files to reproduce this issue.
Ran below command -
java -jar org.eclipse.transformer.cli-0.5.0.jar test/com/myorg/test/CheckCaseValidator.class test/com/myorg/test/CheckCaseValidator.class.transformed
Kindly let me know what I am missing.
Our project base is relatively large and hence running the Eclipse Transformer is going to be immensely helpful.
Really appreciate your help.
Thanks,
Amit
Attachment:
CaseMode.java
Description: Binary data
Attachment:
CheckCase.java
Description: Binary data
Attachment:
CheckCaseValidator.java
Description: Binary data