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(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
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(ResolveCache.java:142)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:139)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)

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.