Giter Site home page Giter Site logo

idigi-java-monitor-api's People

Contributors

jfocht avatar jordanh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jfocht

idigi-java-monitor-api's Issues

Override annotation on interface methods

Using the Override annotation breaks backwards compatibility with the 1.5 compiler. Removing them is all it will take to support this. Nice since some IDEs use 1.5 compliance level.

Connection lost

After the code runs for a day or two, it stops working. The log shows the following error before the connection is closed:
"javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?"

We've got two monitor ID's setup for this process, and while the monitoring code hasn't been changed, we've added a function call inside MessageListener.messageReceived to push new readings into our database server.

You may see the log below:

17:19:22.684 [New I/O client worker #2-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x******1, /106.187.46.198:57706 => developer.idigi.com/50.56.41.153:3201] RECEIVED: BigEndianHeapChannelBuffer(ridx=0, widx=600, cap=600) - (HEXDUMP: ...)
17:19:22.684 [New I/O client worker #2-1] DEBUG c.i.a.m.n.MessageDataBlockDecoder - Decoding PublishMesssage
17:19:22.685 [New I/O client worker #2-1] DEBUG c.i.a.m.n.PublishMessageResponder - Sending publish message response.
17:19:22.685 [New I/O client worker #2-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x**
_1, /106.187.46.198:57706 => developer.idigi.com/50.56.41.153:3201] WRITE: ByteBufferBackedChannelBuffer(ridx=0, widx=10, cap=10) - (HEXDUMP: 0004000000045ae900c8)
17:19:22.685 [New I/O client worker #2-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
_
_1, /106.187.46.198:57706 => developer.idigi.com/50.56.41.153:3201] WRITTEN_AMOUNT: 35
17:19:25.812 [New I/O client worker #1-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
*_2, /106.187.46.198:57704 => developer.idigi.com/50.56.41.153:3201] RECEIVED: BigEndianHeapChannelBuffer(ridx=0, widx=598, cap=598) - (HEXDUMP:...)
17:19:25.812 [New I/O client worker #1-1] DEBUG c.i.a.m.n.MessageDataBlockDecoder - Decoding PublishMesssage
17:19:25.813 [New I/O client worker #1-1] DEBUG c.i.a.m.n.PublishMessageResponder - Sending publish message response.
17:19:25.813 [New I/O client worker #1-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
_2, /106.187.46.198:57704 => developer.idigi.com/50.56.41.153:3201] WRITE: ByteBufferBackedChannelBuffer(ridx=0, widx=10, cap=10) - (HEXDUMP: 000400000004768700c8)
17:19:25.814 [New I/O client worker #1-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
_
_2, /106.187.46.198:57704 => developer.idigi.com/50.56.41.153:3201] WRITTEN_AMOUNT: 35
17:19:29.918 [New I/O client worker #2-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
*_1, /106.187.46.198:57706 :> developer.idigi.com/50.56.41.153:3201] DISCONNECTED
17:19:29.919 [New I/O client worker #2-1] DEBUG c.i.a.m.n.MessageDataBlockDecoder - Decoding PublishMesssage
17:19:30.074 [New I/O client worker #2-1] DEBUG o.jboss.netty.handler.ssl.SslHandler - Failed to clean up SSLEngine.
javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[na:1.7.0_04]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1639) ~[na:1.7.0_04]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1607) ~[na:1.7.0_04]
at sun.security.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1537) ~[na:1.7.0_04]
at org.jboss.netty.handler.ssl.SslHandler.channelDisconnected(SslHandler.java:512) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:354) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.close(NioWorker.java:589) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:350) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194) ~[netty-3.3.1.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_04]
17:19:30.074 [New I/O client worker #2-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
_1, /106.187.46.198:57706 :> developer.idigi.com/50.56.41.153:3201] UNBOUND
17:19:30.075 [New I/O client worker #2-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
_
_1, /106.187.46.198:57706 :> developer.idigi.com/50.56.41.153:3201] CLOSED
17:21:33.487 [New I/O client worker #1-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
*_2, /106.187.46.198:57704 :> developer.idigi.com/50.56.41.153:3201] DISCONNECTED
17:21:33.487 [New I/O client worker #1-1] DEBUG c.i.a.m.n.MessageDataBlockDecoder - Decoding PublishMesssage
17:21:33.489 [New I/O client worker #1-1] DEBUG o.jboss.netty.handler.ssl.SslHandler - Failed to clean up SSLEngine.
javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[na:1.7.0_04]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1639) ~[na:1.7.0_04]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1607) ~[na:1.7.0_04]
at sun.security.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1537) ~[na:1.7.0_04]
at org.jboss.netty.handler.ssl.SslHandler.channelDisconnected(SslHandler.java:512) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:354) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.close(NioWorker.java:589) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:350) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:274) ~[netty-3.3.1.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:194) ~[netty-3.3.1.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_04]
17:21:33.489 [New I/O client worker #1-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
*_2, /106.187.46.198:57704 :> developer.idigi.com/50.56.41.153:3201] UNBOUND
17:21:33.489 [New I/O client worker #1-1] DEBUG com.idigi.api.monitor.netty.Logging - [id: 0x
_****2, /106.187.46.198:57704 :> developer.idigi.com/50.56.41.153:3201] CLOSED

Upload to Maven repository

It would be convenient if the library could be uploaded to the maven central repository for dependency management with existing projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.