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

jbake-master: "jbake -b" shows java.util.NoSuchElementException: 'index.paginate'... #332

Closed
uli-heller opened this Issue Jan 13, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@uli-heller
Contributor

uli-heller commented Jan 13, 2017

  • jbake-2.5.0: No error/warning
  • jbake-master: Displays an error/warning
$ jbake -b
...
07:22:19.167 INFO  org.jbake.app.Asset - Copying [./assets/js/i2ui-1.0.0.js]...done!
07:22:19.168 INFO  org.jbake.app.Asset - Copying [./assets/js/jquery-1.11.1.min.js]...done!
07:22:19.170 INFO  org.jbake.app.Asset - Copying [./assets/js/prettify.js]...done!
07:22:19.171 INFO  org.jbake.app.Oven - Baking finished!
07:22:19.173 INFO  org.jbake.app.Oven - Baked 188 items in 56361ms
07:22:19.173 ERROR org.jbake.app.Oven - Failed to bake 1 item(s)!
07:22:19.215 INFO  c.o.orient.core.Orient - - storage: cache...
07:22:19.247 INFO  c.o.orient.core.Orient - OrientDB Engine shutdown complete
JBake failed with 1 errors:
1. java.util.NoSuchElementException: 'index.paginate' doesn't map to an existing object

org.jbake.app.JBakeException: JBake failed with 1 errors:
1. java.util.NoSuchElementException: 'index.paginate' doesn't map to an existing object

	at org.jbake.launcher.Baker.bake(Baker.java:32)
	at org.jbake.launcher.Main.run(Main.java:95)
	at org.jbake.launcher.Main.run(Main.java:81)
	at org.jbake.launcher.Main.main(Main.java:34)
Caused by: org.jbake.template.RenderingException: java.util.NoSuchElementException: 'index.paginate' doesn't map to an existing object
	at org.jbake.render.IndexRenderer.render(IndexRenderer.java:24)
	at org.jbake.app.Oven.bake(Oven.java:151)
	at org.jbake.launcher.Baker.bake(Baker.java:20)
	... 3 more
Caused by: java.util.NoSuchElementException: 'index.paginate' doesn't map to an existing object
	at org.apache.commons.configuration.AbstractConfiguration.getBoolean(AbstractConfiguration.java:644)
	at org.jbake.render.IndexRenderer.render(IndexRenderer.java:17)
	... 5 more

@uli-heller uli-heller changed the title from jbake-master: "jbake -b" shows ... to jbake-master: "jbake -b" shows java.util.NoSuchElementException: 'index.paginate'... Jan 13, 2017

@jonbullock

This comment has been minimized.

Show comment
Hide comment
@jonbullock

jonbullock Jan 22, 2017

Member

Thanks for reporting this... I'll have to investigate this further to see what is going on.

Member

jonbullock commented Jan 22, 2017

Thanks for reporting this... I'll have to investigate this further to see what is going on.

@jonbullock jonbullock added this to the v2.5.1 milestone Jan 22, 2017

@jonbullock jonbullock self-assigned this Jan 22, 2017

@ancho

This comment has been minimized.

Show comment
Hide comment
@ancho

ancho Jan 23, 2017

Member

I Can confirm the same behavior. IndexRenderer tries to access a configuration property which is not present in that case.

We should fallback to normal index rendering if the property is not set.

Member

ancho commented Jan 23, 2017

I Can confirm the same behavior. IndexRenderer tries to access a configuration property which is not present in that case.

We should fallback to normal index rendering if the property is not set.

@jonbullock

This comment has been minimized.

Show comment
Hide comment
@jonbullock

jonbullock Jan 24, 2017

Member

Thanks @ancho 👍

Member

jonbullock commented Jan 24, 2017

Thanks @ancho 👍

jonbullock added a commit that referenced this issue Jan 24, 2017

Merge pull request #336 from ancho/fix/332-exception-paginate-propert…
…y-missing

fix #332 - fallback to standard index rendering if index.paginate pro…

@jonbullock jonbullock added the bug label Jan 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment