Warn - For some unknown reason, the response seems empty.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Warn - For some unknown reason, the response seems empty.

budi.hartanto
Hi all,

I get warn every time I run for every page even in login page.

2015-07-29 11:14:27.264  WARN 1582 --- [nio-8080-exec-3] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-29 11:14:27.264  WARN 1582 --- [nio-8080-exec-6] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-29 11:14:27.266  WARN 1582 --- [nio-8080-exec-3] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-29 11:14:27.266  WARN 1582 --- [nio-8080-exec-6] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-29 11:14:27.266  WARN 1582 --- [nio-8080-exec-2] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-29 11:14:27.266  WARN 1582 --- [nio-8080-exec-2] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.

I try to comment the config one by one until the warn disappear. I found this function Filter dandelionFilter() is the root of cause.

@Configuration
public class DandelionConfig {
   @Bean
    public DandelionDialect dandelionDialect() {
        return new DandelionDialect();
    }

    @Bean
    public DataTablesDialect dataTablesDialect(){
        return new DataTablesDialect();
    }

    //@Bean
    //public Filter dandelionFilter() {
       //return new DandelionFilter();
    //}

    @Bean
    public ServletRegistrationBean dandelionServletRegistrationBean() {
        return new ServletRegistrationBean(new DandelionServlet(), "/dandelion-assets/*");
    }
    
    
}

Does anyone have any idea on how to solve this?

Thanks in advance.

- Dandelion datatables 1.0.1
- Spring Boot 1.2.5.RELEASE with Thymeleaf


Reply | Threaded
Open this post in threaded view
|

Re: Warn - For some unknown reason, the response seems empty.

Coco
I'm also getting the same warning when using Dandelion and DataTables 1.0.1


2015-07-31 08:12:07.825  WARN 5340 --- [nio-8080-exec-3] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-31 08:12:07.825  WARN 5340 --- [nio-8080-exec-3] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-31 08:12:07.831  WARN 5340 --- [nio-8080-exec-4] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-31 08:12:07.831  WARN 5340 --- [nio-8080-exec-4] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-31 08:12:07.833  WARN 5340 --- [nio-8080-exec-2] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.
2015-07-31 08:12:07.833  WARN 5340 --- [nio-8080-exec-2] c.g.d.c.w.handler.cache.HttpHeaderUtils  : For some unknown reason, the response seems empty. The ETag won't be computed for this response.


@Configuration
public class DandelionConfig {

    @Bean
    public FilterRegistrationBean dandelionFilterRegistrationBean() {
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        filterRegistrationBean.setFilter(new DandelionFilter());

        return filterRegistrationBean;
    }

    @Bean
    public FilterRegistrationBean datatablesFilterRegistrationBean() {
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        filterRegistrationBean.setFilter(new DatatablesFilter());

        return filterRegistrationBean;
    }

    @Bean
    public DandelionDialect dandelionDialect() {
        return new DandelionDialect();
    }

    @Bean
    public DataTablesDialect dataTablesDialect() {
        return new DataTablesDialect();
    }

    @Bean
    public ServletRegistrationBean dandelionServletRegistrationBean() {
        return new ServletRegistrationBean(
                new DandelionServlet()
                ,"/dandelion-assets/*");
    }
}

Spring Boot - 1.2.5.RELEASE
ThymeLeaf Starter (2.1.4.RELEASE)
Dandelion 1.0.1
Dandelion-Datatables
datatables-thymeleaf
dandelion-thymeleaf
dandelion-webjars
datatables-spring3
datatables-export-poi-ooxml

I tried to migrate to 1.1.0 to see if the new release would remedy the issue, but I get a build failure with the following exception:

2015-08-04 09:37:19.315 ERROR 9144 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Exception starting filter dandelionFilter

java.lang.NullPointerException: null
        at com.github.dandelion.core.util.scanner.WebResourceScanner.doScanForResourcePaths(WebResourceScanner.java:167)
        at com.github.dandelion.core.util.scanner.WebResourceScanner.scanForResourcePaths(WebResourceScanner.java:146)
        at com.github.dandelion.core.util.scanner.WebResourceScanner.findResourcePath(WebResourceScanner.java:72)
        at com.github.dandelion.core.bundle.loader.support.BowerPreLoader.getExtraBundles(BowerPreLoader.java:121)
        at com.github.dandelion.core.Context.initBundleStorage(Context.java:451)
        at com.github.dandelion.core.Context.init(Context.java:154)
        at com.github.dandelion.core.Context.<init>(Context.java:131)
        at com.github.dandelion.core.web.DandelionFilter.init(DandelionFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:109)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
       
Commenting out the Dandelion Filter remedies the situation in both 1.0.1 and 1.1.0
       
Reply | Threaded
Open this post in threaded view
|

Re: Warn - For some unknown reason, the response seems empty.

Thibault Duchateau
Administrator
Hi,

Both issues will be fixed in the v1.1.1.
Sorry for the inconvenience.

Regards,
Thibault.