java.lang.NumberFormatException: For input string: "-("

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips


You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.


Can occur when you try to convert a String to a numeric value but the String is not well formatted for the conversion.

Solutions on the web

via GitHub by Gpandye
, 1 year ago
via Oracle Community by 843806, 5 months ago
via GitHub by jsql-robot
, 1 year ago
For input string: "41?"
via Oracle Community by 622254, 1 year ago
via Stack Overflow by Unknown author, 2 years ago
java.lang.NumberFormatException: For input string: "-("
at java.lang.NumberFormatException.forInputString(
at java.lang.Integer.parseInt(
at java.lang.Integer.parseInt(
at eu.rssw.listing.ListingParser.parseTransactionLine(
at eu.rssw.listing.ListingParser.parseFile(
at eu.rssw.listing.ListingParser.(
at org.sonar.plugins.openedge.sensor.OpenEdgeListingSensor.analyse(
at org.sonar.batch.phases.SensorsExecutor.executeSensor(
at org.sonar.batch.phases.SensorsExecutor.execute(
at org.sonar.batch.phases.PhaseExecutor.execute(
at org.sonar.core.platform.ComponentContainer.startComponents(
at org.sonar.core.platform.ComponentContainer.execute(
at org.sonar.batch.scan.ProjectScanContainer.scan(
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(
at org.sonar.core.platform.ComponentContainer.startComponents(
at org.sonar.core.platform.ComponentContainer.execute(
at org.sonar.batch.task.ScanTask.execute(
at org.sonar.batch.task.TaskContainer.doAfterStart(
at org.sonar.core.platform.ComponentContainer.startComponents(
at org.sonar.core.platform.ComponentContainer.execute(
at org.sonar.batch.bootstrap.GlobalContainer.executeTask(
at org.sonar.runner.batch.BatchIsolatedLauncher.execute(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.sonar.runner.impl.IsolatedLauncherProxy.invoke(
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonar.runner.api.EmbeddedRunner.doExecute(
at org.sonar.runner.api.EmbeddedRunner.runAnalysis(
at org.sonarsource.scanner.cli.Main.runAnalysis(
at org.sonarsource.scanner.cli.Main.execute(
at org.sonarsource.scanner.cli.Main.main(

Users with the same issue

4 times, 2 days ago
Once, 3 days ago
4 times, 1 week ago
16 times, 1 week ago
6 times, 1 week ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.