Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Not able to access the maven dependencies or some dependencies not working on Apigee

Hi,

I am trying to get the page count of a PDF or TIFF file using Java Callout that is passed via form-data. But Apigee is unable to call com/lowagie/text/pdf/RandomAccessFileOrArray or org/apache/pdfbox/pdmodel/PDDocument classes for some reason and I am not even getting a proper stack trace to identify the issue.

Attached the java callout code. Any help is appreciated.

Thank you!

0 2 229
2 REPLIES 2

cjking
Former Googler

It sounds like your custom dependencies aren't being compiled into the jar that the service callout is using. It might be worth checking your compilation options?

Thank you! I was missing the "include dependency jar" files section in pom.xml.