java.lang.NumberFormatException: For input string: "PRD1"

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 Oracle Community by A.T, 1 year ago
For input string: "PRD1"
via Google Groups by benni...@yahoo.com, 2 years ago
For input string: "true"
via Stack Overflow by Unknown author, 2 years ago
via Stack Overflow by Andrea Giordano
, 1 year ago
via Coderanch by Andrew Servania, 1 year ago
java.lang.NumberFormatException: For input string: "PRD1"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at oracle.net.nt.TcpNTAdapter.(Unknown Source)
at oracle.net.nt.ConnOption.getNT(Unknown Source)
at oracle.net.nt.ConnOption.connect(Unknown Source)
at oracle.net.nt.ConnStrategy.execute(Unknown Source)
at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)
at oracle.net.ns.NSProtocol.establishConnection(Unknown Source)
at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1763)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:215)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:371)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at oracle.adf.mds.tools.util.ConnectUtils.getDBConnection(ConnectUtils.java:166)
at oracle.jrad.tools.xml.importer.XMLImporter.doImport(XMLImporter.java:274)
at oracle.jrad.tools.xml.importer.XMLImporter.main(XMLImporter.java:79)

Users with the same issue

4 times, 22 hours ago
Once, 1 day 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.