Skip to content

Instantly share code, notes, and snippets.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/buildbot/worker/jdk11u-dev-linux/build/src/hotspot/share/prims/methodHandles.cpp:317), pid=7910, tid=7911
# assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m()) failed: Should not change after link resolution
#
# JRE version: OpenJDK Runtime Environment (11.0.4) (fastdebug build 11.0.4-testing+0-builds.shipilev.net-openjdk-jdk11-dev-b48-20190426-jdk-11.0.37jdk-11.0.3-ga)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.4-testing+0-builds.shipilev.net-openjdk-jdk11-dev-b48-20190426-jdk-11.0.37jdk-11.0.3-ga, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/bertramn/workspaces/oss/classgraph-issue-341/core.7910)
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000010305ca9b, pid=83655, tid=8451
#
# JRE version: OpenJDK Runtime Environment (11.0.3+7) (build 11.0.3+7-LTS)
# Java VM: OpenJDK 64-Bit Server VM (11.0.3+7-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# V [libjvm.dylib+0x65ca9b] ResolvedMethodTable::add_method(Handle)+0x61
#
@bertramn
bertramn / packer-entrypoint-build.log
Created April 10, 2019 07:29
Packer Log not setting ENTRYPOINT in docker build
2019/04/10 17:16:01 [INFO] Packer version: 1.3.5
2019/04/10 17:16:01 Packer Target OS/Arch: darwin amd64
2019/04/10 17:16:01 Built with Go Version: go1.12
2019/04/10 17:16:01 Detected home directory from env var: /Users/fred
2019/04/10 17:16:01 Using internal plugin for oneandone
2019/04/10 17:16:01 Using internal plugin for virtualbox-iso
2019/04/10 17:16:01 Using internal plugin for digitalocean
2019/04/10 17:16:01 Using internal plugin for file
2019/04/10 17:16:01 Using internal plugin for azure-arm
2019/04/10 17:16:01 Using internal plugin for googlecompute
@bertramn
bertramn / SaxonStreamReaderTest.java
Created January 24, 2019 01:39
Saxon 9.9 StreamReader is broken
package net.sf.saxon;
import com.saxonica.xqj.SaxonXQDataSource;
import net.sf.saxon.om.IgnorableSpaceStrippingRule;
import org.junit.jupiter.api.Test;
import javax.xml.stream.XMLStreamReader;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stax.StAXSource;
import javax.xml.transform.stream.StreamResult;
@bertramn
bertramn / README.md
Last active July 15, 2018 02:36
Zalando Problem dependencies exclusion test

Exclude Findbugs, API Guardian and Google GAG from Runtime

The test class is compiled with all 3 annotation libraries but when running the test class we only supply the problem library on the classpath.

./run.sh

problem: about:blank{200, test problem}
@bertramn
bertramn / CustomUserStorageProviderFactory.java
Last active August 1, 2023 21:03
Keycloak UserStorageProviderFactory with configurable JPA Peristence Context
package com.github.bertramn.keycloak;
import org.keycloak.component.ComponentModel;
import org.keycloak.component.ComponentValidationException;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.RealmModel;
import org.keycloak.provider.ProviderConfigProperty;
import org.keycloak.provider.ProviderConfigurationBuilder;
import org.keycloak.storage.UserStorageProviderFactory;
@bertramn
bertramn / jasypt.py
Created December 26, 2017 15:09
Jasypt/Bouncycastle PBEWITHSHA256AND256BITAES-CBC-BC en/decryption in Python
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
from abc import ABCMeta
from array import array
from base64 import b64encode, b64decode
from Crypto import Random
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
@bertramn
bertramn / iam_role.py
Created December 1, 2017 00:30
Modified Ansible iam_role module to allow creation of roles without instance profile
#!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@bertramn
bertramn / syslog.java
Created May 27, 2016 01:28
simple syslog implementation for jython (requires UDP to be enabled in rsyslog)
/**
* Copyright (C) 2007 Matt Shelton.
*
* @author Matt Shelton <[email protected]>
* @version $Id$
*/
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;