Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion play app not running on prod windows server

Date: Mon, 11 Jun 2012 05:50:27 -0700 (PDT)
From: Ron Gross <ron.gr...@gmail.com>
To: play-framework@googlegroups.com
Message-Id: <9790a1e1-464c-4326-9f2c-349ebfd43d00@googlegroups.com>
In-Reply-To: <CAA83DipGFAW4=W2mf5_gv+=xv5ZKAkPt=mF97A3-U+zWWWepxw@mail.gmail.com>
References: <e8eb7775-d492-432c-b1bb-862cce37a179@i8g2000vbm.googlegroups.com> <f9dbdec6-85f0-493d-8cbe-1ac78c676ef7@googlegroups.com>
 <CAA83DipGFAW4=W2mf5_gv+=xv5ZKAkPt=mF97A3-U+zWWWepxw@mail.gmail.com>
Subject: Re: [play-framework] Re: play app not running on prod windows
 server
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_507_2116627.1339419027940"

------=_Part_507_2116627.1339419027940
Content-Type: multipart/alternative; 
	boundary="----=_Part_508_6464165.1339419027940"

------=_Part_508_6464165.1339419027940
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Well, I found a workaround, detailed 
here: http://stackoverflow.com/a/10980391/11236

The root cause for this is still unclear - it seems our dependencies 
changed on this machine overnight, for no apparent reason.

On Monday, June 11, 2012 11:51:19 AM UTC+3, Ron Gross wrote:
>
> Posted to Stack Overflow:  
> http://stackoverflow.com/questions/10976899/groovy-lang-missingfieldexception-no-such-field-metaclass-for-class-java-lan
>  
>
> On Mon, Jun 11, 2012 at 11:41 AM, Ron Gross <ron.gr...@gmail.com> wrote:
>
>> I got this out of the blue today on our CI server.
>> *No code was changed* ! Nobody touched the server, and I started getting 
>> these errors.
>>
>> Did you find a solution?
>>
>> Full stack trace:
>>
>> Internal Server Error (500) for request GET /
>>
>> Oops: ExceptionInInitializerError
>> An unexpected error occured caused by exception 
>> ExceptionInInitializerError: null
>>
>> play.exceptions.UnexpectedException: Unexpected Error
>>         at play.Invoker$Invocation.onException(Invoker.java:244)
>>         at play.Invoker$Invocation.run(Invoker.java:286)
>>         at Invocation.HTTP Request(Play!)
>> Caused by: java.lang.ExceptionInInitializerError
>>         at play.templates.TemplateLoader.load(TemplateLoader.java:78)
>>         at play.mvc.Router.parse(Router.java:162)
>>         at play.mvc.Router.parse(Router.java:190)
>>         at play.mvc.Router.parse(Router.java:164)
>>         at play.mvc.Router.load(Router.java:48)
>>         at play.mvc.Router.detectChanges(Router.java:219)
>>         ... 1 more
>> Caused by: groovy.lang.MissingFieldException: No such field: metaClass 
>> for class: java.lang.Class
>>         at groovy.lang.MetaClassImpl.getAttribute(MetaClassImpl.java:1074)
>>         at 
>> groovy.lang.MetaClassImpl.getStaticProperty(MetaClassImpl.java:1308)
>>         at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:707)
>>         at 
>> org.codehaus.groovy.runtime.Invoker.getProperty(Invoker.java:727)
>>         at 
>> org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:206)
>>         at 
>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:295)
>>         at Script1.run(Script1.groovy:1)
>>         at groovy.lang.GroovyShell.evaluate(GroovyShell.java:521)
>>         at groovy.lang.GroovyShell.evaluate(GroovyShell.java:496)
>>         at play.templates.GroovyTemplate.<clinit>(GroovyTemplate.java:62)
>>         ... 7 more
>> 2012-06-11 08:38:26,143 ERROR (play) ~ Error during the 500 response 
>> generation
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> play.templates.GroovyTemplate
>>         at play.templates.TemplateLoader.load(TemplateLoader.java:78)
>>         at play.templates.TemplateLoader.load(TemplateLoader.java:172)
>>         at play.server.PlayHandler.serve500(PlayHandler.java:778)
>>         at 
>> play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:237)
>>         at 
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>         at 
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>         at 
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>>         at 
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>>         at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>         at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>         at java.lang.Thread.run(Thread.java:722)
>>
>>
>> On Thursday, May 3, 2012 8:36:07 PM UTC+3, jss wrote:
>>>
>>> ERROR ~ Error during the 500 response generation 
>>> java.lang.**NoClassDefFoundError: Could not initialize class 
>>> play.templates.GroovyTemplate 
>>>  at play.templates.TemplateLoader.**load(TemplateLoader.java:69) 
>>>  at play.templates.TemplateLoader.**load(TemplateLoader.java:172) 
>>>  at play.server.ServletWrapper.**serve500(ServletWrapper.java:**425) 
>>>  at play.server.ServletWrapper 
>>> $ServletInvocation.run(**ServletWrapper.java:550) 
>>>  at play.Invoker.invokeInThread(**Invoker.java:68) 
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "play-framework" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/play-framework/-/6PJt3JZyNwsJ.
>> To post to this group, send email to play-framework@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> play-framework+unsubscribe@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/play-framework?hl=en.
>>
>
>
>
> -- 
>
>
> Ron Gross
> http://ripper234.com/
>
>  
------=_Part_508_6464165.1339419027940
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Well, I found a workaround, detailed here:&nbsp;http://stackoverflow.com/a/10980391/11236<div><br></div><div>The root cause for this is still unclear - it seems our dependencies changed on this machine overnight, for no&nbsp;apparent&nbsp;reason.</div><div><br>On Monday, June 11, 2012 11:51:19 AM UTC+3, Ron Gross wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Posted to Stack Overflow:&nbsp;
<a href="http://stackoverflow.com/questions/10976899/groovy-lang-missingfieldexception-no-such-field-metaclass-for-class-java-lan" target="_blank">http://stackoverflow.com/<wbr>questions/10976899/groovy-<wbr>lang-missingfieldexception-no-<wbr>such-field-metaclass-for-<wbr>class-java-lan</a>&nbsp;<br>

