[midPoint] jackson library in model-impl module?
Manish Baid
baid_manish at yahoo.com
Fri Feb 6 22:53:04 CET 2015
Hi,
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:
ObjectMapper com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
2015-02-06 05:43:34,663 [] [midPointScheduler_Worker-4] ERROR (com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor): Task handler threw unexpected exception: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z; task = Task(id:1423158997535-0-1, name:PermissionSetEvaluate, oid:00000000-0000-0000-0000-000000000120)
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:445) ~[jackson-databind-2.3.1.jar:2.3.1]
at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:366) ~[jackson-databind-2.3.1.jar:2.3.1]
at com.evolveum.midpoint.model.impl.permissionset.PermissionSetEvaluation.run(PermissionSetEvaluation.java:65) ~[model-impl-3.2-SNAPSHOT.jar:na]
at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:479) [task-quartz-impl-3.2-SNAPSHOT.jar:na]
at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeRecurrentTask(JobExecutor.java:359) [task-quartz-impl-3.2-SNAPSHOT.jar:na]
at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:162) [task-quartz-impl-3.2-SNAPSHOT.jar:na]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.1.3.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.3.jar:na]
Looked at the /WEB-INF/lib, looks like there are different combination of jackson libraries built which can be causing this.
Here is the sample code snippet...
@Override
public TaskRunResult run(Task task) {
LOGGER.trace("CleanUpTaskHandler.run starting");
long progress = task.getProgress();
OperationResult opResult = new OperationResult(OperationConstants.RECOMPUTE);
TaskRunResult runResult = new TaskRunResult();
runResult.setOperationResult(opResult);
runResult.setProgress(progress);
runResult.setRunResultStatus(TaskRunResultStatus.FINISHED);
ObjectMapper objectMapper = new ObjectMapper();
........
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150206/db66e808/attachment.htm>
More information about the midPoint
mailing list