Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to invoke a method ?

YEJan 18 2013 — edited Jan 18 2013
Why method EditOrder in service cannot be invoked? I get error message: java.lang.reflect.InvocationTargetException: null
public class WebServiceSecurity{
	
	private WebServiceSecurityService webServiceSecurityService;
	
	public WebServiceSecurity(){}

	private String EditOrder(String userName, Integer type, Integer startNo, Integer endNo){
		
		return webServiceSecurityService.EditOrder(userName, type, startNo, endNo);
	}

........................
}


public class WebServiceSecurityService {
	private WebServiceSecurityDao webServiceSecurityDao;
	public WebServiceSecurityService(){}
	
	public String EditOrder(String userName, Integer type, Integer startNo, Integer endNo){
..................
}
This is part of applicationContext.xml
	<bean id="webServiceSecurityBean" class="com.ws.WebServiceSecurity" >
	</bean>
	
	<bean id="webServiceSecurityDao" class="com.dao.WebServiceSecurityDao" >
	</bean>
	<bean id="webServiceSecurityService" class="com.service.WebServiceSecurityService">
		<property name="webServiceSecurityDao" ref="webServiceSecurityDao">
		</property>
	</bean>
This post has been answered by r035198x on Jan 18 2013
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 15 2013
Added on Jan 18 2013
20 comments
554 views