Problem with getting some value from a map

Hi all

I’ve some problem to get some values from a map:

    java.lang.IllegalStateException: An error has been encountered at the end of expression 's.get("salutation")]>'. Can not resolve method 'get' on type 'class java.util.HashMap'.

My code:

ReportingEngine engine = new ReportingEngine();
engine.buildReport(doc, Arrays.asList(map).toArray(), new String[] { "s"});

Any ideas?

Thanks

@silvanb It looks like the reason of the problem is reflection optimization. Please try disabling it before building the report:

ReportingEngine.setUseReflectionOptimization(false);

Yes this was the problem. Thanks!

1 Like

The issues you have found earlier (filed as WORDSJAVA-2710) have been fixed in this Aspose.Words for Java 22.12 update.