Cordys java.util.MissingResourceException
We are trying to use a java file (EmailUtils.java) to read from a properties file. EmailUtils.java is located in the util folder, while the properties file is located in another directory. The properties directory is included in the Service Container classpath and in the bcp.classpath file.
However we are still getting an exception when trying to read the properties file. We are using a web service on Process Platform / Cordys to call the java code.
EmailUtils.java:
private static ResourceBundle BUNDLE = ResourceBundle.getBundle("resources.properties.emailgenerator");
Service Container Classpath:
Directory Structure:
Cordys exception:
<cordys:FaultRelatedException xmlns:cordys="http://schemas.cordys.com/General/1.0/">java.lang.ExceptionInInitializerError at org.rop.wageenhancement.db.ProviderSiteData.emailTest(ProviderSiteData.java:385) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.cordys.cpc.bsf.connector.BsfMethodCall.invoke(BsfMethodCall.java:325) at com.cordys.cpc.bsf.connector.TransactionHandler.handleJavaCall(TransactionHandler.java:2175) at com.cordys.cpc.bsf.connector.TransactionHandler.execute(TransactionHandler.java:2497) at com.cordys.cpc.bsf.connector.WSAppServerTransaction.process(WSAppServerTransaction.java:97) at com.eibus.soap.SOAPTransaction.handleBodyBlock(SOAPTransaction.java:1343) at com.eibus.soap.SOAPTransaction.<init>(SOAPTransaction.java:548) at com.eibus.soap.SOAPTransaction.<init>(SOAPTransaction.java:197) at com.eibus.soap.Processor.onReceive(Processor.java:1024) at com.eibus.soap.Processor.onReceive(Processor.java:997) at com.eibus.connector.nom.Connector.onReceive(Connector.java:483) at com.eibus.transport.NonTransactionalWorkerThreadBody.doWork(NonTransactionalWorkerThreadBody.java:61) at com.eibus.transport.NonTransactionalWorkerThreadBody.run(NonTransactionalWorkerThreadBody.java:26) at com.eibus.util.threadpool.WorkerThread.run(WorkerThread.java:67) Caused by: java.util.MissingResourceException: Can't find bundle for base name resources.properties.emailgenerator, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387) at java.util.ResourceBundle.getBundle(ResourceBundle.java:773) at org.rop.wageenhancement.util.EmailUtils.<clinit>(EmailUtils.java:38) ... 18 more </cordys:FaultRelatedException>
Tagged:
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories