I am using aspose.cad java sdk (version: 18.3), convert dwg to image on Windows 10, with jdk1.8.
Some dwg files process OK, but some got below Error.
Attaching Source code and dwg files.
CAD.zip (1.1 MB)
Exception in thread “main” java.lang.ExceptionInInitializerError
at com.aspose.cad.internal.n.c.a(Unknown Source)
at com.aspose.cad.internal.m.q.a(Unknown Source)
at com.aspose.cad.internal.m.n.a(Unknown Source)
at com.aspose.cad.internal.m.K.a(Unknown Source)
at com.aspose.cad.internal.m.n.a(Unknown Source)
at com.aspose.cad.internal.m.H.a(Unknown Source)
at com.aspose.cad.internal.n.c.a(Unknown Source)
at com.aspose.cad.internal.n.c.a(Unknown Source)
at com.aspose.cad.internal.dl.c.b(Unknown Source)
at com.aspose.cad.internal.dl.c.a(Unknown Source)
at com.aspose.cad.internal.dl.c.a(Unknown Source)
at com.aspose.cad.internal.dl.l.b(Unknown Source)
at com.aspose.cad.internal.dl.a.a(Unknown Source)
at com.aspose.cad.internal.dl.a.export(Unknown Source)
at com.aspose.cad.Image.b(Unknown Source)
at com.aspose.cad.fileformats.cad.CadImage.b(Unknown Source)
at com.aspose.cad.Image.a(Unknown Source)
at com.aspose.cad.Image.a(Unknown Source)
at com.aspose.cad.Image.save(Unknown Source)
at com.aspose.cad.Image.save(Unknown Source)
at com.industics.isword.utils.cad.DwgConvertor.main(DwgConvertor.java:41)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 102
at com.aspose.cad.internal.R.a.a(Unknown Source)
at com.aspose.cad.internal.k.g.(Unknown Source)
… 21 more