OVH Cloud OVH Cloud

java.lang.NoSuchMethodError

2 réponses
Avatar
J'ai une java.lang.NoSuchMethodError :
java.lang.NoSuchMethodError:
objXMLManager.bean.OBJXMLCore_Document.setLogger(Ljava/util/logging/Logger;)
V

_il n'y a pas eu de changement de signature de la méthode appelée en
question depuis des mois (il n'y a pas de classpath pourrit sur d'autres
versions)
public void setLogger ( Logger par_Logger ) throws Exception {..}

_et au cas où, toute l'appli (classe appelante et appelée) est compilé
fraîchement dans la même version java 1.4.2.
_le package webapp a été fraîchement supprimé et replacé
_le loader Tomcat 4.1 a été relancé

comment c'est possible un truc pareil ?

alors là je pige pas
-----------------------------------

public class NoSuchMethodError
extends IncompatibleClassChangeError
Thrown if an application tries to call a specified method of a class (either
static or instance), and that class no longer has a definition of that
method.

Normally, this error is caught by the compiler; this error can only occur at
run time if the definition of a class has incompatibly changed.

-----------------------------------



merci pour toute aide.

--

François LE DORNER

2 réponses

Avatar
J'allucine !
je stop tomcat
je copie le .war dans webapp de TOMCAT4.1.
je relance tomcat
-->
apres extraction du war
la classe qui contient la méthode en question (source de error)
passe de 8k (dans el war) à 5k une fois installé !

c'est quoi cettre blague ?
--
François LE DORNER.



a écrit dans le message de
news:Gboxb.356795$
J'ai une java.lang.NoSuchMethodError :
java.lang.NoSuchMethodError:

objXMLManager.bean.OBJXMLCore_Document.setLogger(Ljava/util/logging/Logger;)

V

_il n'y a pas eu de changement de signature de la méthode appelée en
question depuis des mois (il n'y a pas de classpath pourrit sur d'autres
versions)
public void setLogger ( Logger par_Logger ) throws Exception {..}

_et au cas où, toute l'appli (classe appelante et appelée) est compilé
fraîchement dans la même version java 1.4.2.
_le package webapp a été fraîchement supprimé et replacé
_le loader Tomcat 4.1 a été relancé

comment c'est possible un truc pareil ?

alors là je pige pas
-----------------------------------

public class NoSuchMethodError
extends IncompatibleClassChangeError
Thrown if an application tries to call a specified method of a class
(either

static or instance), and that class no longer has a definition of that
method.

Normally, this error is caught by the compiler; this error can only occur
at

run time if the definition of a class has incompatibly changed.

-----------------------------------



merci pour toute aide.

--

François LE DORNER








Avatar
en passant ...
c'était une redondance d'une ancienne version qui trainait, il y avait bien
incompatibilité ...

a écrit dans le message de
news:Gboxb.356795$
J'ai une java.lang.NoSuchMethodError :
java.lang.NoSuchMethodError:

objXMLManager.bean.OBJXMLCore_Document.setLogger(Ljava/util/logging/Logger;)

V

_il n'y a pas eu de changement de signature de la méthode appelée en
question depuis des mois (il n'y a pas de classpath pourrit sur d'autres
versions)
public void setLogger ( Logger par_Logger ) throws Exception {..}

_et au cas où, toute l'appli (classe appelante et appelée) est compilé
fraîchement dans la même version java 1.4.2.
_le package webapp a été fraîchement supprimé et replacé
_le loader Tomcat 4.1 a été relancé

comment c'est possible un truc pareil ?

alors là je pige pas
-----------------------------------

public class NoSuchMethodError
extends IncompatibleClassChangeError
Thrown if an application tries to call a specified method of a class
(either

static or instance), and that class no longer has a definition of that
method.

Normally, this error is caught by the compiler; this error can only occur
at

run time if the definition of a class has incompatibly changed.

-----------------------------------



merci pour toute aide.

--

François LE DORNER