Git Product home page Git Product logo

staffjoy's Issues

fronted/app 在win系统启动报错

app前端引用了npm-zepto包,该包在linux系统下可以正常使用,win系统下npm install 会报错。

通过以下方法win系统可以本地启动成功。

  1. package.json中将npm-zepto替换为zepto-webpack,终端执行 npm install zepto-webpack

  2. webpack.config.js添加以下代码:
    `var webpack = require('webpack');

    plugins: [
    new webpack.ProvidePlugin({
    $: 'zepto-webpack'
    })
    ]
    `

  3. 将引用import $ from 'npm-zepto' 的文件替换为 import $ from 'zepto-webpack'

参考 zepto-webpack

docker-compose build时,myaccount-service构建报错

在按照66节课执行过程中,执行docker-compose build时报错(具体见下),node-sass找不到(https://github.com/sass/node-sass/releases/download/v4.12.0/linux_musl-x64-79_binding.node)

`Building myaccount-service
Step 1/13 : FROM node:alpine as builder
---> f20a6d8b6721
Step 2/13 : WORKDIR '/build'
---> Using cache
---> 3da06437b10c
Step 3/13 : COPY myaccount ./myaccount
---> Using cache
---> 932d02a7a07b
Step 4/13 : COPY resources ./resources
---> Using cache
---> c84b3d9abc28
Step 5/13 : COPY third_party ./third_party
---> Using cache
---> fb73f7209984
Step 6/13 : WORKDIR '/build/myaccount'
---> Using cache
---> 788b3be97d9b
Step 7/13 : RUN npm install
---> Using cache
---> ad730b8837a9
Step 8/13 : RUN npm rebuild node-sass
---> Running in bffb04285b8d

[email protected] install /build/myaccount/node_modules/node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux_musl-x64-79_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/linux_musl-x64-79_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

[email protected] postinstall /build/myaccount/node_modules/node-sass
node scripts/build.js

Building: /usr/local/bin/node /build/myaccount/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/local/bin/node',
gyp verb cli '/build/myaccount/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb which failed python2 Error: not found: python2
gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb which failed stack: 'Error: not found: python2\n' +
gyp verb which failed ' at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)\n' +
gyp verb which failed ' at F (/build/myaccount/node_modules/which/which.js:68:19)\n' +
gyp verb which failed ' at E (/build/myaccount/node_modules/which/which.js:80:29)\n' +
gyp verb which failed ' at /build/myaccount/node_modules/which/which.js:89:16\n' +
gyp verb which failed ' at /build/myaccount/node_modules/isexe/index.js:42:5\n' +
gyp verb which failed ' at /build/myaccount/node_modules/isexe/mode.js:8:5\n' +
gyp verb which failed ' at FSReqCallback.oncomplete (fs.js:158:21)',
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb which failed python Error: not found: python
gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb which failed stack: 'Error: not found: python\n' +
gyp verb which failed ' at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)\n' +
gyp verb which failed ' at F (/build/myaccount/node_modules/which/which.js:68:19)\n' +
gyp verb which failed ' at E (/build/myaccount/node_modules/which/which.js:80:29)\n' +
gyp verb which failed ' at /build/myaccount/node_modules/which/which.js:89:16\n' +
gyp verb which failed ' at /build/myaccount/node_modules/isexe/index.js:42:5\n' +
gyp verb which failed ' at /build/myaccount/node_modules/isexe/mode.js:8:5\n' +
gyp verb which failed ' at FSReqCallback.oncomplete (fs.js:158:21)',
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/build/myaccount/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder. (/build/myaccount/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/build/myaccount/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/build/myaccount/node_modules/which/which.js:80:29)
gyp ERR! stack at /build/myaccount/node_modules/which/which.js:89:16
gyp ERR! stack at /build/myaccount/node_modules/isexe/index.js:42:5
gyp ERR! stack at /build/myaccount/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Linux 4.9.184-linuxkit
gyp ERR! command "/usr/local/bin/node" "/build/myaccount/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /build/myaccount/node_modules/node-sass
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-10T00_15_16_706Z-debug.log
ERROR: Service 'myaccount-service' failed to build: The command '/bin/sh -c npm rebuild node-sass' returned a non-zero code: 1`

English Translation

Hi,

The project looks like a good reference for Microservices. It would really help to others who does not understand Chinese :)

Thank you.

myaccount容器编译报错

是不是镜像的配置有问题