<br><div class="gmail_quote">On Mon, Jun 11, 2012 at 11:41 AM, Ron Gross <span dir="ltr">&lt;<a href="mailto:ron.gr...@gmail.com" target="_blank">ron.gr...@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I got this out of the blue today on our CI server.<div><b>No code was changed</b> ! Nobody touched the server, and I started getting these errors.</div><div><br></div><div>Did you find a solution?</div><div><br></div><div>

Full stack trace:</div><div><br></div><div><div>Internal Server Error (500) for request GET /</div><div><br></div><div>Oops: ExceptionInInitializerError</div><div>An unexpected error occured caused by exception ExceptionInInitializerError: null</div>

<div><br></div><div>play.exceptions.<wbr>UnexpectedException: Unexpected Error</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.Invoker$Invocation.<wbr>onException(Invoker.java:244)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.Invoker$Invocation.run(<wbr>Invoker.java:286)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at Invocation.HTTP Request(Play!)</div><div>Caused by: java.lang.<wbr>ExceptionInInitializerError</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.templates.TemplateLoader.<wbr>load(TemplateLoader.java:78)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.mvc.Router.parse(Router.<wbr>java:162)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at play.mvc.Router.parse(Router.<wbr>java:190)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.mvc.Router.parse(Router.<wbr>java:164)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.mvc.Router.load(Router.<wbr>java:48)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.mvc.Router.detectChanges(<wbr>Router.java:219)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; ... 1 more</div><div>Caused by: groovy.lang.<wbr>MissingFieldException: No such field: metaClass for class: java.lang.Class</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at groovy.lang.MetaClassImpl.<wbr>getAttribute(MetaClassImpl.<wbr>java:1074)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at groovy.lang.MetaClassImpl.<wbr>getStaticProperty(<wbr>MetaClassImpl.java:1308)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at groovy.lang.MetaClassImpl.<wbr>getProperty(MetaClassImpl.<wbr>java:707)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.groovy.runtime.<wbr>Invoker.getProperty(Invoker.<wbr>java:727)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.groovy.runtime.<wbr>InvokerHelper.getProperty(<wbr>InvokerHelper.java:206)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.groovy.runtime.<wbr>ScriptBytecodeAdapter.<wbr>getProperty(<wbr>ScriptBytecodeAdapter.java:<wbr>295)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at Script1.run(Script1.groovy:1)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at groovy.lang.GroovyShell.<wbr>evaluate(GroovyShell.java:521)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at groovy.lang.GroovyShell.<wbr>evaluate(GroovyShell.java:496)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.templates.GroovyTemplate.<wbr>&lt;clinit&gt;(GroovyTemplate.java:<wbr>62)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; ... 7 more</div><div>2012-06-11 08:38:26,143 ERROR (play) ~ Error during the 500 response generation</div><div>java.lang.<wbr>NoClassDefFoundError: Could not initialize class play.templates.GroovyTemplate</div><div>

&nbsp; &nbsp; &nbsp; &nbsp; at play.templates.TemplateLoader.<wbr>load(TemplateLoader.java:78)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.templates.TemplateLoader.<wbr>load(TemplateLoader.java:172)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at play.server.PlayHandler.<wbr>serve500(PlayHandler.java:778)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at play.server.PlayHandler$<wbr>NettyInvocation.run(<wbr>PlayHandler.java:237)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:471)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>FutureTask$Sync.innerRun(<wbr>FutureTask.java:334)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>FutureTask.run(FutureTask.<wbr>java:166)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>ScheduledThreadPoolExecutor$<wbr>ScheduledFutureTask.access$<wbr>201(<wbr>ScheduledThreadPoolExecutor.<wbr>java:178)</div><div>

&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>ScheduledThreadPoolExecutor$<wbr>ScheduledFutureTask.run(<wbr>ScheduledThreadPoolExecutor.<wbr>java:292)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1110)</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:603)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.<wbr>java:722)</div><div><br></div><div><br>On Thursday, May 3, 2012 8:36:07 PM UTC+3, jss wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">

ERROR ~ Error during the 500 response generation
<br>java.lang.<u></u>NoClassDefFoundError<wbr>: Could not initialize class
<br>play.templates.GroovyTemplate
<br>&nbsp;at play.templates.TemplateLoader.<u></u><wbr>load(TemplateLoader.java:69)
<br>&nbsp;at play.templates.TemplateLoader.<u></u><wbr>load(TemplateLoader.java:172)
<br>&nbsp;at play.server.ServletWrapper.<u></u>ser<wbr>ve500(ServletWrapper.java:<u></u>425)
<br>&nbsp;at play.server.ServletWrapper
<br>$ServletInvocation.run(<u></u>Servlet<wbr>Wrapper.java:550)
<br>&nbsp;at play.Invoker.invokeInThread(<u></u>In<wbr>voker.java:68)
<br>
<br></blockquote></div></div><span><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "play-framework" group.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/play-framework/-/6PJt3JZyNwsJ" target="_blank">https://groups.google.com/d/<wbr>msg/play-framework/-/<wbr>6PJt3JZyNwsJ</a>.<br> 
To post to this group, send email to <a href="mailto:play-framework@googlegroups.com" target="_blank">play-framework@googlegroups.<wbr>com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:play-framework%2Bunsubscribe@googlegroups.com" target="_blank">play-framework+unsubscribe@<wbr>googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/play-framework?hl=en" target="_blank">http://groups.google.com/<wbr>group/play-framework?hl=en</a>.<br>


</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><br><br><font size="1" color="#999999">Ron Gross</font><div><font size="1" color="#999999"><a href="http://ripper234.com/" target="_blank">http://ripper234.com/</a></font></div>

</div><br>
</div>
</blockquote></div>
------=_Part_508_6464165.1339419027940--

------=_Part_507_2116627.1339419027940--