An Autosys POJO job using the com.broadcom.pojo.s3.S3AWS class fails to upload files when a wildcard (e.g., *.pdf or *.*) is used in the s3.SourceFilePath parameter. The job fails immediately with a java.lang.reflect.InvocationTargetException and a JobFailedException indicating the file or directory does not exist.
Symptoms
2026-04-23T14:00:52.643-04:00: Job Failed: /mnt/path/to/files/*.pdf (No such file or directory)Execution of upload has failedjava.lang.reflect.InvocationTargetException: nullCaused by: com.broadcom.automation.integrations.plugin.exception.JobFailedException: /mnt/path/to/files/*.pdf (No such file or directory)The S3 POJO upload method is designed for single object uploads and does not support native OS wildcard expansion (globbing) within the s3.SourceFilePath parameter. When a literal asterisk (*) is used without enabling Regular Expressions, the plugin searches for a file with that literal name rather than treating it as a pattern.
To upload multiple files or use pattern matching, you must enable Regular Expressions and use Java-compatible RegEx syntax in the job definition.
Step-by-Step Instructions
s3.UseRegex parameter.s3.SourceFilePath to use a valid Regular Expression pattern.JIL Example:
insert_job: POJO_TEST_UPLOAD_JOBjob_type: POJOmachine: **owner: ***permission: date_conditions: 0alarm_if_fail: 1alarm_if_terminated: 1method_name: uploadj2ee_parameter: s3.Endpoint=https\://your_endpoint_url.comj2ee_parameter: s3.AccessKey=$$sec_profile^s3@imanage_dev@<k>accesskey</k>j2ee_parameter: s3.AccessKeySecret=$$sec_profile^s3@your_security_profile@<k>accesskeysecret</k>j2ee_parameter: s3.Region=ca-central-1j2ee_parameter: s3.SourceFilePath=/mnt/path/to/your/files/.*\.pdfj2ee_parameter: s3.UseRegex=truej2ee_parameter: s3.DestinationBucketName=your-destination-bucket-namej2ee_parameter: s3.DestinationFilePath=your-destination-file-pathj2ee_parameter: s3.ProxyHostname=""j2ee_parameter: s3.ProxyPort=""j2ee_parameter: s3.ProxyUser=""j2ee_parameter: s3.ProxyPassword=""j2ee_parameter: s3.FailureInterval=3j2ee_parameter: s3.SleepInterval=2j2ee_parameter: s3.LogLevel=8class_name: com.broadcom.pojo.s3.S3AWS
Key Parameter Details:
s3.UseRegex=true: This instructs the plugin to interpret the source file path as a Regular Expression.s3.SourceFilePath: Ensure the pattern correctly matches the desired files.Example for all PDFs: .*/.*\.pdf or the full path followed by .*\.pdf.Notes:
.* for any character match (equivalent to OS *).