Skip to content

Tiles 2.x: TilesConfigurer NPE when no definitions found [SPR-12362] #16967

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

Closed
spring-projects-issues opened this issue Oct 22, 2014 · 4 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Arnaud Kleinveld opened SPR-12362 and commented

We had two lines in the webmvc-config.xml for the TilesConfigurer

<value>/WEB-INF/views/**/views.xml</value>
<value>/WEB-INF/flows/**/views.xml</value>

Then when we removed the last views.xml under the /WEB-INF/flows tree the application crashes at startup with an NPE caused by line 423 of the TilesConfigurer. See error-report with stack-trace attached.


Affects: 3.2.11

Attachments:

Referenced from: commits c8b8dc5, d53b67f, cb86036

Backported to: 4.0.8, 3.2.12

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Fixed for 4.1.2 now, to be backported to 4.0.8 and 3.2.12.

Note that is a Tiles 2.x specific issue; it works fine with Spring's Tiles 3 support as-is. Out of curiosity, any specific reason why you're still on Tiles 2.x? We keep supporting it for the time being next to Tiles 3, just wondering...

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Arnaud Kleinveld commented

We started our first roo project and surprisingly roo installed old versions of everything. We have updated the patch levels and will have to plan major upgrades too.

Arnaud

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

No worries, I'm sure there are plenty of existing Spring applications still using Tiles 2 simply because that's what they started with...

Our plan is to formally deprecate Tiles 2 support as of Spring Framework 4.2 in Q2 2015, and eventually remove it in early 2016.

@spring-projects-issues
Copy link
Collaborator Author

Arnaud Kleinveld commented

Thanks. We will have upgraded by then.

@spring-projects-issues spring-projects-issues added type: bug A general bug status: backported An issue that has been backported to maintenance branches in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.1.2 milestone Jan 11, 2019
This was referenced Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants