Sun Java System Application Server Platform Edition 9 Release Notes

In some cases, the query compiler throws a misleading error message, because it mentions the wrong token in the error message.

For more information, see https://glassfish.dev.java.net/issues/show_bug.cgi?id=550.

Solution

Manually verify what is wrong in the query.