zoka / ringmon Goto Github PK
View Code? Open in Web Editor NEWA Ring middleware to add a web page with nREPL front end into an existing Clojure application, either web based or not.
A Ring middleware to add a web page with nREPL front end into an existing Clojure application, either web based or not.
I get this stack trace:
org.codehaus.jackson.JsonGenerationException: Cannot JSON encode object of class: class javax.management.ObjectName: java.lang:type=OperatingSystem
at ringmon.json$generate.invoke(json.clj:212)
at ringmon.json$generate.invoke(json.clj:179)
at ringmon.json$generate.invoke(json.clj:179)
at ringmon.json$generate.invoke(json.clj:179)
at ringmon.json$generate_string.doInvoke(json.clj:224)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at ringmon.monitor$ajax.invoke(monitor.clj:190)
at ringmon.monitor$wrap_ajax$fn__3400.invoke(monitor.clj:225)
at ringmon.monitor$wrap_gzip$fn__3377.invoke(monitor.clj:102)
at ringmon.cookies$noir_cookies$fn__2824.invoke(cookies.clj:39)
at ring.middleware.cookies$wrap_cookies$fn__2817.invoke(cookies.clj:150)
at ring.middleware.params$wrap_params$fn__2240.invoke(params.clj:76)
at ring.adapter.jetty$proxy_handler$fn__3517.invoke(jetty.clj:16)
at ring.adapter.jetty.proxy$org.mortbay.jetty.handler.AbstractHandler$0.handle(Unknown Source)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Hi
Thanks for having a look at ringmon.
I have not experienced such an issue both on OS X and when deployed in a Heroku dyno.
In what context have you got this exception?
What happens if you run ringmon standalone within its project as:
lein2 :local-repl true
?
The only problem I used to have with JMX data was caused by a deficiency (in my opinion) within
the clojure/java.jmx as discussed here
That is why I excluded :AllThreadIds
from "java.lang:type=Threading"
mbean before
it was passed to JSON encoder. Conversion of JMX values for other JMX data that ringmon uses
always worked fine, both for clj-json and cheshire. The ringmon now has embedded cherry picked
cheshire 3.0.0 and depends on [org.codehaus.jackson/jackson-core-asl "1.5.0"]
I did it since I needed the cheshire to be able to parse project.clj
, and the cheshire as packaged
(depends on much newer jackson) was then conflicting with noir 2.1 that uses clj-json that also
uses jackson 1.5.0 ...
Regards Zoka
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.