-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: encountering org.springframework.beans.PropertyBatchUpdateEx
PostPosted: Mon May 31, 2010 7:29 am 
Newbie

Joined: Mon May 31, 2010 7:25 am
Posts: 1
Hi,

I have a user-context.xml which defines the following bean
Code:
<bean id="userRepository" class="UserRepositoryImpl">
        <property name="genericRepository" ref="genericRepository"/>
        <property name="userAfterCallback" ref="userCallbackMulticaster"/>
        <property name="userBeforeCallback" ref="userCallbackMulticaster"/>
        <property name="jdbcTemplate" ref="jdbcTemplate"/>
</bean>


and the corresponding class is
Code:
public class UserRepositoryImpl implements UserRepository {
    private GenericRepository genericRepository;
    private UserAfterCallback userAfterCallback;
    private UserBeforeCallback userBeforeCallback;
    private JdbcTemplate jdbcTemplate;

    //all setters declared
}



When weblogic server is started, it gives me the following error.

Code:
<2010-05-31 12:21:25,881> <> <ERROR> <> <> <> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'
> <> <> <> <org.springframework.web.context.ContextLoader> - <Context initialization failed>
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [co
reContext], from group with resource name [classpath:/application-context.xml]; nested exception is org.springframework.beans
.factory.BeanCreationException: Error creating bean with name 'coreContext' defined in class path resource [application-conte
xt.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not in
stantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; neste
d exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ssoSessionService' def
ined in URL [zip:D:/IL_codebase/cix-2.7/Arc/vertical/reference/weblogic/servers/myserver/tmp/_WL_user/_appsdir_wsapp_dir/p4u5
dm/war/WEB-INF/lib/admin-impl-TRUNK-SNAPSHOT.jar!/com/intralinks/core/authentication/sso/sso-services-context.xml]: Cannot re
solve reference to bean 'userAuthenticationService' while setting bean property 'userAuthenticationService'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userAuthenticationService' define
d in URL [zip:D:/IL_codebase/cix-2.7/Arc/vertical/reference/weblogic/servers/myserver/tmp/_WL_user/_appsdir_wsapp_dir/p4u5dm/
war/WEB-INF/lib/admin-impl-TRUNK-SNAPSHOT.jar!/com/intralinks/core/user/user-services-context.xml]: Cannot resolve reference
to bean 'userRepository' while setting bean property 'userRepository'; nested exception is org.springframework.beans.factory.
BeanCreationException: Error creating bean with name 'userRepository' defined in URL [zip:D:/IL_codebase/cix-2.7/Arc/vertical
/reference/weblogic/servers/myserver/tmp/_WL_user/_appsdir_wsapp_dir/p4u5dm/war/WEB-INF/lib/admin-impl-TRUNK-SNAPSHOT.jar!/co
m/intralinks/core/user/user-services-context.xml]: Error setting property values; nested exception is org.springframework.bea
ns.PropertyBatchUpdateException; nested PropertyAccessExceptions (4) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'genericRepository' threw exception;
nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'userAfterCallback' threw exception;
nested exception is java.lang.NullPointerException
PropertyAccessException 3: org.springframework.beans.MethodInvocationException: Property 'userBeforeCallback' threw exception
; nested exception is java.lang.NullPointerException
PropertyAccessException 4: org.springframework.beans.MethodInvocationException: Property 'jdbcTemplate' threw exception; nest
ed exception is java.lang.NullPointerException
        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.ja
va:410)
        at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:341)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:82)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1616)
        at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2761)
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)


i use annotation based validation and use hibernate-validator-4.0.2.GA.jar and validation-api-1.0.0.GA for the same.

what am i missing?

TIA,
Tanuja


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.