Article - CS320997
In Windchill PDMLink, unable to upload or check in CAD files with error "java.lang.IllegalArgumentException: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value".
Modified: 01-Sep-2020
Applies To
- Windchill PDMLink 11.0 to 11.1
- Creo Parametric 4.0 to 6.0
- Catia V5-6R2018
- SolidWorks all releases
Description
- Unable to upload or check in CAD files with following error in Event Management.
java.lang.IllegalArgumentException: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value
- Method Server log shows below error:
com.ptc.windchill.uwgm.proesrv.action.UpdateContentAction <User_Name> - UpdateContentAction.executeAction ::
java.lang.IllegalArgumentException: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value
at org.apache.commons.codec.binary.Base64.validateCharacter(Base64.java:798)
at org.apache.commons.codec.binary.Base64.decode(Base64.java:472)
at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:412)
at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:395)
at org.apache.commons.codec.binary.Base64.decodeBase64(Base64.java:694)
at wt.fv.uploadtocache.CachedChapteredContentDescriptor.isValidEncodedCCD(CachedChapteredContentDescriptor.java:342)
at wt.fv.uploadtocache.UploadToCacheHelper.parseCachedContentDescriptor(UploadToCacheHelper.java:407)
at com.ptc.windchill.uwgm.proesrv.upload.CachedContentItem.getCachedContentDescriptor(CachedContentItem.java:132)
at com.ptc.windchill.uwgm.proesrv.action.UpdateContentAction.createApplicationDataList(UpdateContentAction.java:226)
at com.ptc.windchill.uwgm.proesrv.action.UpdateContentAction.updateContents(UpdateContentAction.java:176)
java.lang.IllegalArgumentException: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value
at org.apache.commons.codec.binary.Base64.validateCharacter(Base64.java:798)
at org.apache.commons.codec.binary.Base64.decode(Base64.java:472)
at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:412)
at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:395)
at org.apache.commons.codec.binary.Base64.decodeBase64(Base64.java:694)
at wt.fv.uploadtocache.CachedChapteredContentDescriptor.isValidEncodedCCD(CachedChapteredContentDescriptor.java:342)
at wt.fv.uploadtocache.UploadToCacheHelper.parseCachedContentDescriptor(UploadToCacheHelper.java:407)
at com.ptc.windchill.uwgm.proesrv.upload.CachedContentItem.getCachedContentDescriptor(CachedContentItem.java:132)
at com.ptc.windchill.uwgm.proesrv.action.UpdateContentAction.createApplicationDataList(UpdateContentAction.java:226)
at com.ptc.windchill.uwgm.proesrv.action.UpdateContentAction.updateContents(UpdateContentAction.java:176)
This is a printer-friendly version of Article 320997 and may be out of date. For the latest version click CS320997