{"action":"closed","issue":{"url":"https://api.github.com/repos/craftercms/craftercms/issues/486","repository_url":"https://api.github.com/repos/craftercms/craftercms","labels_url":"https://api.github.com/repos/craftercms/craftercms/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/craftercms/craftercms/issues/486/comments","events_url":"https://api.github.com/repos/craftercms/craftercms/issues/486/events","html_url":"https://github.com/craftercms/craftercms/issues/486","id":210515765,"number":486,"title":"[Studio] NullPointerException while getting content ","user":{"login":"avasquez614","id":1598884,"avatar_url":"https://avatars0.githubusercontent.com/u/1598884?v=3","gravatar_id":"","url":"https://api.github.com/users/avasquez614","html_url":"https://github.com/avasquez614","followers_url":"https://api.github.com/users/avasquez614/followers","following_url":"https://api.github.com/users/avasquez614/following{/other_user}","gists_url":"https://api.github.com/users/avasquez614/gists{/gist_id}","starred_url":"https://api.github.com/users/avasquez614/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avasquez614/subscriptions","organizations_url":"https://api.github.com/users/avasquez614/orgs","repos_url":"https://api.github.com/users/avasquez614/repos","events_url":"https://api.github.com/users/avasquez614/events{/privacy}","received_events_url":"https://api.github.com/users/avasquez614/received_events","type":"User","site_admin":false},"labels":[{"id":469369224,"url":"https://api.github.com/repos/craftercms/craftercms/labels/bug","name":"bug","color":"ee0701","default":true},{"id":544813742,"url":"https://api.github.com/repos/craftercms/craftercms/labels/Priority:%20Medium","name":"Priority: Medium","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/craftercms/craftercms/milestones/3","html_url":"https://github.com/craftercms/craftercms/milestone/3","labels_url":"https://api.github.com/repos/craftercms/craftercms/milestones/3/labels","id":2113203,"number":3,"title":"Crafter CMS v3.0","description":"Git Repository support","creator":{"login":"sumerjabri","id":3931908,"avatar_url":"https://avatars2.githubusercontent.com/u/3931908?v=3","gravatar_id":"","url":"https://api.github.com/users/sumerjabri","html_url":"https://github.com/sumerjabri","followers_url":"https://api.github.com/users/sumerjabri/followers","following_url":"https://api.github.com/users/sumerjabri/following{/other_user}","gists_url":"https://api.github.com/users/sumerjabri/gists{/gist_id}","starred_url":"https://api.github.com/users/sumerjabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumerjabri/subscriptions","organizations_url":"https://api.github.com/users/sumerjabri/orgs","repos_url":"https://api.github.com/users/sumerjabri/repos","events_url":"https://api.github.com/users/sumerjabri/events{/privacy}","received_events_url":"https://api.github.com/users/sumerjabri/received_events","type":"User","site_admin":false},"open_issues":36,"closed_issues":261,"state":"open","created_at":"2016-11-03T20:16:30Z","updated_at":"2017-05-02T14:13:00Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-02-27T15:25:27Z","updated_at":"2017-05-02T14:13:00Z","closed_at":"2017-05-02T14:13:00Z","body":"When a new site is created with the Editorial blueprint, the following error appears for several files:\r\n\r\n```\r\n[ERROR] 2017-02-27 10:11:12,151 [http-nio-8080-exec-4] [content.ContentServiceImpl] | Failed to get content as string for path /static-assets/css/style1.css \r\njava.lang.NullPointerException\r\n\tat java.io.Reader.<init>(Reader.java:78)\r\n\tat java.io.InputStreamReader.<init>(InputStreamReader.java:113)\r\n\tat org.apache.commons.io.IOUtils.copy(IOUtils.java:1906)\r\n\tat org.apache.commons.io.IOUtils.toString(IOUtils.java:778)\r\n\tat org.apache.commons.io.IOUtils.toString(IOUtils.java:759)\r\n\tat org.craftercms.studio.impl.v1.service.content.ContentServiceImpl.getContentAsString(ContentServiceImpl.java:98)\r\n\tat org.craftercms.studio.impl.v1.service.dependency.DmDependencyServiceImpl.extractDirectDependency(DmDependencyServiceImpl.java:888)\r\n\tat org.craftercms.studio.impl.v1.service.dependency.DmDependencyServiceImpl.extractDependencies(DmDependencyServiceImpl.java:795)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.extractDependenciesItemForNewSite(SiteServiceImpl.java:427)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.extractDependenciesItemForNewSite(SiteServiceImpl.java:420)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.extractDependenciesItemForNewSite(SiteServiceImpl.java:420)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.extractDependenciesItemForNewSite(SiteServiceImpl.java:420)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.extractDependenciesItemForNewSite(SiteServiceImpl.java:420)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.extractDependenciesForNewSite(SiteServiceImpl.java:413)\r\n\tat org.craftercms.studio.impl.v1.service.site.SiteServiceImpl.createSiteFromBlueprint(SiteServiceImpl.java:312)\r\n\tat org.craftercms.studio.api.v1.service.site.SiteService$createSiteFromBlueprint$1.call(Unknown Source)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:146)\r\n\tat scripts.api.impl.site.SpringSiteServices.createSiteFromBlueprint(SpringSiteServices.groovy:69)\r\n\tat scripts.api.impl.site.SpringSiteServices$createSiteFromBlueprint$1.call(Unknown Source)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:146)\r\n\tat scripts.api.SiteServices.createSiteFromBlueprint(SiteServices.groovy:72)\r\n\tat scripts.api.SiteServices$createSiteFromBlueprint$2.call(Unknown Source)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)\r\n\tat create-site_post.run(create-site.post.groovy:32)\r\n\tat groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:589)\r\n\tat org.craftercms.engine.scripting.impl.GroovyScript.execute(GroovyScript.java:55)\r\n\tat org.craftercms.engine.controller.rest.RestScriptsController.executeScript(RestScriptsController.java:129)\r\n\tat org.craftercms.engine.controller.rest.RestScriptsController.handleRequestInternal(RestScriptsController.java:83)\r\n\tat org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:154)\r\n\tat org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)\r\n\tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)\r\n\tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)\r\n\tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)\r\n\tat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:648)\r\n\tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:729)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.craftercms.studio.impl.v1.service.security.StudioAuthenticationTokenProcessingFilter.doFilter(StudioAuthenticationTokenProcessingFilter.java:57)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.craftercms.engine.servlet.filter.SiteContextResolvingFilter.doFilter(SiteContextResolvingFilter.java:46)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.craftercms.engine.servlet.filter.ExceptionHandlingFilter.doFilter(ExceptionHandlingFilter.java:56)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.craftercms.commons.http.RequestContextBindingFilter.doFilter(RequestContextBindingFilter.java:79)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)\r\n\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)\r\n\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\r\n\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)\r\n\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"}}
{"actor":{"display_login":"sumerjabri"}}