Skip to content

Instantly share code, notes, and snippets.

@neich
neich / pom.xml
Created June 22, 2015 16:49
NPE when executing JAR packaged with Wildfly Swarm Alpha 3
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2015 Red Hat, Inc. and/or its affiliates.
~
~ Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@neich
neich / kk
Created June 22, 2015 17:46
Contents of the -swarm JAR
META-INF/wildfly-swarm-bootstrap.txt
META-INF/wildfly-swarm.properties
META-INF/wildfly-swarm-dependencies.txt
META-INF/MANIFEST.MF
__redirected/__RedirectedUtils$1.class
__redirected/__SAXParserFactory.class
__redirected/__JAXPRedirected.class
__redirected/__XMLEventFactory.class
__redirected/__TransformerFactory.class
__redirected/__RedirectedUtils.class
@neich
neich / coap-debug.js
Created July 17, 2015 10:57
Memory leak when coap request get error
/////
///// Execute with: node --max-old-space-size=6 --max_semi_space_size=1 coap-debug.js
/////
var coap = require('coap')
var count = 0
function get() {
var nErrors = 0
@neich
neich / crash-append-nonobservable.js
Created July 24, 2015 14:25
COAP library crashes when it receives two confimable responses with the same messageId & token
/*
* Copyright (c) 2013-2015 node-coap contributors.
*
* node-coap is licensed under an MIT +no-false-attribs license.
* All rights not explicitly granted in the MIT license are reserved.
* See the included LICENSE file for more details.
*/
var coap = require('../../')
, parse = require('coap-packet').parse
package com.coovol.api.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* Created by imartin on 6/08/15.