Project

General

Profile

Bug #7365

d1_synchronization v2/v1 processing error

Added by Ben Leinfelder about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
d1_synchronization
Start date:
2015-09-17
Due date:
% Done:

100%

Story Points:
Sprint:

Description

When running in a mixed v1/v2 environment (DEV2) I saw these processing errors:

[DEBUG] 2015-09-17 16:36:26,531 (TypeFactory:clone:189) Cloning object org.dataone.service.types.v1.SystemMetadata@2596d3d1 (of type org.dataone.service.types.v1.SystemMetadata)...
[ERROR] 2015-09-17 16:36:26,532 (StdOutErrLog$2:print:51) java.lang.ClassCastException
[ERROR] 2015-09-17 16:36:26,534 (V2TransferObjectTask:retrieveMNSystemMetadata:289) Task-urn:node:mnDevUNM1-http://dx.doi.org/10.5061/dryad.vk7sr8tr?ver=2012-03-21T10:22:33.507-04:00
<?xml version="1.0" encoding="UTF-8"?>

Error converting v1.SystemMetadata to v2.SystemMetadata: null

Looking at V2TransferObjectTask.java, I see that the TypeMarshaller.clone() method was being used in an attempt to convert v1.SystemMetadata to v2.SystemMetadata. This will fail and throw the above error.

History

#1 Updated by Ben Leinfelder about 9 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

I changed to use: TypeFactory.convertTypeFromType() instead of clone. Will need to redeploy in DEV2 (and DEV) to test.

#2 Updated by Ben Leinfelder about 9 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

This worked great.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)