Sorry for late response, now I’m here.
Let’s see. Now I lost all translations 🙉
My env:
$ sw_vers ProductName: Mac OS X ProductVersion: 10.13.5 BuildVersion: 17F77 $ gradle --version 4.8.1 $ node --version v10.5.0 $ npm --version 6.1.0 $ yarn --version 1.7.0 $ yo --version 2.0.2 $ jhipster --version v5.0.1
This is my yo-rc.json
{ "generator-jhipster": { "promptValues": { "packageName": "io.binakot.gateway", "nativeLanguage": "en" }, "jhipsterVersion": "5.0.1", "applicationType": "gateway", "baseName": "gateway", "packageName": "io.binakot.gateway", "packageFolder": "io/binakot/gateway", "serverPort": "8080", "authenticationType": "oauth2", "cacheProvider": "hazelcast", "enableHibernateCache": true, "websocket": false, "databaseType": "sql", "devDatabaseType": "h2Memory", "prodDatabaseType": "postgresql", "searchEngine": false, "messageBroker": false, "serviceDiscoveryType": "eureka", "buildTool": "gradle", "enableSwaggerCodegen": false, "clientFramework": "react", "useSass": false, "clientPackageManager": "yarn", "testFrameworks": [], "jhiPrefix": "jhi", "enableTranslation": true, "nativeLanguage": "en", "languages": [ "en", "ru" ] } }
After generation I just run gradle and yarn:
Gradle output (with removed eureka client’s stack traces):
Starting a Gradle Daemon (subsequent builds will be faster) > Task :compileJava Note: Hibernate JPA 2 Static-Metamodel Generator 5.2.17.Final Note: /Users/binakot/Projects/test-gateway/src/main/java/io/binakot/gateway/security/oauth2/SimpleAuthoritiesExtractor.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. > Task :bootRun The Class-Path manifest attribute in /Users/binakot/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/3.5.5/c65051f327382018bd09c30380f25eac96f210da/liquibase-core-3.5.5.jar referenced one or more files that do not exist: file:/Users/binakot/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/3.5.5/c65051f327382018bd09c30380f25eac96f210da/lib/snakeyaml-1.13.jar 18:38:16.988 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : [] 18:38:16.993 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/, /spring-boot/target/classes/, /spring-boot-starter-[w-]+/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter/target/classes/] 18:38:16.993 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/Users/binakot/Projects/test-gateway/build/classes/java/main/, file:/Users/binakot/Projects/test-gateway/build/resources/main/] ██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗ ██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗ ██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝ ██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ :: JHipster 🤓 :: Running Spring Boot 2.0.3.RELEASE :: :: https://www.jhipster.tech :: 2018-06-27 18:38:19.457 WARN 45668 --- [ restartedMain] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8761/config/gateway/dev/master": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused) 2018-06-27 18:38:19.460 INFO 45668 --- [ restartedMain] io.binakot.gateway.GatewayApp : The following profiles are active: dev,swagger 2018-06-27 18:38:21.791 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.AsyncConfiguration : Creating Async Task Executor 2018-06-27 18:38:22.530 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.MetricsConfiguration : Registering JVM gauges 2018-06-27 18:38:22.580 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.MetricsConfiguration : Monitoring the datasource 2018-06-27 18:38:22.587 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.MetricsConfiguration : Initializing Metrics JMX reporting 2018-06-27 18:38:23.796 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.CacheConfiguration : Configuring Hazelcast 2018-06-27 18:38:23.821 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.CacheConfiguration : Configuring Hazelcast clustering for instanceId: gateway 2018-06-27 18:38:23.823 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.CacheConfiguration : Application is running with the "dev" profile, Hazelcast cluster will only work with localhost instances 2018-06-27 18:38:23.938 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1 2018-06-27 18:38:24.112 INFO 45668 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2018-06-27 18:38:24.112 INFO 45668 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2018-06-27 18:38:24.286 INFO 45668 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2018-06-27 18:38:24.287 INFO 45668 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2018-06-27 18:38:24.528 INFO 45668 --- [ restartedMain] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration 2018-06-27 18:38:24.552 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Disable delta property : false 2018-06-27 18:38:24.553 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null 2018-06-27 18:38:24.553 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false 2018-06-27 18:38:24.553 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Application is null : false 2018-06-27 18:38:24.553 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true 2018-06-27 18:38:24.553 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Application version is -1: true 2018-06-27 18:38:24.553 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server 2018-06-27 18:38:24.634 ERROR 45668 --- [ restartedMain] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error 2018-06-27 18:38:24.637 WARN 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Using default backup registry implementation which does not do anything. 2018-06-27 18:38:24.639 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 5 2018-06-27 18:38:24.651 INFO 45668 --- [ restartedMain] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 12 2018-06-27 18:38:24.654 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1530113904653 with initial instances count: 0 2018-06-27 18:38:24.710 INFO 45668 --- [ restartedMain] com.hazelcast.instance.AddressPicker : [LOCAL] [dev] [3.9.4] Picked [127.0.0.1]:13781, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=13781], bind any local is true 2018-06-27 18:38:24.724 INFO 45668 --- [ restartedMain] com.hazelcast.system : [127.0.0.1]:13781 [dev] [3.9.4] Hazelcast 3.9.4 (20180420 - b8001d5) starting at [127.0.0.1]:13781 2018-06-27 18:38:24.724 INFO 45668 --- [ restartedMain] com.hazelcast.system : [127.0.0.1]:13781 [dev] [3.9.4] Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved. 2018-06-27 18:38:24.724 INFO 45668 --- [ restartedMain] com.hazelcast.system : [127.0.0.1]:13781 [dev] [3.9.4] Configured Hazelcast Serialization version: 1 2018-06-27 18:38:25.138 INFO 45668 --- [ restartedMain] c.h.s.i.o.impl.BackpressureRegulator : [127.0.0.1]:13781 [dev] [3.9.4] Backpressure is disabled 2018-06-27 18:38:25.604 INFO 45668 --- [ restartedMain] com.hazelcast.instance.Node : [127.0.0.1]:13781 [dev] [3.9.4] Creating TcpIpJoiner 2018-06-27 18:38:25.756 INFO 45668 --- [ restartedMain] c.h.s.i.o.impl.OperationExecutorImpl : [127.0.0.1]:13781 [dev] [3.9.4] Starting 4 partition threads and 3 generic threads (1 dedicated for priority tasks) 2018-06-27 18:38:25.757 INFO 45668 --- [ restartedMain] c.h.internal.diagnostics.Diagnostics : [127.0.0.1]:13781 [dev] [3.9.4] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments. 2018-06-27 18:38:25.763 INFO 45668 --- [ restartedMain] com.hazelcast.core.LifecycleService : [127.0.0.1]:13781 [dev] [3.9.4] [127.0.0.1]:13781 is STARTING 2018-06-27 18:38:25.775 INFO 45668 --- [ restartedMain] com.hazelcast.system : [127.0.0.1]:13781 [dev] [3.9.4] Cluster version set to 3.9 2018-06-27 18:38:25.776 INFO 45668 --- [ restartedMain] c.h.internal.cluster.ClusterService : [127.0.0.1]:13781 [dev] [3.9.4] Members {size:1, ver:1} [ Member [127.0.0.1]:13781 - 1b2f39cc-ca05-432e-b108-8a7204db8299 this ] 2018-06-27 18:38:25.802 INFO 45668 --- [ restartedMain] com.hazelcast.core.LifecycleService : [127.0.0.1]:13781 [dev] [3.9.4] [127.0.0.1]:13781 is STARTED 2018-06-27 18:38:25.817 DEBUG 45668 --- [ restartedMain] i.b.gateway.config.CacheConfiguration : Starting HazelcastCacheManager 2018-06-27 18:38:25.951 DEBUG 45668 --- [ restartedMain] i.b.g.config.DatabaseConfiguration : Configuring Liquibase 2018-06-27 18:38:26.132 WARN 45668 --- [eway-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Starting Liquibase asynchronously, your database might not be ready at startup! 2018-06-27 18:38:27.117 INFO 45668 --- [ restartedMain] c.h.h.HazelcastCacheRegionFactory : Starting up HazelcastCacheRegionFactory 2018-06-27 18:38:27.119 INFO 45668 --- [ restartedMain] c.h.h.i.IHazelcastInstanceFactory : Using existing HazelcastInstance [gateway]. 2018-06-27 18:38:27.200 DEBUG 45668 --- [eway-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Liquibase has updated your database in 1068 ms 2018-06-27 18:38:28.585 WARN 45668 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2018-06-27 18:38:28.642 DEBUG 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Registering CORS filter 2018-06-27 18:38:28.735 INFO 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Web application configuration, using profiles: dev 2018-06-27 18:38:28.735 DEBUG 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Initializing Metrics registries 2018-06-27 18:38:28.739 DEBUG 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Registering Metrics Filter 2018-06-27 18:38:28.739 DEBUG 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Registering Metrics Servlet 2018-06-27 18:38:28.742 DEBUG 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Initialize H2 console 2018-06-27 18:38:28.743 INFO 45668 --- [ restartedMain] io.binakot.gateway.config.WebConfigurer : Web application fully configured 2018-06-27 18:38:29.647 ERROR 45668 --- [tbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error 2018-06-27 18:38:30.425 WARN 45668 --- [ restartedMain] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2018-06-27 18:38:31.244 DEBUG 45668 --- [ restartedMain] i.g.j.c.apidoc.SwaggerAutoConfiguration : Starting Swagger 2018-06-27 18:38:31.256 DEBUG 45668 --- [ restartedMain] i.g.j.c.apidoc.SwaggerAutoConfiguration : Started Swagger in 12 ms 2018-06-27 18:38:31.633 INFO 45668 --- [ restartedMain] c.h.i.p.impl.PartitionStateManager : [127.0.0.1]:13781 [dev] [3.9.4] Initializing cluster partition table arrangement... 2018-06-27 18:38:32.541 INFO 45668 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1530113912541, current=UP, previous=STARTING] 2018-06-27 18:38:32.542 INFO 45668 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_GATEWAY/gateway:6885bda79227129ebffdc842a01bf2f9: registering service... 2018-06-27 18:38:32.547 ERROR 45668 --- [nfoReplicator-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error 2018-06-27 18:38:32.847 DEBUG 45668 --- [ restartedMain] i.b.g.config.OAuth2Configuration$1 : Initializing filter 'oncePerRequestFilter' 2018-06-27 18:38:32.847 DEBUG 45668 --- [ restartedMain] i.b.g.config.OAuth2Configuration$1 : Filter 'oncePerRequestFilter' configured successfully 2018-06-27 18:38:32.896 INFO 45668 --- [ restartedMain] io.binakot.gateway.GatewayApp : Started GatewayApp in 15.884 seconds (JVM running for 16.538) 2018-06-27 18:38:32.904 INFO 45668 --- [ restartedMain] io.binakot.gateway.GatewayApp : ---------------------------------------------------------- Application 'gateway' is running! Access URLs: Local: http://localhost:8080 External: http://192.168.0.114:8080 Profile(s): [dev, swagger] ---------------------------------------------------------- 2018-06-27 18:38:32.904 INFO 45668 --- [ restartedMain] io.binakot.gateway.GatewayApp : ---------------------------------------------------------- Config Server: Not found or not setup for this application ---------------------------------------------------------- 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Disable delta property : false 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application is null : false 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application version is -1: true 2018-06-27 18:38:34.642 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server 2018-06-27 18:38:34.644 ERROR 45668 --- [freshExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error 2018-06-27 18:38:44.648 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Disable delta property : false 2018-06-27 18:38:44.649 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null 2018-06-27 18:38:44.649 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false 2018-06-27 18:38:44.649 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application is null : false 2018-06-27 18:38:44.649 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true 2018-06-27 18:38:44.649 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application version is -1: true 2018-06-27 18:38:44.649 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server 2018-06-27 18:38:44.650 ERROR 45668 --- [freshExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error 2018-06-27 18:38:53.038 DEBUG 45668 --- [ XNIO-2 task-1] i.b.gateway.aop.logging.LoggingAspect : Enter: io.binakot.gateway.repository.CustomAuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=2018-06-27T15:38:53.023Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2018-06-27 18:38:53.039 DEBUG 45668 --- [ XNIO-2 task-2] i.b.gateway.aop.logging.LoggingAspect : Enter: io.binakot.gateway.repository.CustomAuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=2018-06-27T15:38:53.025Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2018-06-27 18:38:53.047 DEBUG 45668 --- [ XNIO-2 task-1] i.b.gateway.aop.logging.LoggingAspect : Exit: io.binakot.gateway.repository.CustomAuditEventRepository.add() with result = null 2018-06-27 18:38:53.047 DEBUG 45668 --- [ XNIO-2 task-2] i.b.gateway.aop.logging.LoggingAspect : Exit: io.binakot.gateway.repository.CustomAuditEventRepository.add() with result = null 2018-06-27 18:38:53.166 DEBUG 45668 --- [ XNIO-2 task-3] i.b.gateway.aop.logging.LoggingAspect : Enter: io.binakot.gateway.repository.CustomAuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=2018-06-27T15:38:53.166Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2018-06-27 18:38:53.166 DEBUG 45668 --- [ XNIO-2 task-3] i.b.gateway.aop.logging.LoggingAspect : Exit: io.binakot.gateway.repository.CustomAuditEventRepository.add() with result = null 2018-06-27 18:38:54.654 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Disable delta property : false 2018-06-27 18:38:54.655 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null 2018-06-27 18:38:54.655 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false 2018-06-27 18:38:54.655 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application is null : false 2018-06-27 18:38:54.655 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true 2018-06-27 18:38:54.655 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Application version is -1: true 2018-06-27 18:38:54.655 INFO 45668 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server 2018-06-27 18:38:57.449 DEBUG 45668 --- [ XNIO-2 task-5] i.b.gateway.aop.logging.LoggingAspect : Enter: io.binakot.gateway.repository.CustomAuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=2018-06-27T15:38:57.449Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2018-06-27 18:38:57.449 DEBUG 45668 --- [ XNIO-2 task-4] i.b.gateway.aop.logging.LoggingAspect : Enter: io.binakot.gateway.repository.CustomAuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=2018-06-27T15:38:57.449Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2018-06-27 18:38:57.449 DEBUG 45668 --- [ XNIO-2 task-5] i.b.gateway.aop.logging.LoggingAspect : Exit: io.binakot.gateway.repository.CustomAuditEventRepository.add() with result = null 2018-06-27 18:38:57.449 DEBUG 45668 --- [ XNIO-2 task-4] i.b.gateway.aop.logging.LoggingAspect : Exit: io.binakot.gateway.repository.CustomAuditEventRepository.add() with result = null 2018-06-27 18:38:57.457 DEBUG 45668 --- [ XNIO-2 task-6] i.b.gateway.aop.logging.LoggingAspect : Enter: io.binakot.gateway.repository.CustomAuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=2018-06-27T15:38:57.456Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]] 2018-06-27 18:38:57.457 DEBUG 45668 --- [ XNIO-2 task-6] i.b.gateway.aop.logging.LoggingAspect : Exit: io.binakot.gateway.repository.CustomAuditEventRepository.add() with result = null
Yarn output:
yarn run v1.7.0 $ yarn run webpack:dev $ yarn run webpack-dev-server --config webpack/webpack.dev.js --progress --inline --profile --port=9060 $ node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack/webpack.dev.js --progress --inline --profile --port=9060 Starting type checking and linting service... Using 1 worker with 2048MB memory limit 10% building modules 1/1 modules 0 active[HPM] Proxy created: [ '/api', '/management', '/swagger-resources', '/v2/api-docs', '/h2-console', '/auth' ] -> http://127.0.0.1:8080 (node:45673) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead ℹ 「wds」: Project is running at http://localhost:9060/ ℹ 「wds」: webpack output is served from / ℹ 「wds」: Content not from webpack is served from ./build/www 3573ms building modules 8ms finish module graph 1ms sealing 0ms basic dependencies optimization 0ms dependencies optimization 0ms advanced dependencies optimization 12ms after dependencies optimization 0ms optimizing 0ms basic module optimization 0ms module optimization 0ms advanced module optimization 1ms after module optimization 0ms basic chunk optimization 0ms chunk optimization 14ms advanced chunk optimization 1ms after chunk optimization 0ms module and chunk tree optimization 0ms after module and chunk tree optimization 0ms basic chunk modules optimization 0ms chunk modules optimization 0ms advanced chunk modules optimization 0ms after chunk modules optimization 0ms module reviving 0ms module order optimization 1ms advanced module order optimization 4ms before module ids 1ms module ids 4ms module id optimization 1ms chunk reviving 0ms chunk order optimization 0ms before chunk ids 0ms chunk id optimization 4ms after chunk id optimization 2ms record modules 0ms record chunks 33ms hashing 0ms after hashing 0ms record hash 1ms module assets processing 54ms chunk assets processing 4ms additional chunk assets processing 33ms recording 0ms additional asset processing 1ms chunk asset optimization 248ms after chunk asset optimization 0ms asset optimization 0ms after asset optimization 0ms after seal 95% emitting unnamed compat pluginType checking and linting in progress... 418ms emitting ℹ 「wdm」: Hash: 36fd9109fb226c2c2dc2 Version: webpack 4.4.1 Time: 4274ms Built at: 27.06.2018 18:38:50 Asset Size Chunks Chunk Names static/images/logo-jhipster.png 4.35 KiB [emitted] content/4d7a941186721ef8150a081fa7cfa010.svg 36.5 KiB [emitted] app/main.bundle.js.map 5.41 MiB main [emitted] main static/images/logo-jhipster-react.svg 36.5 KiB [emitted] favicon.ico 5.3 KiB [emitted] manifest.webapp 727 bytes [emitted] robots.txt 168 bytes [emitted] swagger-ui/dist/lib/highlight.9.1.0.pack_extended.js 310 bytes [emitted] swagger-ui/dist/lib/jquery.ba-bbq.min.js 3.44 KiB [emitted] swagger-ui/dist/lib/jquery.slideto.min.js 365 bytes [emitted] swagger-ui/dist/lib/jquery.wiggle.min.js 536 bytes [emitted] swagger-ui/dist/lib/swagger-oauth.js 6.88 KiB [emitted] swagger-ui/dist/css/reset.css 773 bytes [emitted] swagger-ui/dist/lib/object-assign-pollyfill.js 349 bytes [emitted] swagger-ui/dist/lib/highlight.9.1.0.pack.js 10.7 KiB [emitted] swagger-ui/dist/lib/marked.js 15.4 KiB [emitted] swagger-ui/dist/lib/backbone-min.js 18.9 KiB [emitted] swagger-ui/dist/lib/es5-shim.js 22.2 KiB [emitted] swagger-ui/dist/css/typography.css 0 bytes [emitted] swagger-ui/dist/css/style.css 3.41 KiB [emitted] app/main.bundle.js 5.41 MiB main [emitted] main static/images/hipster.png 9.28 KiB [emitted] swagger-ui/index.html 7.49 KiB [emitted] static/images/hipster2x.png 18.4 KiB [emitted] swagger-ui/dist/lib/js-yaml.min.js 42.5 KiB [emitted] swagger-ui/dist/images/throbber.gif 9.04 KiB [emitted] swagger-ui/dist/css/print.css 40.7 KiB [emitted] swagger-ui/dist/css/screen.css 42.6 KiB [emitted] swagger-ui/dist/lib/lodash.min.js 50.7 KiB [emitted] swagger-ui/dist/lib/handlebars-4.0.5.js 69.8 KiB [emitted] swagger-ui/dist/lib/jquery-1.8.0.min.js 89.9 KiB [emitted] static/images/hipster384.png 58.5 KiB [emitted] static/images/hipster512.png 81.3 KiB [emitted] static/images/hipster192.png 27.3 KiB [emitted] swagger-ui/dist/lib/jsoneditor.min.js 127 KiB [emitted] static/images/hipster256.png 40.2 KiB [emitted] swagger-ui/dist/lib/sanitize-html.min.js 127 KiB [emitted] swagger-ui/dist/swagger-ui.min.js 442 KiB [emitted] index.html 1.85 KiB [emitted] ./i18n/en.json 11.6 KiB [emitted] ./i18n/ru.json 11.4 KiB [emitted] Entrypoint main = app/main.bundle.js app/main.bundle.js.map [./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {main} [built] [0] 2ms -> [./node_modules/webpack-dev-server/client/index.js?http://localhost:9060] 180ms -> factory:176ms building:17ms dependencies:0ms = 375ms [./node_modules/react-dom/index.js] 1.33 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./node_modules/react-hot-loader/index.js] 40 bytes {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./node_modules/react-hot-loader/patch.js] 40 bytes {main} [built] [0] 2ms -> factory:113ms building:67ms dependencies:89ms = 271ms [./node_modules/react/index.js] 190 bytes {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./node_modules/webpack-dev-server/client/index.js?http://localhost:9060] (webpack)-dev-server/client?http://localhost:9060 7.75 KiB {main} [built] [0] 2ms -> factory:113ms building:67ms dependencies:89ms = 271ms [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.66 KiB {main} [built] [0] 2ms -> factory:113ms building:67ms dependencies:89ms = 271ms [./src/main/webapp/app/config/axios-interceptor.ts] 2.13 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./src/main/webapp/app/config/devtools.tsx] 1.61 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./src/main/webapp/app/config/icon-loader.ts] 2.12 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./src/main/webapp/app/config/store.ts] 2.32 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./src/main/webapp/app/config/translation.ts] 2.1 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [./src/main/webapp/app/index.tsx] 2.71 KiB {main} [built] [0] 2ms -> factory:113ms building:67ms dependencies:89ms = 271ms [./src/main/webapp/app/shared/reducers/authentication.ts] 3.83 KiB {main} [built] [0] 2ms -> [./src/main/webapp/app/index.tsx] 180ms -> factory:168ms building:30ms dependencies:185ms = 565ms [0] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server react-hot-loader/patch ./src/main/webapp/app/index 64 bytes {main} [built] factory:0ms building:2ms = 2ms + 1081 hidden modules ℹ 「wdm」: Compiled successfully. [Browsersync] Proxying: http://localhost:9060 [Browsersync] Access URLs: -------------------------------------- Local: http://localhost:9000 External: http://192.168.0.114:9000 -------------------------------------- UI: http://localhost:3001 UI External: http://192.168.0.114:3001 -------------------------------------- No type errors found No lint errors found Version: typescript 2.8.1, tslint 5.9.1 Time: 7444ms
Chrome page + console:
And network:
-
#1
Вот и снова я со своими вопросами.
Недавно добавил в плагин переводы, по данному уроку.
Изначально все было хорошо, но не тут — то было. Через неделю как я просто оставил все как было и вернулся к плагину, стали происходить паранормальные вещи:
L 08/22/2019 - 11:54:16: [SM] Exception reported: Language phrase "PlayerTakeCoins" not found (arg 4)
L 08/22/2019 - 11:54:16: [SM] Blaming: Trade_System.smx
L 08/22/2019 - 11:54:16: [SM] Call stack trace:
L 08/22/2019 - 11:54:16: [SM] [0] VFormat
L 08/22/2019 - 11:54:16: [SM] [1] Line 25, D:FilesServerserver_csgocsgoaddonssourcemodscriptingincludecsgo_colors.inc::CGOPrintToChat
L 08/22/2019 - 11:54:16: [SM] [2] Line 998, D:FilesServerserver_csgocsgoaddonssourcemodscriptingTrade_System.sp::GiveCoinsPlayer
L 08/22/2019 - 11:54:16: [SM] [3] Line 338, D:FilesServerserver_csgocsgoaddonssourcemodscriptingTrade_System.sp::Event_PlayerDeath
Тем не менее в файле перевода есть данный пункт:
"PlayerTakeCoins"
{
"#format" "{1:i},{2:s},{3:s}"
"ru" "[ {LIGHTGREEN}!TRADE {DEFAULT}] Вы получили {LIGHTGREEN}{1} К{2} {DEFAULT}за {LIGHTGREEN}{3}"
}
А пока эта не работает, некоторые другие работают…
Помогите пожалуйста)
P.S. К файлу перевода я подключался как надо, если нужен код, то скажите какая часть, а то там на 1000 строк
- Команда форума
-
#2
Объяснялось уже неоднократно.
Если язык игрока не объявлен во фразах, или язык попросту неизвестен, SM всегда в первую очередь пытается искать фразу на стандартном языке. Стандартный язык прописан в /addons/sourcemod/configs/core.cfg
, и по умолчанию там Английский.
Вдобавок, CS:GO имеет некоторые проблемы с передачей языка игрока на сервер, потому некоторое время после подключения игрока, SourceMod может использовать стандартную (английскую) локализацию.
Английской фразы нет, а оно ещё не определило, что у игрока — русский. Вот и ошибка.
-
#3
Объяснялось уже неоднократно.
Если язык игрока не объявлен во фразах, или язык попросту неизвестен, SM всегда в первую очередь пытается искать фразу на стандартном языке. Стандартный язык прописан в/addons/sourcemod/configs/core.cfg
, и по умолчанию там Английский.Вдобавок, CS:GO имеет некоторые проблемы с передачей языка игрока на сервер, потому некоторое время после подключения игрока, SourceMod может использовать стандартную (английскую) локализацию.
Английской фразы нет, а оно ещё не определило, что у игрока — русский. Вот и ошибка.
Спасибо за ответ, стандартный язык я изменил, но ошибка остается. Попробовал добавить строчку с «en» и также не находил, выдавая ошибку в консоль.
Некоторые фразы работают, некоторые — нет. Причем тот же плагин VIP иногда мне пишет на английском, что очень странно
Последнее редактирование: 22 Авг 2019
- Команда форума
-
#4
стандартный язык я изменил, но ошибка остается
Сервер перезагружали-то?
Причем тот же плагин VIP иногда мне пишет на английском
В таком случае, явно не перезагружали:
CS:GO имеет некоторые проблемы с передачей языка игрока на сервер, потому некоторое время после подключения игрока, SourceMod может использовать стандартную (английскую) локализацию
Grey83
не пишу плагины с весны 2022
-
#5
Когда же вы запомните, что основной файл перевода (который в папке по пути «…addonssourcemodtranslations«) должен обязательно содержать английский перевод (тег «en«), даже если там текст на русском?!
И «#format» должен быть в файле содержащем этот самый перевод. А остальные локализации могут быть где угодно: хоть в том же файле, хоть в папке соответствующего языка.
-
#6
Сервер перезагружали-то?
В таком случае, явно не перезагружали:
Перезагружал и не один раз, просто на любом сервере может быть такое, что на английском плагин.
Сообщения автоматически склеены: 22 Авг 2019
Когда же вы запомните, что основной файл перевода (который в папке по пути «…addonssourcemodtranslations«) должен обязательно содержать английский перевод (тег «en«), даже если там текст на русском?!
И «#format» должен быть в файле содержащем этот самый перевод. А остальные локализации могут быть где угодно: хоть в том же файле, хоть в папке соответствующего языка.
Спасибо за информацию, но факт того что раньше работало и даже с добавлением тега en не работает (ошибку дает)
Grey83
не пишу плагины с весны 2022
-
#7
раньше работало и даже с добавлением тега en не работает (ошибку дает)
Имя txt-файла локализации совпадает с именем указанным в плагине (в функции LoadTranslations()) и лежит непосредственно в …addonssourcemodtranslations, в самом файле ниже «#format» имеется перевод с ключём «en» и перед использованием перезапускался сервер или же перезагружались переводы командой sm_reload_translations?
Кстати, что с тех пор изменилось? SM на сервере обновился?
-
#8
Имя txt-файла локализации совпадает с именем указанным в плагине (в функции LoadTranslations()) и лежит непосредственно в …addonssourcemodtranslations, в самом файле ниже «#format» имеется перевод с ключём «en» и перед использованием перезапускался сервер или же перезагружались переводы командой sm_reload_translations?
Кстати, что с тех пор изменилось? SM на сервере обновился?
Файл закинут в следующую директорию: Serverserver_csgocsgoaddonssourcemodtranslationstrade.phrases.txt
Часть кода: LoadTranslation("trade.phrases");
(Очень странные вещи происходят когда я пытаюсь скопировать данную строку из кода, вот это копируется: MS5qUuf6Dnk5ubGFfeNKvnWfNV2i9Ymio1
)
Каждая попытка удовлетворить SourceMod, я полностью выключал и включал локальный сервер.
Сообщения автоматически склеены: 22 Авг 2019
О, что нашел при sm_reload_translations:
L 08/22/2019 - 18:23:42: [SM] Fatal error encountered parsing translation file "trade.phrases.txt"
L 08/22/2019 - 18:23:42: [SM] Error (line 171, column 31): Line contained too many invalid tokens
L 08/22/2019 - 18:23:42: [SM] Fatal error encountered parsing translation file "vip_modules.phrases.txt"
L 08/22/2019 - 18:23:42: [SM] Error (line 0, column 0): Stream failed to open
Сообщения автоматически склеены: 22 Авг 2019
В самом переводе:
"InfoCoins"
{
"#format" "{1:i},{2:i},{3:i},{4:i},{5:i}"
"ru" "Вы делаете убийства и получаете за это {LIGHTGREEN}коины,{DEFAULT}n
которые потом можно будет обменять на баланс в Вашем {LIGHTGREEN}личном кабинете {DEFAULT}на сайте {LIGHTGREEN}BoneBlood.run
{DEFAULT}Обменять валюту можно только тогда, когда Вы наберёте {LIGHTGREEN}{1} К{DEFAULT}, что равняется одному рублю на сайтеn
Убийство в тело => {LIGHTGREEN}{2} Кn
Убийство в голову => {LIGHTGREEN}{3} Кn
Заклад бомбы => {LIGHTGREEN}{4} Кn
MVP (лучший игрок) => {LIGHTGREEN}{5} К"
"en" "Вы делаете убийства и получаете за это {LIGHTGREEN}коины,{DEFAULT}n
которые потом можно будет обменять на баланс в Вашем {LIGHTGREEN}личном кабинете {DEFAULT}на сайте {LIGHTGREEN}BoneBlood.run
{DEFAULT}Обменять валюту можно только тогда, когда Вы наберёте {LIGHTGREEN}{1} К{DEFAULT}, что равняется одному рублю на сайтеn
Убийство в тело => {LIGHTGREEN}{2} Кn
Убийство в голову => {LIGHTGREEN}{3} Кn
Заклад бомбы => {LIGHTGREEN}{4} Кn
MVP (лучший игрок) => {LIGHTGREEN}{5} К"
}
- Команда форума
-
#9
А с чего Вы решили, что Вы можете здесь делать настоящие переносы строк? n
в фразе — ради Бога, а перенос именно — нельзя.
-
#10
А с чего Вы решили, что Вы можете здесь делать настоящие переносы строк?
n
в фразе — ради Бога, а перенос именно — нельзя.
Всем спасибо, я все решил. Раньше работало)
Grey83
не пишу плагины с весны 2022
-
#11
хм, и такой длинный текст реально выводится и не обрезается игрой?
- Команда форума
-
#12
@Grey83, дык ксго же. Там CS:GO Colors сам формирует несколько PrintToChat() вызовов на основе кол-ва n
в тексте.
Grey83
не пишу плагины с весны 2022
-
#13
Крузяра, глянул инклюд: действительно разбивает текст на несколько сообщений
This error occurs in strict typescript in Angular 11 when using the ngx-translate functionality. In this case I use a core module (which acts like a «shared» module). Within the core module is a header component which needs to use the translate pipe.
Solution
Fist, make sure your setup is right. In app.module.ts:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {TranslateLoader, TranslateModule} from '@ngx-translate/core';
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {HttpClient, HttpClientModule} from '@angular/common/http';
import { CoreModule } from './core/core.module';
/* Feature Modules */
import { environment } from '../environments/environment';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
CoreModule,
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
HttpClientModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
},
isolate: false
}),
],
exports: [
],
providers: [
],
bootstrap: [AppComponent]
})
export class AppModule { }
// required for AOT compilation
// https://www.codeandweb.com/babeledit/tutorials/how-to-translate-your-angular8-app-with-ngx-translate
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http);
}
Then, in your core module file core.module.ts:
import {inject, NgModule, Optional, SkipSelf} from '@angular/core';
import { CommonModule } from '@angular/common';
import { throwIfAlreadyLoaded } from './ensureModuleLoadedOnceGuard';
import { HeaderComponent } from './header/header.component';
import {TranslateModule} from '@ngx-translate/core';
@NgModule({
imports: [
CommonModule,
TranslateModule.forChild()
],
exports: [
CommonModule, [HeaderComponent]
],
declarations: [
[HeaderComponent]
],
providers: [
]
})
export class CoreModule {
constructor(
@Optional() @SkipSelf() parentModule: CoreModule,
) {
throwIfAlreadyLoaded(parentModule, 'CoreModule');
}
}
Then, in my header.component.html, which is imported in core.module.ts I can use my translation pipe!
{{ 'print_basket' | translate }}
Saved you some valuable time?
Buy me a drink 🍺