[CAM-7828] NullPointerException when migrating process with Message end event Created: 18/May/17  Updated: 28/Jul/17  Resolved: 29/Jun/17

Status: Closed
Project: camunda BPM
Component/s: engine
Affects Version/s: 7.8.0-alpha1
Fix Version/s: 7.8.0, 7.7.1, 7.6.7, 7.8.0-alpha2

Type: Bug Report Priority: L3 - Default
Reporter: Svetlana Dorokhova Assignee: Smirnov Roman
Resolution: Fixed Votes: 0
Labels: SUPPORT
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes

Attachments: File message_end.bpmn    
Issue Links:
Depedendency

 Description   

What are the steps to reproduce your problem?

  • Create the model with message end event, which is configured to be executed by external task (see attach). Important: messageEventDefinition node must NOT have id field.
  • Deploy the model
  • Start the process instance
  • Change a model slightly and deploy the second version
  • Try to generate Migration plan

What is the problem?

 java.lang.NullPointerException
        at org.camunda.bpm.engine.impl.migration.DefaultMigrationActivityMatcher.equalId(DefaultMigrationActivityMatcher.java:25)
        at org.camunda.bpm.engine.impl.migration.DefaultMigrationActivityMatcher.matchActivities(DefaultMigrationActivityMatcher.java:21)
        at org.camunda.bpm.engine.impl.migration.DefaultMigrationInstructionGenerator.generateInstructionsForActivities(DefaultMigrationInstructionGenerator.java:91)
        at org.camunda.bpm.engine.impl.migration.DefaultMigrationInstructionGenerator.generate(DefaultMigrationInstructionGenerator.java:116)
        at org.camunda.bpm.engine.impl.migration.DefaultMigrationInstructionGenerator.generate(DefaultMigrationInstructionGenerator.java:69)
        at org.camunda.bpm.engine.impl.cmd.CreateMigrationPlanCmd.generateInstructions(CreateMigrationPlanCmd.java:105)
        at org.camunda.bpm.engine.impl.cmd.CreateMigrationPlanCmd.execute(CreateMigrationPlanCmd.java:67)
        at org.camunda.bpm.engine.impl.cmd.CreateMigrationPlanCmd.execute(CreateMigrationPlanCmd.java:46)
        at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
        at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:104)
        at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:66)
        at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
        at org.camunda.bpm.engine.impl.migration.MigrationPlanBuilderImpl.build(MigrationPlanBuilderImpl.java:93)
        at org.camunda.bpm.engine.rest.impl.MigrationRestServiceImpl.generateMigrationPlan(MigrationRestServiceImpl.java:59)

What would be the expected behavior:
Migration plan is generated

Hints (optional):


Generated at Sat Nov 25 06:44:29 CET 2017 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.