jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bastian Spanneberg <bastian.spanneb...@linkwerk.com>
Subject Re: JCR-SQL2 full text search [Re: JCR-SQL2 tutorial]
Date Tue, 26 Jan 2010 13:39:21 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Müller wrote:
> The error message seems to come from the NameParser. Could you post
> the exact code you use, and the complete error message and stack
> trace? See also
> http://wiki.apache.org/jackrabbit/QuestionsAndAnswers#Reporting_Problems


Hi Thomas

The code and the excption is attached below. Thanks for the help.

Repository repository =
  JcrUtils.getRepository("http://localhost:8080/jackrabbit/server");

Session session = repository.login();
Workspace workspace = session.getWorkspace();

Query query = workspace.getQueryManager().createQuery(
  "SELECT * FROM [nt:resource]", Query.JCR_SQL2
);
QueryResult qr = query.execute();

This results in the following exception:

Exception in thread "main" javax.jcr.RepositoryException: ':' not
allowed in name
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:67)
at
org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:49)
at
org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.executeQuery(RepositoryServiceImpl.java:1728)
at
org.apache.jackrabbit.jcr2spi.WorkspaceManager.executeQuery(WorkspaceManager.java:336)
at org.apache.jackrabbit.jcr2spi.query.QueryImpl.execute(QueryImpl.java:149)
at com.example.jackrabbit.JCRDemo01.main(JCRDemo01.java:61)

- --
Linkwerk - Software und Beratung für vernetzte Information
Telefon:   +49 40 69 66 48 14
Web:       www.linkwerk.com

Linkwerk GmbH, Oberaltenallee 20a, 22081 Hamburg,
Handelsregister Hamburg, HRB 95084
Geschäftsführer: Stefan Mintert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkte8IkACgkQSm4S1ty9BPVZSQCgi9yNVKo/MwAHKOhupKVsRiqW
8xUAoKcgoLIvov5YO8HAK5GSjggKbtyp
=ZmF4
-----END PGP SIGNATURE-----

Mime
View raw message