The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

349995 (2) [Avatar] Offline
#1
I purchased the MEAP and downloaded today (Oct 10 2017). Really great info so far!! Looking forward to the rest of the book!


Per the book, I cloned https://github.com/cdavisafc/cloud-native.git. I did not move to a specific commit; I just stayed at HEAD.

Then did mvn clean install tomcat7:run. (So I think I am running a version of the app as described in chapter 4.)

I was able to hit /logon per chapter 4. Cookie was stored correctly.

Then I tried to hit http://localhost:8080. Got the following error:


2017-10-09 22:50:20.232 ERROR 19160 --- [bio-8080-exec-5] o.s.boot.web.support.ErrorPageFilter : Forwarding to error page from request [/] due to exception [URI is not absolute]

java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:108smilie ~[na:1.8.0_144]
at org.springframework.http.client.SimpleClientHttpRequestFactory.createRequest(SimpleClientHttpRequestFactory.java:137) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:85) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:64smilie ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:287) ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at com.corneliadavis.cloudnative.HelloController.hello(HelloController.java:49) ~[classes/:na]
at com.corneliadavis.cloudnative.HelloController$$FastClassBySpringCGLIB$$14177ead.invoke(<generated>smilie ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.6.RELEASE.jar:4.3.6.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721) ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656) ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at com.corneliadavis.cloudnative.HelloController$$EnhancerBySpringCGLIB$$724d2e39.hello(<generated>smilie ~[classes/:na]


(...and so on...)
349995 (2) [Avatar] Offline
#2
Never mind - I missed the step in chapter 4 about checking out a particular commit! I got the one indicated in the book, and now the results mimic what the book says.