Results 1 to 1 of 1

Thread: Bean not getting initialized at runtime using beanfactory

  1. #1
    Join Date
    Jun 2011
    Posts
    117

    Default Bean not getting initialized at runtime using beanfactory

    hi there,
    I am using spring 3.0.5 and i have 2 classes class A and class b marked as @component with scope as prototype.
    Class B contains argumented constructor which takes arguments as HashMap
    So when i try to initlialize bean using beanfactory.getBean("beanId",myhashmp) it gives me null pointer exception

    Any healp will be highly appreciated


    Got it solved thx.... just 1 help how to delete this posts
    Last edited by abhi patil; Sep 26th, 2012 at 07:52 AM.
    In Rat race who ever wins or looses still remains the Rat.

Posting Permissions

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