Make sure that the user has privilege on mysequence (you can test that from sqlplus by running that select statement, but remember that it'll increase the value of the sequence by one). In case there is no privilege problem with the sequence then you may try granting the JAVAUSERPRIV to the user from the system account.

Thanks.

Syed