Raga said:
public String getQuery() {
if (this.query == null) {
if (this.propertyStore != null) {
if(this.propertyStore.containsKey(Constants.SQL)) {
query = (String) propertyStore.get(Constants.SQL);
}
else if(this.propertyStore.containsKey(Constants.DATA_QUERY)) {
query = (String) propertyStore.get(Constants.DATA_QUERY);
}
}
if (query == null) {
return "";
}
query = query.trim().replaceAll("\r\n|\r|\n", " ");
}
Assuming that propertyStore is a Map, there are only "standard-methods"
being called (containsKey, get, trim, replaceAll).
What version of Java is used for executing? replaceAll has been added
to Java in Version 1.4.
if(logger.isEnabledFor(Level.INFO))
logger.info("Query is " + query);
If you get the error with running with Java 1.4 or higher, the problem
must be here then. Check if the Class behind "logger" maybe is in another
Jar in the classpath that is of an older version, that doesn't contain
isEnabledFor.
java.lang.NoSuchMethodError
at devapi.GenericDataHandler.getQuery(Unknown Source)
You should compile your class without optimization to get the
exact line-number where the error occured. That allows to stop
guessing where the problem might be.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!