Skip to content

LmRuntimeException on execution of edited link-move xml-extractor #184

Description

@MProtasevich

In our case, we deploy link-move xml extractors separately from main app, which uses LmRuntime to start jobs.

If we redeploy link-move extractors or edit the extractor (xml-file), which is going to be used in next execution, without restarting the application, exception will be thrown

com.nhl.link.move.LmRuntimeException: Multiple values are present for property: extractor.jdbc.sqltemplate
	at com.nhl.link.move.extractor.model.MutableExtractorModel.getPropertyValue(MutableExtractorModel.java:55)
	at com.nhl.link.move.extractor.model.MutableExtractorModel.getProperties(MutableExtractorModel.java:37)
	at com.nhl.link.move.extractor.model.ContainerAwareExtractorModel.getProperties(ContainerAwareExtractorModel.java:49)
	at com.nhl.linkmove.extensions.extension.DefaultExtensionFactory.getExtensions(DefaultExtensionFactory.java:50)
	at com.nhl.linkmove.extensions.DefaultSyncProcessorService.processor(DefaultSyncProcessorService.java:40)

Steps to reproduce:

  1. LinkMove extractors located outside of the jar (somewhere in file system)
  2. Start application which schedules jobs for execution (via cron, for instance)
  3. Wait for any job to finish it's work
  4. Edit xml-extractor of a job, which has been run previously
  5. Wait until next execution
  6. Exception is thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions