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

java.lang.IllegalArgumentException: Illegal group reference #364

Closed
liangxunchang opened this issue Aug 17, 2023 · 2 comments
Closed

java.lang.IllegalArgumentException: Illegal group reference #364

liangxunchang opened this issue Aug 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@liangxunchang
Copy link

Describe the bug

when i use CNES Report, it show error "java.lang.IllegalArgumentException: Illegal group reference"

To reproduce

Steps to reproduce the behavior.

  1. Go to 'More'
  2. Click on 'CNES Report'
  3. Choice my my projects
  4. See error

Screenshots & log

Aug 16, 2023 9:22:45 AM fr.cnes.sonar.report.ReportCommandLine execute
INFO: SonarQube URL: http://sonar.odc.sunline.cn
Aug 16, 2023 9:22:46 AM fr.cnes.sonar.report.ReportCommandLine execute
INFO: SonarQube online: true
Aug 16, 2023 9:22:46 AM fr.cnes.sonar.report.ReportCommandLine execute
INFO: Detected SonarQube version: 8.9.10.61524
Aug 16, 2023 9:23:07 AM fr.cnes.sonar.report.exporters.docx.DocXExporter export
WARNING: Unable to find provided DOCX template file (using default one instead) : /opt/sonarqube/extensions/plugins/./template.docx
Aug 16, 2023 9:23:10 AM fr.cnes.sonar.report.ReportCommandLine main
SEVERE: Illegal group reference
java.lang.IllegalArgumentException: Illegal group reference
at java.base/java.util.regex.Matcher.appendExpandedReplacement(Unknown Source)
at java.base/java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.base/java.util.regex.Matcher.replaceAll(Unknown Source)
at java.base/java.lang.String.replaceAll(Unknown Source)
at fr.cnes.sonar.report.exporters.docx.DocXTools.replaceInParagraph(DocXTools.java:293)
at fr.cnes.sonar.report.exporters.docx.DocXTools.replacePlaceholder(DocXTools.java:175)
at fr.cnes.sonar.report.exporters.docx.DocXExporter.replaceSimplePlaceholders(DocXExporter.java:182)
at fr.cnes.sonar.report.exporters.docx.DocXExporter.export(DocXExporter.java:156)
at fr.cnes.sonar.report.factory.ReportFactory.report(ReportFactory.java:109)
at fr.cnes.sonar.report.ReportCommandLine.execute(ReportCommandLine.java:147)
at fr.cnes.sonar.report.ReportCommandLine.main(ReportCommandLine.java:82)

User environment

Please complete the following information.

  • sonarqube v8.9.10 Docker
  • CNES Report Version 4.1.3
@liangxunchang liangxunchang added the bug Something isn't working label Aug 17, 2023
@Topin2001
Copy link
Contributor

Topin2001 commented Jun 6, 2024

Hi, do you still encounter this issue ?
From my side I cannot reproduce it, did you change something from the default plugin settings ?

@Topin2001
Copy link
Contributor

Without any reponse, I'm closing this issue, feel free to ask me to re-open it if you encounter this issue again

@Topin2001 Topin2001 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants