java.lang.IllegalArgumentException

Unable to highlight file [moduleKey=DE_EPAGES::Address, relative=t/HouseNumber.t, basedir=/srv/epages/eproot/Cartridges/DE_EPAGES/Address]


Solutions on the web8009

Solution icon of github
Unable to highlight file [moduleKey=DE_EPAGES::Address, relative=t/HouseNumber.t, basedir=/srv/epages/eproot/Cartridges/DE_EPAGES/Address]

Solution icon of github
Unable to highlight file [moduleKey=DE_EPAGES::Address, relative=t/HouseNumber.t, basedir=/srv/epages/eproot/Cartridges/DE_EPAGES/Address]

Solution icon of googlegroups
via Google Groups by Unknown author, 7 months ago
Unable to highlight file [moduleKey=ABC_key, relative=abc/abc/abcconfig.xml, basedir=D:\projects\XXX\XXX\XXX]

Solution icon of github
Unable to highlight file [moduleKey=project:master, relative=src/project/cmd/project/main.go, basedir=/data/ci-volumes/workspace/sas_westeros-project_master-AL2EFEG7W5KT7FA2MJGFYZMPMDL42B2OOBUJBNM672DMZCKKJULQ]

Solution icon of googlegroups
via Google Groups by Brandon Etchison, 11 months ago
Unable to highlight file [moduleKey=PSM.DevOps.SonarQubePlugin-OnAnalysis, relative=pom.xml, basedir=D:\Agent1\_work\28\s\sonar-on-analysis-plugin]

Solution icon of stackoverflow
Unable to highlight file [moduleKey=A:A:843EAAC4-CD77-4A90-8261-34C358025BE8, relative=Content/Site.css, basedir=BLAH] from offset 10100 to offset 10136

Solution icon of googlegroups
via Google Groups by Unknown author, 11 months ago
Unable to highlight file [moduleKey=Platform:Reporting, relative=src/main/resources/displaytag_sv.properties, basedir=xxxxxxxx/Platform/Reporting] from offset 3137 to offset 3156

Solution icon of github
Unable to highlight file [moduleKey=com.xiaojiuwo:PMS, relative=webapp/WEB-INF/classes/config/log4j.properties, basedir=/Users/zhanghengqiang/workspace/pms] from offset 5695 to offset 5731

Solution icon of googlegroups
via Google Groups by Mark Gortzak, 2 months ago
Unable to highlight file [moduleKey=horizon-frontend, relative=horizon_styles/Grids/content_only_grid/component.xml, basedir=D:\appl\jenkins_agent\workspace\SonarQube\Horizon]*14:34:10*

Solution icon of github
Unable to highlight file [moduleKey=ORCA:ORCA:9BCF20CC-E58F-43EF-8450-C4B49403E885, relative=Client/offline/css/kunden_default.css, basedir=C:\trunk\PGM\Orca.Ade.OfflineViewer]

Stack trace

  • java.lang.IllegalArgumentException: Unable to highlight file [moduleKey=DE_EPAGES::Address, relative=t/HouseNumber.t, basedir=/srv/epages/eproot/Cartridges/DE_EPAGES/Address] at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:84) at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:36) at org.sonar.scanner.source.HighlightingCodeBuilder.appendWithoutTransforming(HighlightingCodeBuilder.java:73) at org.sonar.colorizer.KeywordsTokenizer.consume(KeywordsTokenizer.java:69) at org.sonar.colorizer.KeywordsTokenizer.consume(KeywordsTokenizer.java:33) at org.sonar.colorizer.TokenizerDispatcher.colorize(TokenizerDispatcher.java:50) at org.sonar.scanner.source.HighlightingRenderer.render(HighlightingRenderer.java:40) at org.sonar.scanner.source.CodeColorizers.toSyntaxHighlighting(CodeColorizers.java:86) at org.sonar.scanner.source.CodeColorizerSensor.execute(CodeColorizerSensor.java:60) at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53) at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49) at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78) at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247) at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47) at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233) at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151) at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110) at org.sonarsource.scanner.cli.Main.execute(Main.java:74) at org.sonarsource.scanner.cli.Main.main(Main.java:61) Caused by: java.lang.IllegalArgumentException: 6467 is not a valid offset for file [moduleKey=DE_EPAGES::Address, relative=t/HouseNumber.t, basedir=/srv/epages/eproot/Cartridges/DE_EPAGES/Address]. Max offset is 6435 at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:145) at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:268) at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:263) at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:82) ... 38 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago