Announcement Announcement Module
Collapse
No announcement yet.
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreExcep Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreExcep

    When i am executing a Java Program. It's throwing the following runtime exception.
    Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [helloworld/ism12/ism12.xml]; nested exception is java.lang.NullPointerException
    Caused by: java.lang.NullPointerException
    at org.exolab.castor.xml.util.XMLClassDescriptorResol verImpl.setMappingLoader(XMLClassDescriptorResolve rImpl.java:143)
    at com.hsbc.esf.hostadapter.converter.castor.impl.Cas torByteConverter.initClassDescriptorResolver(Casto rByteConverter.java:142)
    at com.hsbc.esf.hostadapter.converter.castor.impl.Cas torByteConverter.setMapFileNames(CastorByteConvert er.java:76)
    at com.hsbc.esf.ns.hostadapter.ism.ISMEnvelopeConvert erBeanDefinitionParser.initConverter(ISMEnvelopeCo nverterBeanDefinitionParser.java:222)
    at com.hsbc.esf.ns.hostadapter.ism.ISMEnvelopeConvert erBeanDefinitionParser.parseInternal(ISMEnvelopeCo nverterBeanDefinitionParser.java:371)
    at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:56)
    at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1114)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1104)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:133)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:90)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:458)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:353)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:303)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:280)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:131)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:147)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:173)
    at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:112)
    at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:79)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:101)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:389)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:324)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:91)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:75)
    at helloworld.ism.TestClient.testISM12(TestClient.jav a:117)
    at helloworld.ism.TestClient.main(TestClient.java:54)

    Please need your help in resolving it.
Working...
X