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

Tomcat et TomEE Java Discussion :

[Tomcat] Plantage d'une appli sous tomcat


Sujet :

Tomcat et TomEE Java

  1. #1
    Membre du Club
    Inscrit en
    Décembre 2005
    Messages
    58
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 58
    Points : 48
    Points
    48
    Par défaut [Tomcat] Plantage d'une appli sous tomcat
    J'ai installé une appli web (servlet qiu interagit avec un database) sous Tomcat, elle marche parfaitement.
    Mais au bout de 1 ou 2 heures lorsque je tente d'y accéder Tomcat me claque une erreur :
    Pourtant mes serv MySQL et Tomcat sont toujours en marche, ils fonctionnent d'ailleur parfaitement avec mes autres applications web.
    J'ai juste a faire un reload pour que l'appli fonctionne à nouveau.
    Mais 1 ou 2 heures apres elle replante toute seule comme une grande sans meme que personne ne l'ai lancé entre temps...
    Bref bizarree


    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
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
     
    type Rapport d'exception
     
    message
     
    description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête.
     
    exception
     
    servletGST.domaine.RuntimeGSTException: java.sql.SQLException: No operations allowed after connection closed.
     
    Connection was closed due to the following exception:
     
    ** BEGIN NESTED EXCEPTION ** 
     
    java.sql.SQLException
    MESSAGE: Communication link failure: java.net.SocketException, underlying cause: Software caused connection abort: recv failed
     
    ** BEGIN NESTED EXCEPTION ** 
     
    java.net.SocketException
    MESSAGE: Software caused connection abort: recv failed
     
    STACKTRACE:
     
    java.net.SocketException: Software caused connection abort: recv failed
    	at java.net.SocketInputStream.socketRead0(Native Method)
    	at java.net.SocketInputStream.read(Unknown Source)
    	at java.io.BufferedInputStream.fill(Unknown Source)
    	at java.io.BufferedInputStream.read(Unknown Source)
    	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1399)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1775)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
    	at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1070)
    	at com.mysql.jdbc.Connection.execSQL(Connection.java:2027)
    	at com.mysql.jdbc.Connection.execSQL(Connection.java:1984)
    	at com.mysql.jdbc.Statement.executeQuery(Statement.java:1152)
    	at servletGST.mapping.PersistanceManagerDB.findUtilisateurByLogin(PersistanceManagerDB.java:1118)
    	at servletGST.web.ServletGST.doPost(ServletGST.java:69)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    	at java.lang.Thread.run(Unknown Source)
     
     
    ** END NESTED EXCEPTION **
     
     
     
    STACKTRACE:
     
    java.sql.SQLException: Communication link failure: java.net.SocketException, underlying cause: Software caused connection abort: recv failed
     
    ** BEGIN NESTED EXCEPTION ** 
     
    java.net.SocketException
    MESSAGE: Software caused connection abort: recv failed
     
    STACKTRACE:
     
    java.net.SocketException: Software caused connection abort: recv failed
    	at java.net.SocketInputStream.socketRead0(Native Method)
    	at java.net.SocketInputStream.read(Unknown Source)
    	at java.io.BufferedInputStream.fill(Unknown Source)
    	at java.io.BufferedInputStream.read(Unknown Source)
    	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1399)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1775)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
    	at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1070)
    	at com.mysql.jdbc.Connection.execSQL(Connection.java:2027)
    	at com.mysql.jdbc.Connection.execSQL(Connection.java:1984)
    	at com.mysql.jdbc.Statement.executeQuery(Statement.java:1152)
    	at servletGST.mapping.PersistanceManagerDB.findUtilisateurByLogin(PersistanceManagerDB.java:1118)
    	at servletGST.web.ServletGST.doPost(ServletGST.java:69)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    	at java.lang.Thread.run(Unknown Source)
     
     
    ** END NESTED EXCEPTION **
     
     
    	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1527)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1775)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
    	at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1070)
    	at com.mysql.jdbc.Connection.execSQL(Connection.java:2027)
    	at com.mysql.jdbc.Connection.execSQL(Connection.java:1984)
    	at com.mysql.jdbc.Statement.executeQuery(Statement.java:1152)
    	at servletGST.mapping.PersistanceManagerDB.findUtilisateurByLogin(PersistanceManagerDB.java:1118)
    	at servletGST.web.ServletGST.doPost(ServletGST.java:69)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    	at java.lang.Thread.run(Unknown Source)
     
     
    ** END NESTED EXCEPTION **
     
     
    	servletGST.mapping.PersistanceManagerDB.findUtilisateurByLogin(PersistanceManagerDB.java:1126)
    	servletGST.web.ServletGST.doPost(ServletGST.java:69)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  2. #2
    Membre averti
    Profil pro
    Inscrit en
    Juillet 2005
    Messages
    274
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 274
    Points : 307
    Points
    307
    Par défaut
    Bonjour,

    il est probable que ta connexion entre ta base et ton serveur Tomcat soit coupée à cause d'un timeout.

    MySQL est configuré par défaut pour couper les connexion inactives au bout de huit heures (peut être que la valeur à été modifiée).

    Utilise tu un pool de connexion, une datasource, etc... ?

  3. #3
    Membre du Club
    Inscrit en
    Décembre 2005
    Messages
    58
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 58
    Points : 48
    Points
    48
    Par défaut
    Citation Envoyé par Pietra
    Bonjour,

    il est probable que ta connexion entre ta base et ton serveur Tomcat soit coupée à cause d'un timeout.

    MySQL est configuré par défaut pour couper les connexion inactives au bout de huit heures (peut être que la valeur à été modifiée).

    Utilise tu un pool de connexion, une datasource, etc... ?
    Hum... non ni pool de connexion, ni datasource.

    Par contre pour le moment je suis en phase de test et je tourne via un mysql d'un EasyPHP ... donc jvais deja commencer par installer un serv MySQL tout seul voir ce ke ca donne. Je te tiens au courant.

Discussions similaires

  1. Réponses: 0
    Dernier message: 04/07/2014, 11h06
  2. déploiement d'une appli sous Tomcat 6.0
    Par mikiko dans le forum Tomcat et TomEE
    Réponses: 5
    Dernier message: 26/05/2010, 17h16
  3. Réponses: 0
    Dernier message: 17/08/2009, 12h11
  4. Réponses: 2
    Dernier message: 19/03/2007, 17h57
  5. [tomcat] pb arreter une application sous tomcat
    Par ruppert62 dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 28/02/2005, 19h12

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