orientechnologies/orientdb — pull request #2281 by paynechu (2014-04-25 04:48:08+00:00)
Title: - fixed javascript exception cannot flush to client properly

Because ScriptException and NoSuchMethodException is unserializable,
So it will throw exception again when it serialising the exception to client.
It caused never call `channel.flush()`
Can test by call "SELECT test(:aid)" command through binary protocol.
There may have better way to fix. This issue just make a bit difficult to implement binary client.

function test(aid) {
return db.query("SELECT * FROM V WHERE @rid=" + aid)
}