Skip to content

Instantly share code, notes, and snippets.

@emetsger
emetsger / raw.log
Created April 15, 2021 14:43
Maven build failure
esm:~/workspaces/pass/nihms-submission-etl/nihms-etl-integration (detached*)*$ mvn -X -e -Ddocker.verbose=all verify
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: /Users/esm/maven-3
Java version: 1.8.0_201, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core
@emetsger
emetsger / pom.xml
Last active February 15, 2019 14:36
Sample docker-maven-plugin configuration
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<images>
<image>
<name>oa-pass/deposit-services-core:%v</name>
</image>
</images>
</configuration>
esm:~ $ cat Desktop/kafka-build-tail.txt
13:54:40.961 [-client-thread | adminclient-1] TRACE [KafkaAdminClient$AdminClientRu] - adminclient-1: entering KafkaClient#poll(timeout=2)
13:54:40.961 [-client-thread | adminclient-1] TRACE [ NetworkClient] - Found least loaded node 127.0.0.1:55383 (id: -1 rack: null)
13:54:40.961 [-client-thread | adminclient-1] DEBUG [NetworkClient$DefaultMetadataU] - Initialize connection to node -1 for sending metadata request
13:54:40.961 [-client-thread | adminclient-1] DEBUG [ NetworkClient] - Initiating connection to node -1 at 127.0.0.1:55383.
13:54:40.962 [-client-thread | adminclient-1] DEBUG [ Selector] - Connection with /127.0.0.1 disconnected
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.kafka.common.network.PlaintextTransportLayer.finishConnect(PlaintextTransportLayer.
# Copyright 2015 Johns Hopkins University
#
# 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 distributed under the License is distributed on an
diff --git a/src/main/java/com/github/jasminb/jsonapi/ResourceConverter.java b/src/main/java/com/github/jasminb/jsonapi/ResourceConverter.java
index d0a7d92..d1a1323 100644
--- a/src/main/java/com/github/jasminb/jsonapi/ResourceConverter.java
+++ b/src/main/java/com/github/jasminb/jsonapi/ResourceConverter.java
@@ -457,8 +457,20 @@ public class ResourceConverter {
if (linkNode != null && ((link = getLink(linkNode)) != null)) {
if (isCollection(relationship)) {
+ final JSONAPIDocument<? extends List<?>> doc =
+ readDocumentCollection(new ByteArrayInputStream(resolver.resolve(link)), type);
@Type("nodes")
public class Node {
// other fields
@Id
private String id;
@Relationship(value = "root", resolve = true)
private Node root;