Skip to content

Instantly share code, notes, and snippets.

John Casey jdcasey

Block or report user

Report or block jdcasey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jdcasey
jdcasey / config.yml.j2
Created Aug 16, 2019
netmeter configuration
View config.yml.j2
---
prefix: {{ node_prefix }}
delay: {{ metric_delay }}
{% if direct_carbon_metrics %}
send: carbon
carbon:
host: {{ graph_server }}
port: 2023
{% else %}
View ispn 9.4.7.Final simple file store error
2019-02-27 20:50:49.826 [ERROR] [main] o.i.i.i.InvocationContextInterceptor - ISPN000136: Error executing command PutKeyValueCommand, writing keys [TrackingKey [build-13281]]
org.infinispan.persistence.spi.StoreUnavailableException: Store org.infinispan.persistence.file.SingleFileStore@2567c091 is unavailable
at org.infinispan.persistence.manager.PersistenceManagerImpl.pollStoreAvailability(PersistenceManagerImpl.java:198)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
View ispn-jdbc-key-problem
```
ISPN000136: Error executing command GetKeyValueCommand, writing keys []
org.infinispan.persistence.keymappers.UnsupportedKeyTypeException: Unsupported key type: 'org.infinispan.commons.marshall.WrappedByteArray' on key: WrappedByteArray{bytes=[B0x0503040A00000032..[173], hashCode=-1848334903}
at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.key2Str(JdbcStringBasedStore.java:735)
at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.load(JdbcStringBasedStore.java:352)
at org.infinispan.persistence.support.DelegatingCacheLoader.load(DelegatingCacheLoader.java:48)
at org.infinispan.persistence.async.AsyncCacheLoader.load(AsyncCacheLoader.java:45)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStores(PersistenceManagerImpl.java:645)
at org.infinispan.persistence.internal.PersistenceUtil.loadAndCheckExpiration(PersistenceUtil.java:139)
at org.infinispan.persistence.internal.PersistenceUtil.lambda$loadAndComputeInDataContainer$0(PersistenceUtil.ja
@jdcasey
jdcasey / AddRemoteRepoThenModifyAndGenerateDiffEventTest.java
Created Dec 7, 2018
test class and DTO for sending repository changelog to Elasticsearch
View AddRemoteRepoThenModifyAndGenerateDiffEventTest.java
/**
* Copyright (C) 2011-2018 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jdcasey
jdcasey / ThreadContext_EscapingResourceTest
Created Jan 25, 2018
test that demonstrates resources escaping control of weft ThreadContext
View ThreadContext_EscapingResourceTest
package org.commonjava.cdi.util.weft;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
@jdcasey
jdcasey / git-bisect.log.md
Created Jul 29, 2016
OctoPrint-1.2.14-git-bisect-for-1423
View git-bisect.log.md

Notes

AT: 0fec3aeca956054f220763c3bb5e90b5c4de8c25

Started print, and it started heating up. I thought it was working fine since 1.2.14 wouldn't even display the temperature curves after hitting Print. However, after canceling the temperatures continued to ramp up no matter that I tried to set them to off, and then to 0. I had to reset the RAMPS board, and unplugged/reconnected the arduino to the Pi to be safe.

I think this might be a bug that's unrelated to the one we're pursuing. Probably worth testing when we reach a stable point again.

I retried the print, this time letting it go through, and it started printing fine. I canceled the print, and the temperatures fell off on a curve like you'd expect.

View octoprint-1.2.13-terminal.log
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Changing monitoring state from 'Operational' to 'Printing'
Send: N0 M110 N0*125
Recv: ok
View octoprint-serial-error.log
Recv: �����is not Last Line Number+1, Last Line: 2
Recv: Resend: 3
Recv: ok
Send: N3 T0*57
Recv: echo:Unknown command: ""
Recv: ok
Send: N4 M190 S70.0*69
Recv: Z�Y.J��not Last Line Number+1, Last Line: 2
Recv: Resend: 3
Recv: ok
@jdcasey
jdcasey / DockerKojiClientTest.java
Created Jan 8, 2016
example using jhttpc and causeway's koji client to talk to koji.
View DockerKojiClientTest.java
/**
* Copyright (C) 2015 Red Hat, Inc. (jdcasey@commonjava.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jdcasey
jdcasey / Gist.java
Created Aug 19, 2015
Examples for using Cartographer via AProx depgraph add-on and the AProx Java client API.
View Gist.java
/**
* Copyright (C) 2011 Red Hat, Inc. (jdcasey@commonjava.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
You can’t perform that action at this time.