[
https://issues.apache.org/jira/browse/AMQ-9686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17943701#comment-17943701
]
Christopher L. Shannon commented on AMQ-9686:
---------------------------------------------
I made a comment over on OPENWIRE-79...as mentioned it's going to be tricky. We
also have other work to do as well for OpenWire including fixing the error
codes which is https://issues.apache.org/jira/browse/OPENWIRE-74
Long term that project is going to be the future for sure, but this has me
thinking that one potential option is we could use and old AMQ version and JDK
8 just to use the generator if we just want to generate a v13 for shared
subscriptions only. If we did we'd have to manually copy over the java code
into the new build of course (and manually fix the size validation and also the
fix for the exception CVE that was done).
I'm not saying we should or shouldn't do that, but that would be a lot quicker
of an option. The new OpenWire project might take a decent amount of work to
finish up but I think it should certainly be used for the AMQ 7 broker no
matter what (maybe a v14 if we do a v13 earlier).
Anyways, just a thought, I'm not really sure what the best path is at this
point. Like I said, ideally we'd go with the new project but if it's still has
a ways to go then using the old generator on JDK 8 for now may be something to
do in the short term if others want to do that.
> OpenWire Genertor is broken due to Java version and maven-antrun-plugin
> version upgrade
> ---------------------------------------------------------------------------------------
>
> Key: AMQ-9686
> URL: https://issues.apache.org/jira/browse/AMQ-9686
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: Transport
> Reporter: Ken Liao
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> Due to upgrade in maven-antrun-plugin, the <tasks> param is deprecated. It
> can be replaced with the tag <target>. However, it will fail with this
> stacktrace
> Caused by: java.lang.NoClassDefFoundError: com/sun/javadoc/Type
> at org.codehaus.jam.provider.JamServiceFactoryImpl.createSourceBuilder
> (JamServiceFactoryImpl.java:205)
> at org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder
> (JamServiceFactoryImpl.java:158)
> at org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader
> (JamServiceFactoryImpl.java:137)
> at org.codehaus.jam.provider.JamServiceFactoryImpl.createService
> (JamServiceFactoryImpl.java:78)
> at org.apache.activemq.openwire.tool.JavaGeneratorTask.execute
> (JavaGeneratorTask.java:71)
> at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:299)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:77)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:568)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchUtils.java:99)
> at org.apache.tools.ant.Task.perform (Task.java:350)
> at org.apache.tools.ant.Target.execute (Target.java:449)
> Further investigation shows it is removed since Java 9
> https://docs.oracle.com/en/java/javase/11/docs/api/jdk.javadoc/com/sun/javadoc/Type.html
> and the offending dep is external (codehause.jam coming from annogen)
> To fix it, I think need to move to a new framework for generating the
> openwire marshal/unmarhsaller
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact