kbastani / spring-cloud-event-sourcing-example Goto Github PK
View Code? Open in Web Editor NEWSpring Cloud reference application for building an online store as microservices that use event sourcing
License: GNU General Public License v3.0
Spring Cloud reference application for building an online store as microservices that use event sourcing
License: GNU General Public License v3.0
hi ,bro.Every time i visit the catelog service, it always times out.Is this what is the reason?
Hi
For some reason the servers are not able to call each other.
I always get a connection refused error when the online-store-web service tries to connect to the edge server.
Attached you will find my log files.
How does this example implement event-sourcing? I found nothing about event-sourcing in this repository. Is there any magical thing?
Hi,
First of all, thank you very much for this excellent work.
In this example i not see how inventory service listen event when order is created to update inventory?
What happened:
mvn install
build encountered an issue, like following:
[INFO] --- docker-maven-plugin:0.3.258:build (default) @ inventory-service ---
[INFO] Copying /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/target/inventory-service-0.0.1-SNAPSHOT.jar -> /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/target/docker/inventory-service-0.0.1-SNAPSHOT.jar
[INFO] Copying /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/src/main/docker/Dockerfile -> /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/target/docker/Dockerfile
[INFO] Building image kbastani/inventory-service
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] event-sourcing/parent .............................. SUCCESS [ 0.400 s]
[INFO] event-sourcing/inventory-service ................... FAILURE [ 12.512 s]
[INFO] event-sourcing/order-service ....................... SKIPPED
[INFO] event-sourcing/account-service ..................... SKIPPED
[INFO] event-sourcing/user-service ........................ SKIPPED
[INFO] event-sourcing/payment-service ..................... SKIPPED
[INFO] event-sourcing/config-service ...................... SKIPPED
[INFO] event-sourcing/discovery-service ................... SKIPPED
[INFO] event-sourcing/online-store-web .................... SKIPPED
[INFO] event-sourcing/catalog-service ..................... SKIPPED
[INFO] event-sourcing/edge-service ........................ SKIPPED
[INFO] event-sourcing/shopping-cart-service ............... SKIPPED
[INFO] event-sourcing/hystrix-dashboard ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
And below are the error information:
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.258:build (default) on project inventory-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :inventory-service
What you expected to happen:
mvn install
build should be success
How to reproduce it (as minimally and precisely as possible):
mvn clean install -DskipTests
Environment:
uname -a
): Darwin Kernel Version 17.4.0I noticed Chrome DevTools shows CORS error (and small JS error) on console log when I open the top page. I guess, it wouldn't affect to our application, but I'm glad if there's some good way not to show this CORS error. If it doesn't happen in your environment, it should be from my environment or my Chrome version.
Chrome DevTools may be too kind?
XMLHttpRequest cannot load http://localhost:8181/uaa/oauth/authorize?client_id=acme&redirect_uri=http://localhost:8787/login&response_type=code&state=vGqfBw. Redirect from 'http://localhost:8181/uaa/oauth/authorize?client_id=acme&redirect_uri=http://localhost:8787/login&response_type=code&state=vGqfBw' to 'http://localhost:8181/uaa/login' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8787' is therefore not allowed access.
( The second error on the picture is just saying that controller.js:193 scope
should be $scope
. )
Call for /api/user/uaa/v1/me
here with not-logged-in status:
is redirected to login
302 Location:http://localhost:8787/login
then to authorize
Location:http://localhost:8181/uaa/oauth/authorize?client_id=acme&redirect_uri=http://localhost:8787/login&response_type=code&state=vGqfBw
I'm not sure but these redirects causes CORS error in console log. But I guess these redirects and CORS error doesn't affect our app because we just want to know whether the user is logged in or not?
The same error is shown when I click logout link with logged-in status.
logout link returns 302
and Location:http://localhost:8787/login?logout
then authorize
I run apps on my local environment (not docker, but from eclipse because of my laptop's poor memory)
I run following services:
I don't run config-service because I would like to modify properties locally so that I can run apps from Eclipse. (Actually I don't need catalog and inventory services when I just reproduce this issue if I don't care 500 error for catalog-service call).
I made some modifications of configurations so that I can run them in my laptop local.
bufferings/spring-cloud-event-sourcing-example@60d4869
'Version 54.0.2840.71 (64-bit)' for Mac. and I use Incognito Mode to check the app.
controller.js:193 scope
should be $scope
angular.js:9383 ReferenceError: scope is not defined
at controller.js:193
at angular.js:7560
at wrappedErrback (angular.js:10914)
at wrappedErrback (angular.js:10914)
at angular.js:11040
at Scope.$eval (angular.js:11906)
at Scope.$digest (angular.js:11734)
at Scope.$apply (angular.js:12012)
at done (angular.js:7818)
at completeRequest (angular.js:7991)
Login page and authorize page show favicon 401 error.
favicon.ico:1 GET http://localhost:8181/uaa/favicon.ico 401 (Unauthorized)
It shows '$rootScope is not defined' error when I click logout link.
angular.js:9383 ReferenceError: $rootScope is not defined
at controller.js:174
at angular.js:7560
at wrappedErrback (angular.js:10914)
at wrappedErrback (angular.js:10914)
at angular.js:11040
at Scope.$eval (angular.js:11906)
at Scope.$digest (angular.js:11734)
at Scope.$apply (angular.js:12012)
at done (angular.js:7818)
at completeRequest (angular.js:7991)
After running...
$ docker-machine create env event-source-demo --driver virtualbox --virtualbox-memory "11000" --virtualbox-disk-size "100000"
$ eval "$(docker-machine env event-source-demo)"
$ sh run.sh
I get the following exception:
inventory-service_1 | Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
inventory-service_1 | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:62)
inventory-service_1 | at java.lang.Thread.run(Thread.java:745)
inventory-service_1 | Caused by: java.lang.reflect.InvocationTargetException
inventory-service_1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
inventory-service_1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
inventory-service_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
inventory-service_1 | at java.lang.reflect.Method.invoke(Method.java:498)
inventory-service_1 | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
inventory-service_1 | ... 1 more
inventory-service_1 | Caused by: java.lang.IllegalStateException: Failed to execute CommandLineRunner
inventory-service_1 | at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:809)
inventory-service_1 | at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:790)
inventory-service_1 | at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:777)
inventory-service_1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
inventory-service_1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
inventory-service_1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
inventory-service_1 | at demo.InventoryApplication.main(InventoryApplication.java:29)
inventory-service_1 | ... 6 more
inventory-service_1 | Caused by: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "meta" (class org.neo4j.ogm.session.result.RowModelResult), not marked as ignorable (one known property: "row"])
inventory-service_1 | at [Source: {"row":[0],"meta":[null]}]}; line: 1, column: 20] (through reference chain: org.neo4j.ogm.session.result.RowModelResult["meta"])
inventory-service_1 | at org.neo4j.ogm.session.response.RowModelResponse.next(RowModelResponse.java:48)
inventory-service_1 | at org.neo4j.ogm.session.response.SessionResponseHandler.updateObjects(SessionResponseHandler.java:93)
inventory-service_1 | at org.neo4j.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:69)
inventory-service_1 | at org.neo4j.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:43)
inventory-service_1 | at org.neo4j.ogm.session.Neo4jSession.save(Neo4jSession.java:386)
inventory-service_1 | at org.springframework.data.neo4j.repository.GraphRepositoryImpl.save(GraphRepositoryImpl.java:53)
inventory-service_1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
inventory-service_1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
inventory-service_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
inventory-service_1 | at java.lang.reflect.Method.invoke(Method.java:498)
inventory-service_1 | at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:483)
inventory-service_1 | at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:468)
inventory-service_1 | at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:440)
inventory-service_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
inventory-service_1 | at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)
inventory-service_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
inventory-service_1 | at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
inventory-service_1 | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
inventory-service_1 | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
inventory-service_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
inventory-service_1 | at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
inventory-service_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
inventory-service_1 | at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
inventory-service_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
inventory-service_1 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
inventory-service_1 | at com.sun.proxy.$Proxy110.save(Unknown Source)
inventory-service_1 | at demo.config.DatabaseInitializer.populate(DatabaseInitializer.java:92)
inventory-service_1 | at demo.InventoryApplication.lambda$commandLineRunner$0(InventoryApplication.java:45)
inventory-service_1 | at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:806)
inventory-service_1 | ... 12 more
inventory-service_1 | Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "meta" (class org.neo4j.ogm.session.result.RowModelResult), not marked as ignorable (one known property: "row"])
inventory-service_1 | at [Source: {"row":[0],"meta":[null]}]}; line: 1, column: 20] (through reference chain: org.neo4j.ogm.session.result.RowModelResult["meta"])
inventory-service_1 | at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
inventory-service_1 | at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:839)
inventory-service_1 | at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1045)
inventory-service_1 | at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1352)
inventory-service_1 | at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1330)
inventory-service_1 | at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:264)
inventory-service_1 | at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
inventory-service_1 | at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)
inventory-service_1 | at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2726)
inventory-service_1 | at org.neo4j.ogm.session.response.RowModelResponse.next(RowModelResponse.java:45)
inventory-service_1 | ... 40 more
Build error:
[DEBUG] Auth Config null
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] event-sourcing/parent 1.0.0-SNAPSHOT ............... SUCCESS [ 0.399 s]
[INFO] event-sourcing/inventory-service 0.0.1-SNAPSHOT .... FAILURE [ 49.437 s]
[INFO] event-sourcing/order-service 0.0.1-SNAPSHOT ........ SKIPPED
[INFO] event-sourcing/account-service 0.0.1-SNAPSHOT ...... SKIPPED
[INFO] event-sourcing/user-service 0.0.1-SNAPSHOT ......... SKIPPED
[INFO] event-sourcing/payment-service 0.0.1-SNAPSHOT ...... SKIPPED
[INFO] event-sourcing/config-service 0.0.1-SNAPSHOT ....... SKIPPED
[INFO] event-sourcing/discovery-service 0.0.1-SNAPSHOT .... SKIPPED
[INFO] event-sourcing/online-store-web 0.0.1-SNAPSHOT ..... SKIPPED
[INFO] event-sourcing/catalog-service 0.0.1-SNAPSHOT ...... SKIPPED
[INFO] event-sourcing/edge-service 0.0.1-SNAPSHOT ......... SKIPPED
[INFO] event-sourcing/shopping-cart-service 0.0.1-SNAPSHOT SKIPPED
[INFO] event-sourcing/hystrix-dashboard 0.0.1-SNAPSHOT .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50.412 s
[INFO] Finished at: 2018-09-04T14:45:10+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.258:build (default) on project inventory-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:docker-maven-plugin:0.3.258:build (default) on project inventory-service: Exception caught
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception caught
at com.spotify.docker.AbstractDockerMojo.execute (AbstractDockerMojo.java:115)
at com.spotify.docker.BuildMojo.execute (BuildMojo.java:81)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: com.spotify.docker.client.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
I am getting below error when trying to build the repo..
Caused by: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
at org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:481)
at org.glassfish.jersey.apache.connector.ApacheConnector$1.run (ApacheConnector.java:491)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute (MoreExecutors.java:299)
at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:112)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:50)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:37)
at org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:487)
at org.glassfish.jersey.client.ClientRuntime$2.run (ClientRuntime.java:177)
at org.glassfish.jersey.internal.Errors$1.call (Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call (Errors.java:267)
at org.glassfish.jersey.internal.Errors.process (Errors.java:315)
at org.glassfish.jersey.internal.Errors.process (Errors.java:297)
at org.glassfish.jersey.internal.Errors.process (Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:340)
at org.glassfish.jersey.client.ClientRuntime$3.run (ClientRuntime.java:209)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
Trying to run your (btw great!) tutorial, I fail when building the app:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configClientProperties' defined in org.springframework.cloud.config.client.ConfigServiceBootstrapConfiguration: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
I am on master.
Do you have any ideas? Thanks!
Hello,
I see the above mentioned variable in the Compose file, but I can't see any usage within each Dockerfile.
Furthermore, I see in some of the manifest.yml files that the SPRING_PROFILES_ACTIVE is setted to "cloud". Maybe is this the real value used by Spring Boot?
Thanks in advance.
S.
in project many host ip config is write '192.168.99.100' 。when run example , should i change host ip ?
first ,thanks a lot ,
when i run INVENTORY-SERVICE local,
Caused by: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "meta" (class org.neo4j.ogm.session.result.RowModelResult), not marked as ignorable (one known property: "row"])
I've tried to use the example but i'm having some problem with the application with the latest version of container
Hi,
I have deployed this application in PCF and i am getting below error after providing credentials.
Could you please suggest what could be the issue.
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.071 DEBUG 16 --- [nio-8080-exec-9] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/login'; against '/logout'
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.071 DEBUG 16 --- [nio-8080-exec-9] o.s.security.web.FilterChainProxy : /login?code=68CLCm&state=LjS9nH at position 5 of 11 in additional filter chain; firing Filter: 'OAuth2ClientAuthenticationProcessingFilter'
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.071 DEBUG 16 --- [nio-8080-exec-9] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/login'; against '/login'
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.071 DEBUG 16 --- [nio-8080-exec-9] uth2ClientAuthenticationProcessingFilter : Request is to process authentication
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.072 DEBUG 16 --- [nio-8080-exec-9] g.c.AuthorizationCodeAccessTokenProvider : Retrieving token from https://user-service-syntonous-manikin.apps.com/uaa/oauth/token
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.072 DEBUG 16 --- [nio-8080-exec-9] g.c.AuthorizationCodeAccessTokenProvider : Encoding and sending form: {grant_type=[authorization_code], code=[68CLCm], redirect_uri=[https://online-store-web.apps.com/login]}
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.080 DEBUG 16 --- [nio-8080-exec-9] uth2ClientAuthenticationProcessingFilter : Authentication request failed: org.springframework.security.authentication.BadCredentialsException: Could not obtain access token
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.080 DEBUG 16 --- [nio-8080-exec-9] uth2ClientAuthenticationProcessingFilter : Updated SecurityContextHolder to contain null Authentication
2016-08-03T11:20:59.000+00:00 [APP] OUT 2016-08-03 11:20:59.080 DEBUG 16 --- [nio-8080-exec-9] uth2ClientAuthenticationProcessingFilter : Delegating to authentication failure handler org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler@3d9994e5
First of all, thank you very much for sharing the example,
and I've benefited a lot from your example,
which I've upgraded spring-boot-starter-parent to 2.0.5. RELEASE and
upgraded spring-security-oauth2 to 2.3.3.RELEASE
When I clicked the http://192.168.99.100:8787 home page login link, the requested address was incorrect (return code = 404):
Http://192.168.99.100:8181/oauth/authorize?Client_id=acme&redirect_uri=http://192.168.100:8787/login&response_type=code&state=nIXDJD
I hope correct address should be like this:
Http://192.168.99.100:8181/uaa/oauth/authorize?Client_id=acme&redirect_uri=http://192.168.99.100:8787/login&response_type=code&state=nIXDJD
I don't know how to solve this problem.
My Example address:
https://github.com/zhengzizhi/microservice-store
http://www.kennybastani.com/2016/04/event-sourcing-microservices-spring-cloud.html
just only this page can know this project . If I want to more about it , where ? thanks for your share
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.