Hi
I also got the same exception.
My setting:
Temporal server: docker-compose v1.11.3
Temporal Java SDK: 1.0.7
First, I exported the json file from Temporal UI:
[
{
"eventId": "1"
...
}
]
Then I got the exception:
io.temporal.common.converter.DataConverterException: com.google.protobuf.InvalidProtocolBufferException: Expect message object but got: [{"eventId":"1","eventTime":...}]
So I modified the json to: (add "events"
)
{
"events": [
{
"eventId": "1"
...
}
]
}
But still got:
io.temporal.common.converter.DataConverterException: com.google.protobuf.InvalidProtocolBufferException: JsonObject
Caused by: com.google.protobuf.InvalidProtocolBufferException: JsonObject
I roughly checked the enum types in json and thought they are correct:
"eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED"
"kind": "TASK_QUEUE_KIND_NORMAL"
"initiator": "CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED"
The most weird thing is that I tried patient-onboard but still got another exception:
(temporal-patient-onboarding/onboardingrunhistory.json at main · tsurdilo/temporal-patient-onboarding · GitHub)
java.lang.RuntimeException: query failure for workflow_id: "workflow_id_in_replay"
run_id: "run_id_in_replay"
, queryType=__replay_only, args=Optional.empty, error=io.temporal.internal.replay.InternalWorkflowTaskException: Failure handling event 5 of 'EVENT_TYPE_ACTIVITY_TASK_SCHEDULED' type. IsReplaying=true, PreviousStartedEventId=3, workflowTaskStartedEventId=9223372036854775807, Currently Processing StartedEventId=3
Caused by: java.lang.IllegalStateException: COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK doesn't match EVENT_TYPE_ACTIVITY_TASK_SCHEDULED with EventId=5
I’m trying to use tctl these days, but did you have any other suggestion?
Thanks a lot!