Skip to content

Instantly share code, notes, and snippets.

@Bessonov
Created April 25, 2015 15:04
Show Gist options
  • Save Bessonov/3331c20af7a4d2425b29 to your computer and use it in GitHub Desktop.
Save Bessonov/3331c20af7a4d2425b29 to your computer and use it in GitHub Desktop.
$ ~/workspace/gradle/gradle-2.3/bin/gradle bootRun
:compileJava UP-TO-DATE
:nodeSetup SKIPPED
:installReact UP-TO-DATE
:jsx UP-TO-DATE
:processResources
:classes
:findMainClass
:bootRun
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.2.3.RELEASE)
2015-04-25 17:02:16.236 INFO 7842 --- [ main] i.s.isomorphic.IsomorphicApplication : Starting IsomorphicApplication on networker with PID 7842 (/tmp/spring-react-isomorphic/build/classes/main started by toxa in /tmp/spring-react-isomorphic)
2015-04-25 17:02:16.283 INFO 7842 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@121c9d6: startup date [Sat Apr 25 17:02:16 CEST 2015]; root of context hierarchy
2015-04-25 17:02:17.177 INFO 7842 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2015-04-25 17:02:17.358 INFO 7842 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2015-04-25 17:02:17.359 INFO 7842 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.20
2015-04-25 17:02:17.439 INFO 7842 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2015-04-25 17:02:17.439 INFO 7842 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1160 ms
2015-04-25 17:02:17.534 INFO 7842 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2015-04-25 17:02:17.537 INFO 7842 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2015-04-25 17:02:17.744 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto java.lang.Iterable<io.spring.isomorphic.Comment> io.spring.isomorphic.CommentController.jsonFindAll()
2015-04-25 17:02:17.744 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[POST],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto io.spring.isomorphic.Comment io.spring.isomorphic.CommentController.jsonCreate(io.spring.isomorphic.Comment) throws java.io.IOException
2015-04-25 17:02:17.744 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/sse/updates],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto org.springframework.web.servlet.mvc.method.annotation.SseEmitter io.spring.isomorphic.CommentController.subscribeUpdates()
2015-04-25 17:02:17.744 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto java.lang.String io.spring.isomorphic.CommentController.render(org.springframework.ui.Model)
2015-04-25 17:02:17.749 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[text/html],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2015-04-25 17:02:17.749 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2015-04-25 17:02:17.768 INFO 7842 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2015-04-25 17:02:17.768 INFO 7842 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2015-04-25 17:02:18.030 INFO 7842 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@121c9d6: startup date [Sat Apr 25 17:02:16 CEST 2015]; root of context hierarchy
2015-04-25 17:02:21.077 INFO 7842 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2015-04-25 17:02:21.158 INFO 7842 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
---------------------------------
Comment{id=1, author='Brian Clozel', content='This is a test!'}
Comment{id=2, author='Stéphan Nicoll', content='This is a test too!'}
---------------------------------
2015-04-25 17:02:21.165 INFO 7842 --- [ main] i.s.isomorphic.IsomorphicApplication : Started IsomorphicApplication in 5.127 seconds (JVM running for 5.432)
2015-04-25 17:02:56.821 INFO 7842 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2015-04-25 17:02:56.821 INFO 7842 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2015-04-25 17:02:56.831 INFO 7842 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 10 ms
2015-04-25 17:02:57.655 ERROR 7842 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: failed to render template] with root cause
java.lang.ArrayIndexOutOfBoundsException: 9
at java.lang.invoke.MethodHandleImpl$ArrayAccessor.getElementL(MethodHandleImpl.java:130)
at jdk.nashorn.internal.scripts.Script$Recompilation$302$560196AA$\^eval\_.L:4-1$L:18234$instantiateReactComponent(<eval>:18333)
at jdk.nashorn.internal.scripts.Script$Recompilation$376$147092AAA$\^eval\_.L:4-1$L:4696$instantiateChildren(<eval>:4739)
at jdk.nashorn.internal.scripts.Script$Recompilation$375$396568AAA$\^eval\_.L:4-1$L:12623$mountChildren(<eval>:12804)
at jdk.nashorn.internal.scripts.Script$Recompilation$374$236403AA$\^eval\_.L:4-1$L:7396$_createContentMarkup(<eval>:7683)
at jdk.nashorn.internal.scripts.Script$Recompilation$356$234184AAA$\^eval\_.L:4-1$L:7396$mountComponent(<eval>:7593)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.internal.scripts.Script$Recompilation$309$195650AAA$\^eval\_.L:4-1$L:6158$mountComponent(<eval>:6399)
at jdk.nashorn.internal.scripts.Script$Recompilation$308$413782AAA$\^eval\_.L:4-1$L:13301$measure$wrapper(<eval>:13371)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.internal.scripts.Script$Recompilation$375$396568AAA$\^eval\_.L:4-1$L:12623$mountChildren(<eval>:12815)
at jdk.nashorn.internal.scripts.Script$Recompilation$374$236403AA$\^eval\_.L:4-1$L:7396$_createContentMarkup(<eval>:7683)
at jdk.nashorn.internal.scripts.Script$Recompilation$356$234184AAA$\^eval\_.L:4-1$L:7396$mountComponent(<eval>:7593)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.l.scripts.Script$Recompilation$309$195650AAA$\^eval\_.L:4-1$L:6158$mountComponent(<eval>:6399)
at jdk.nashorn.internal.scripts.Script$Recompilation$308$413782AAA$\^eval\_.L:4-1$L:13301$measure$wrapper(<eval>:13371)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.internal.scripts.Script$Recompilation$309$195650AAA$\^eval\_.L:4-1$L:6158$mountComponent(<eval>:6399)
at jdk.nashorn.internal.scripts.Script$Recompilation$308$413782AAA$\^eval\_.L:4-1$L:13301$measure$wrapper(<eval>:13371)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.internal.scripts.Script$Recompilation$375$396568AAA$\^eval\_.L:4-1$L:12623$mountChildren(<eval>:12815)
at jdk.nashorn.internal.scripts.Script$Recompilation$374$236403AA$\^eval\_.L:4-1$L:7396$_createContentMarkup(<eval>:7683)
at jdk.nashorn.internal.scripts.Script$Recompilation$356$234184AAA$\^eval\_.L:4-1$L:7396$mountComponent(<eval>:7593)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.internal.scripts.Script$Recompilation$309$195650AAA$\^eval\_.L:4-1$L:6158$mountComponent(<eval>:6399)
at jdk.nashorn.internal.scripts.Script$Recompilation$308$413782AAA$\^eval\_.L:4-1$L:13301$measure$wrapper(<eval>:13371)
at jdk.nashorn.internal.scripts.Script$Recompilation$349$434323AAAA$\^eval\_.L:4-1$L:14034$mountComponent(<eval>:14072)
at jdk.nashorn.internal.scripts.Script$Recompilation$309$195650AAA$\^eval\_.L:4-1$L:6158$mountComponent(<eval>:6399)
at jdk.nashorn.internal.scripts.Script$Recompilation$308$413782AAA$\^eval\_.L:4-1$L:13301$measure$wrapper(<eval>:13371)
at jdk.nashorn.internal.scripts.Script$Recompilation$301$440790AAAAAA$\^eval\_.L:4-1$L:14258$renderToString$L:14297(<eval>:14300)
at jdk.nashorn.internal.scripts.Script$Recompilation$294$511743AAAAAAAA$\^eval\_.L:4-1$L:16491$perform(<eval>:16625)
at jdk.nashornal.scripts.Script$Recompilation$286$440389A$\^eval\_.L:4-1$L:14258$renderToString(<eval>:14297)
at jdk.nashorn.internal.scripts.Script$Recompilation$281$48AA$\^eval\_#1\!6653\^eval\_.process(<eval>#1:6653<eval>:40)
at jdk.nashorn.internal.scripts.Script$Recompilation$279$1754AA$\^eval\_.L:1$render(<eval>:1)
at jdk.nashorn.internal.scripts.Script$Recompilation$260$33AA$\^eval\_.render(<eval>:13)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:640)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:192)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:381)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:187)
at org.springframework.web.servlet.view.script.ScriptTemplateView.renderMergedOutputModel(ScriptTemplateView.java:137)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1244)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.AppliclterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread1)ava:6
at java.lang.Thread.run(Thread.java:745)
@robinhowlett
Copy link

@sdeleuze said to run IsomorphicApplication.java inside the IDE. I have done this also but I get the same error as you when visiting http://localhost:8080. Did you ever get it to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment