Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-2131

Exception with "Discarding connection." message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      Today our build started to throw strange exceptions during gradle build (this one never happened before). If I run build with debug messaging turned on I see lots of following messages:

      TRACE - 28 Feb 02012 12:48:44.348 - Outgoing Connection [3443153e-30fc-4a50-b9c4-f430632aa45c port:53113, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]]:0 worker - org.hibernate.type.descriptor.sql.BasicBinder | binding parameter [1] as [BOOLEAN] - true
      TRACE - 28 Feb 02012 12:48:44.348 - Outgoing Connection [3443153e-30fc-4a50-b9c4-f430632aa45c port:53113, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]]:0 worker - org.hibernate.type.descriptor.sql.BasicBinder | binding parameter [2] as [VARCHAR] -
      TRACE - 28 Feb 02012 12:48:44.349 - Outgoing Connection [3443153e-30fc-4a50-b9c4-f430632aa45c port:53113, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]]:0 worker - org.hibernate.type.EnumType | Binding

      {0}

      to parameter: 3

      Which eventually leads to following exception:

      Could not receive message from connection. Discarding connection.
      org.gradle.messaging.remote.internal.MessageIOException: Could not read message from '/0:0:0:0:0:0:0:1:59280'.
      at org.gradle.messaging.remote.internal.inet.SocketConnection.receive(SocketConnection.java:81)
      at org.gradle.messaging.remote.internal.DelegatingConnection.receive(DelegatingConnection.java:31)
      at org.gradle.messaging.remote.internal.MessageHub$EndOfStreamConnection.receive(MessageHub.java:210)
      at org.gradle.messaging.remote.internal.MessageHub$EndOfStreamConnection.receive(MessageHub.java:195)
      at org.gradle.messaging.remote.internal.AsyncConnectionAdapter$ConnectionReceive.receive(AsyncConnectionAdapter.java:77)
      at org.gradle.messaging.dispatch.AsyncReceive.receiveMessages(AsyncReceive.java:142)
      at org.gradle.messaging.dispatch.AsyncReceive.access$000(AsyncReceive.java:36)
      at org.gradle.messaging.dispatch.AsyncReceive$1.run(AsyncReceive.java:88)
      at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.ClassCastException: cannot assign instance of org.gradle.messaging.remote.internal.PlaceholderException to field java.sql.SQLException.next of type java.sql.SQLException in instance of java.sql.BatchUpdateException
      at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2039)
      at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1952)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.read(Message.java:93)
      at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.getCause(Message.java:121)
      at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.read(Message.java:80)
      at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectInputStream.resolveObject(Message.java:158)
      at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1376)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1666)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1322)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      at org.gradle.messaging.remote.internal.Message.receive(Message.java:38)
      at org.gradle.messaging.remote.internal.DefaultMessageSerializer.read(DefaultMessageSerializer.java:31)
      at org.gradle.messaging.remote.internal.inet.SocketConnection.receive(SocketConnection.java:76)
      ... 11 more

      Anyone ever happend to have the same issue ?

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            forums Gradle Forums
            Votes:
            13 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: