IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Servlets/JSP Java Discussion :

[Servlet] error 500


Sujet :

Servlets/JSP Java

  1. #1
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut [Servlet] error 500
    voici l'erreur que me renvoi le serveur et j'y comprends vraiment rien
    WebApp: Error 500
    (File: pr_warp.c Line: 369)
    ma servlet fait appel à un parser SAX et c'est dans le ContentHandler que surviendrait l'erreur..

    si je fais ça, pas de problème:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    public void characters(char[] ch, int start, int end) throws SAXException {
      if ((inBalise) && (accepte)){}
    }
    mais si je fais ça, alors j'ai le message d'erreur 500:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    public void characters(char[] ch, int start, int end) throws SAXException {
      if ((inBalise) && (accepte)){
        if (monString.equalsIgnoreCase(UneClasse.maCONSTANTE)){}
      }
    }
    si l'un de vous a déjà été confronté à ce problème, merci de me venir en aide..

  2. #2
    Membre expérimenté
    Avatar de RanDomX
    Profil pro
    sans
    Inscrit en
    Mars 2003
    Messages
    579
    Détails du profil
    Informations personnelles :
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : sans

    Informations forums :
    Inscription : Mars 2003
    Messages : 579
    Points : 1 407
    Points
    1 407
    Par défaut
    UneClasse.maCONSTANTE est de quel type ?

  3. #3
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut
    UneClasse.maCONSTANTE est un String

  4. #4
    Membre habitué
    Avatar de dtateur
    Inscrit en
    Mars 2004
    Messages
    106
    Détails du profil
    Informations forums :
    Inscription : Mars 2004
    Messages : 106
    Points : 140
    Points
    140
    Par défaut
    Quel est l'exception (java) qui provoque l'erreur 500 ?

  5. #5
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut
    je n'en sais rien, j'ai juste un message d'error 500 qui apparaît sur mon navigateur..

  6. #6
    Membre expérimenté
    Avatar de RanDomX
    Profil pro
    sans
    Inscrit en
    Mars 2003
    Messages
    579
    Détails du profil
    Informations personnelles :
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : sans

    Informations forums :
    Inscription : Mars 2003
    Messages : 579
    Points : 1 407
    Points
    1 407
    Par défaut
    et dans les logs de ton conteneurde servlet ?

  7. #7
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut
    c'est bien ce qui m'inquiète, y a rien dans les logs..
    mon serveur Apache tombe et c'est tout

  8. #8
    Membre expérimenté
    Avatar de RanDomX
    Profil pro
    sans
    Inscrit en
    Mars 2003
    Messages
    579
    Détails du profil
    Informations personnelles :
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : sans

    Informations forums :
    Inscription : Mars 2003
    Messages : 579
    Points : 1 407
    Points
    1 407
    Par défaut
    il me semble que WARp c le protocole de comm entre Apache et Tomcat.

    verifies ta config et l'install de ton connector WARP

  9. #9
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut
    pourtant j'ai une autre Servlet qui fonctionne un peu pareil mais elle elle marche très bien..
    Je vais du côté du connecteur, Merci.

  10. #10
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut
    je suis perdue..
    voici les logs d'Apache et Tomcat:

    log de tomcat quand il plante
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    2004-05-06 10:29:04 StandardWrapper[/monprojet:maServlet]: Waiting for 1 instance(s) to be deallocated
    log d'apache quand tomcat plante
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    11.1.1.1 - - [06/May/2004:10:28:54 +0200] "GET /monprojet/index.html HTTP/1.0" 304 0
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/index.html HTTP/1.0" 200 907
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/accueil.html HTTP/1.0" 200 1467
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/menu.html HTTP/1.0" 200 1228
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/css/main.css HTTP/1.0" 200 390
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/images/Accueil.gif HTTP/1.0" 200 1627
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/images/recherches.gif HTTP/1.0" 200 1755
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/images/informations.gif HTTP/1.0" 200 1748
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/images/equipe.gif HTTP/1.0" 200 1785
    11.1.1.1 - - [06/May/2004:10:28:56 +0200] "GET /monprojet/images/logo.gif HTTP/1.0" 200 2336
    11.1.1.1 - - [06/May/2004:10:28:59 +0200] "GET /monprojet/jsp/maRecherche.jsp HTTP/1.0" 200 5555
    11.1.1.1 - - [06/May/2004:10:29:03 +0200] "POST /monprojet/maServlet HTTP/1.0" 500 313
    log d'apache quand tomcat marche
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    11.1.1.81 - - [06/May/2004:10:37:14 +0200] "GET /monprojet/index.html HTTP/1.1" 404 337
    11.1.1.81 - - [06/May/2004:10:37:17 +0200] "GET /monprojet/index.html HTTP/1.1" 404 337
    11.1.1.81 - - [06/May/2004:10:37:22 +0200] "GET /monprojet/ HTTP/1.1" 404 337
    11.1.1.81 - - [06/May/2004:10:37:23 +0200] "GET /monprojet/ HTTP/1.1" 404 337
    11.1.1.81 - - [06/May/2004:10:37:31 +0200] "PROPFIND / HTTP/1.0" 405 298
    11.1.1.81 - - [06/May/2004:10:37:46 +0200] "PROPFIND / HTTP/1.0" 405 298
    11.1.1.81 - - [06/May/2004:10:37:50 +0200] "GET /monprojet/ HTTP/1.1" 302 5
    11.1.1.81 - - [06/May/2004:10:37:51 +0200] "GET /monprojet/index.html HTTP/1.1" 200 907
    11.1.1.81 - - [06/May/2004:10:37:53 +0200] "GET /monprojet/jsp/maRecherche.jsp HTTP/1.1" 200 5083
    11.1.1.81 - - [06/May/2004:10:37:58 +0200] "POST /monprojet/maServlet HTTP/1.1" 200 966
    11.1.1.81 - - [06/May/2004:10:38:02 +0200] "GET /monprojet/xml/monResu.xml HTTP/1.1" 304 0
    11.1.1.81 - - [06/May/2004:10:38:02 +0200] "GET /monprojet/xml/monResu.xsl HTTP/1.1" 304 0
    Erreur à l'arrêt de tomcat
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    Catalina.stop: java.net.ConnectException: Connection refused
    java.net.ConnectException: Connection refused
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
            at java.net.Socket.connect(Socket.java:452)
            at java.net.Socket.connect(Socket.java:402)
            at java.net.Socket.<init>(Socket.java:309)
            at java.net.Socket.<init>(Socket.java:124)
            at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
            at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
            at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    je rappelle que Tomcat plante suivant le code de ma Servlet (cf le 1er post tout là haut)

  11. #11
    Membre habitué Avatar de phoebe
    Inscrit en
    Août 2003
    Messages
    289
    Détails du profil
    Informations forums :
    Inscription : Août 2003
    Messages : 289
    Points : 143
    Points
    143
    Par défaut
    j'ai trouvé mon erreur..

    monString est bien instancié au départ mais entre temps je fais un
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    monString = atts.getValue("monAttribut");
    dans dans la méthode startElement, or "monAttribut" n'existe pas dans mon fichier XML pour la balise courante..

    du coup monString n'avait plus de valeur instanciée..

    excusez moi.. et merci encore RanDomX

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. error 500 avec struts 1.1
    Par jakouz dans le forum Struts 1
    Réponses: 10
    Dernier message: 27/09/2006, 14h59
  2. .htaccess => error 500
    Par julien.63 dans le forum Apache
    Réponses: 2
    Dernier message: 09/09/2006, 19h30
  3. [mod_jk] integration tomcat apache, error 500
    Par peppena dans le forum Tomcat et TomEE
    Réponses: 5
    Dernier message: 10/02/2006, 10h01
  4. [SERVLET][STRUTS]Error 500--Internal Server Error
    Par Devil666 dans le forum Struts 1
    Réponses: 7
    Dernier message: 27/06/2005, 13h07
  5. redirection impossible => error 500 !
    Par alfigor dans le forum ASP
    Réponses: 4
    Dernier message: 26/04/2004, 10h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo