Glassfish V4 Error - The lifecycle method [start] must not throw a checked exception -
i following error while deploying app glassfish v4
. have read on error , refers @postconstruct method
, not implement on application. application deploys fine on glassfish v2.
error
timestamp nov 8, 2016 12:41:42.279 log level severe logger javax.enterprise.system.core name-value pairs {levelvalue=1000, timemillis=1478601702279} record number 855 message id complete message exception while deploying app :the lifecycle method [start] must not throw checked exception. related annotation information: annotation [@javax.annotation.postconstruct()] on annotated element [public void org.apache.activemq.broker.brokerservice.start() throws java.lang.exception] of type [method] lifecycle method [start] must not throw checked exception. related annotation information: annotation [@javax.annotation.postconstruct()] on annotated element [public void org.apache.activemq.broker.brokerservice.start() throws java.lang.exception] of type [method] @ org.glassfish.apf.impl.annotationprocessorimpl.process(annotationprocessorimpl.java:373) @ org.glassfish.apf.impl.annotationprocessorimpl.process(annotationprocessorimpl.java:381) @ org.glassfish.apf.impl.annotationprocessorimpl.processannotations(annotationprocessorimpl.java:289) @ org.glassfish.apf.impl.annotationprocessorimpl.process(annotationprocessorimpl.java:217) @ org.glassfish.apf.impl.annotationprocessorimpl.process(annotationprocessorimpl.java:134) @ com.sun.enterprise.deployment.archivist.archivist.processannotations(archivist.java:627) @ com.sun.enterprise.deployment.archivist.archivist.readannotations(archivist.java:463) @ com.sun.enterprise.deployment.archivist.archivist.readannotations(archivist.java:447) @ org.glassfish.web.deployment.archivist.webarchivist.postannotationprocess(webarchivist.java:338) @ org.glassfish.web.deployment.archivist.webarchivist.postannotationprocess(webarchivist.java:91) @ com.sun.enterprise.deployment.archivist.archivist.readrestdeploymentdescriptors(archivist.java:421) @ com.sun.enterprise.deployment.archivist.archivist.readdeploymentdescriptors(archivist.java:396) @ com.sun.enterprise.deployment.archivist.archivist.open(archivist.java:271) @ com.sun.enterprise.deployment.archivist.archivist.open(archivist.java:280) @ com.sun.enterprise.deployment.archivist.archivist.open(archivist.java:241) @ com.sun.enterprise.deployment.archivist.applicationfactory.openarchive(applicationfactory.java:161) @ org.glassfish.javaee.core.deployment.dolprovider.processdol(dolprovider.java:203) @ org.glassfish.javaee.core.deployment.dolprovider.load(dolprovider.java:227) @ org.glassfish.javaee.core.deployment.dolprovider.load(dolprovider.java:96) @ com.sun.enterprise.v3.server.applicationlifecycle.loaddeployer(applicationlifecycle.java:881) @ com.sun.enterprise.v3.server.applicationlifecycle.setupcontainerinfos(applicationlifecycle.java:821) @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:377) @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:219) @ org.glassfish.deployment.admin.deploycommand.execute(deploycommand.java:491) @ com.sun.enterprise.v3.admin.commandrunnerimpl$2$1.run(commandrunnerimpl.java:539) @ com.sun.enterprise.v3.admin.commandrunnerimpl$2$1.run(commandrunnerimpl.java:535) @ java.security.accesscontroller.doprivileged(accesscontroller.java:300) @ javax.security.auth.subject.doas(subject.java:494) @ com.sun.enterprise.v3.admin.commandrunnerimpl$2.execute(commandrunnerimpl.java:534) @ com.sun.enterprise.v3.admin.commandrunnerimpl$3.run(commandrunnerimpl.java:565) @ com.sun.enterprise.v3.admin.commandrunnerimpl$3.run(commandrunnerimpl.java:557) @ java.security.accesscontroller.doprivileged(accesscontroller.java:300) @ javax.security.auth.subject.doas(subject.java:494) @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:556) @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:1464) @ com.sun.enterprise.v3.admin.commandrunnerimpl.access$1300(commandrunnerimpl.java:109) @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1846) @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1722) @ org.glassfish.admin.rest.utils.resourceutil.runcommand(resourceutil.java:253) @ org.glassfish.admin.rest.utils.resourceutil.runcommand(resourceutil.java:231) @ org.glassfish.admin.rest.utils.resourceutil.runcommand(resourceutil.java:275) @ org.glassfish.admin.rest.resources.templatelistofresource.createresource(templatelistofresource.java:133) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:94) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:55) @ java.lang.reflect.method.invoke(method.java:619) @ org.glassfish.jersey.server.model.internal.resourcemethodinvocationhandlerfactory$1.invoke(resourcemethodinvocationhandlerfactory.java:81) @ org.glassfish.jersey.server.model.internal.abstractjavaresourcemethoddispatcher$1.run(abstractjavaresourcemethoddispatcher.java:144) @ org.glassfish.jersey.server.model.internal.abstractjavaresourcemethoddispatcher.invoke(abstractjavaresourcemethoddispatcher.java:161) @ org.glassfish.jersey.server.model.internal.javaresourcemethoddispatcherprovider$responseoutinvoker.dodispatch(javaresourcemethoddispatcherprovider.java:160) @ org.glassfish.jersey.server.model.internal.abstractjavaresourcemethoddispatcher.dispatch(abstractjavaresourcemethoddispatcher.java:99) @ org.glassfish.jersey.server.model.resourcemethodinvoker.invoke(resourcemethodinvoker.java:389) @ org.glassfish.jersey.server.model.resourcemethodinvoker.apply(resourcemethodinvoker.java:347) @ org.glassfish.jersey.server.model.resourcemethodinvoker.apply(resourcemethodinvoker.java:102) @ org.glassfish.jersey.server.serverruntime$2.run(serverruntime.java:309) @ org.glassfish.jersey.internal.errors$1.call(errors.java:271) @ org.glassfish.jersey.internal.errors$1.call(errors.java:267) @ org.glassfish.jersey.internal.errors.process(errors.java:315) @ org.glassfish.jersey.internal.errors.process(errors.java:297) @ org.glassfish.jersey.internal.errors.process(errors.java:267) @ org.glassfish.jersey.process.internal.requestscope.runinscope(requestscope.java:317) @ org.glassfish.jersey.server.serverruntime.process(serverruntime.java:292) @ org.glassfish.jersey.server.applicationhandler.handle(applicationhandler.java:1139) @ org.glassfish.jersey.grizzly2.httpserver.grizzlyhttpcontainer.service(grizzlyhttpcontainer.java:375) @ org.glassfish.admin.rest.adapter.restadapter$2.service(restadapter.java:316) @ org.glassfish.admin.rest.adapter.restadapter.service(restadapter.java:179) @ com.sun.enterprise.v3.services.impl.containermapper$httphandlercallable.call(containermapper.java:459) @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:167) @ org.glassfish.grizzly.http.server.httphandler.runservice(httphandler.java:206) @ org.glassfish.grizzly.http.server.httphandler.dohandle(httphandler.java:180) @ org.glassfish.grizzly.http.server.httpserverfilter.handleread(httpserverfilter.java:235) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:283) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:200) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:132) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:111) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.portunif.pufilter.handleread(pufilter.java:231) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:283) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:200) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:132) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:111) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.portunif.pufilter.handleread(pufilter.java:231) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:283) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:200) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:132) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:111) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.nio.transport.tcpniotransport.fireioevent(tcpniotransport.java:536) @ org.glassfish.grizzly.strategies.abstractiostrategy.fireioevent(abstractiostrategy.java:112) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.run0(workerthreadiostrategy.java:117) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.access$100(workerthreadiostrategy.java:56) @ org.glassfish.grizzly.strategies.workerthreadiostrategy$workerthreadrunnable.run(workerthreadiostrategy.java:137) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.dowork(abstractthreadpool.java:591) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.run(abstractthreadpool.java:571) @ java.lang.thread.run(thread.java:853) caused by: java.lang.illegalargumentexception: lifecycle method [start] must not throw checked exception @ com.sun.enterprise.deployment.annotation.handlers.abstractresourcehandler.validateannotatedlifecyclemethod(abstractresourcehandler.java:186) @ com.sun.enterprise.deployment.annotation.handlers.postconstructhandler.processannotation(postconstructhandler.java:72) @ com.sun.enterprise.deployment.annotation.handlers.abstractresourcehandler.processannotation(abstractresourcehandler.java:142) @ com.sun.enterprise.deployment.annotation.factory.sjsasfactory$lazyannotationhandler.processannotation(sjsasfactory.java:148) @ org.glassfish.apf.impl.annotationprocessorimpl.process(annotationprocessorimpl.java:350) ... 98 more
Comments
Post a Comment