Comments on: Customizing ORA, JBO and JHS error messages in JDeveloper with ADF http://technology.amis.nl/2005/05/03/customizing-ora-jbo-and-jhs-error-messages-in-jdeveloper-with-adf/ Friends of Oracle and Java Mon, 24 Nov 2014 11:49:17 +0000 hourly 1 http://wordpress.org/?v=4.0.1 By: Mario Udina http://technology.amis.nl/2005/05/03/customizing-ora-jbo-and-jhs-error-messages-in-jdeveloper-with-adf/#comment-2097 Fri, 10 Feb 2006 10:10:07 +0000 /?p=528#comment-2097 You have to add the customized message bundle to the bc4j projects *.jpx, in the options part of the dialog
add the resource bundle :)

]]>
By: Thim http://technology.amis.nl/2005/05/03/customizing-ora-jbo-and-jhs-error-messages-in-jdeveloper-with-adf/#comment-2096 Thu, 02 Jun 2005 08:21:44 +0000 /?p=528#comment-2096 We have used your last method

package be.iadvise.apps.serverinventory.model.messages;
import java.util.ListResourceBundle;

public class MessageBundleExceptions extends ListResourceBundle
{
private static final Object[][] sMessageStrings = new String[][] {
{“25002″, “Could not start the application. Call helpdesk.”},
{“26048″, “Application cannot connect to database.”},
{“26061″, “Application cannot connect to database.”},
{“27008″, “Application cannot connect to database.”},
{“27122″, “Application error, log a support ticket.”}

};

/**
*
* Return String Identifiers and corresponding Messages in a two-dimensional array.
* @return
*/
protected Object[][] getContents()
{
return sMessageStrings;
}
}

But he still won’t show us our custom message, he still shows the jbo errors

]]>
By: iloncar http://technology.amis.nl/2005/05/03/customizing-ora-jbo-and-jhs-error-messages-in-jdeveloper-with-adf/#comment-2095 Tue, 03 May 2005 18:45:23 +0000 /?p=528#comment-2095 * They cannot handle multi-byte characters properly
* The JBO-27014 (and probably other) error message cannot be overridden">

Actually .properties handles multibyte characters quite well. You just have to use native2ascii tool (there is jdeveloper plugin) and encode multibyte characters.

]]>