You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2006/06/16 14:01:31 UTC

[jira] Commented: (JAMES-485) java.sql.SQLException: Incorrect arguments to mysql_stmt_execute in current trunk

    [ http://issues.apache.org/jira/browse/JAMES-485?page=comments#action_12416481 ] 

Norman Maurer commented on JAMES-485:
-------------------------------------

This seems to be a porblem with the ubuntu packages.

Here is the bug description:
http://www.ubuntuforums.org/showthread.php?t=86294

And this solve it:
jdbc:mysql://127.0.0.1/mail?autoReconnect=true&amp;useServerPrepStmts=false

> java.sql.SQLException: Incorrect arguments to mysql_stmt_execute in current trunk
> ---------------------------------------------------------------------------------
>
>          Key: JAMES-485
>          URL: http://issues.apache.org/jira/browse/JAMES-485
>      Project: James
>         Type: Bug

>  Environment: debian sarge, java 1.5, mysql 4.1, mysql connector 3.1 or 5.0-beta
>     Reporter: Norman Maurer
>     Assignee: Norman Maurer
>     Priority: Critical

>
> After upgrade to rhe latest trunk i get and java.sql.SQLException: Incorrect arguments to mysql_stmt_execute. Here it is:
> 04/05/06 15:16:17 ERROR James: Error storing message: Exception caught while storing mail Container:
> javax.mail.MessagingException: Exception caught while storing mail Container: ;
>   nested exception is:
>         java.sql.SQLException: Incorrect arguments to mysql_stmt_execute
>         at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:762)
>         at org.apache.james.mailrepository.JDBCSpoolRepository.store(JDBCSpoolRepository.java:236)
>         at org.apache.james.mailrepository.MailStoreSpoolRepository.store(MailStoreSpoolRepository.java:124)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)
>         at $Proxy5.store(Unknown Source)
>         at org.apache.james.James.sendMail(James.java:486)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)
>         at $Proxy9.sendMail(Unknown Source)
>         at org.apache.james.smtpserver.SendMailHandler.onMessage(SendMailHandler.java:60)
>         at org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:407)
>         at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:422)
>         at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
>         at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
> Caused by: java.sql.SQLException: Incorrect arguments to mysql_stmt_execute
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2822)
>         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1536)
>         at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1159)
>         at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:684)
>         at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:768)
>         at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:168)
>         at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:750)
>         ... 20 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org