[resolved] tRESTRequest error message

One Star

[resolved] tRESTRequest error message

Hello,
I have designed a simple job that uses the tRESTRequest et tRESTResponse to provide some information in REST.
It works pretty good. But I have this message : 
Exception in component tRESTRequest_1_In

java.lang.RuntimeException: {URI_ABSOLUTE=http://localhost:8088/favicon.ico, ERROR=null, VERB=GET, STATUS=404, URI_BASE=http://localhost:8088/, URI=favicon.ico}

at carrefourbanque.restservice_0_1.RESTService.tRESTRequest_1_LoopProcess(RESTService.java:1234)

at carrefourbanque.restservice_0_1.RESTService$RestServiceProviderImpl4TalendJob.processRequest(RESTService.java:354)

at carrefourbanque.restservice_0_1.RESTService$RestServiceProviderImpl4TalendJob.handleWrongRequest(RESTService.java:463)

at carrefourbanque.restservice_0_1.RESTService$ExceptionMapper4TalendJobRestService.toResponse(RESTService.java:496)

at org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.toResponse(WebApplicationExceptionMapper.java:45)

at org.apache.cxf.jaxrs.utils.JAXRSUtils.convertFaultToResponse(JAXRSUtils.java:1582)

at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:102)

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)

at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)

at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)

at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1074)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1010)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

at org.eclipse.jetty.server.Server.handle(Server.java:365)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)

at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)

at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

at java.lang.Thread.run(Unknown Source)


So I tried the "Log messages" option in the tRESTRequest component. It displays this : 
SelectChannelConnector@localhost:8088

LoggingInInterceptor           INFO  Inbound Message

----------------------------

ID: 1

Address: http://localhost:8088/contrat/?internet_id=DMEYF831333

Http-Method: GET

Content-Type: 

Headers: {Accept=, accept-encoding=, Accept-Language=, Cache-Control=, connection=, Content-Type=, Host=, User-Agent=}

--------------------------------------

LoggingOutInterceptor          INFO  Outbound Message

---------------------------

ID: 1

Response-Code: 200

Content-Type: application/xml

Headers: {Content-Type=, Date=}

Payload: <?xml version="1.0" encoding="UTF-8"?>

<foyer><internet_id>DMEYF831333</internet_id><drupal_id>13091976</drupal_id><title>D1E226D315FC3F58D31C461945A1FF94</title><name>578ABE5ED5EC59E25B3B4928A3FD3648</name></foyer>

--------------------------------------

LoggingInInterceptor           INFO  Inbound Message

----------------------------

ID: 2

Address: http://localhost:8088/favicon.ico

Http-Method: GET

Content-Type: 

Headers: {Accept=, accept-encoding=, Accept-Language=, connection=, Content-Type=, Host=, User-Agent=}

--------------------------------------

JAXRSUtils                     WARN  No operation matching request path "/favicon.ico" is found, Relative Path: /favicon.ico, HTTP Method: GET, ContentType: */*, Accept: */*,. Please enable FINE/TRACE log level for more details.

WebApplicationExceptionMapper  WARN  javax.ws.rs.ClientErrorException

at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:503)

at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:204)

at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:100)

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)

at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)

at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)

at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1074)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1010)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

at org.eclipse.jetty.server.Server.handle(Server.java:365)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)

at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)

at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

at java.lang.Thread.run(Unknown Source)


Anyone has ever faced this issue ?
Best regards.

Accepted Solutions
Employee

Re: [resolved] tRESTRequest error message

Hi, I saw it few times in cases where the endpoint is published on the "/" context and when a browser is used, not really sure about the cause of it, may be the servlet container tries to serve some static resource with the links which can not be resolved, etc...Have a more unique context name and it should resolve it.
Cheers, Sergey

All Replies
Employee

Re: [resolved] tRESTRequest error message

Hi, I saw it few times in cases where the endpoint is published on the "/" context and when a browser is used, not really sure about the cause of it, may be the servlet container tries to serve some static resource with the links which can not be resolved, etc...Have a more unique context name and it should resolve it.
Cheers, Sergey
One Star

Re: [resolved] tRESTRequest error message

Thanks Sergey for your reply Smiley Wink.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read