public static void main(String args[]) throws Exception
{
try
{
System.out.println("please Wait."); Resource res = new ClassPathResource("hello.xml"); BeanFactory factory = new XmlBeanFactory(res); hello bean1 = (hello)factory.getBean("hello"); String s = bean1.sayhello(args[0]); System.out.println(s);
}
catch(Exception e1)
{ System.out.println(""+e1); }
}
}
after running helloclient.java i am getting the below error
Dec 1, 2008 7:14:48 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [hello.xml] java.lang.ArrayIndexOutOfBoundsException: 0
please help in this.
Saradha Konimeti
Greenhorn
Joined: Dec 01, 2008
Posts: 4
posted
0
Are you passing the argument while executing client?