0
votes

Initialisation de démarrage à ressort ne remplissant pas [l'application bloquée]

Lors du démarrage de la démarrage, l'application est bloquée et SpringApplication.Run ne renvoie pas. XXX PRE>

Je peux voir que le ressort crée tous les haricots mais ne revient jamais, bien que la tomcat intégrée soit démarrée. Sur 9000, il n'écoute pas p> xxx pré> xxx pré>

application est bloqué pour toujours créer une connexion JMS. P>

class org.springframework.expression.spel.support.StandardEvaluationContext's object [after] integrationEvaluationContext
class org.springframework.integration.handler.LoggingHandler's object [after] _org.springframework.integration.errorLogger.handler
class org.springframework.integration.config.ConsumerEndpointFactoryBean's object [before]_org.springframework.integration.errorLogger
class org.springframework.integration.config.ConsumerEndpointFactoryBean's object [after] _org.springframework.integration.errorLogger
class org.springframework.integration.config.IdGeneratorConfigurer's object [before]org.springframework.integration.config.IdGeneratorConfigurer#0
class org.springframework.integration.config.IdGeneratorConfigurer's object [after] org.springframework.integration.config.IdGeneratorConfigurer#0
[05/16/19 05:58:02:002 IST]  INFO annotation.AnnotationMBeanExporter: : Registering beans for JMX exposure on startup
class org.springframework.expression.spel.support.StandardEvaluationContext's object [after] integrationEvaluationContext
[05/16/19 05:58:02:002 IST]  INFO support.DefaultLifecycleProcessor: : Starting beans in phase 0
[05/16/19 05:58:02:002 IST]  INFO endpoint.EventDrivenConsumer: : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
[05/16/19 05:58:02:002 IST]  INFO channel.PublishSubscribeChannel: : Channel 'application:9000.errorChannel' has 1 subscriber(s).
[05/16/19 05:58:02:002 IST]  INFO endpoint.EventDrivenConsumer: : started _org.springframework.integration.errorLogger
[05/16/19 05:58:02:002 IST]  INFO support.DefaultLifecycleProcessor: : Starting beans in phase 2147483647
[05/16/19 05:58:02:002 IST]  INFO connection.CachingConnectionFactory: : Established shared JMS Connection: ActiveMQConnection {id=ID:SDSD121SFSSDF.local-54305-1557966482134-1:1,clientId=null,started=false}


2 commentaires

Avez-vous vérifié qu'il est écouté sur l'interface locale? Exécuter netstat -an | Grep 9000 et recherchez Écoute de l'écoute


Ce n'était pas, jusqu'à l'application du démarrage / bootstrap-ed,


3 Réponses :


1
votes

Dans votre application, il peut exister un fil avec une boucle infinie. Votre application commence par échouer. et ce fil n'est pas cessé. Le processus est toujours existé. Cela semble démarrer avec succès.


1 commentaires

Attrape ActiveMQ Queue Creation Creation a échoué / prenant pour toujours. J'ai enlevé la création de haricot et utilise le nom de la chaîne avec JMSTemPlapper. Cela résolu. Néanmoins pas très sûr de ce qui n'allait pas avec la création du haricot Activemq.



1
votes

La pratique courante qui pourrait aider dans de tels cas est de " attraper le lion Dans la recherche désertique / binaire "pour la cause du problème.

Essayez de commenter des moitiés de votre application jusqu'à ce que vous atteigniez un point où l'application commence sans problème. Ensuite, vous pourrez clouer le code / section problématique.


0 commentaires

0
votes

J'ai aussi été coincé à:

INFO support.DefaultLifecycleProcessor: : Starting beans in phase X


0 commentaires