HI i just recently know that it’s possible to develop locally for a template from this link:
designers.hubspot.com
Local HubL server
The HubL developer server allows web developers that are comfortable with markup and the HubL templating language to build and test HubSpot COS templates locally. The server runs 100% locally with no external dependencies. Once running, you will be…
however i encounter an issue when starting the local server.
OS: OSX
Java version: 11
Error
`
➜ local-hubl-server ./bin/local-hubl-server
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/Users/kendelarama/Downloads/local-hubl-server/lib/local-hubl-server-deps.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR [2018-10-18 13:38:05,300] jinjava: Error creating injected context function
! javassist.NotFoundException: com.hubspot.content.cyw
! at javassist.ClassPool.get(ClassPool.java:452)
! at com.hubspot.jinjava.lib.fn.InjectedContextFunctionProxy.defineProxy(InjectedContextFunctionProxy.java:31)
! at com.hubspot.content.cwf.a(Unknown Source)
! at com.hubspot.content.cwf$$FastClassByGuice$$38013f99.invoke(<generated>)
! at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264)
! at com.google.inject.internal.ProviderMethod$Factory.provision(ProviderMethod.java:401)
! at com.google.inject.internal.ProviderMethod$Factory.get(ProviderMethod.java:376)
! at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
! at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
! at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
! at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
! at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
! at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
! at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
! at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
! at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:123)
! at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:117)
! at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
! at com.google.inject.internal.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor.java:117)
! at com.google.inject.internal.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:79)
! at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:171)
! at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
! at com.google.inject.Guice.createInjector(Guice.java:99)
! at com.google.inject.Guice.createInjector(Guice.java:73)
! at com.hubspot.dropwizard.guice.InjectorFactoryImpl.create(Unknown Source)
! at com.hubspot.dropwizard.guice.GuiceBundle.initialize(Unknown Source)
! at com.yammer.dropwizard.config.Bootstrap.addBundle(Bootstrap.java:43)
! at com.hubspot.content.hubl.dev.LocalHubLDevService.initialize(Unknown Source)
! at com.yammer.dropwizard.Service.run(Service.java:59)
! at com.hubspot.content.hubl.dev.LocalHubLDevService.main(Unknown Source)
ERROR [2018-10-18 13:38:05,360] com.hubspot.dropwizard.guice.GuiceBundle: Exception occurred when creating Guice Injector - exiting
! com.google.inject.CreationException: Unable to create injector, see the following errors:
- Error in custom provider, java.lang.RuntimeException: javassist.NotFoundException: com.hubspot.content.cyw
at com.hubspot.content.cwf.a(Unknown Source) (via modules: com.hubspot.content.cxx → com.hubspot.content.cwf)
at com.hubspot.content.cwf.a(Unknown Source) (via modules: com.hubspot.content.cxx → com.hubspot.content.cwf)
while locating com.hubspot.jinjava.Jinjava
for the 1st parameter of com.hubspot.content.hubl.util.snippets.Snippets.setJinjava(Unknown Source)
Caused by: java.lang.RuntimeException: javassist.NotFoundException: com.hubspot.content.cyw
at com.google.common.base.Throwables.propagate(Throwables.java:241)
at com.hubspot.jinjava.lib.fn.InjectedContextFunctionProxy.defineProxy(InjectedContextFunctionProxy.java:72)
at com.hubspot.content.cwf.a(Unknown Source)
at com.hubspot.content.cwf$$FastClassByGuice$$38013f99.invoke(<generated>)
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264)
at com.google.inject.internal.ProviderMethod$Factory.provision(ProviderMethod.java:401)
at com.google.inject.internal.ProviderMethod$Factory.get(ProviderMethod.java:376)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:123)
at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:117)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor.java:117)
at com.google.inject.internal.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:79)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:171)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
at com.google.inject.Guice.createInjector(Guice.java:99)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.hubspot.dropwizard.guice.InjectorFactoryImpl.create(Unknown Source)
at com.hubspot.dropwizard.guice.GuiceBundle.initialize(Unknown Source)
at com.yammer.dropwizard.config.Bootstrap.addBundle(Bootstrap.java:43)
at com.hubspot.content.hubl.dev.LocalHubLDevService.initialize(Unknown Source)
at com.yammer.dropwizard.Service.run(Service.java:59)
at com.hubspot.content.hubl.dev.LocalHubLDevService.main(Unknown Source)
Caused by: javassist.NotFoundException: com.hubspot.content.cyw
at javassist.ClassPool.get(ClassPool.java:452)
at com.hubspot.jinjava.lib.fn.InjectedContextFunctionProxy.defineProxy(InjectedContextFunctionProxy.java:31)
… 28 more
- Error injecting method, java.lang.ExceptionInInitializerError
at com.hubspot.content.hubl.util.snippets.Snippets.setEnvironment(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at com.hubspot.content.hubl.util.snippets.Snippets$$FastClassByGuice$$933d2e00.invoke(<generated>)
at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:54)
at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:89)
at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:123)
at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:117)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor.java:117)
at com.google.inject.internal.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:79)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:171)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
at com.google.inject.Guice.createInjector(Guice.java:99)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.hubspot.dropwizard.guice.InjectorFactoryImpl.create(Unknown Source)
at com.hubspot.dropwizard.guice.GuiceBundle.initialize(Unknown Source)
at com.yammer.dropwizard.config.Bootstrap.addBundle(Bootstrap.java:43)
at com.hubspot.content.hubl.dev.LocalHubLDevService.initialize(Unknown Source)
at com.yammer.dropwizard.Service.run(Service.java:59)
at com.hubspot.content.hubl.dev.LocalHubLDevService.main(Unknown Source)
Caused by: java.lang.RuntimeException: javassist.NotFoundException: com.hubspot.content.hubl.util.snippets.Template
at com.hubspot.content.hubl.util.snippets.Snippets.load(Unknown Source)
at com.hubspot.content.hubl.util.snippets.Snippets.<clinit>(Unknown Source)
… 18 more
Caused by: javassist.NotFoundException: com.hubspot.content.hubl.util.snippets.Template
at javassist.ClassPool.get(ClassPool.java:452)
at com.hubspot.content.hubl.util.snippets.Snippets.loadSnippetTemplate(Unknown Source)
at com.hubspot.content.hubl.util.snippets.Snippets.load(Unknown Source)
… 19 more
2 errors
! at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
! at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
! at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
! at com.google.inject.Guice.createInjector(Guice.java:99)
! at com.google.inject.Guice.createInjector(Guice.java:73)
! at com.hubspot.dropwizard.guice.InjectorFactoryImpl.create(Unknown Source)
! at com.hubspot.dropwizard.guice.GuiceBundle.initialize(Unknown Source)
! at com.yammer.dropwizard.config.Bootstrap.addBundle(Bootstrap.java:43)
! at com.hubspot.content.hubl.dev.LocalHubLDevService.initialize(Unknown Source)
! at com.yammer.dropwizard.Service.run(Service.java:59)
! at com.hubspot.content.hubl.dev.LocalHubLDevService.main(Unknown Source)
`
Hope someone can help.