eclipse - Grails test war creation error -


need dear friend.... using grails 2.1.4 , maven integration.

i created pom file grails project. running goal eclipse

mvn -dgrails.env=test package 

i getting error this:

fatal error forking grails jvm: java.lang.reflect.invocationtargetexception java.lang.runtimeexception: java.lang.reflect.invocationtargetexception     @ org.grails.launcher.grailslauncher.launch(grailslauncher.java:150)     @ org.grails.maven.plugin.tools.forkedgrailsruntime.main(forkedgrailsruntime.java:168) caused by: java.lang.reflect.invocationtargetexception     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:601)     @ org.grails.launcher.grailslauncher.launch(grailslauncher.java:144)     ... 1 more caused by: java.lang.illegalstateexception: user input not enabled, cannot obtain input stream     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)     @ java.lang.reflect.constructor.newinstance(constructor.java:525)     @ org.codehaus.groovy.reflection.cachedconstructor.invoke(cachedconstructor.java:77)     @ org.codehaus.groovy.runtime.callsite.constructorsite$constructorsitenounwrapnocoerce.callconstructor(constructorsite.java:102)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallconstructor(callsitearray.java:54)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callconstructor(abstractcallsite.java:182)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callconstructor(abstractcallsite.java:194)     @ gant.gant$_dispatch_closure5.docall(gant.groovy:391) 

the error you're seeing may happen once in while, in grails 2.1.x.

run command(mvn -dgrails.env=test package) couple of times , you'll notice problem intermittent, cannot reproduced time.

setting fork option false in pom.xml seems 'fix' it, in cases. it's grails bug 2.1.x releases.

i haven't seen issue yet in newer grails versions.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -