Skip to content

Instantly share code, notes, and snippets.

View kwando's full-sized avatar
🦀

Hannes Nevalainen kwando

🦀
View GitHub Profile
class MessagingStatsService
include TorqueBox::Injectors
def start
Thread.new do
until @done
queues.each do |queue|
counter = org.hornetq.api.core.management.MessageCounterInfo.from_json(queue.list_message_counter)
puts "Queue #{queue.name} count: #{counter.count} countDelta: #{counter.count_delta} depth: #{counter.depth} depth_delta: #{counter.depth_delta}"
sleep 10
end
@kwando
kwando / gist:6775288
Created October 1, 2013 08:13
jME 3.0 startup log, hanging on "Starting modules"
-------------------------------------------------------------------------------
>Log Session: Tuesday, October 1, 2013 9:57:48 AM CEST
>System Info:
Product Version = jMonkeyEngine SDK 3.0
Operating System = Mac OS X version 10.8.5 running on x86_64
Java; VM; Vendor = 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_11-b21
Java Home = /Applications/jMonkeyPlatform_3.0.app/Contents/Resources/jMonkeyPlatform/jdk/jre
System Locale; Encoding = sv_SE (jmonkeyplatform); US-ASCII
Home Directory = /Users/kwando
@kwando
kwando / jruby build log
Created October 10, 2013 07:02
Build failure for jruby
[$ ~/projects/jruby#master$]>:mvn -e -X
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre
Default locale: sv_SE, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/kwando/.m2/settings.xml
@kwando
kwando / gist:7527464
Created November 18, 2013 13:07
Auto updating shaders..
package mygame;
import com.jme3.app.SimpleApplication;
import com.jme3.asset.DesktopAssetManager;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Geometry;
import com.jme3.scene.Spatial;
@kwando
kwando / gist:7805859
Created December 5, 2013 14:24
torqbox error
[ERROR] io.undertow.request - Blocking request failed HttpServerExchange{ GET /}
org.xnio.channels.FixedLengthUnderflowException: 23636 bytes remaining
at io.undertow.conduits.FixedLengthStreamSinkConduit.terminateWrites(FixedLengthStreamSinkConduit.java:200)
at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178)
at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:77)
at io.undertow.io.UndertowOutputStream.close(UndertowOutputStream.java:317)
at org.projectodd.wunderboss.ruby.rack.RackHandler.handleRequest(RackHandler.java:49)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:139)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:638)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
@kwando
kwando / gist:8706086
Created January 30, 2014 10:40
jME SDK NPE
SEVERE [org.openide.util.Exceptions]
com.jme3.asset.AssetNotFoundException: /Users/kwando/projects/jme/BasicGame1/newfilter.j3f
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:283)
[catch] at com.jme3.gde.core.assets.AssetDataObject.loadAsset(AssetDataObject.java:193)
at com.jme3.gde.core.assets.FilterDataObject.loadAsset(FilterDataObject.java:55)
at com.jme3.gde.core.filters.FilterPostProcessorNode.getFilterPostProcessor(FilterPostProcessorNode.java:93)
at com.jme3.gde.core.filters.FilterPostProcessorNode$FilterChildren$1.call(FilterPostProcessorNode.java:205)
at com.jme3.gde.core.filters.FilterPostProcessorNode$FilterChildren$1.call(FilterPostProcessorNode.java:201)
at com.jme3.app.AppTask.invoke(AppTask.java:142)
at com.jme3.app.Application.runQueuedTasks(Application.java:583)
class Element
def initialize(tag_name)
@tag_name = tag_name
@classes = []
end
def tag_name
@tag_name
end
IP: 89.253.118.10
Port: 4567
UserName: <empty>
Password: <empty>
File Path: http://89.253.118.10:4567/new_orders/123456
Callback Path: http://89.253.10:4567/callback?
@kwando
kwando / gist:9971023
Created April 4, 2014 09:18
Java::JavaLang::NegativeArraySizeException
Started GET "/api/objects?api_key=fb5b2a908125868a6d08122a51066dfe3ed54272" for 127.0.0.1 at 2014-04-04 11:16:47 +0200
Processing by WebApi::ObjectsController#index as HTML
Parameters: {"api_key"=>"fb5b2a908125868a6d08122a51066dfe3ed54272"}
Completed 500 Internal Server Error in 125.0ms
Java::JavaLang::NegativeArraySizeException ():
json.ext.Utils.repeat(Utils.java:83)
json.ext.Utils.repeat(Utils.java:77)
json.ext.Generator$5.generate(Generator.java:364)
json.ext.Generator$5.generate(Generator.java:309)
@kwando
kwando / gist:11352928
Created April 27, 2014 18:56
Files with CRLF
./.gitignore: ASCII text, with CRLF line terminators
./CRLF.files: empty
./gradlew.bat: ASCII English text, with CRLF line terminators
./jme3-android/build/tmp/jar/MANIFEST.MF: ASCII text, with CRLF line terminators
./jme3-android/build/tmp/sourcesJar/MANIFEST.MF: ASCII text, with CRLF line terminators
./jme3-android/src/main/java/com/jme3/app/AndroidHarness.java: ASCII Java program text, with CRLF line terminators
./jme3-android/src/main/java/com/jme3/app/R.java: ASCII c program text, with CRLF line terminators
./jme3-android/src/main/java/com/jme3/asset/AndroidAssetManager.java: ASCII c program text, with CRLF line terminators
./jme3-android/src/main/java/com/jme3/audio/android/AL.java: ASCII C++ program text, with CRLF line terminators
./jme3-android/src/main/java/com/jme3/audio/android/AndroidAudioData.java: ASCII Java program text, with CRLF line terminators