I/o Error Unknown Packet Type
Contents |
Discussion jTDS - SQL Server and Sybase JDBC driver Brought to you by: ickzon Summary Files Reviews
Mysql-connector-java
Support Donate Code Tickets ▾ Bugs Patches Feature Requests News jtds Discussion Mailing Lists Create Topic Stats Graph Forums Help 1705 jTDS Developer 316 Open Discussion 245 Help Formatting Help JTDS - I/O Error: Unknown packet type 0x48 Forum: Open Discussion Creator: trangflower Created: 2005-01-03 Updated: 2012-08-15 trangflower - 2005-01-03 I am using Tomcat & SQL Server 2000 on WinXP. I'm using following code to connect to database: Classpath OK (jtds.jar - jtds-0.9). String dbDriver = "net.sourceforge.jtds.jdbc.Driver"; String strURL = "jdbc:jtds:sqlserver://localhost:8080/Website"; String strUserName = "sa"; String strPassword = "sa"; Class.forName(dbDriver); conn=DriverManager.getConnection(strURL,strUserName,strPassword); It throws exception: I/O Error: Unknown packet type 0x48 What can I do now? Thanks. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Alin Sinpalean - 2005-01-04 Looking at the URL I think you're connecting to Tomcat (port 8080) instead of SQL Server (port 1433, probably). jTDS gets an 'HTTP 1.1 ...' error and is confused by the 'H' (0x48) which should be the packet type. Alin. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: trangflower - 2005-01-04 Thanks, but when I edit it to: String dbDriver = "net.sourceforge.jtds.jdbc.Driver"; String strURL = "jdbc:jtds:sqlserver://localhost:1433/Website"; //Or "jdbc:jtds:sqlserver://localhost/Website" String strUserName = "sa"; String strPassword = "sa"; Class.forName(dbDriver); conn=DriverManager.getConnection(strURL,strUserName,strPassword); It throws exception: Network error IOException: Connection refused Please show me why? Thanks. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Alin Sinpalean - 200
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
could i do that? or just need to run the sql on the database machine and, http://help.razuna.com/t/connect-to-database-from-diff-machine/156 taraaa its done? thanks. Nitai 2014-10-16 13:25:46 UTC #2 In the firsttime wizard choose "Advanced Settings" in the next screen you can choose the database and then the database connection strings. If you have Razuna setup already, go into the backend administration, go to the Backup tab and create a backup. Then go to the Database i/o error tab and click on switch the database. This will take you to the firsttime wizard again and you can follow what I wrote above. Steve_Starer 2014-11-17 00:20:01 UTC #4 A follow up to addrianbfr's issue, I have a self hosted razuna up and running I'd like to connect to a MySQL instance in an RDS instance on i/o error unknown amazon's aws. I think I have all the parameters and database set up properly, but when I test the connection I get this message:Could not verify datasource: I/O Error: Unknown packet type 0x4e Hopefully you can point me in the right direction, as I'm not having much luck finding any info. thanks all!Steve harkirat 2014-11-17 05:08:44 UTC #5 Hi Steve, Haven't seen this error before. My suspicion is it has something to with one of the connection parameters being incorrect.Perhaps these links might help:http://sourceforge.net/p/jtds/discussion/104388/thread/9e4706a0http://www.myeclipseide.com/PNphpBB2-viewtopic-t-29354.html BestHarkirat Steve_Starer 2014-11-17 14:21:18 UTC #6 Thanks for this info, I'll check it out today. Just a follow up....It seems like the links are saying don't think of it as as Razuna to mysql issue, rather a tomcat to mysql issue and what's missing is the tomcat to java connectivity. That sound reasonable? I'll post more info as soon as I get the referenced drivers,Thanks for the pointers!Regards,Steve Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled