lecosson / assql

Automatically exported from code.google.com/p/assql
0 stars 0 forks source link

Error #2030 on connection #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. To activate the connection : con.connect();
2.
3.

What is the expected output? What do you see instead?

Error: Error #2030: End of file was encountered.
    at flash.utils::ByteArray/readByte()
    at ProxiedByteArray/readByte()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/ProxiedByteArray.as:56]
    at ProxiedBuffer/readString()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/ProxiedBuffer.as:42]
    at ServerInformation()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/ServerInformation.as:35]
    at HandshakeHandler/newPacket()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/HandshakeHandler.as:48]
    at DataHandler/pushPacket()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/DataHandler.as:48]
    at com.maclema.mysql::Connection/checkForPackets()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/Connection.as:484]
    at com.maclema.mysql::Connection/onSocketData()[/Users/Dev1/Documents/Flex Builder 
3/AgendaServer/src/com/maclema/mysql/Connection.as:457]

What version of the product are you using? On what operating system?

last version, on Mac Os 10, MySql: server version 5.1.33

Please provide any additional information below.

Everything work fine with localHost, it happened  when trying to connect to the 
database on 
another machine (exact same database).

Original issue reported on code.google.com by guil.lec...@gmail.com on 12 Jun 2009 at 9:30

GoogleCodeExporter commented 9 years ago
I have the same problem. My environment is:
Flex 3.2, MySQL 5.1, Flex app is on Tomcat 6.0 on Windows Server 2000. 

Also, I use to have the "Security sandbox 
violation:" and followed the solution to this by implementing the policy file 
in 
Java: http://code.google.com/p/assql/wiki/JavaPolicyFileServer.

So I have no problem running the application on my local machine, but cannot 
run the 
same url on a different machine.

Any suggested solution?

Original comment by malinda....@gmail.com on 15 Jul 2009 at 1:39

GoogleCodeExporter commented 9 years ago
It was my sql connection all along. It turns out that when a server makes too 
many 
bad connections to MySQL, it is blocked. 

You can unblock with mysqladmin flush-hosts

http://dev.mysql.com/doc/refman/5.1/en/mysqladmin.html

Original comment by malinda....@gmail.com on 15 Jul 2009 at 2:42

GoogleCodeExporter commented 9 years ago
"mysqladmin flush-hosts" didn't work for me.

Original comment by marconea...@gmail.com on 15 Oct 2010 at 3:58

GoogleCodeExporter commented 9 years ago
Hi, 

I am using Winsock type socket (trying to implement in as3) to use assql. 
I can connect to mysql with authentication .
However mysql not responding after sending "Change database " command. 
Pls. note I m not using Flash.net.Socket.

Mysql server is 5.1.

Thanks.

Original comment by glad...@gmail.com on 15 Oct 2011 at 10:01

Attachments:

GoogleCodeExporter commented 9 years ago
Error: Error #2030: End of file was encountered.
    at flash.utils::ByteArray/readByte()
    at ProxiedByteArray/readByte()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/ProxiedByteArray.as:56]
    at ProxiedBuffer/readString()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/ProxiedBuffer.as:42]
    at ServerInformation()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/ServerInformation.as:35]
    at HandshakeHandler/newPacket()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/HandshakeHandler.as:48]
    at DataHandler/pushPacket()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/DataHandler.as:48]
    at com.maclema.mysql::Connection/checkForPackets()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/Connection.as:485]
    at com.maclema.mysql::Connection/onSocketData()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/Connection.as:458]
Error: Server terminated connection!
    at com.maclema.mysql::Connection/onSocketClose()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/Connection.as:442]

Original comment by insis...@gmail.com on 6 Aug 2014 at 11:02

GoogleCodeExporter commented 9 years ago
Error: Error #2030: 遇到文件尾。
    at flash.utils::ByteArray/readByte()
    at ProxiedByteArray/readByte()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/ProxiedByteArray.as:56]
    at ProxiedBuffer/readString()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/ProxiedBuffer.as:42]
    at ServerInformation()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/ServerInformation.as:35]
    at HandshakeHandler/newPacket()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/HandshakeHandler.as:48]
    at DataHandler/pushPacket()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/DataHandler.as:48]
    at com.maclema.mysql::Connection/checkForPackets()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/Connection.as:485]
    at com.maclema.mysql::Connection/onSocketData()[/Users/Matt/Documents/Adobe Flash Builder Beta 2/asSQL_PureAS3/src/com/maclema/mysql/Connection.as:458]

Original comment by soft...@gmail.com on 1 Mar 2015 at 3:45