Re: Connector/J "Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."
Posted by: mupparaju srinivas
Date: January 03, 2008 05:38AM

Hi,

I am using mysql-connector-java-5.1.5.While i am trying to connect to mysql database the following exception was occuring.Please let us know the root cause.


Internal error: unexpected exception thrown from the servlet init function (servlet class=com.orillion.waf.wash.servlet.WASHServlet): java.lang.ExceptionInInitializerError, Stack: java.lang.ExceptionInInitializerError
at com.mysql.jdbc.Util.stackTraceToString(Util.java:350)
at com.mysql.jdbc.Util.<clinit>(Util.java:115)
at com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:666)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:278)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.orillion.base.sql.DatabaseProxy.newConnection(DatabaseProxy.java:315)
at com.orillion.base.sql.DatabaseProxy.<init>(DatabaseProxy.java:87)
at com.orillion.base.sql.DatabaseProxy.<init>(DatabaseProxy.java:103)
at com.orillion.base.sql.SQLHandler.setupDB(SQLHandler.java:166)
at com.orillion.base.sql.SQLHandler.<init>(SQLHandler.java:49)
at com.orillion.waf.wash.servlet.WASHServlet.init(WASHServlet.java:373)
at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:375)
at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:141)
at com.netscape.server.http.servlet.NSServletRunner.<init>(NSServletRunner.java:171)
Caused by: java.lang.RuntimeException: Can't load resource bundle due to underlying exception java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale en
at com.mysql.jdbc.Messages.<clinit>(Messages.java:60)
... 16 more


regards,
MSR

Options: ReplyQuote


Subject
Written By
Posted
Re: Connector/J "Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."
January 03, 2008 05:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.