Skip to main content
13-Aquamarine
October 7, 2024
Question

Error - custom resource bundle- java.util.MissingResourceException: Can't find bundle for base name

  • October 7, 2024
  • 2 replies
  • 1342 views

I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0

I added a new resource bundle file (.java file extended from WTListResourceBundle ) , during customization.
While trying to use resource bundle entries from the file into custom code , it fails with error .
java.util.MissingResourceException: Can't find bundle for base name ext.ibm.resource.TFRRBusinessRuleResource, locale en

Here are the errors that I faced
- java.util.MissingResourceException: Can't find bundle for base name ext.ibm.resource.TFRRBusinessRuleResource, locale en

2 replies

24-Ruby III
October 7, 2024

Article - "Import exported preferences fails with error "Can't find bundle for base name" in Windchill PDMLink": https://www.ptc.com/en/support/article/CS351835 

17-Peridot
October 7, 2024

Hi @AK_10131364 ,

If you can provide the custom Resource Bundle file and complete stack trace of error message from logs, it would be easy to identify the root cause.

 

There could be more than one reason for the error message.

 

Regards,

Bhushan Dhamdhere

13-Aquamarine
October 9, 2024

Hi Bhushan  ,

 

I am using the resource bundle entry inside Business Rule linked java source code, I use it to display error message in case of failure. 

Please find attached files.

 

Let me know in case you need further information.

 

Thanks

-Anjali

jbraga
21-Topaz I
October 30, 2024

Anjali,

 

I am confused reviewing the contents of the ZIP file you provided. I do not see the exception as you reported. I see the error as java.util.MissingResourceException: Can't find resource for bundle ext.ibm.resource.IBMBOMRuleResource, key AFFECTED_ITEM_ABSENT_Failure

 

Can you please check that you sent the right files for review?