java.lang.IllegalArgumentException: Unable to obtain required element '//span[@id='language']' from element '[div: null]'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Dzmitry Barouka, 1 year ago
Unable to obtain required element '//span[@id='language']' from element '[div: null]'
via Spring JIRA by Dzmitry Barouka, 1 year ago
Unable to obtain required element '//span[@id='language']' from element '[div: null]'
java.lang.IllegalArgumentException: Unable to obtain required element '//span[@id='language']' from element '[div: null]'
at org.springframework.roo.support.util.Assert.notNull(Assert.java:112)
at org.springframework.roo.support.util.XmlUtils.findRequiredElement(XmlUtils.java:208)
at org.springframework.roo.addon.web.mvc.jsp.JspOperationsImpl.installI18n(JspOperationsImpl.java:439)
at org.springframework.roo.addon.web.mvc.jsp.JspOperationsImpl.installCommonViewArtefacts(JspOperationsImpl.java:131)
at org.springframework.roo.addon.web.mvc.jsp.JspOperationsImpl.installView(JspOperationsImpl.java:177)
at org.springframework.roo.addon.web.mvc.jsp.JspOperationsImpl.installView(JspOperationsImpl.java:166)
at org.springframework.roo.addon.web.mvc.jsp.JspOperationsImpl.installView(JspOperationsImpl.java:145)
at org.springframework.roo.addon.web.mvc.jsp.JspCommands.installView(JspCommands.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:34)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:177)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:140)
at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:32)
at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:156)
at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:181)
at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:107)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.