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

Tania Marinova <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hi, thank you for your help but I told you that

1. first I'm not a Russian 

2. I hanged the jar file two times with those provided by you. But nothing works 

Sorry for bothering you. 

what more do you suggest for me to do?






________________________________
 From: Martin Gainty <[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Tuesday, April 9, 2013 1:38 PM
Subject: RE: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: Exception org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;
 

 
http://apache.mesi.com.ar/ws/wss4j/1_5_12/
 
javap .\org\apache\ws\security\WSPasswordCallback
 
Compiled from "WSPasswordCallback.java"
public class org.apache.ws.security.WSPasswordCallback extends java.lang.Object
implements javax.security.auth.callback.Callback{
    public static final int UNKNOWN;
    public static final int DECRYPT;
    public static final int USERNAME_TOKEN;
    public static final int SIGNATURE;
    public static final int KEY_NAME;
    public static final int USERNAME_TOKEN_UNKNOWN;
    public static final int SECURITY_CONTEXT_TOKEN;
    public static final int CUSTOM_TOKEN;
    public static final int ENCRYPTED_KEY_TOKEN;
    public org.apache.ws.security.WSPasswordCallback(java.lang.String, int);
    public org.apache.ws.security.WSPasswordCallback(java.lang.String, java.lang
.String, java.lang.String, int);
    public java.lang.String getIdentifier();
    public java.lang.String getIdentifer();
    public void setIdentifier(java.lang.String);
    public void setPassword(java.lang.String);
    public java.lang.String getPassword();
    public void setKey(byte[]);
    public byte[] getKey();
    public int getUsage();
    public java.lang.String getPasswordType();
    public java.lang.String getKeyType();
    public org.w3c.dom.Element getCustomToken();
    public void setCustomToken(org.w3c.dom.Element);
}
the wss4j distros at that site are blessed and contain all of the required methods for each class and contain all of the required classes
this means you are probably downloading from a forged site

get out of russia and retry the connection or ask someone from outside of russia to send you a CD with the distros
 
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 03:17:50 -0700
From: [email protected]
Subject: Re: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: Exception org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;
To: [email protected]


I  downloaded the jar  and changed it but unfortunately the exception stays


Thanks for the help



________________________________
 From: Martin Gainty <[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Tuesday, April 9, 2013 12:48 PM
Subject: RE: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: Exception org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;


 
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 


publicclassPWCBHandlerimplementsCallbackHandler{publicvoidhandle(Callback[]callbacks)throwsIOException,UnsupportedCallbackException{


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


 {    WSPasswordCallbackpwcb =(WSPasswordCallback)callbacks[i];

        Stringid =pwcb.getIdentifier();

        if("bob".equals(id))

         {

                pwcb.setPassword("bobPW");

         }


}


}catch(Exceptionex){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.