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

Dandelion Assets is null exception #304

Open
sanluck opened this issue Dec 30, 2015 · 0 comments
Open

Dandelion Assets is null exception #304

sanluck opened this issue Dec 30, 2015 · 0 comments

Comments

@sanluck
Copy link

sanluck commented Dec 30, 2015

Often I have a message in my logs :
log.txt
I don't know when this exception occurs but then it happens my table (based on Dandelion Datatables) has empty content.
Maybe it's related on my static resources cache settings?

@Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        Integer cachePeriod = this.resourceProperties.getCachePeriod();
        if (!registry.hasMappingForPattern("/webjars/**")) {
            registry.addResourceHandler("/webjars/**").addResourceLocations(
                    "classpath:/META-INF/resources/webjars/")
                    .setCachePeriod(cachePeriod);
        }

        if (!registry.hasMappingForPattern("/static/**")) {
            registry.addResourceHandler("/static/**").addResourceLocations(
                    "/static/")
                    .setCachePeriod(cachePeriod);
        }

        if (!registry.hasMappingForPattern("/dandelion/**")) {
            registry.addResourceHandler("/dandelion/**").addResourceLocations(
                    "classpath:/META-INF/resources/dandelion/")
                    .setCachePeriod(cachePeriod);
        }
    }

I'm using Spring Boot 1.3.1, Dandelion Datatables 1.1.1, Thymeleaf 2.1.2. Application deployed on Tomcat 8.0.28.

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

1 participant