4 Replies Latest reply on Jun 11, 2013 2:18 AM by Erik Jan de Wit

    Error with LessStyleGenerator

    John DeStefano Apprentice

      Hi,

       

      Getting the following error when building my application:

       

       

      {code}

      java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: no context found for template file:/Users/johndestefano/git/olhie/olhie/src/main/java/com/pronoiahealth/olhie/client/pages/main/Footer.html

                at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)

                at java.util.concurrent.FutureTask.get(FutureTask.java:83)

                at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

                at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

                at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:100)

                at org.jboss.errai.ui.rebind.less.LessStyleGenerator.generate(LessStyleGenerator.java:61)

                at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

                at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

                at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

                at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

                at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

                at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)

                at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)

                at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)

                at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)

                at com.google.gwt.core.shared.GWT.create(GWT.java:57)

                at com.google.gwt.core.client.GWT.create(GWT.java:85)

                at org.jboss.errai.ui.client.local.spi.LessStyle.init(LessStyle.java:19)

                at org.jboss.errai.ioc.client.BootstrapperImpl$80.init(BootstrapperImpl.java:1527)

                at org.jboss.errai.ioc.client.BootstrapperImpl$80.init(BootstrapperImpl.java:1)

                at org.jboss.errai.ioc.client.container.AbstractCreationalContext.fireAllInitCallbacks(AbstractCreationalContext.java:196)

                at org.jboss.errai.ioc.client.container.SimpleCreationalContext.finish(SimpleCreationalContext.java:177)

                at org.jboss.errai.ioc.client.Container.bootstrapContainer(Container.java:76)

                at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:39)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)

                at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)

                at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)

                at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)

                at java.lang.Thread.run(Thread.java:680)

      Caused by: java.lang.IllegalArgumentException: no context found for template file:/Users/johndestefano/git/olhie/olhie/src/main/java/com/pronoiahealth/olhie/client/pages/main/Footer.html

                at org.jboss.errai.ui.rebind.chain.TemplateCatalog.getResult(TemplateCatalog.java:76)

                at org.jboss.errai.ui.rebind.chain.TemplateChain.getLastResult(TemplateChain.java:27)

                at org.jboss.errai.ui.rebind.less.LessStyleGenerator.generate(LessStyleGenerator.java:80)

                at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:42)

                at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:39)

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

                ... 1 more

      java.lang.RuntimeException: error in bean initialization

                at org.jboss.errai.ioc.client.container.AbstractCreationalContext.fireAllInitCallbacks(AbstractCreationalContext.java:200)

                at org.jboss.errai.ioc.client.container.SimpleCreationalContext.finish(SimpleCreationalContext.java:177)

                at org.jboss.errai.ioc.client.Container.bootstrapContainer(Container.java:76)

                at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:39)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)

                at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)

                at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)

                at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)

                at java.lang.Thread.run(Thread.java:680)

      Caused by: java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.ui.client.local.spi.LessStyleMapping' (did you forget to inherit a required module?)

                at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)

                at com.google.gwt.core.shared.GWT.create(GWT.java:57)

                at com.google.gwt.core.client.GWT.create(GWT.java:85)

                at org.jboss.errai.ui.client.local.spi.LessStyle.init(LessStyle.java:19)

                at org.jboss.errai.ioc.client.BootstrapperImpl$80.init(BootstrapperImpl.java:1527)

                at org.jboss.errai.ioc.client.BootstrapperImpl$80.init(BootstrapperImpl.java:1)

                at org.jboss.errai.ioc.client.container.AbstractCreationalContext.fireAllInitCallbacks(AbstractCreationalContext.java:196)

                ... 12 more

      Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)

                at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:513)

                at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)

                ... 18 more

      {code}

       

       

       

       

      This appears to be caused by the markup:

       

       

      {code}

      <div class="footer-style" data-field="main"> OLHIE<br> Copyright 2013 </div>

      {code}

       

       

      When I change the above to look like this:

       

       

      {code}

      <div class="footer-style" data-field="main">

                OLHIE<br> Copyright 2013

      </div>

      {code}

       

       

      I don't get an error. I think this started happen when the LessStyleGenerator was added?

       

      Thanks