You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <tu...@ws.apache.org> on 2008/05/13 18:31:55 UTC
[jira] Resolved: (TUSCANY-2317) calculator-implementation-policies
fails with localized exception-message
[ https://issues.apache.org/jira/browse/TUSCANY-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luciano Resende resolved TUSCANY-2317.
--------------------------------------
Resolution: Fixed
Fix Version/s: Java-SCA-Next
Fixed by applying the same fix discussed on the thread below :
http://www.mail-archive.com/tuscany-user@ws.apache.org/msg02533.html
> 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
> Fix For: Java-SCA-Next
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> 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.