aspose file tools*
The moose likes JForum and the fly likes java.io.EOFException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "java.io.EOFException" Watch "java.io.EOFException" New topic
Author

java.io.EOFException

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i have developed website using java1.4, tomcat5 and mysql5 on windows server. its working fine, but i have hosted it in linux server its showing when i try to login java.io.EOFException. i dont know how to solve this problem please help me to solve this issue. my connection program is


public class DBConnection
{
public static Connection conn = null;
public DBConnection()
{
}

public static Connection getConnection() throws Exception
{
try
{
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://server/database?user=username&password=xxxx");

}

catch(Exception e)
{
System.out.println(e);
}

return conn;
}

Please help.
[originally posted on jforum.net by ravik]
 
wood burning stoves
 
subject: java.io.EOFException
 
Similar Threads
DBUtility for closing connections
PreparedStatement's executeQuery() returning resultset with no rows
Create ConnectionPool in ServletContextListener
Why this OverFlow error during updating?
Jdbc Connection pooling using apche tomcat6.0.14 and axis2--please help me