Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-871

No errors in Shell when creating stream with HTTP Source + already used port

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: M4
    • Component/s: CLI, Runtime
    • Labels:
      None
    • Story Points:
      4
    • Rank (Obsolete):
      1155
    • Sprint:
      Sprint 18

      Description

      2 issues exist:

      1)

      Current this does not create an error in the shell

      stream create --name s1 --definition "http | log"
      stream create --name s2 --definition "http | log"
      

      On the server-side I see:

      Caused by: java.net.BindException: Address already in use
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:344)
      	at sun.nio.ch.Net.bind(Net.java:336)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
      	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)
      	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)
      	at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
      	... 3 more
      

      2)
      The Stream should not be saved to the StreamDefinitionRepo in case of an error.

        Attachments

          Activity

            People

            Assignee:
            dturanski David Turanski
            Reporter:
            hillert Gunnar Hillert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: