Skip to main content
1-Visitor
January 13, 2011
Question

PSE and ResourceBundle issue

  • January 13, 2011
  • 11 replies
  • 1767 views

I originally wanted to limit the Unit's dropdown on the PSE, based on certain conditions, but after opening a call with PTC realized this is not really possible. So with some info from another ptc/user user I was able to create a custom action which will basically check to make sure that the unit selected is valid for the part.

The problem I'm running into is that I wrote a helper class, which reads in a custom .prop file, but the PSE is constantly throwing the following exception:

Caused by: java.util.MissingResourceException: Can't find bundle for base name com.blah.blah.um_families, locale en_US

The exact same code works without issue where it's being called from the edit bom jsp, and our bom loader. I know it has something to do with the PSE being an applet, but I just cannot get it to work.

I figured I would try adding the values from that um_families file into the wt.part.QuantityUnitRB file, but even that throws the same exception.

Anyone have any ideas/suggestions?

11 replies

crosato1-VisitorAuthor
1-Visitor
January 14, 2011

So I don't know if this makes any difference but I just noticed that rebuilding the jars isn't affecting the PSE for me.

The jars had been built with the RB name of um_families in my helper class, but I didn't rebuild them after I updated the name (umfamilies) in the class a bit after. When I ran the PSE it threw the missing bundle exception, but instead of saying it couldn't find um_families, it said umfamilies. I've been including these files in the wtAppletCust.jar, but now it seems like it should be a different one?