Issue with Undertow Client and SSL
by Thomas Segismont
Hi,
Openshift Origin uses Hawkular Metrics to store node and container data. In
this scenario, Hawkular Metrics calls the Kubernetes master server over
HTTPS to validate the client identity. This is implemented with Undertow
Client, as part of a ServletExtension (inside Wildfly 10) [1]. Works fine
in development and testing.
Now the Openshit team sees errors in the logs [2][3]. I couldn't reproduce
yet. Errors come in pair, first the "UT005001: An exception occurred
processing the request: java.lang.IllegalStateException: XNIO000017: Buffer
was already freed", and just after "XNIO001007: A channel event listener
threw an exception: java.lang.NullPointerException".
Does that ring a bell? I haven't been able to find a starting point by
looking into the source the code.
Thanks
--
Thomas Segismont
JBoss ON Engineering Team
[1] https://git.io/vrNyP
[2] https://issues.jboss.org/browse/HWKMETRICS-408
[3] https://issues.jboss.org/secure/attachment/12405779/hawkular.log
1 week, 5 days
Correctly shutting down a websocket handler
by Robin Anil
When a client disconnects, I see that onClose is not being fired. The only
way this seems to be firing if client sents a close frame.
Is there any way to detect disconnection and immediately close all the
opened resources.
Robin
Robin Anil | Software Engineer
2 years, 5 months
Re: [undertow-dev] Configure Undertow to use ViewResolver similar to Spring MVC and serve static content
by Stuart Douglas
It sounds like you need to configure a resource manager to serve static
content.
You need to call DeploymentInfo.setResourceManager() with a resource
manager than can resolve the static content you want to serve, if it is
just plain files on the file system you should just use PathResourceManager.
I am not sure about the view resolver, it sounds like you might be missing
a servlet or filter than spring expects to be configured.
Stuart
On Fri, May 4, 2018 at 7:30 PM, aditya sanas <aditya.sanas(a)gmail.com> wrote:
> Hello Undertow Dev Team,
>
>
>
> Currently I’m doing a sample project where I’m trying to configure
> Undertow server to use Spring MVC model.
>
> I’m able to register dispatcher servlet, context listeners, and able to
> configure application so that I can use spring controllers instead of
> servlets to process requests from browsers. So I can return JSON/XML or
> Plain text if I use RestController.
>
>
>
> The thing where I’m currently stuck is I’m not able to serve a static
> content and cannot configure a Spring’s view resolver to return a view
> instead of plain text.
>
>
>
> PS - I’m using Undertow as embedded server into my application and
> producing a standalone executable jar as a build output.
>
>
>
> Thanks,
>
> Aditya Sanas
>
>
7 years, 10 months
Need recommendation on using embedded undertow or migrate application to use springboot's undertow
by aditya sanas
Hello Team Undertow and Stuart ,
Currently I m trying to create a executable jar file which would have
embedded undertow configured. I was able to register controllers and
dispatcher servlet to the server, but could not configure the view
resolvers to return a view, such as jsp or thymeleaf.
I did not found much help on configuring thymeleaf with undertow, so
currently stuck.
I would like to know, what you would recommend, should I continue trying to
use embedded undertow server or should I migrate my current spring mvc
application to spring boot.
Appreciated your response.
Thanks,
Aditya Sanas
7 years, 10 months
Undertow and JPMS
by Alex Sviridov
Hi all,
Could anyone say if there are any plans to migrate Undertow to JPMS. I mean
to make Undertow modular according to JPMS.
--
Best regards. Alex Sviridov
--
Alex Sviridov
7 years, 10 months
Configure Undertow to use ViewResolver similar to Spring MVC and serve static content
by aditya sanas
Currently I’m doing a sample project where I’m trying to configure Undertow
server to use Spring MVC model.
I’m able to register dispatcher servlet, context listeners, and able to
configure application so that I can use spring controllers instead of
servlets to process requests from browsers. So I can return JSON/XML or
Plain text if I use RestController.
The thing where I’m currently stuck is I’m not able to serve a static
content and cannot configure a Spring’s view resolver to return a view
instead of plain text.
PS - I’m using Undertow as embedded server into my application and
producing a standalone executable jar as a build output.
Thanks,
Aditya Sanas
7 years, 10 months