RE: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: Exception org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;

Martin Gainty <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
where is
 
 public String getIdentifier() {
        return identifier;
    }

in WSPasswordCallback.java
 
why not download 
http://www.apache.org/dyn/closer.cgi/ws/wss4j/1_5_2
 
please do not download axis or dependencies from *possibly forged* russian mirrors

Viel Gluck,
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

  




Date: Tue, 9 Apr 2013 02:31:21 -0700
From: [email protected]
Subject: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: Exception org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;
To: [email protected]


when i test my web service client I get the following exception:

org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) 


and I don't know what may be the reason. Here is my Password callback handler class 



public class PWCBHandler implements CallbackHandler { public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {



try { for (int i = 0; i < callbacks.length; i++) 



 {     WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];

        String id = pwcb.getIdentifier(); 

        if("bob".equals(id)) 

         { 

                pwcb.setPassword("bobPW"); 

         } 



} 



} catch (Exception ex) { ex.printStackTrace(); } }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.