org.springframework.beans.factory.BeanCreationException

Error creating bean wit h name 'bulletins.bl.Service' defined in ServletContext resource [/WEB-INF/deplo y-context.xml]: Invocation of init method failed; nested exception is java.lang. IllegalArgumentException: [Assertion failed] - this collection must not be empty : it must contain at least 1 element

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19435

  • Error creating bean wit h name 'bulletins.bl.Service' defined in ServletContext resource [/WEB-INF/deplo y-context.xml]: Invocation of init method failed; nested exception is java.lang. IllegalArgumentException: [Assertion failed] - this collection must not be empty : it must contain at least 1 element
  • via jcatalog.com by Unknown author, 11 months ago
    Error creating bean wit h name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicat ionContext.xml]: Invocation of init method failed; nested exception is java.lang .ExceptionInInitializerError
  • via Stack Overflow by cometta
    , 2 weeks ago
    Error creating bean wit h name 'annotatedsessionFactory' defined in ServletContext resource [/WEB-INF/ap plicationContext.xml]: Invocation of init method failed; nested exception is jav a.lang.NullPointerException
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean wit h name 'bulletins.bl.Service' defined in ServletContext resource [/WEB-INF/deplo y-context.xml]: Invocation of init method failed; nested exception is java.lang. IllegalArgumentException: [Assertion failed] - this collection must not be empty : it must contain at least 1 element at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this collect ion must not be empty: it must contain at least 1 element at org.springframework.util.Assert.notEmpty(Assert.java:268) at org.springframework.util.Assert.notEmpty(Assert.java:280) at cn.backend.bulletins.dl.dao.BulletinJobDaoImpl.getLatestExecutionRecordForJob(BulletinJobDaoImpl.java:83) at cn.backend.bulletins.dl.dao.BulletinJobDaoImpl$$FastClassByCGLIB$$763aa05f.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625) at cn.backend.bulletins.dl.dao.BulletinJobDaoImpl$$EnhancerByCGLIB$$28b49af.getLatestExecutionRecordForJob(<generated>) at cn.backend.bulletins.bl.BulletinsService.rescheduleJob(BulletinsService.java:182) at cn.backend.bulletins.bl.BulletinsService.initialiseBulletins(BulletinsService.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    3 times, 4 weeks ago
    Unknown user
    Once, 1 month ago
    Once, 2 months ago
    Once, 4 months ago
    Unknown user
    2 times, 5 months ago
    18 more bugmates