java.lang.NumberFormatException: For input string: "0ty"

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 piddubnyi
, 2 years ago
For input string: "ea"
java.lang.NumberFormatException: For input string: "0ty"
at java.lang.NumberFormatException.forInputString(
at java.lang.Integer.parseInt(
at java.lang.Integer.parseInt(
at org.rust.lang.core.resolve.ResolveEngine.resolveFieldExpr(ResolveEngine.kt:122)
at org.rust.lang.core.resolve.ref.RsFieldExprReferenceImpl.resolveInner(RsFieldExprReferenceImpl.kt:19)
at org.rust.lang.core.resolve.ref.RsReferenceBase$multiResolve$1.resolve(RsReferenceBase.kt:24)
at org.rust.lang.core.resolve.ref.RsReferenceBase$multiResolve$1.resolve(RsReferenceBase.kt:14)
at org.rust.lang.core.resolve.ref.RsReferenceBase$multiResolve$1.resolve(RsReferenceBase.kt:23)
at com.intellij.psi.impl.source.resolve.ResolveCache$3.compute(
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(

Users with the same issue

Once, 1 day ago
5 times, 1 day ago
129 times, 2 days ago
Once, 5 days ago
Once, 5 days ago

Write tip

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