<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Manish,<br>
<br>
you're right. There are conflicting versions of jackson,
contributed by midPoint prism module (2.3.1), jasper reports
(2.1.4), activiti (1.9.9) and webjars-locator (2.3.3).<br>
Thanks for discovering that.<br>
<br>
Among these, I think the conflict is between prism's and jasper's
version, when newer version of jackson-databind calls older
version of jackson-core (2.1.4).<br>
<br>
Currently I have no better solution than upgrading activiti from
5.15.1 to 5.17.0 and excluding jackson dependencies from jasper
reports. Please see attached patch.<br>
(The former - i.e. upgrading activiti - is perhaps not necessary,
as jackson 1.9.9 uses other - nonconflicting - namespace.)<br>
<br>
BEWARE: I have not tested whether workflows and/or reports still
works flawlessly after the changes. Please test for yourself. <br>
<br>
I will soon create jira issue for the problem you've reported, so
we can deal with it more seriously in 3.1.1 or 3.2 release.<br>
<br>
Best regards,<br>
Pavol<br>
<br>
<br>
On 6. 2. 2015 22:53, Manish Baid wrote:<br>
</div>
<blockquote
cite="mid:1527254895.629776.1423259584664.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>