Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ressources introuvables (favicons, fichiers javascripts) #28

Open
j-kwan opened this issue Nov 22, 2023 · 4 comments
Open

Ressources introuvables (favicons, fichiers javascripts) #28

j-kwan opened this issue Nov 22, 2023 · 4 comments

Comments

@j-kwan
Copy link

j-kwan commented Nov 22, 2023

Bonjour,
Nous sommes actuellement passés à la version 2.1.1 déployée et il se trouve que les erreurs suivantes se déclenchent à chaque consultation de l'application :

Date	Thread	Level	Logger	MDC	Message
2023-11-22 14:24:26,030	http-nio-8080-exec-7	ERROR	org.springframework.boot.web.servlet.support.ErrorPageFilter		Cannot forward to error page for request [/mdw_favicon32-1697095093754-1700648604011.png] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
2023-11-22 14:24:26,207	http-nio-8080-exec-1	ERROR	org.springframework.boot.web.servlet.support.ErrorPageFilter		Cannot forward to error page for request [/mdw_favicon16-1697095096344-1700648610749.png] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
2023-11-22 14:25:15,967	http-nio-8080-exec-2	ERROR	org.springframework.boot.web.servlet.support.ErrorPageFilter		Cannot forward to error page for request [/mdw_favicon32-1697095093754-1700648604011.png] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
2023-11-22 14:26:01,800	http-nio-8080-exec-7	ERROR	org.springframework.boot.web.servlet.support.ErrorPageFilter		Cannot forward to error page for request [/mdw_favicon32-1697095093754-1700648604011.png] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
2023-11-22 14:26:36,683	http-nio-8080-exec-7	ERROR	org.springframework.boot.web.servlet.support.ErrorPageFilter		Cannot forward to error page for request [/mdw_favicon32-1697095093754-1700648604011.png] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false

Lorsqu'on consulte la page d'administration, nous avons bien les favicons qui sont bien affichées mais les chemins correspondent plutôt à celles ci-dessous :

  • /pegase/VAADIN/dynamic/resource/0/1096d227-27f4-446c-857c-996101b55291/mdw_favicon32-1697095093754.png
  • /pegase/VAADIN/dynamic/resource/0/a2c8c51f-dd15-4808-8166-908751604d5a/mdw_favicon16-1697095096344.png

Pour ne plus recevoir les messages d'erreur, j'ai "corrigé" temporairement en copiant les fichiers dans /pegase/

Apparemment, on a aussi le même problème pour des fichiers JavaScript :

Cannot forward to error page for request [/VAADIN/build/indexhtml-347e3281.js] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
Cannot forward to error page for request [/VAADIN/build/generated-flow-imports-0fb38bf4.js] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
Cannot forward to error page for request [/VAADIN/build/indexhtml-347e3281.js] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
@j-kwan j-kwan changed the title Images de favicon manquant Ressources introuvables (favicons, fichiers javascripts) Nov 27, 2023
@cdubois54
Copy link
Collaborator

cdubois54 commented Nov 29, 2023

Bonjour,

Normalement vous ne devriez avoir les favicon dans le répertoire WEB-INF/classes/static/ et l'application doit pouvoir les trouver à cet endroit.

Avez-vous essayé de cliquer sur "Synchroniser la configuration" de la partie "Affichage" de la vue "Configuration" ?
Cela doit lancer la création des images dans le répertoire indiqué ci-dessus.

@j-kwan
Copy link
Author

j-kwan commented Dec 4, 2023

Bonjour,
Merci pour la réponse
Effectivement, en cliquant sur "Synchroniser la configuration", il y a deux icônes qui se sont créées dans le répertoire attendu.

La notification reçue est assez déroutante d'ailleurs, les messages sont catégorisées comme des erreurs :
2023-12-04_08-59

Y a-t-il moyen de forcer la génération des fichiers .js aussi ?

Nous rencontrons aussi cette erreur qui me parait assez étrange aussi :
2023-12-04_09-01

Bien à vous,

@cdubois54
Copy link
Collaborator

Bonjour,

"les messages sont catégorisées comme des erreurs "

  • Les fichiers sont bien créés et les icônes s'affichent dans l'application malgré l'erreur?

"Y a-t-il moyen de forcer la génération des fichiers .js aussi ?"
-De quel fichier par ex?

"Nous rencontrons aussi cette erreur qui me parait assez étrange aussi"
-Cette erreur peut être ignorée. Vous en avez beaucoup?

@j-kwan
Copy link
Author

j-kwan commented Jan 18, 2024

Bonjour,
Merci pour cette réponse.
Oui, les fichiers sont bien créés et accessibles. Nous n'avons plus les erreurs liées aux images.
Nous n'avons plus d'erreurs liées aux fichiers JS (celles que j'avais mis en début de ce fil de discussion).
L'erreur Cannot forward to error page for request [/] se déclenche assez souvent. Ce n'est pas bloquant apparemment, nous n'avons pas de remontée de la part des usagers par rapport à ce sujet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants