{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7178","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7178/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7178/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7178/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/7178","id":300415249,"number":7178,"title":"JHipster+consul rate-limit with prod profile throwing ClassNotFound exception.","user":{"login":"Puneetsri","id":7817426,"avatar_url":"https://avatars2.githubusercontent.com/u/7817426?v=4","gravatar_id":"","url":"https://api.github.com/users/Puneetsri","html_url":"https://github.com/Puneetsri","followers_url":"https://api.github.com/users/Puneetsri/followers","following_url":"https://api.github.com/users/Puneetsri/following{/other_user}","gists_url":"https://api.github.com/users/Puneetsri/gists{/gist_id}","starred_url":"https://api.github.com/users/Puneetsri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Puneetsri/subscriptions","organizations_url":"https://api.github.com/users/Puneetsri/orgs","repos_url":"https://api.github.com/users/Puneetsri/repos","events_url":"https://api.github.com/users/Puneetsri/events{/privacy}","received_events_url":"https://api.github.com/users/Puneetsri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-26T22:09:06Z","updated_at":"2018-03-06T23:11:24Z","closed_at":"2018-03-06T23:11:24Z","author_association":"NONE","body":"<!--\r\n- Please follow the issue template below for bug reports and feature requests.\r\n- If you have a support request rather than a bug, please use [Stack Overflow](http://stackoverflow.com/questions/tagged/jhipster) with the JHipster tag.\r\n- For bug reports it is mandatory to run the command `jhipster info` in your project's root folder, and paste the result here.\r\n- Tickets opened without any of these pieces of information will be **closed** without any explanation.\r\n-->\r\n\r\n***Apologies if this is not the right project to create the issue in.\r\n\r\n##### **Overview of the issue**\r\nJHipster+consul rate-limit with prod profile throwing ClassNotFound exception.\r\n\r\n\r\n<!-- Explain the bug or feature request, if an error is being thrown a stack trace helps -->\r\n\r\n##### **Motivation for or Use Case**\r\nI am using typical JHipster[4.14.0] microservices stack [brand new project, generated using jhipster generator] (JHipster Gateway + UAA + 2 microservices + consul[0.9.3]). Postgres as database and Hazelcast is enabled in project. My aim was to test the rate-limiting feature. Using 'dev' profile, rate limit is working fine in JHipster, I've tested it successfully, without any exceptions.  Now I'm testing it with 'prod' profile. I've enabled rate-limiting in application-prod.yml, added limit + duration-in-seconds(as in application-dev.yml):\r\n\r\n~~~yml\r\ngateway:\r\n    rate-limiting:\r\n        enabled: true\r\n        limit: 3\r\n        duration-in-seconds: 30\r\n    authorized-microservices-endpoints: # Access Control Policy, if left empty for a route, all endpoints will be accessible\r\n        app1: `/api`\r\n~~~\r\n\r\nBut while running (tried in intellij with prod profile, tried on command line with -Pprod, also tried with docker-compose with prod profile), it throws following exception:\r\n\r\n~~~\r\ncom.netflix.zuul.exception.ZuulException: Filter threw Exception\r\n    at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:227)\r\n    at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157)\r\n    at com.netflix.zuul.FilterProcessor.preRoute(FilterProcessor.java:133)\r\n    at com.netflix.zuul.ZuulRunner.preRoute(ZuulRunner.java:105)\r\n    at com.netflix.zuul.http.ZuulServlet.preRoute(ZuulServlet.java:125)\r\n    at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:74)\r\n    at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:157)\r\n    at org.springframework.cloud.netflix.zuul.web.ZuulController.handleRequest(ZuulController.java:44)\r\n    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)\r\n    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)\r\n    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)\r\n    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)\r\n    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)\r\n    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)\r\n    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)\r\n    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\n    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)\r\n    at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:111)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)\r\n    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)\r\n    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at com.mycompany.myapp.web.filter.RefreshTokenFilter.doFilter(RefreshTokenFilter.java:62)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:100)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)\r\n    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)\r\n    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)\r\n    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)\r\n    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)\r\n    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)\r\n    at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)\r\n    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)\r\n    at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:64)\r\n    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)\r\n    at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)\r\n    at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)\r\n    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)\r\n    at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)\r\n    at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)\r\n    at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)\r\n    at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)\r\n    at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)\r\n    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)\r\n    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)\r\n    at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)\r\n    at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)\r\n    at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)\r\n    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)\r\n    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:332)\r\n    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)\r\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n    at java.lang.Thread.run(Thread.java:748)\r\nCaused by: javax.cache.processor.EntryProcessorException: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: io.github.bucket4j.grid.jcache.ExecuteProcessor\r\n    at com.hazelcast.cache.impl.CacheProxy.invoke(CacheProxy.java:250)\r\n    at io.github.bucket4j.grid.jcache.JCacheProxy.execute(JCacheProxy.java:51)\r\n    at io.github.bucket4j.grid.GridBucket.execute(GridBucket.java:162)\r\n    at io.github.bucket4j.grid.GridBucket.tryConsumeImpl(GridBucket.java:77)\r\n    at io.github.bucket4j.AbstractBucket.tryConsume(AbstractBucket.java:159)\r\n    at com.mycompany.myapp.gateway.ratelimiting.RateLimitingFilter.run(RateLimitingFilter.java:80)\r\n    at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:112)\r\n    at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193)\r\n    ... 116 common frames omitted\r\nCaused by: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: io.github.bucket4j.grid.jcache.ExecuteProcessor\r\n    at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$JavaSerializer.read(JavaDefaultSerializers.java:224)\r\n    at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48)\r\n    at com.hazelcast.internal.serialization.impl.AbstractSerializationService.readObject(AbstractSerializationService.java:267)\r\n    at com.hazelcast.internal.serialization.impl.ByteArrayObjectDataInput.readObject(ByteArrayObjectDataInput.java:570)\r\n    at com.hazelcast.cache.impl.operation.CacheEntryProcessorOperation.readInternal(CacheEntryProcessorOperation.java:131)\r\n    at com.hazelcast.spi.Operation.readData(Operation.java:606)\r\n    at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.readInternal(DataSerializableSerializer.java:158)\r\n    at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:105)\r\n    at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:50)\r\n    at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48)\r\n    at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:185)\r\n    at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:339)\r\n    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:394)\r\n    at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:115)\r\n    at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run(OperationThread.java:100)\r\n    at ------ submitted from ------.(Unknown Source)\r\n    at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:127)\r\n    at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:79)\r\n    at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)\r\n    at com.hazelcast.spi.impl.AbstractInvocationFuture.join(AbstractInvocationFuture.java:136)\r\n    at com.hazelcast.cache.impl.CacheProxy.invoke(CacheProxy.java:242)\r\n    ... 123 common frames omitted\r\nCaused by: java.lang.ClassNotFoundException: io.github.bucket4j.grid.jcache.ExecuteProcessor\r\n    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n    at org.springframework.boot.devtools.restart.classloader.RestartClassLoader.loadClass(RestartClassLoader.java:151)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n    at com.hazelcast.nio.ClassLoaderUtil.tryLoadClass(ClassLoaderUtil.java:173)\r\n    at com.hazelcast.nio.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:147)\r\n    at com.hazelcast.nio.IOUtil$ClassLoaderAwareObjectInputStream.resolveClass(IOUtil.java:591)\r\n    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863)\r\n    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746)\r\n    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037)\r\n    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)\r\n    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)\r\n    at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$JavaSerializer.read(JavaDefaultSerializers.java:219)\r\n    at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48)\r\n    at com.hazelcast.internal.serialization.impl.AbstractSerializationService.readObject(AbstractSerializationService.java:267)\r\n    at com.hazelcast.internal.serialization.impl.ByteArrayObjectDataInput.readObject(ByteArrayObjectDataInput.java:570)\r\n    at com.hazelcast.cache.impl.operation.CacheEntryProcessorOperation.readInternal(CacheEntryProcessorOperation.java:131)\r\n    at com.hazelcast.spi.Operation.readData(Operation.java:606)\r\n    at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.readInternal(DataSerializableSerializer.java:158)\r\n    at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:105)\r\n    at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:50)\r\n    at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48)\r\n    at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:185)\r\n    at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:339)\r\n    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:394)\r\n    at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:115)\r\n~~~\r\n\r\n<!-- Explain why this is a bug or a new feature for you -->\r\n\r\n##### **Reproduce the error**\r\nYes it is highly reproducible. I however have noticed that sometimes when i kill the gateway (when the services are up) and start it again, calls start working [but not always]. It seems to me that there is some kind of race condition. Issue might be between Hazelcast and bucket4j.\r\n\r\n<!-- For bug reports, an unambiguous set of steps to reproduce the error -->\r\n\r\n##### **Related issues**\r\nNot sure but may be related with hazelcast message serialization which does not find the bucket4j class which is probably in a different class loader?  \r\nhttps://github.com/hazelcast/hazelcast/issues/8972???\r\n\r\nI've also created a stackoverflow issue before creating this one: https://stackoverflow.com/questions/48976687/jhipsterconsul-rate-limit-with-prod-profile-throwing-classnotfound-exception\r\n\r\n<!-- Has a similar issue been reported before? Please search both closed & open issues -->\r\n\r\n##### **Suggest a Fix**\r\n\r\n<!-- For bug reports, if you can't fix the bug yourself, perhaps you can point to what might be\r\n  causing the problem (line of code or commit) -->\r\n\r\n##### **JHipster Version(s)**\r\nJHipster 4.14.0\r\n<!--\r\nWhich version of JHipster are you using, is it a regression?\r\n-->\r\n\r\n##### **JHipster configuration**\r\nzuul based gateway+uaa+2 microservices, all of them using POSTGRES, + consul 0.9.3\r\n<!--\r\nTo provide all information we need, you should run `jhipster info` in the project root folder, and\r\ncopy/paste the result here.\r\nThe `.yo-rc.json` file generated in the root folder is mandatory for bug reports. This will help us to replicate the scenario.\r\nYou should remove any sensitive information like the rememberMe key or the jwtSecretKey key.\r\n-->\r\n\r\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\r\n\r\n<!--\r\nIf the error is during an entity creation or associated with a specific entity.\r\nIf you are using JDL, please share that configuration as well.\r\n-->\r\n\r\n##### **Browsers and Operating System**\r\n\r\n<!-- What OS are you on? is this a problem with all browsers or only IE8? -->\r\nUbuntu 16.4 , Chrome\r\n- [X ] Checking this box is mandatory (this is just to show you read everything)\r\n\r\n<!-- Love JHipster? Please consider supporting our collective:\r\n👉  https://opencollective.com/generator-jhipster/donate -->\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/370962811","html_url":"https://github.com/jhipster/generator-jhipster/issues/7178#issuecomment-370962811","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7178","id":370962811,"user":{"login":"jdubois","id":316835,"avatar_url":"https://avatars1.githubusercontent.com/u/316835?v=4","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T23:11:24Z","updated_at":"2018-03-06T23:11:24Z","author_association":"OWNER","body":"I just tried it on the current `master` branch, using your `.yo-rc.json` and running the gateway + a microservice using `./mvnw -Pprod` and I had no issue at all.\r\nThe master branch is using Spring Boot 2 and we have upgraded many libraries, so we probably \"solved\" it without knowing it. Can you try again, either on the master branch, or as soon as we do a release?\r\nWe'll re-open it if needed, but at the moment I'm closing this as it works on the master branch."}}
{"actor":{"display_login":"jdubois"}}