Failed to open AutoCAD files (Java 18.12 version)


We are getting quite a lot of failures opening certain AutoCAD files and it is difficult to find the cause. Sometimes a purge helps, but sometimes it still fails to open the file:

class com.aspose.cad.cadexceptions.ImageLoadException: Image loading failed. —> class com.aspose.cad.cadexceptions.imageformats.CadException: File is incompatible with exporter, please try to convert it to Dxf: R12/R2007/R2010 or Dwg: R13/R14/R2000/R2004/R2007/R2010/R2013/R2014/R2015/R2018
com.aspose.cad.internal.eK.a.b(Unknown Source)
com.aspose.cad.fileformats.cad.CadImage.a(Unknown Source)
com.aspose.cad.fileformats.cad.CadImage.setLayers(Unknown Source)
com.aspose.cad.internal.fv.aU.load(Unknown Source)
com.aspose.cad.Image.a(Unknown Source)
com.aspose.cad.Image.load(Unknown Source)

The version is of the AutoCAD file is R2010 (AC1024). I’m not trying to convert just the Image.load method.
Can i send some example DWG files?



I have observed the issue shared by you and request you to please first try using latest Aspose.CAD for Java 18.12 on your end. In case the issue still persist then please provide the sample files along with used sample code reproducing the issue. We will investigate the issue further on our end to help you out.


I am getting a lot of errors loading files. For the moment I am using Java CAD version 19.5.
This is getting very frustrating. Is there a solution for this problem?

class com.aspose.cad.cadexceptions.ImageLoadException: Image loading failed. —> class com.aspose.cad.internal.Exceptions.ArgumentNullException: Value cannot be null.
Parameter name: path1
com.aspose.cad.internal.R.t.b(Unknown Source)
com.aspose.cad.internal.eQ.p.a(Unknown Source) (194.8 KB)



I have worked with sample file shared by you and have been able to observe the issue. An issue with ID CADJAVA-497 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


I am still waiting for a solution. Is there a way to get faster support to solve this issue?



I have verified from our issue tracking system and regret to share that the issue is still unresolved. We will be able to share the good news with you as soon as the issue will be fixed and request for your patience. If you want to expedite the issue resolution, you may consider opting our Paid Support service as well.