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

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 Google Groups by Greg Moncreaff, 2 years ago
For input string: ""
via Coderanch by Henry Wong, 1 year ago
For input string: ""
via Oracle Community by 807597, 1 year ago
For input string: "8 "
java.lang.NumberFormatException: For input string: "readonly"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.apache.pdfbox.preflight.font.util.Type1Parser.readCharStringElement(Type1Parser.java:276)
at org.apache.pdfbox.preflight.font.util.Type1Parser.parseCharStringArray(Type1Parser.java:259)
at org.apache.pdfbox.preflight.font.util.Type1Parser.parseEExecPart(Type1Parser.java:248)
at org.apache.pdfbox.preflight.font.util.Type1Parser.decodeAndParseEExecPart(Type1Parser.java:180)
at org.apache.pdfbox.preflight.font.util.Type1Parser.parse(Type1Parser.java:167)
at org.apache.pdfbox.preflight.font.descriptor.Type1DescriptorHelper.processFontFile1(Type1DescriptorHelper.java:134)
at org.apache.pdfbox.preflight.font.descriptor.Type1DescriptorHelper.processFontFile(Type1DescriptorHelper.java:109)
at org.apache.pdfbox.preflight.font.descriptor.FontDescriptorHelper.validate(FontDescriptorHelper.java:90)
at org.apache.pdfbox.preflight.font.SimpleFontValidator.processFontDescriptorValidation(SimpleFontValidator.java:76)
at org.apache.pdfbox.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:53)
at org.apache.pdfbox.preflight.process.reflect.FontValidationProcess.validate(FontValidationProcess.java:58)
at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:45)
at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateFonts(ResourcesValidationProcess.java:82)
at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:65)
at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:45)
at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:142)
at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:76)
at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:45)
at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:49)
at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:41)
at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:79)
at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:147)

Users with the same issue

Once, 1 month ago
Once, 1 month ago
Once, 1 month ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
264 more bugmates

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