Results 1 to 9 of 9

Thread: Error creating bean with name 'authenticationService'

  1. #1
    Join Date
    Mar 2007
    Location
    Manila, Philippines
    Posts
    2

    Default Error creating bean with name 'authenticationService'

    What do you think caused this error?

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticationService' defined in class path resource [spring-server-authentication.xml]: Initialization of bean failed; nested exception is java.rmi.server.ExportException: Port already in use: 1201; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Your trying to start something on a port that's current in use on your machine. Change the port to one that's not in use and the problem should go away.

  3. #3
    Join Date
    Mar 2007
    Location
    Manila, Philippines
    Posts
    2

    Default

    thanks karl

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Not a problem, if you don't understand the exception I would always trying googling it. It's usually the easiest way to solve your problem.

  5. #5

    Default Error creating bean with name 'authenticationServiceSelf' ....

    Hi

    I am getting this same error but with different nested exception.
    Error I am getting is,
    (ContextLoaderPlugIn.java:229) ERROR org.springframework.web.struts.ContextLoaderPlugIn - Context initialization failedorg.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticationServiceSelf' defined in ServletContext resource [/WEB-INF/applicationcontext.xml]: Cannot resolve reference to bean 'authenticationServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticationServiceTarget' defined in ServletContext resource [/WEB-INF/applicationcontext.xml]: Cannot resolve reference to bean 'constantsService' while setting bean property 'constantsBusinessService'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'constantsService' defined in ServletContext resource [/WEB-INF/applicationcontext.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticationServiceTarget' defined in ServletContext resource [/WEB-INF/applicationcontext.xml]: Cannot resolve reference to bean 'constantsService' while setting bean property 'constantsBusinessService'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'constantsService' defined in ServletContext resource [/WEB-INF/applicationcontext.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'constantsService' defined in ServletContext resource [/WEB-INF/applicationcontext.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    java.lang.NullPointerException

    at com.trilogy.mobilechurn.services.constants.Constan tsServiceImpl.populateSPRegions(ConstantsServiceIm pl.java:348)
    at com.trilogy.mobilechurn.services.constants.Constan tsServiceImpl.initialize(ConstantsServiceImpl.java :132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeCustomInitMethod( AbstractAutowireCapableBeanFactory.java:1133)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1095)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:186)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1046)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:857)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:186)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1046)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:857)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:277)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:313)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:139)
    at org.springframework.web.struts.ContextLoaderPlugIn .createWebApplicationContext(ContextLoaderPlugIn.j ava:353)
    at org.springframework.web.struts.ContextLoaderPlugIn .initWebApplicationContext(ContextLoaderPlugIn.jav a:296)
    at org.springframework.web.struts.ContextLoaderPlugIn .init(ContextLoaderPlugIn.java:225)
    at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(Action Servlet.java:336)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1029)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:862)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4013)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4357)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:823)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595)
    at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDeployer.java:277)
    at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:832)
    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:625)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:431)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:983)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:349)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:480)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2313)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)

    I would appriciate if any one can help me in the regard.

    Regards,

    Maulik

  6. #6
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    This doesn't appear to have anything to do with Spring LDAP. If you look at the stacktrace it seems that you have a NullPointerException at com.trilogy.mobilechurn.services.constants.Constan tsServiceImpl.populateSPRegions(ConstantsServiceIm pl.java:348)
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

  7. #7

    Default

    Yes. It doesnt have to do any thing with LDAP. The purpose of posting this thread here is the error is very similar and I have observed the ConstantsServiceImpl.java. In this file We have used assert (m_spRegions != null) : "Regions not populated";

    So I feel it may be the reason for the error,but not sure what todo ?

    Because in eclipse I am getting error -> " assert should not be used as an identifier, since it is a reserved keyword from source level 1.4 on".
    I am not getting it's meaning.

    Regards,

    Maulik

  8. #8
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default

    Quote Originally Posted by maulik.kayastha View Post
    Yes. It doesnt have to do any thing with LDAP. The purpose of posting this thread here is the error is very similar and I have observed the ConstantsServiceImpl.java. In this file We have used assert (m_spRegions != null) : "Regions not populated";

    So I feel it may be the reason for the error,but not sure what todo ?

    Because in eclipse I am getting error -> " assert should not be used as an identifier, since it is a reserved keyword from source level 1.4 on".
    I am not getting it's meaning.

    Regards,

    Maulik
    assert is a reserved work just like: boolean, class, public etc.

    So if you have code like this:

    private String assert;

    then you should rename assert to something different.
    /Claus

  9. #9

    Default

    This is Test for my thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •