<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px"><blockquote id="yui_3_16_0_1_1423230695571_2683" class="" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id="yui_3_16_0_1_1423230695571_2682" style="" class="" dir="ltr">Hi,<br style="" class="">We
 have written a custom task and are trying to use jackson 2.3.1 library 
(midpoint's prism module uses the same version) but are getting 
following error:<br style="" class=""><br style="" class="">ObjectMapper com.fasterxml.jackson.core.<wbr style="" class="">JsonFactory.<wbr style="" class="">requiresPropertyOrdering()Z<br style="" class=""><br style="" class=""><br style="" class="">2015-02-06 05:43:34,663 [] [midPointScheduler_Worker-4] ERROR (com.evolveum.midpoint.task.<wbr style="" class="">quartzimpl.execution.<wbr style="" class="">JobExecutor): Task handler threw unexpected exception: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.<wbr style="" class="">JsonFactory.<wbr style="" class="">requiresPropertyOrdering()Z; task = Task(id:1423158997535-0-1, name:PermissionSetEvaluate, oid:00000000-0000-0000-0000-<wbr style="" class="">000000000120)<br style="" class="">java.lang.NoSuchMethodError: com.fasterxml.jackson.core.<wbr style="" class="">JsonFactory.<wbr style="" class="">requiresPropertyOrdering()Z<br style="" class="">        at com.fasterxml.jackson.<wbr style="" class="">databind.ObjectMapper.<init>(<wbr style="" class="">ObjectMapper.java:445) ~[jackson-databind-2.3.1.jar:<wbr style="" class="">2.3.1]<br style="" class="">        at com.fasterxml.jackson.<wbr style="" class="">databind.ObjectMapper.<init>(<wbr style="" class="">ObjectMapper.java:366) ~[jackson-databind-2.3.1.jar:<wbr style="" class="">2.3.1]<br style="" class="">        at com.evolveum.midpoint.model.<wbr style="" class="">impl.permissionset.<wbr style="" class="">PermissionSetEvaluation.run(<wbr style="" class="">PermissionSetEvaluation.java:<wbr style="" class="">65) ~[model-impl-3.2-SNAPSHOT.jar:<wbr style="" class="">na]<br style="" class="">        at com.evolveum.midpoint.task.<wbr style="" class="">quartzimpl.execution.<wbr style="" class="">JobExecutor.executeHandler(<wbr style="" class="">JobExecutor.java:479) [task-quartz-impl-3.2-<wbr style="" class="">SNAPSHOT.jar:na]<br style="" class="">        at com.evolveum.midpoint.task.<wbr style="" class="">quartzimpl.execution.<wbr style="" class="">JobExecutor.<wbr style="" class="">executeRecurrentTask(<wbr style="" class="">JobExecutor.java:359) [task-quartz-impl-3.2-<wbr style="" class="">SNAPSHOT.jar:na]<br style="" class="">        at com.evolveum.midpoint.task.<wbr style="" class="">quartzimpl.execution.<wbr style="" class="">JobExecutor.execute(<wbr style="" class="">JobExecutor.java:162) [task-quartz-impl-3.2-<wbr style="" class="">SNAPSHOT.jar:na]<br style="" class="">        at org.quartz.core.JobRunShell.<wbr style="" class="">run(JobRunShell.java:213) [quartz-2.1.3.jar:na]<br style="" class="">        at org.quartz.simpl.<wbr style="" class="">SimpleThreadPool$WorkerThread.<wbr style="" class="">run(SimpleThreadPool.java:557) [quartz-2.1.3.jar:na]<br style="" class=""><br style="" class=""><br style="" class="">Looked at the /WEB-INF/lib, looks like there are different combination of jackson libraries built which can be causing this.<br style="" class=""><br style="" class="">Here is the sample code snippet...<br style="" class=""><br style="" class="">    @Override<br style="" class="">    public TaskRunResult run(Task task) {<br style="" class="">        LOGGER.trace("<wbr style="" class="">CleanUpTaskHandler.run starting");<br style="" class=""><br style="" class="">        long progress = task.getProgress();<br style="" class="">        OperationResult opResult = new OperationResult(<wbr style="" class="">OperationConstants.RECOMPUTE);<br style="" class="">        TaskRunResult runResult = new TaskRunResult();<br style="" class="">        runResult.setOperationResult(<wbr style="" class="">opResult);<br style="" class="">        runResult.setProgress(<wbr style="" class="">progress);<br style="" class="">        runResult.setRunResultStatus(<wbr style="" class="">TaskRunResultStatus.FINISHED);<br style="" class="">        ObjectMapper objectMapper = new ObjectMapper();<br style="" class="">........<br style="" class=""><br style="" class=""><br style="" class="">Regards<br style="" class=""></div>
</blockquote><div style="" class="" id="yui_3_16_0_1_1423230695571_2578"><br style="" class=""></div></div></body></html>