Forked Grails VM exited with error -
i newbie work on grails, facing problem running odinweb project grails, using grails version 2.4.4 required odinweb. check link1 , link2, found no luck. getting following runtime error.
configuring classpath | compiling 10 source files | compiling 85 source files | packaging grails application..... | running grails application | enabling tomcat nio connector application context shutting down... application context shutdown. | server running. browse http://localhost:8090/odinweb | error forked grails vm exited error
jdk verison 1.8.0_72
tomcat log in target/work/tomcat/logs/odinwe.log
2016-01-29 05:56:05,556 [localhost-startstop-1] info conf.bootstrap - (bootstrap.init): hostname=nlplight 2016-01-29 05:56:05,610 [localhost-startstop-1] error context.grailscontextloaderlistener - error initializing application: cannot invoke method geturi() on null object java.lang.nullpointerexception: cannot invoke method geturi() on null object @ org.codehaus.groovy.runtime.nullobject.invokemethod(nullobject.java:88) @ org.codehaus.groovy.runtime.callsite.pogometaclasssite.call(pogometaclasssite.java:45) @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:45) @ org.codehaus.groovy.runtime.callsite.nullcallsite.call(nullcallsite.java:32) @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:45) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:108) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:112) @ bootstrap.extractfilesfromjar(bootstrap.groovy:109) @ bootstrap$extractfilesfromjar$0.callcurrent(unknown source) @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallcurrent(callsitearray.java:49) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:133) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:149) @ bootstrap.copyembeddeddocuments(bootstrap.groovy:68) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:498) @ org.springsource.loaded.ri.reflectiveinterceptor.jlrmethodinvoke(reflectiveinterceptor.java:1426) @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90) @ groovy.lang.metamethod.domethodinvoke(metamethod.java:324) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1207) @ groovy.lang.expandometaclass.invokemethod(expandometaclass.java:1110) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1016) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1152) @ groovy.lang.expandometaclass.invokemethod(expandometaclass.java:1110) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1016) @ org.codehaus.groovy.runtime.callsite.pogometaclasssite.callcurrent(pogometaclasssite.java:66) @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallcurrent(callsitearray.java:49) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:133) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:137) @ bootstrap$_closure1.docall(bootstrap.groovy:34) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:498) @ org.springsource.loaded.ri.reflectiveinterceptor.jlrmethodinvoke(reflectiveinterceptor.java:1426) @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90) @ groovy.lang.metamethod.domethodinvoke(metamethod.java:324) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1207) @ groovy.lang.expandometaclass.invokemethod(expandometaclass.java:1110) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1016) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1081) @ groovy.lang.expandometaclass.invokemethod(expandometaclass.java:1110) @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:1016) @ groovy.lang.closure.call(closure.java:423) @ groovy.lang.closure.call(closure.java:417) @ grails.util.environment.evaluateenvironmentspecificblock(environment.java:327) @ grails.util.environment.executeforenvironment(environment.java:320) @ grails.util.environment.executeforcurrentenvironment(environment.java:296) @ org.codehaus.groovy.grails.commons.defaultgrailsbootstrapclass.callinit(defaultgrailsbootstrapclass.java:60) @ org.codehaus.groovy.grails.web.context.grailsconfigutils.executegrailsbootstraps(grailsconfigutils.java:78) @ org.codehaus.groovy.grails.web.context.grailscontextloaderlistener.initwebapplicationcontext(grailscontextloaderlistener.java:110) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4992) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5490) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1575) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1565) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745)
thanks in advance :)
it basic mistake in odinweb code, object calling geturi() getting null value didn't file @ location. had check null condition object , error solved.
Comments
Post a Comment