You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jeff Greif (work) (JIRA)" <ji...@apache.org> on 2015/10/12 19:31:05 UTC

[jira] [Created] (RAMPART-430) Misuse of RampartException constructor

Jeff Greif (work) created RAMPART-430:
-----------------------------------------

             Summary: Misuse of RampartException constructor
                 Key: RAMPART-430
                 URL: https://issues.apache.org/jira/browse/RAMPART-430
             Project: Rampart
          Issue Type: Bug
          Components: rampart-core
    Affects Versions: 1.6.2
         Environment: Windows 10 with cygwin, java 1.8.0_60, 
            Reporter: Jeff Greif (work)
            Priority: Minor


This code snippet at the beginning of the method RampartMessageData.setWSSecurityVersions incorrectly passes an error message, rather than an error code, to the RampartException constructor, causing further errors in the constructor.

        if (namespace == null || namespace.equals("")) {
            throw new RampartException("Security policy namespace cannot be null.");
        }

as this stack trace extract shows:

     [java] Caused by: java.lang.RuntimeException: Undefined 'Security policy namespace cannot be null.' resource property
     [java]     at org.apache.rampart.RampartException.getMessage(RampartException.java:81)
     [java]     at org.apache.rampart.RampartException.<init>(RampartException.java:41)
     [java]     at org.apache.rampart.RampartException.<init>(RampartException.java:57)
     [java]     at org.apache.rampart.RampartMessageData.setWSSecurityVersions(RampartMessageData.java:387)
     [java]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:261)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org