Skip to content

Instantly share code, notes, and snippets.

View sebastienblanc's full-sized avatar

Sebastien Blanc sebastienblanc

View GitHub Profile
Error: Unsupported features in 2 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: okio.BufferedSource.getBuffer(). To diagnose the issue you can use the --allow-incomplete-classpath option. The missing method is then reported at run time when it is accessed the first time.
Trace:
at parsing okhttp3.internal.connection.RealConnection.createTunnel(RealConnection.java:411)
Call path from entry point to okhttp3.internal.connection.RealConnection.createTunnel(int, int, Request, HttpUrl):
at okhttp3.internal.connection.RealConnection.createTunnel(RealConnection.java:393)
at okhttp3.internal.connection.RealConnection.connectTunnel(RealConnection.java:236)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:177)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
// code credit: https://www.youtube.com/watch?v=mjfgGJHAuvI
// References:
// - https://docs.oracle.com/javase/8/javafx/api/
//DEPS org.openjfx:javafx-controls:11.0.2:${os.detected.jfxname}
//DEPS org.openjfx:javafx-graphics:11.0.2:${os.detected.jfxname}
//DEPS io.fabric8:kubernetes-client:4.12.0
package jbang.snake;
2020/10/09 16:10:26 http: panic serving 192.168.1.11:52089: runtime error: index out of range [5] with length 4
goroutine 22 [running]:
net/http.(*conn).serve.func1(0xc000341b80)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x1520f60, 0xc0006f1440)
/usr/local/go/src/runtime/panic.go:975 +0x3e9
main.ReconcileKubetoMC.func1(0xc00003c330)
/app/kubecraftadmin.go:42 +0x1f06
reflect.Value.call(0x1401700, 0xc000292a60, 0x13, 0x15e6cfb, 0x4, 0xc00067b7e8, 0x1, 0x1, 0x13c9a60, 0xc0001e2028, ...)
/usr/local/go/src/reflect/value.go:475 +0x8c7
//usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 15
//JAVAC_OPTIONS --enable-preview -source 15
//JAVA_OPTIONS --enable-preview
record Point(int x, int y) {}
sealed interface Shape
permits Circle, Rectangle {
@sebastienblanc
sebastienblanc / records.jsh
Created September 1, 2020 15:31
Showing Java Record
//usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 14
//JAVAC_OPTIONS --enable-preview -source 14
//JAVA_OPTIONS --enable-preview
public record Pet(String name, int age) {}
var pet = new Pet("Nuage",6);
System.out.println(pet);
/exit
Added 'admin' to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json', restart server to load user
-b 0.0.0.0
/opt/jboss/tools/docker-entrypoint.sh: line 138: append_port_db_addr: command not found
=========================================================================
Using PostgreSQL database
=========================================================================
07:57:07,131 INFO [org.jboss.modules] (CLI command executor) JBoss Modules version 1.9.1.Final
Error: Error compiling query code (in /tmp/SVM-7967788261001287877/PosixDirectives.c). Compiler command gcc /tmp/SVM-7967788261001287877/PosixDirectives.c -o /tmp/SVM-7967788261001287877/PosixDirectives output included error: /tmp/SVM-7967788261001287877/PosixDirectives.c:1822:101: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGRARP’?
method com.oracle.svm.core.posix.headers.Unistd._SC_XOPEN_XCU_VERSION()
C file contents around line 1822:
/tmp/SVM-7967788261001287877/PosixDirectives.c:1821: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:_SC_XOPEN_XCU_VERSION:PropertyInfo:value=%lX\n", _SC_XOPEN_XCU_VERSION);
/tmp/SVM-7967788261001287877/PosixDirectives.c:1822: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:SIOCGSTAMP:PropertyInfo:size=%lu\n", sizeof(SIOCGSTAMP));
/tmp/SVM-7967788261001287877/PosixDirectives.c:1823: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:SIOCGSTAMP:PropertyInfo:signedness=$%s$\n", (IS_CONST_UNSIGNED(SIOCGS
Request headers :
POST /app-profile-jsp/profile.jsp HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 17
Cache-Control: max-age=0
Origin: http://localhost:8080
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36
2019-03-08 18:49:47,239 DEBUG [io.sma.jwt.aut.pri.KeyLocationResolver] (XNIO-1 task-1) Failed to read location as JWK(S): java.security.NoSuchAlgorithmException: RSA KeyFactory not available
at java.security.KeyFactory.<init>(KeyFactory.java:138)
at java.security.KeyFactory.getInstance(KeyFactory.java:172)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.tryAsJWKx(KeyLocationResolver.java:113)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.resolveKey(KeyLocationResolver.java:68)
at org.jose4j.jwt.consumer.JwtConsumer.processContext(JwtConsumer.java:205)
at org.jose4j.jwt.consumer.JwtConsumer.process(JwtConsumer.java:416)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator.validate(MpJwtValidator.java:84)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator_ClientProxy.validate(Unknown Source)
at org.wildfly.security.auth.realm.token.TokenSecurityRealm$TokenRealmIdentity.validateToken(TokenSecurityRealm.java:207)
2019-03-08 18:29:38,549 DEBUG [io.sma.jwt.aut.pri.KeyLocationResolver] (XNIO-1 task-1) Failed to read location as JWK(S): javax.json.stream.JsonParsingException: JsonParser#getObject() or JsonParser#getObjectStream() is valid only for START_OBJECT parser state. But current parser state is VALUE_NUMBER
at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:114)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.tryAsJWKx(KeyLocationResolver.java:98)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.resolveKey(KeyLocationResolver.java:68)
at org.jose4j.jwt.consumer.JwtConsumer.processContext(JwtConsumer.java:205)
at org.jose4j.jwt.consumer.JwtConsumer.process(JwtConsumer.java:416)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator.validate(MpJwtValidator.java:84)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator_ClientProxy.validate(Unknown Source)
at org.wildfly.security.auth.realm.token.TokenSecurityRealm$TokenRealmIdentity.validateToken(TokenSecurityRealm.java:207)
at or