You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Michael Dick (JIRA)" <ji...@apache.org> on 2009/07/27 17:39:15 UTC
[jira] Created: (OPENJPA-1197) NativeQueries fail with MySQL
NativeQueries fail with MySQL
------------------------------
Key: OPENJPA-1197
URL: https://issues.apache.org/jira/browse/OPENJPA-1197
Project: OpenJPA
Issue Type: Bug
Affects Versions: 1.2.1, 1.0.3
Reporter: Michael Dick
Assignee: Michael Dick
Priority: Minor
The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver.
The exception from the testcase looks like this :
<openjpa-1.0.4-SNAPSHOT-rexported nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure.
at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964)
at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242)
<snip>
Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857)
at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692)
at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513)
at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422)
at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496)
at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470)
at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212)
Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OPENJPA-1197) NativeQueries fail with MySQL
Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Donald Woods updated OPENJPA-1197:
----------------------------------
Fix Version/s: (was: 2.0.0)
2.0.0-beta
> NativeQueries fail with MySQL
> ------------------------------
>
> Key: OPENJPA-1197
> URL: https://issues.apache.org/jira/browse/OPENJPA-1197
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.2.1
> Reporter: Michael Dick
> Assignee: Michael Dick
> Priority: Minor
> Fix For: 1.0.4, 1.2.2, 1.3.0, 2.0.0-beta
>
>
> The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver.
> The exception from the testcase looks like this :
> <openjpa-1.0.4-SNAPSHOT-rexported nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure.
> at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
> at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242)
> <snip>
> Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure.
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
> at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857)
> at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692)
> at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513)
> at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470)
> at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212)
> Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OPENJPA-1197) NativeQueries fail with MySQL
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735661#action_12735661 ]
Michael Dick commented on OPENJPA-1197:
---------------------------------------
Hi Milosz,
That's another way to address the issue I suppose. Since the 5.1.6 driver allows us to use prepareCall without hitting the issue (at least on Linux), I'm content to use that instead of making a code change though.
That would explain why I didn't see the problem with trunk / 1.3.x though.
> NativeQueries fail with MySQL
> ------------------------------
>
> Key: OPENJPA-1197
> URL: https://issues.apache.org/jira/browse/OPENJPA-1197
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.2.1
> Reporter: Michael Dick
> Assignee: Michael Dick
> Priority: Minor
>
> The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver.
> The exception from the testcase looks like this :
> <openjpa-1.0.4-SNAPSHOT-rexported nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure.
> at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
> at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242)
> <snip>
> Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure.
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
> at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857)
> at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692)
> at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513)
> at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470)
> at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212)
> Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (OPENJPA-1197) NativeQueries fail with
MySQL
Posted by "Milosz Tylenda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735658#action_12735658 ]
Milosz Tylenda edited comment on OPENJPA-1197 at 7/27/09 10:02 AM:
-------------------------------------------------------------------
This is probably the same issue as in OPENJPA-774 - we use prepareCall instead of prepareStatement.
was (Author: milosz):
This is probably the same issue as in OPENJPA-744 - we use prepareCall instead of prepareStatement.
> NativeQueries fail with MySQL
> ------------------------------
>
> Key: OPENJPA-1197
> URL: https://issues.apache.org/jira/browse/OPENJPA-1197
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.2.1
> Reporter: Michael Dick
> Assignee: Michael Dick
> Priority: Minor
>
> The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver.
> The exception from the testcase looks like this :
> <openjpa-1.0.4-SNAPSHOT-rexported nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure.
> at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
> at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242)
> <snip>
> Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure.
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
> at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857)
> at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692)
> at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513)
> at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470)
> at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212)
> Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OPENJPA-1197) NativeQueries fail with MySQL
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick updated OPENJPA-1197:
----------------------------------
Fix Version/s: 2.0.0
1.3.0
1.2.2
1.0.4
> NativeQueries fail with MySQL
> ------------------------------
>
> Key: OPENJPA-1197
> URL: https://issues.apache.org/jira/browse/OPENJPA-1197
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.2.1
> Reporter: Michael Dick
> Assignee: Michael Dick
> Priority: Minor
> Fix For: 1.0.4, 1.2.2, 1.3.0, 2.0.0
>
>
> The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver.
> The exception from the testcase looks like this :
> <openjpa-1.0.4-SNAPSHOT-rexported nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure.
> at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
> at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242)
> <snip>
> Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure.
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
> at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857)
> at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692)
> at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513)
> at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470)
> at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212)
> Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (OPENJPA-1197) NativeQueries fail with MySQL
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick closed OPENJPA-1197.
---------------------------------
Resolution: Fixed
> NativeQueries fail with MySQL
> ------------------------------
>
> Key: OPENJPA-1197
> URL: https://issues.apache.org/jira/browse/OPENJPA-1197
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.2.1
> Reporter: Michael Dick
> Assignee: Michael Dick
> Priority: Minor
>
> The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver.
> The exception from the testcase looks like this :
> <openjpa-1.0.4-SNAPSHOT-rexported nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure.
> at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83)
> at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59)
> at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242)
> <snip>
> Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure.
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
> at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857)
> at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692)
> at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513)
> at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496)
> at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470)
> at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212)
> Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.