Skip to content

Instantly share code, notes, and snippets.

View dularion's full-sized avatar

Antonia Engfors dularion

View GitHub Profile
@dularion
dularion / hs_err_pid93648.log
Created November 19, 2020 19:51
Spring loaded Crash report
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=93648, tid=0x0000000000014a03
#
# JRE version: OpenJDK Runtime Environment (Zulu 8.42.0.21-CA-macosx) (8.0_232-b18) (build 1.8.0_232-b18)
# Java VM: OpenJDK 64-Bit Server VM (25.232-b18 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
@dularion
dularion / kcenter
Last active October 26, 2020 20:09
server {
server_name next.relaxx.center;
client_max_body_size 128g; # allows larger files (like videos) to be uploaded.
root /data/kcenter/kcenter-html;
# location / {
proxy_set_header Host $host;
server {
server_name kundenbereich.next.relaxx.center;
root /data/kcenter/relaxx-dialog;
location / {
try_files $uri /index.html?$args;
}
org.hibernate.HibernateException: HHH000142: Bytecode enhancement failed: kcenter.Client
at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory.getProxy(ByteBuddyProxyFactory.java:102)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:732)
at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:5007)
at org.hibernate.event.internal.DefaultLoadEventListener.createProxy(DefaultLoadEventListener.java:427)
at org.hibernate.event.internal.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:418)
at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:326)
at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:108)
at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:74)
at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListener
package mustangtest;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import org.mustangproject.ZUGFeRD.IZUGFeRDAllowanceCharge;
import org.mustangproject.ZUGFeRD.IZUGFeRDExportableContact;
[
{
"name":"PIZZA ca. 30 cm",
"machineName":"pizza",
"items":[
{
"number":"04",
"name":"Pizza Regina Margherita ***",
"price":"5,40 €",
"subtitle":"Tomaten, Mozzarella, Basilico (17,20)"
@dularion
dularion / UserRegistration.groovy
Last active August 30, 2019 22:20
Grails user registration
def registrationData = request.JSON
List errors = []
if (!registrationData.email) {
errors.add('email')
}
if (User.countByUsername(registrationData.email) > 0) {
errors.add('duplicate')
}
package project
import grails.converters.JSON
import grails.plugin.springsecurity.SpringSecurityUtils
import grails.plugin.springsecurity.userdetails.GrailsUser
import grails.plugin.springsecurity.userdetails.GrailsUserDetailsService
import grails.plugin.springsecurity.userdetails.NoStackUsernameNotFoundException
import grails.transaction.Transactional
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory
@dularion
dularion / resource.groovy
Last active August 27, 2017 13:11
located under conf/spring/resources.groovy
import grails.util.Environment
import kcenter.CustomEventListenerMethodProcessor
import kcenter.DaoLdapAuthenticationProvider
import kcenter.DaoLdapUserDetailsService
import kcenter.LdapConnectionService
import kcenter.SessionEventListenerBean
import kcenter.json.JsonDataBindingListener
// Place your Spring DSL code here
beans = {
package project
import grails.transaction.Transactional
import org.springframework.security.authentication.BadCredentialsException
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.springframework.security.authentication.dao.DaoAuthenticationProvider
import org.springframework.security.core.AuthenticationException
import org.springframework.security.core.userdetails.UserDetails
class DaoLdapAuthenticationProvider extends DaoAuthenticationProvider {