#14 102.4 npm ERR! code 1
#14 102.4 npm ERR! path /build/myaccount/node_modules/node-sass
#14 102.4 npm ERR! command failed
#14 102.4 npm ERR! command sh -c node scripts/build.js
#14 102.4 npm ERR! Building: /usr/local/bin/node /build/myaccount/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
#14 102.4 npm ERR! gyp info it worked if it ends with ok
#14 102.4 npm ERR! gyp verb cli [
#14 102.4 npm ERR! gyp verb cli '/usr/local/bin/node',
#14 102.4 npm ERR! gyp verb cli '/build/myaccount/node_modules/node-gyp/bin/node-gyp.js',
#14 102.4 npm ERR! gyp verb cli 'rebuild',
#14 102.4 npm ERR! gyp verb cli '--verbose',
#14 102.4 npm ERR! gyp verb cli '--libsass_ext=',
#14 102.4 npm ERR! gyp verb cli '--libsass_cflags=',
#14 102.4 npm ERR! gyp verb cli '--libsass_ldflags=',
#14 102.4 npm ERR! gyp verb cli '--libsass_library='
#14 102.4 npm ERR! gyp verb cli ]
#14 102.4 npm ERR! gyp info using [email protected]
#14 102.4 npm ERR! gyp info using [email protected] | linux | x64
#14 102.4 npm ERR! gyp verb command rebuild []
#14 102.4 npm ERR! gyp verb command clean []
#14 102.4 npm ERR! gyp verb clean removing "build" directory
#14 102.4 npm ERR! gyp verb command configure []
#14 102.4 npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
#14 102.4 npm ERR! gyp verb which failed Error: not found: python2
#14 102.4 npm ERR! gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
#14 102.4 npm ERR! gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
#14 102.4 npm ERR! gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
#14 102.4 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
#14 102.4 npm ERR! gyp verb which failed python2 Error: not found: python2
#14 102.4 npm ERR! gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
#14 102.4 npm ERR! gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
#14 102.4 npm ERR! gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
#14 102.4 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
#14 102.4 npm ERR! gyp verb which failed code: 'ENOENT'
#14 102.4 npm ERR! gyp verb which failed }
#14 102.4 npm ERR! gyp verb check python checking for Python executable "python" in the PATH
#14 102.4 npm ERR! gyp verb which failed Error: not found: python
#14 102.4 npm ERR! gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
#14 102.4 npm ERR! gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
#14 102.4 npm ERR! gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
#14 102.4 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
#14 102.4 npm ERR! gyp verb which failed python Error: not found: python
#14 102.4 npm ERR! gyp verb which failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12)
#14 102.4 npm ERR! gyp verb which failed at F (/build/myaccount/node_modules/which/which.js:68:19)
#14 102.4 npm ERR! gyp verb which failed at E (/build/myaccount/node_modules/which/which.js:80:29)
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/which/which.js:89:16
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/index.js:42:5
#14 102.4 npm ERR! gyp verb which failed at /build/myaccount/node_modules/isexe/mode.js:8:5
#14 102.4 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
#14 102.4 npm ERR! gyp verb which failed code: 'ENOENT'
#14 102.4 npm ERR! gyp verb which failed }
#14 102.4 npm ERR! gyp ERR! configure error
#14 102.4 npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
#14 102.4 npm ERR! gyp ERR! stack at PythonFinder.failNoPython (/build/myaccount/node_modules/node-gyp/lib/configure.js:484:19)
#14 102.4 npm ERR! gyp ERR! stack at PythonFinder. (/build/myaccount/node_modules/node-gyp/lib/configure.js:406:16)
#14 102.4 npm ERR! gyp ERR! stack at F (/build/myaccount/node_modules/which/which.js:68:16)
#14 102.4 npm ERR! gyp ERR! stack at E (/build/myaccount/node_modules/which/which.js:80:29)
#14 102.4 npm ERR! gyp ERR! stack at /build/myaccount/node_modules/which/which.js:89:16
#14 102.4 npm ERR! gyp ERR! stack at /build/myaccount/node_modules/isexe/index.js:42:5
#14 102.4 npm ERR! gyp ERR! stack at /build/myaccount/node_modules/isexe/mode.js:8:5
#14 102.4 npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
#14 102.4 npm ERR! gyp ERR! System Linux 5.10.76-linuxkit
#14 102.4 npm ERR! gyp ERR! command "/usr/local/bin/node" "/build/myaccount/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
#14 102.4 npm ERR! gyp ERR! cwd /build/myaccount/node_modules/node-sass
#14 102.4 npm ERR! gyp ERR! node -v v17.3.0
#14 102.4 npm ERR! gyp ERR! node-gyp -v v3.8.0
#14 102.4 npm ERR! gyp ERR! not ok
#14 102.4 npm ERR! Build failed with error code: 1

