java.lang.IllegalArgumentException

47 is not a valid line offset for pointer. File [moduleKey=no_AfterCompile_NormalBuild:no_AfterCompile_NormalBuild:DB96E47F-8CF8-487B-A19C-69BE6EC13F0F, relative=GlobalSuppressions.cs, basedir=X:\tfs\Sonar2016\PROJECTLOCATION] has 1 character(s) at line 2


Solutions on the web27726

Solution icon of stackoverflow
47 is not a valid line offset for pointer. File [moduleKey=no_AfterCompile_NormalBuild:no_AfterCompile_NormalBuild:DB96E47F-8CF8-487B-A19C-69BE6EC13F0F, relative=GlobalSuppressions.cs, basedir=X:\tfs\Sonar2016\PROJECTLOCATION] has 1 character(s) at line 2

Solution icon of googlegroups
47 is not a valid line offset for pointer. File [moduleKey=XXX:E0834B61-2FBA-4BAA-BEA2-CEC754C4BA82, relative= GlobalSuppressions.cs, basedir=C:\tb\249\XXX\XXX\XXX\XXX\XXX] has 1 character(s) at line 2

Solution icon of github
223415 is not a valid line offset for pointer. File [moduleKey=<projectKey>, relative=<path/to/css-file.css> basedir=<path/to/basedir>] has 223414 character(s) at line 1

Solution icon of github
208 is not a valid line offset for pointer. File [moduleKey=x:master, relative=x/x/x/x.cxx, basedir=/var/projects/sonar/x] has 72 character(s) at line 1089

Solution icon of stackoverflow
79 is not a valid line offset for pointer. File [moduleKey=dot-net_SCHLUMBERGER-Helios, relative=wtap_nextgen/Src/Component/WebSolution/MMS/wwwroot/css/bootwatch-paper.css, basedir=/builds/dot-net/SCHLUMBERGER-Helios] has 78 character(s) at line 1

Solution icon of stackoverflow
30 is not a valid line offset for pointer. File [moduleKey=JOB:develop, relative=DataStructures/Interval.cs, basedir=E:\Jenkins\workspace\Job Build-UnitTest (PullRequests)] has 1 character(s) at line 132

Solution icon of github
via GitHub by robenj
, 10 months ago
35 is not a valid line offset for pointer. File [moduleKey=PLUGIN, relative=resources/org/sonar/plugins/cxx/highlighter.cc, basedir=/home/webadm/sonar-cxx-refactor-highlighting/sonar-cxx-plugin/src/test] has 29 character(s) at line 79

Solution icon of github
37 is not a valid line offset for pointer. File [moduleKey=ORCA:ORCA:9BCF20CC-E58F-43EF-8450-C4B49403E885, relative=Client/offline/css/kunden_default.css, basedir=C:\trunk\PGM\Orca.Ade.OfflineViewer] has 36 character(s) at line 1576

Solution icon of github
via GitHub by Aarklendoia
, 1 year ago
1529 is not a valid line for pointer. File [moduleKey=GRANT, relative=wor kspace/EPERMIT.XE8/EPERMITCP00Tiles/sources/EPFMAIN00.pas, basedir=E:\jenkins\jobs\Grant] has 259 line(s)

Solution icon of github
711 is not a valid line for pointer. File [moduleKey=GRANT, relative=work space/EPERMIT.XE8/EPERMITSS00/EPSSCallBackController.pas, basedir=E:\jenkins\jobs\Grant] has 147 line(s)

Stack trace

  • java.lang.IllegalArgumentException: 47 is not a valid line offset for pointer. File [moduleKey=no_AfterCompile_NormalBuild:no_AfterCompile_NormalBuild:DB96E47F-8CF8-487B-A19C-69BE6EC13F0F, relative=GlobalSuppressions.cs, basedir=X:\tfs\Sonar2016\PROJECTLOCATION] has 1 character(s) at line 2 at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:148) at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:218) at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:209) at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:240) at org.sonarsource.dotnet.shared.plugins.SensorContextUtils.toTextRange(SensorContextUtils.java:41) at org.sonarsource.dotnet.shared.plugins.protobuf.HighlightImporter.consumeFor(HighlightImporter.java:51) at org.sonarsource.dotnet.shared.plugins.protobuf.HighlightImporter.consumeFor(HighlightImporter.java:33) at org.sonarsource.dotnet.shared.plugins.protobuf.ProtobufImporter.consume(ProtobufImporter.java:49) at org.sonarsource.dotnet.shared.plugins.protobuf.RawProtobufImporter.accept(RawProtobufImporter.java:43) at org.sonarsource.dotnet.shared.plugins.AbstractSensor.parseProtobuf(AbstractSensor.java:95) at org.sonarsource.dotnet.shared.plugins.AbstractSensor.importResults(AbstractSensor.java:87) at org.sonar.plugins.csharp.CSharpSensor.executeInternal(CSharpSensor.java:111) at org.sonar.plugins.csharp.CSharpSensor.execute(CSharpSensor.java:82) at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47) at org.sonar.batch.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.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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)

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