Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is not legal for a JDOM comment: Comments cannot contain double hyphens (--). -- migrating :enricher #661

Closed
bboyero opened this issue Jun 20, 2022 · 0 comments · Fixed by #672

Comments

@bboyero
Copy link

bboyero commented Jun 20, 2022

Version used
MMA 1.3.0

Describe the bug
is not legal for a JDOM comment: Comments cannot contain double hyphens (--). -- migrating :enricher

Expected Behavior
Migrate enricher elemetns

Actual Behavior
Do nothing in cases of enricher

Relevant logs
Executing migrator 1.3.0...
WARN 2022-06-09 09:18:23,196 [main] com.mulesoft.tools.migration.step.ReportingStep: Exception org.jdom2.IllegalDataException: The data "
<dw:transform-message xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" doc:name="CALENDARS-S-T-0004">
dw:set-payload<![CDATA[%dw 1.0
%output application/java

{
message:"Not able to retrieve calendars." as :string,
status:"500" as :string,
code:"CALENDARS-S-T-0004" as :string,
origin: "database" as :string,
causeMessage: "" as :string
}]]></dw:set-payload>
</dw:transform-message>
" is not legal for a JDOM comment: Comments cannot contain double hyphens (--). -- migrating :enricher
ERROR 2022-06-09 09:18:23,206 [main] com.mulesoft.tools.migration.engine.MigrationJob: Failed to apply task, rolling back and continuing with the next one.
com.mulesoft.tools.migration.exception.MigrationTaskException: Task execution exception. Task execution exception (The data "
<dw:transform-message xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" doc:name="CALENDARS-S-T-0004">
dw:set-payload<![CDATA[%dw 1.0
%output application/java

{
message:"Not able to retrieve calendars." as :string,
status:"500" as :string,
code:"CALENDARS-S-T-0004" as :string,
origin: "database" as :string,
causeMessage: "" as :string
}]]></dw:set-payload>
</dw:transform-message>
" is not legal for a JDOM comment: Comments cannot contain double hyphens (--).) migrating node:

<dw:transform-message xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" doc:name="CALENDARS-S-T-0004">
dw:set-payload<![CDATA[%dw 1.0
%output application/java

{
message:"Not able to retrieve calendars." as :string,
status:"500" as :string,
code:"CALENDARS-S-T-0004" as :string,
origin: "database" as :string,
causeMessage: "" as :string
}]]></dw:set-payload>
</dw:transform-message>

at com.mulesoft.tools.migration.task.AbstractMigrationTask.execute(AbstractMigrationTask.java:96) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.engine.MigrationJob.execute(MigrationJob.java:102) [mule-migration-tool-engine-1.3.0.jar:1.3.0]
at com.mulesoft.tools.migration.MigrationRunner.run(MigrationRunner.java:82) [mule-migration-assistant-runner-1.3.0.jar:1.3.0]
at com.mulesoft.tools.migration.MigrationRunner.main(MigrationRunner.java:67) [mule-migration-assistant-runner-1.3.0.jar:1.3.0]
Caused by: com.mulesoft.tools.migration.exception.MigrationStepException: Task execution exception (The data "
<dw:transform-message xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" doc:name="CALENDARS-S-T-0004">
dw:set-payload<![CDATA[%dw 1.0
%output application/java

{
message:"Not able to retrieve calendars." as :string,
status:"500" as :string,
code:"CALENDARS-S-T-0004" as :string,
origin: "database" as :string,
causeMessage: "" as :string
}]]></dw:set-payload>
</dw:transform-message>
" is not legal for a JDOM comment: Comments cannot contain double hyphens (--).) migrating node:

<dw:transform-message xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" doc:name="CALENDARS-S-T-0004">
dw:set-payload<![CDATA[%dw 1.0
%output application/java

{
message:"Not able to retrieve calendars." as :string,
status:"500" as :string,
code:"CALENDARS-S-T-0004" as :string,
origin: "database" as :string,
causeMessage: "" as :string
}]]></dw:set-payload>
</dw:transform-message>

at com.mulesoft.tools.migration.task.AbstractMigrationTask.lambda$fetchAndProcessNodes$8(AbstractMigrationTask.java:122) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask$$Lambda$90/1956746660.accept(Unknown Source) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_51]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_51]
at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1235) ~[?:1.8.0_51]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) ~[?:1.8.0_51]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) ~[?:1.8.0_51]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_51]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_51]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_51]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_51]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.fetchAndProcessNodes(AbstractMigrationTask.java:116) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.lambda$execute$3(AbstractMigrationTask.java:75) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask$$Lambda$62/564086167.accept(Unknown Source) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.execute(AbstractMigrationTask.java:73) ~[mule-migration-tool-api-1.3.0.jar:?]
... 3 more
Caused by: org.jdom2.IllegalDataException: The data "
<dw:transform-message xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" doc:name="CALENDARS-S-T-0004">
dw:set-payload<![CDATA[%dw 1.0
%output application/java

{
message:"Not able to retrieve calendars." as :string,
status:"500" as :string,
code:"CALENDARS-S-T-0004" as :string,
origin: "database" as :string,
causeMessage: "" as :string
}]]></dw:set-payload>
</dw:transform-message>
" is not legal for a JDOM comment: Comments cannot contain double hyphens (--).
at org.jdom2.Comment.setText(Comment.java:124) ~[jdom2-2.0.6.jar:2.0.6]
at org.jdom2.Comment.(Comment.java:89) ~[jdom2-2.0.6.jar:2.0.6]
at com.mulesoft.tools.migration.report.DefaultMigrationReport.report(DefaultMigrationReport.java:159) ~[mule-migration-tool-engine-1.3.0.jar:1.3.0]
at com.mulesoft.tools.migration.report.DefaultMigrationReport.report(DefaultMigrationReport.java:121) ~[mule-migration-tool-engine-1.3.0.jar:1.3.0]
at com.mulesoft.tools.migration.library.mule.steps.core.Enricher.execute(Enricher.java:120) ~[mule-migration-tool-library-1.3.0.jar:?]
at com.mulesoft.tools.migration.library.mule.steps.core.Enricher.execute(Enricher.java:37) ~[mule-migration-tool-library-1.3.0.jar:?]
at com.mulesoft.tools.migration.step.ReportingStep.execute(ReportingStep.java:55) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.step.ReportingStep.execute(ReportingStep.java:29) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.lambda$fetchAndProcessNodes$8(AbstractMigrationTask.java:119) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask$$Lambda$90/1956746660.accept(Unknown Source) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_51]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_51]
at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1235) ~[?:1.8.0_51]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) ~[?:1.8.0_51]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) ~[?:1.8.0_51]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_51]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_51]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_51]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_51]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.fetchAndProcessNodes(AbstractMigrationTask.java:116) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.lambda$execute$3(AbstractMigrationTask.java:75) ~[mule-migration-tool-api-1.3.0.jar:?]
at com.mulesoft.tools.migration.task.AbstractMigrationTask$$Lambda$62/564086167.accept(Unknown Source) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51]
at com.mulesoft.tools.migration.task.AbstractMigrationTask.execute(AbstractMigrationTask.java:73) ~[mule-migration-tool-api-1.3.0.jar:?]
... 3 more

MIGRATION ASSISTANT RUN SUCCESSFULLY

Total time: 14,194 s

Reproducible Test Case

There are not double hyphens (--). but it is not only in this case the beheivour is the same with enricher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant