java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "ag"

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.

,

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.

Solutions on the web

via GitHub by damithc
, 1 year ago
java.lang.NumberFormatException: For input string: "ag"
via GitHub by damithc
, 7 months ago
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "ag"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at teammates.common.util.StringHelper.hexStringToByteArray(StringHelper.java:326)
at teammates.common.util.StringHelper.decrypt(StringHelper.java:144)
at teammates.storage.api.StudentsDb.getStudentForRegistrationKey(StudentsDb.java:189)
at teammates.logic.core.StudentsLogic.getStudentForRegistrationKey(StudentsLogic.java:100)
at teammates.logic.api.Logic.getStudentForRegistrationKey(Logic.java:908)
at teammates.ui.controller.Action.authenticateNotLoggedInUser(Action.java:175)
at teammates.ui.controller.Action.authenticateAndGetActualUser(Action.java:119)
at teammates.ui.controller.Action.authenticateUser(Action.java:100)
at teammates.ui.controller.Action.init(Action.java:83)
at teammates.ui.controller.ActionFactory.getAction(ActionFactory.java:148)
at teammates.ui.controller.ControllerServlet.doPost(ControllerServlet.java:62)
at teammates.ui.controller.ControllerServlet.doGet(ControllerServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at teammates.storage.datastore.DatastoreFilter.doFilter(DatastoreFilter.java:29)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:37)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:260)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:78)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:148)
at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

2 times, 7 months ago
2 times, 3 months ago
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
264 more bugmates

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