Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying

    08 Jun 2011 03:20:00,022 DefaultQuartzScheduler_Worker-8 ERROR HRPreparedStatement:135 - error occurred while executing executeQuery()
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

    ** BEGIN NESTED EXCEPTION **

    java.net.SocketException
    MESSAGE: Broken pipe

    STACKTRACE:

    java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutp utStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStre am.java:136)
    at java.io.BufferedOutputStream.flushBuffer(BufferedO utputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputS tream.java:123)
    at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2637)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:15 54)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :1665)
    at com.mysql.jdbc.Connection.execSQL(Connection.java: 3176)
    at com.mysql.jdbc.PreparedStatement.executeInternal(P reparedStatement.java:1153)
    at com.mysql.jdbc.PreparedStatement.executeQuery(Prep aredStatement.java:1266)
    at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement .executeQuery(NewProxyPreparedStatement.java:76)
    at com.scraper.sql.HRPreparedStatement.executeQuery(H RPreparedStatement.java:133)
    at com.scraper.ScrapeRequestHandler.getScrapeRequestD ata(ScrapeRequestHandler.java:1076)
    at com.scraper.AgentInteraction.getScrapeRequestData( AgentInteraction.java:4092)
    at com.scraper.DirectUpdateScheduledAction.getScrapeR equest(DirectUpdateScheduledAction.java:104)
    at com.scraper.DirectUpdateScheduledAction.run(Direct UpdateScheduledAction.java:127)
    at sun.reflect.GeneratedMethodAccessor45.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.util.MethodInvoker.invoke(Meth odInvoker.java:270)
    at org.springframework.scheduling.quartz.MethodInvoki ngJobDetailFactoryBean$MethodInvokingJob.executeIn ternal(MethodInvokingJobDetailFactoryBean.java:224 )
    at org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:529)


    ** END NESTED EXCEPTION **



    Last packet sent to the server was 1 ms ago.
    at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2652)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:15 54)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :1665)
    at com.mysql.jdbc.Connection.execSQL(Connection.java: 3176)
    at com.mysql.jdbc.PreparedStatement.executeInternal(P reparedStatement.java:1153)
    at com.mysql.jdbc.PreparedStatement.executeQuery(Prep aredStatement.java:1266)
    at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement .executeQuery(NewProxyPreparedStatement.java:76)
    at com.scraper.sql.HRPreparedStatement.executeQuery(H RPreparedStatement.java:133)
    at com.scraper.ScrapeRequestHandler.getScrapeRequestD ata(ScrapeRequestHandler.java:1076)
    at com.scraper.AgentInteraction.getScrapeRequestData( AgentInteraction.java:4092)
    at com.scraper.DirectUpdateScheduledAction.getScrapeR equest(DirectUpdateScheduledAction.java:104)
    at com.scraper.DirectUpdateScheduledAction.run(Direct UpdateScheduledAction.java:127)
    at sun.reflect.GeneratedMethodAccessor45.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.util.MethodInvoker.invoke(Meth odInvoker.java:270)
    at org.springframework.scheduling.quartz.MethodInvoki ngJobDetailFactoryBean$MethodInvokingJob.executeIn ternal(MethodInvokingJobDetailFactoryBean.java:224 )
    at org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:529)
    08 Jun 2011 03:20:00,023 DefaultQuartzScheduler_Worker-8 ERROR ScrapeRequestHandler:1148 - Login info not found
    08 Jun 2011 04:40:00,035 DefaultQuartzScheduler_Worker-1 ERROR HRPreparedStatement:135 - error occurred while executing executeQuery()
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

    ** BEGIN NESTED EXCEPTION **

    java.net.SocketException
    MESSAGE: Broken pipe

    STACKTRACE:

    java.net.SocketException: Broken pipe


    Hi can somebody please help me in solving out the above problem
    I am getting this exception not knowing how to handle this exception
    I should be able to handle the exception and the process should continue


    Thanks n Regards
    Raaj


  2. #2
    Junior Member Mrc0d3r's Avatar
    Join Date
    Jun 2011
    Location
    TCP/IP Layer 3
    Posts
    25
    My Mood
    Bored
    Thanks
    0
    Thanked 6 Times in 5 Posts

    Default Re: com.mysql.jdbc.CommunicationsException: Communications link failure due to underl

    java.net.SocketException: Broken pipe generally occurs when you attempt to write into the connection, which has already been closed on the other end. Check your implementation by tracing the exception occurrence line numbers.

Similar Threads

  1. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    By i4ba1 in forum JDBC & Databases
    Replies: 2
    Last Post: August 23rd, 2011, 12:41 PM
  2. com.mysql.jdbc.exceptions.MySQLIntegrityConstraint ViolationException:
    By bobbyraj2003 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: May 25th, 2011, 09:10 AM
  3. [SOLVED] JSCH Auth Failure
    By techwiz24 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 30th, 2011, 05:17 PM
  4. Can Anyone Check This Link
    By arpitgadle in forum Java Servlet
    Replies: 5
    Last Post: October 7th, 2009, 08:56 AM
  5. How to Hyper-link pages together in Java?
    By don.java1 in forum Java Applets
    Replies: 5
    Last Post: July 21st, 2008, 05:09 AM