calculator-implementation-policies fails with localized exception-message -------------------------------------------------------------------------
Key: TUSCANY-2317 URL: https://issues.apache.org/jira/browse/TUSCANY-2317 Project: Tuscany Issue Type: Bug Components: Java SCA Samples Affects Versions: Java-SCA-1.2 Environment: MacOS 10.5.2 Java SE 1.6.0_05-b13-120 Reporter: Joachim Roth Priority: Trivial In the calculator-implementation-policies sample calculator.CalculatorClient checks for the SecurityException-Message being equal to a certain text. (Line35: e.getMessage().equals("Unable to locate a login configuration") ). On my System the Message of the Exception is localized to German ( "Anmeldekonfiguration kann nicht gefunden werden.") resulting in the throw of the exception as it is not handeled by setting the system-property in line 36. For me it helped to check for the class of the exception rather than for the message. Makes it less readable, but more international. Changed line 35 to: if (e.getCause().getClass().getName().equals(IOException.class.getName())) { -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.