example数据不行啊,目前有两个问题导致项目跑不起来

  1. sentry假数据会导致sentryClient无法被Spring加载
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'whoAmIService': Unsatisfied dependency expressed through field 'sentryClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sentryClient' defined in xyz.staffjoy.common.config.StaffjoyConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.sentry.SentryClient]: Factory method 'sentryClient' threw exception; nested exception is io.sentry.dsn.InvalidDsnException: Invalid DSN, the following properties aren't set '[host]'
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1244)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
	... 27 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sentryClient' defined in xyz.staffjoy.common.config.StaffjoyConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.sentry.SentryClient]: Factory method 'sentryClient' threw exception; nested exception is io.sentry.dsn.InvalidDsnException: Invalid DSN, the following properties aren't set '[host]'
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1244)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
	... 40 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.sentry.SentryClient]: Factory method 'sentryClient' threw exception; nested exception is io.sentry.dsn.InvalidDsnException: Invalid DSN, the following properties aren't set '[host]'
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
	... 53 common frames omitted
Caused by: io.sentry.dsn.InvalidDsnException: Invalid DSN, the following properties aren't set '[host]'
	at io.sentry.dsn.Dsn.validate(Dsn.java:209)
	at io.sentry.dsn.Dsn.<init>(Dsn.java:66)
	at io.sentry.dsn.Dsn.<init>(Dsn.java:41)
	at io.sentry.SentryClientFactory.resolveDsn(SentryClientFactory.java:73)
	at io.sentry.SentryClientFactory.sentryClient(SentryClientFactory.java:42)
	at io.sentry.Sentry.init(Sentry.java:81)
	at io.sentry.Sentry.init(Sentry.java:66)
	at xyz.staffjoy.common.config.StaffjoyConfig.sentryClient(StaffjoyConfig.java:49)
	at xyz.staffjoy.common.config.StaffjoyConfig$$EnhancerBySpringCGLIB$$11669bde.CGLIB$sentryClient$2(<generated>)
	at xyz.staffjoy.common.config.StaffjoyConfig$$EnhancerBySpringCGLIB$$11669bde$$FastClassBySpringCGLIB$$34703f1f.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
	at xyz.staffjoy.common.config.StaffjoyConfig$$EnhancerBySpringCGLIB$$11669bde.sentryClient(<generated>)
	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.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
	... 54 common frames omitted
  1. hibernate报错
19-07-2019 08:33:46.729 [main] ERROR o.s.boot.SpringApplication.reportFailure - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:853)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
	at xyz.staffjoy.company.CompanyApplication.main(CompanyApplication.java:13)
	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.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
	at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
	at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:179)
	at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:119)
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:904)
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:935)
	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57)
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390)
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377)
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1804)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741)
	... 24 common frames omitted
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
	at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)
	at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)
	at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
	at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
	at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:94)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
	... 41 common frames omitted

account-svc 会报错

mvn install时会报错,这个该咋解?
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project account-svc: There are test failures.

git clone不下来啊

git clone https://github.com/spring2go/staffjoy.git
正克隆到 'staffjoy'...
remote: Enumerating objects: 1665, done.
remote: Counting objects: 100% (1665/1665), done.
remote: Compressing objects: 100% (1048/1048), done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败

注册用户时 FeignException: status 404

异常堆栈

19-09-2019 15:55:52.943 [http-nio-8086-exec-7] ERROR x.s.web.controller.LoginController.log - {"message":"Failed to create account","errorMessage":"status 404 reading AccountClient#createAccount(String,CreateAccountRequest)","env":"dev","service":"www-service"}
feign.FeignException: status 404 reading AccountClient#createAccount(String,CreateAccountRequest)
	at feign.FeignException.errorStatus(FeignException.java:78)
	at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:93)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:149)
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:78)
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
	at com.sun.proxy.$Proxy112.createAccount(Unknown Source)
	at xyz.staffjoy.web.controller.SignupController.signUp(SignupController.java:49)
	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.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.