Skip to content

Instantly share code, notes, and snippets.

[12:15:19] (angular6) gba_to6
// ♥ ./mvnw
[INFO] Scanning for projects...
[INFO]
[INFO] -------< org.exampleapps.greatbig:great-big-example-application >-------
[INFO] Building Great Big Example Application 0.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.0.4.RELEASE:run (default-cli) > test-compile @ great-big-example-application >>>
[INFO]
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.exampleapps.greatbig</groupId>
<artifactId>great-big-example-application</artifactId>
<version>0.0.0</version>
<packaging>war</packaging>
<name>Great Big Example Application</name>
@dancancro
dancancro / gist:0e124a59822968ed5779bb3464dc9a15
Created October 14, 2018 15:41
Broken com.fasterxml.jackson.databind.deser.SettableBeanProperty constructor
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.deser.SettableBeanProperty.<init>(Lcom/fasterxml/jackson/databind/deser/SettableBeanProperty;Lcom/fasterxml/jackson/databind/JsonDeserializer;)V
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1006)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$Fi
2017-08-27 22:58:39.052 ERROR 76105 --- [nio-8080-exec-4] io.realworld.jwt.ApiKeySecuredAspect : ERROR accessing resource
2017-08-27 22:58:39.065 ERROR 76105 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.VerifyError: Uninitialized object exists on backward branch 82
Exception Details:
Location:
io/realworld/model/inout/Article$Companion.fromModel(Lio/realworld/model/Article;Lio/realworld/model/User;)Lio/realworld/model/inout/Article; @129: goto
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2b12 39b8 000f 2c12 3bb8 000f bb00 3d59
0000010: 2bb6 0043 2bb6 0046 2bb6 0049 2bb6 004c
@dancancro
dancancro / gist:d8def17c441740cec4b52fa8a55098b6
Created August 17, 2017 04:52
"could not initialize proxy - no Session" error
2017-08-17 00:27:44.173 DEBUG 6542 --- [ XNIO-2 task-9] o.e.g.w.rest.errors.ExceptionTranslator : An unexpected error occurred: failed to lazily initialize a collection of role: org.exampleapps.greatbig.domain.Article.comments, could not initialize proxy - no Session
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.exampleapps.greatbig.domain.Article.comments, could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:582)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:201)
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:561)
at org.hibernate.collection.internal.PersistentSet.add(PersistentSet.java:185)
at org.exampleapps.greatbig.domain.Article.addComment(Article.java:200)
at org.exampleapps.greatb
@dancancro
dancancro / gist:8eb51c777b1f570020de7a7b4b4355c1
Created August 11, 2017 01:11
Deploying JHipster app to Heroku
[20:40:44] gba
// ♥ yo jhipster:heroku
Heroku configuration is starting
Deploying as existing app: great-big-example-application
Using existing Git repository
Heroku CLI deployment plugin already installed
Provisioning addons
@dancancro
dancancro / gist:2417394ff9afa8661417f189e21ea092
Created August 9, 2017 14:09
Error running AOT build with AngularClass configs
[01:42:26] (angularclass) webapp
// ♥ npm run build:aot
> angular-starter@6.0.0 build:aot /Users/Dan/work/a/gba
> npm run build:aot:prod
> angular-starter@6.0.0 build:aot:prod /Users/Dan/work/a/gba
> npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail
2017-05-22T01:11:52.172937+00:00 heroku[router]: at=info method=GET path="/api/blogs" host=great-big-example-application.herokuapp.com request_id=6b933973-ee0e-482d-981d-665ec14fd4ce fwd="122.224.221.130" dyno=web.1 connect=1ms service=91ms status=200 bytes=698 protocol=https
2017-05-22T01:11:58.280926+00:00 heroku[router]: at=info method=GET path="/api/claims" host=great-big-example-application.herokuapp.com request_id=90d6e347-5148-4e91-b48e-d8a4c165d7b4 fwd="122.224.221.130" dyno=web.1 connect=1ms service=68ms status=200 bytes=4582 protocol=https
2017-05-22T01:12:00.211773+00:00 heroku[router]: at=info method=POST path="/api/users" host=great-big-example-application.herokuapp.com request_id=fa1f9cd3-e6ce-4845-aa3c-61dad03ac8d2 fwd="99.39.136.45" dyno=web.1 connect=1ms service=115ms status=500 bytes=560 protocol=https
2017-05-22T01:12:00.208446+00:00 app[web.1]: 2017-05-22 01:12:00.207 ERROR 4 --- [ XNIO-2 task-10] o.e.g.w.rest.errors.ExceptionTranslator : None of the configured nodes are available: [{#tra
@dancancro
dancancro / karma-errors
Created May 19, 2017 04:40
Errors running Angular component unit tests
yarn test v0.23.2
$ karma start src/test/javascript/karma.conf.js
Hash: e0bdc8cc97632b01d813
Version: webpack 2.5.1
Time: 69ms
webpack: Compiled successfully.
webpack: Compiling...
[at-loader] Using typescript@2.3.2 from typescript and "tsconfig.json" from /Users/Dan/work/bernierebuttals/gba/tsconfig.json.