0

I get the following error while deploying Java application to Weblogic server

weblogic.utils.ErrorCollectionException: 
 There are 3 nested errors:
    java.lang.IllegalArgumentException: 
         Method "initialize" in class  "com.sim.try.ght.ment.cob.MentAdvancedQueueMessageListener" is 
         defined as lifecycle callback method with annotation @PostConstruct,
         but it cannot be declared to throw checked exception. 

 at weblogic.j2ee.dd.xml.validator.lifecyclecallback.BaseValidator.error(BaseValidator.java:206) 
 at weblogic.j2ee.dd.xml.validator.lifecyclecallback.BaseValidator.error(BaseValidator.java:229) 
 at weblogic.j2ee.dd.xml.validator.lifecyclecallback.BaseValidator.checkException(BaseValidator.java:178) 
 at weblogic.j2ee.dd.xml.validator.AbstractAnnotationValidator.checkMethod(AbstractAnnotationValidator.java:64) 
 at weblogic.j2ee.dd.xml.validator.AbstractAnnotationValidator.validate(AbstractAnnotationValidator.java:31) 
 at weblogic.j2ee.dd.xml.validator.AnnotationValidatorVisitor.visitLifeCycleCallbackBean(AnnotationValidatorVisitor.java:37) 
 at weblogic.j2ee.dd.xml.validator.AnnotationValidatorVisitor.visit(AnnotationValidatorVisitor.java:24) 
 at weblogic.descriptor.internal.AbstractDescriptorBean.accept(AbstractDescriptorBean.java:1448) 
 at weblogic.descriptor.internal.AbstractDescriptorBean.accept(AbstractDescriptorBean.java:1452) 
 at weblogic.descriptor.internal.AbstractDescriptorBean.accept(AbstractDescriptorBean.java:1452)
 at weblogic.descriptor.internal.AbstractDescriptorBean.accept(AbstractDescriptorBean.java:1452) 

Weblogic version -12, Jdk -1,8

How can I resolve this error?

3
  • Please use code format for code, errors and logs. Commented Aug 3, 2023 at 20:04
  • Please share the source code of the error class. Commented Aug 3, 2023 at 20:05
  • This application is already deployed on Production Weblogic. I am trying to get it run locally for myself. The application is running fine on production. Commented Aug 3, 2023 at 20:32

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.