Consultor Eletrônico



Kbase P136575: SQL: 'java.util.MissingResourceException' error executing an SQL query using java.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   28/10/2008
Status: Unverified

SYMPTOM(s):

SQL: 'java.util.MissingResourceException' error executing an SQL query using java.

The error message includes the line:

java.util.MissingResourceException: Can't find bundle for base name com.ddtek.jdbc.base.BaseLocal, locale en_ US at...

The complete error message:

C:\eCommerce\jdbc\ProgressV10\Ver1\classes>java -jar ProgressTest.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.ddtek.jdbc.base.BaseExceptions.<init>(Unknown Source)
at com.ddtek.jdbc.base.BaseDriver.setupExceptionHandling(Unknown Source)
at com.ddtek.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.jci.be.AIMQuickLIT.ProgressTest.<init>(ProgressTest.java:28)
at com.jci.be.AIMQuickLIT.ProgressTest.main(ProgressTest.java:44)
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.ddtek.jdbc.base.BaseLocal, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.ddtek.jdbc.base.BaseMessages.<clinit>(Unknown Source)

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.1x

CAUSE:

This is a java package building issue. Java is looking for a specific properties file which is not in the runtime classpath, does not exist or is not in the proper directory.

FIX:

Ensure that the java package is properly built and that all referenced resource properties files are located in the proper directory and are in the runtime classpath.