This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Get("/list{/offset}{/max}") | |
| List<Person> getPersons(@Nullable Optional<Integer> offset, @Nullable Optional<Integer> max) { | |
| if( offset && max ) { | |
| return personService.findAll([offset: offset.get(), max: max.get()]) | |
| } | |
| else { | |
| return personService.findAll() | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Get("/get/{id}") | |
| Person getPerson(int id) { | |
| return personService.find(id) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Delete("/delete/{id}") | |
| HttpResponse<Map> deletePerson(Long id) { | |
| try { | |
| return HttpResponse.ok( [person: personService.delete(id), deleted: true] as Map ) | |
| } | |
| catch(e) { | |
| return HttpResponse.unprocessableEntity().body( | |
| [ | |
| message: "Could not delete person with ID: ${id}" | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java -jar \ ✹master | |
| -Doracle.net.tns_admin="/wallet" \ | |
| -Djavax.net.ssl.trustStore="/wallet/truststore.jks" \ | |
| -Djavax.net.ssl.trustStorePassword=${TRUSTSTORE_PASSWORD} \ | |
| -Djavax.net.ssl.keyStore="/wallet/keystore.jks" \ | |
| -Djavax.net.ssl.keyStorePassword=${KEYSTORE_PASSWORD} \ | |
| -Doracle.net.ssl_server_dn_match=true \ | |
| -Doracle.net.ssl_version="1.2" \ | |
| -DdataSource.username=${ORACLE_USERNAME} \ | |
| -DdataSource.password=${ORACLE_PASSWORD} \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java -jar \ ✹master | |
| -Doracle.net.tns_admin="/wallet" \ | |
| -Djavax.net.ssl.trustStore="/wallet/truststore.jks" \ | |
| -Djavax.net.ssl.trustStorePassword=${TRUSTSTORE_PASSWORD} \ | |
| -Djavax.net.ssl.keyStore="/wallet/keystore.jks" \ | |
| -Djavax.net.ssl.keyStorePassword=${KEYSTORE_PASSWORD} \ | |
| -Doracle.net.ssl_server_dn_match=true \ | |
| -Doracle.net.ssl_version="1.2" \ | |
| -DdataSource.username=${ORACLE_USERNAME} \ | |
| -DdataSource.password=${ORACLE_PASSWORD} \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ scp -i ~/.ssh/id_oci_demo -r ~/Projects/scratch/micronaut/demo/build/libs/micronaut-atp-demo-0.1.jar [email protected]: | |
| $ scp -i ~/.ssh/id_oci_demo -r ~/Projects/scratch/micronaut/demo/*.sh [email protected]: | |
| $ scp -i ~/.ssh/id_oci_demo -r /wallet [email protected]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export TRUSTSTORE_PASSWORD=[password] | |
| export KEYSTORE_PASSWORD=[password] | |
| export ORACLE_PASSWORD=[password] | |
| export ORACLE_USERNAME=[user] | |
| export DB_URL=jdbc:oracle:thin:@barnevents_low?TNS_ADMIN=/wallet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 17:09:44.652 [nioEventLoopGroup-2-2] DEBUG i.m.h.server.netty.NettyHttpServer - Server localhost:8080 Received Request: GET /person/42 | |
| 17:09:44.652 [nioEventLoopGroup-2-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matching route GET - /person/42 | |
| 17:09:44.653 [nioEventLoopGroup-2-2] DEBUG i.m.h.s.netty.RoutingInBoundHandler - Matched route GET - /person/42 to controller class codes.recursive.controller.$PersonControllerDefinition$Intercepted | |
| 17:09:44.654 [nioEventLoopGroup-2-2] TRACE i.m.context.DefaultBeanContext - Looking up existing bean for key: io.micronaut.http.server.context.ServerRequestContextFilter | |
| 17:09:44.654 [nioEventLoopGroup-2-2] TRACE i.m.context.DefaultBeanContext - No existing bean found for bean key: io.micronaut.http.server.context.ServerRequestContextFilter | |
| 17:09:44.654 [nioEventLoopGroup-2-2] DEBUG i.m.context.DefaultBeanContext - Finding candidate beans for type: class io.micronaut.http.server.context.ServerRequestContextFilter | |
| 17:09:44.654 [nioEventLoopGroup-2-2] DEBUG i.m.context.Def |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trsharp@MacBook-Pro-2 /projects/frameworks/graal/vm$ mx --env libgraal build master | |
| build: Checking SubstrateVM requirements for building ... | |
| Write file /Users/trsharp/Projects/frameworks/graal/substratevm/src/com.oracle.svm.driver/resources/graal-compiler-flags-11.config | |
| Write file /Users/trsharp/Projects/frameworks/graal/substratevm/src/com.oracle.svm.driver/resources/graal-compiler-flags-1.8.config | |
| JAVA_HOME: /Users/trsharp/.sdkman/candidates/java/8.0.202-jvmci | |
| EXTRA_JAVA_HOMES: | |
| Dependencies removed from build: | |
| project com.oracle.truffle.dsl.processor.jdk9 was removed as JDK 9 is not available | |
| project jdk.tools.jaotc.binformat was removed as JDK 11 is not available |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # A fatal error has been detected by the Java Runtime Environment: | |
| # | |
| # Internal Error (/Users/graal/slave/e/main/graal-jvmci-8/src/share/vm/gc_interface/collectedHeap.cpp:252), pid=88320, tid=0x0000000000004013 | |
| # assert(!thread->has_pending_exception()) failed: shouldn't be allocating with pending exception | |
| # | |
| # JRE version: OpenJDK Runtime Environment (8.0_202-b08) (build 1.8.0_202-20190206132754.buildslave.jdk8u-src-tar--b08) | |
| # Java VM: OpenJDK GraalVM LIBGRAAL 1.0.0-rc18-dev (25.202-b08-jvmci-0.59-fastdebug mixed mode bsd-amd64 compressed oops) | |
| # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again | |
| # |