You might be able to use java 17 with axis 1.6.4 since that Axis2 version likely was compiled to JDK level 8 and JDK 17 supports compiler levels back to 7.
The Axiom code in question has changed quite a bit and the code in git removed javax.activation.DataHandler in its move from javax package support in favor of jakarta. The latest Axis2 code in git totally reworked the Axiom code in the stacktrace pasted above. Seems like you mixed and matched some axis2 distro dependencies. On Thu, Sep 14, 2023 at 9:04 PM Vignesh Ragavan <vigneshr.raga...@gmail.com> wrote: > Can we use java 17 with axis 1.6.4? > > On Fri, 15 Sept, 2023, 5:26 am robertlazarski, <robertlazar...@gmail.com> > wrote: > >> Is that happening on Axis2 1.8.2? >> >> axiom-impl-1.4.0.jar probably only works on Axis2 1.8.2. >> >> axiom-impl-1.2.20.jar is from seven years ago, which is why I ask. >> >> >> On Thu, Sep 14, 2023 at 12:29 PM Vignesh R <vigneshragav...@gmail.com> >> wrote: >> >>> Hi, >>> >>> Upgrading axiom-impl-1.2.20.jar to axiom-impl-1.4.0.jar throws NULL >>> Pointer for Datahandler. >>> >>> Caused by: java.lang.NullPointerException >>> at >>> org.apache.axiom.om.impl.OMMultipartWriter.writePart(OMMultipartWriter.java:165) >>> at >>> org.apache.axiom.om.impl.OMMultipartWriter.writePart(OMMultipartWriter.java:183) >>> at org.apache.axiom.om.impl.llom.AxiomContainerImpl.serialize(Unknown >>> Source) >>> at org.apache.axiom.om.impl.llom. >>> >>> >>> Thanks >>> Vignesh >>> >>