noAccessToProcedureBodies=true Not working with ebean.

452 views
Skip to first unread message

Shobhit Singh

unread,
May 25, 2016, 6:57:46 AM5/25/16
to eb...@googlegroups.com
Hi All,
    We are facing issue with permissions while executing stored procedure on production. We cannot grant select permission on mysql.proc to our user, so wanted to use noAccessToProcedureBodies=true in ebean. I tested this with parameter  noAccessToProcedureBodies=true  in db url but It didn't worked. 


Same solution worked while using with jdbc. Can you help how to use this with ebean? Google is of no help currently.


Error:
"javax.persistence.PersistenceException: java.sql.SQLException: User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted, configure connection with "noAccessToProcedureBodies=true" to have driver generate parameters that represent INOUT strings irregardless of actual parameter types.
at com.avaje.ebeaninternal.server.persist.ExeCallableSql.execute(ExeCallableSql.java:64) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na] at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeSqlCallable(DefaultPersistExecute.java:122) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na] at com.avaje.ebeaninternal.server.core.PersistRequestCallableSql.executeNow(PersistRequestCallableSql.java:49) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na] at com.avaje.ebeaninternal.server.core.PersistRequest.executeStatement(PersistRequest.java:74) ~[org.avaje.ebeanorm.avaje-ebeanorm-3.2.2.jar:na] at com.avaje.ebeanintern...."


Thanks,
Shobhit

Shobhit Singh

unread,
May 27, 2016, 2:14:34 PM5/27/16
to eb...@googlegroups.com

Any help with this issue?

Rob Bygrave

unread,
May 27, 2016, 3:47:41 PM5/27/16
to ebean@googlegroups

It's a permission issue. I'd say your DBA's are the ones to help determine the solution.

--

---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shobhit Singh

unread,
May 29, 2016, 12:50:06 PM5/29/16
to eb...@googlegroups.com
Hi Rob, 
 but some how exactly same thing is working with JDBC. same user, same Db, same servers. Only difference, my team is using ebean, and the other team has written wrapper over jdbc.

Rob Bygrave

unread,
May 30, 2016, 1:07:26 AM5/30/16
to ebean@googlegroups
some how exactly same thing is working with JDBC. same user, same Db, same servers. Only difference, my team is using ebean, and the other team has written wrapper over jdbc.

That is a rather important detail that you have omitted to this point.

Perhaps you could detail exactly the code you are using and exactly the code that they are using?  Are you able to create a reproducable test case?


Reply all
Reply to author
Forward
0 new messages