Looked more closely... the java.lang.NoSuchFieldError: as_sys_sec_alg_ideaCBC error is now coming on the call I added to: new BouncyCastleProvider()
Think it must be something in the build, will dig into that more. ----------------------------------------------- I tried adding the Security call, no difference. I did a search on 'as_sys_sec_alg_ideaCBC' and it looks like one of many algorithms that can be included in BC. Could that somehow not be in the 2.0 build? I have about a dozen PDF files from different sources that are getting this error. They were all readable in 1.8. Files like this do tend to have proprietary information. But I can take any statement I have from American Express, try to read it with PDFBox 2, and get this error. Thanks > Sounds like a BC problem. Please try this before calling any > PDFBox method: > > Security.addProvider(new BouncyCastleProvider()); > > > Tilman > > Am 24.10.2015 um 22:18 schrieb Fred Andrews: >> In 2.0 todays build I am getting the following error when opening >> files that have a blank password. >> >> java.lang.NoSuchFieldError: as_sys_sec_alg_ideaCBC at org.bouncycast- >> le.jcajce.provider.symmetric.IDEA$Mappings.configure(Unknown Source) >> at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms- >> (Unknown Source) at >> org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown >> Source) at org.bouncycastle.jce.provider.BouncyCastleProvider.access- >> $000(Unknown Source) at >> org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown >> Source) at java.security.AccessController.doPrivileged(Native Method) >> at org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(Unknown >> Source) at org.apache.pdfbox.pdmodel.encryption.SecurityHandlerFacto- >> ry.<clinit>(SecurityHandlerFactory.java:44) at org.apache.pdfbox.pdm- >> odel.encryption.PDEncryption.<init>(PDEncryption.java:96) at org.apa- >> che.pdfbox.pdfparser.PDFParser.prepareDecryption(PDFParser.java:263) >> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java- >> :196) at >> org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:230) at >> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:972) at >> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:876) >> >> I am calling document = PDDocument.load(inputstream) >> >>with the intent to then call >> >>if( document.isEncrypted() ) >> >> But am getting the above error on the initial load. >> >> Is this a bug, a build problem, or has the call sequence for this >> changed in 2.0? >> >> I am building with the only related jar file being >> pdfbox-app-2.0.0-20151024.140816- >> 1753.jar >> >>Thanks Fred Andrews [email protected] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] -- http://www.fastmail.com - Access all of your messages and folders wherever you are -- http://www.fastmail.com - The professional email service

