我正在使用 hql 请求来检查名为 SharedItems 并映射为 java.util.ArrayList 的列是否包含一些文本,如下所示:
where 'someText' in elements(SharedItems)
这没有按预期工作当“SharedItems”列包含空值时,它显示:
Wrapped Exception: null
at com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:2398)
at com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:2327)
at com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:2315)
at com.xpn.xwiki.store.XWikiCacheStore.search(XWikiCacheStore.java:659)
at com.xpn.xwiki.XWiki.search(XWiki.java:1747)
at com.xpn.xwiki.api.XWiki.search(XWiki.java:512)
at sun.reflect.GeneratedMethodAccessor610.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 137 more