【转】java:“String index out of range: 0”
(2015-07-11 13:34:58)| 分类: 工作手记 |
可能是出现了某行为空
Let's check what ViewHandlerImpl#getActionURL()
public String getActionURL(FacesContext context, String viewId) {
if (context == null) throw new NullPointerException();
if (viewId == null) throw new NullPointerException();
if (viewId.charAt(0) != '/') throw new IllegalArgumentException();
// ...
In other words, the passed-in viewId null /
If the problem isn't in your code, then I would start with upgrading what can be upgraded to see if it resolves the problem. Maybe it was already reported before as a bug and fixed in a newer release. If that doesn't help, I would check the classpath for duplicate JAR files of different versions which might have collided with each other.

加载中…