B4J Question MQTT Broker and port 8080

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
I have a question on a conflict (not sure) with Mqtt and mysql.
The port setting for Mqtt is "6000" but on the Log i see also this
(Server binded host: 0.0.0.0, port: 8080):
B4X:
Waiting for debugger to connect...
Program started.
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Emulated network latency: 100ms
Persistent store file: F:\PROGET~1\PROVA~1\PC-GES~2\Objects\moquette_store.mapdb
Starting without ACL definition
Server binded host: 0.0.0.0, port: 6000
Server binded host: 0.0.0.0, port: 8080
Error occurred on line: 13 (conn1)
java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:478)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1021)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:455)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:440)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:844)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:197)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:350)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    at java.lang.Thread.run(Thread.java:745)
Received a message of type CONNECT
onEvent processing messaging event from input ringbuffer ProtocolEvent wrapping CONNECT
cleaning old saved subscriptions for client <2>
Create persistent session for clientID <2>
Connected client ID <2> with clean session true
Received a message of type SUBSCRIBE
onEvent processing messaging event from input ringbuffer ProtocolEvent wrapping SUBSCRIBE
<2> subscribed to topic <Receive2> with QoS 0 - MOST_ONE
decode invoked with buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 124, cap: 512)
Received a message of type PUBLISH
onEvent processing messaging event from input ringbuffer ProtocolEvent wrapping PUBLISH
PUBLISH from clientID <2> on topic <Send2> with QoS LEAST_ONE
decode invoked with buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 124, cap: 512)
..............
..............

The port 8080 is also used from mqtt broker?
Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…