jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gioia <antonio.gioi...@gmail.com>
Subject SQL2 doesn't work with own custom node type
Date Wed, 21 Mar 2012 15:22:22 GMT
Hi to all, 

I tried the follow query :

String sql = "select * from [my:type]";
Query query = qm.createQuery(sql, Query.JCR_SQL2);

and query.execute() throws the follow exception

Exception in thread "main" java.lang.IllegalArgumentException: null argument
	at org.apache.jackrabbit.util.Text.replace(Text.java:192)
	at
org.apache.jackrabbit.value.ValueHelper.deserialize(ValueHelper.java:745)
	at
org.apache.jackrabbit.webdav.jcr.search.SearchResultProperty.parseColumnElement(SearchResultProperty.java:125)
	at
org.apache.jackrabbit.webdav.jcr.search.SearchResultProperty.<init>(SearchResultProperty.java:94)
	at
org.apache.jackrabbit.spi2dav.QueryResultRowImpl.<init>(QueryResultRowImpl.java:74)
	at
org.apache.jackrabbit.spi2dav.QueryInfoImpl.<init>(QueryInfoImpl.java:72)
	at
org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.executeQuery(RepositoryServiceImpl.java:1811)
	at
org.apache.jackrabbit.jcr2spi.WorkspaceManager.executeQuery(WorkspaceManager.java:341)
	at
org.apache.jackrabbit.jcr2spi.query.QueryImpl.execute(QueryImpl.java:149)

somebody can help me?

Thanks.

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/SQL2-doesn-t-work-with-own-custom-node-type-tp4492642p4492642.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message