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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Unknown author, 1 year ago
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 Google Groups by Dave Hoover, 7 months ago
Error creating bean with name 'org.fcrepo.server.Server' defined in ServletContext resource [/WEB-I NF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Fatal error while starting server
via Stack Overflow by noobiee
, 2 years ago
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-config.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.Table.uniqueConstraints()[Ljavax/persistence/UniqueConstraint;
via widecodes.com by Unknown author, 2 years ago
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-config.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.Table.uniqueConstraints()[Ljavax/persistence/UniqueConstraint;
via Stack Overflow by Mateusz Sulima
, 2 years ago
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/our-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unable to load class [ app.our.entity.Company] declared in Hibernate configuration <mapping/> entry
via oschina.net by Unknown author, 2 years ago
Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: entityManager] Unable to build EntityManagerFactory
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 cn.backend.bulletins.dl.dao.BulletinJobDaoImpl.getLatestExecutionRecordForJob(BulletinJobDaoImpl.java:83)
at cn.backend.bulletins.dl.dao.BulletinJobDaoImpl$$FastClassByCGLIB$$763aa05f.invoke()
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:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at cn.backend.bulletins.dl.dao.BulletinJobDaoImpl$$EnhancerByCGLIB$$28b49af.getLatestExecutionRecordForJob()
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)

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 1 month ago
Once, 8 months ago
4 times, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.