The moose likes Java in General and the fly likes No constructor matching ..... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "No constructor matching ....." Watch "No constructor matching ....." New topic
Author

No constructor matching .....

Wayne Burr
Ranch Hand

Joined: Oct 15, 2002
Posts: 38
I'm getting this error and after reseaching what it means still does not fix my problem. I have spend alot of time on it and really can't see where the error is possible. Please have a look and let me know if you can see the problem.
No constructor matching ParamPYUnderwriterExpense(java.lang.String, java.lang.String, int, int, int, int, int, int, int) found in class com.ca.ka.ParamPYUnderwriterExpense.
ParamPYUnderwriterExpense savfactor = new ParamPYUnderwriterExpense(savefactorId, policyyearPPUE, t1overheadPPUE, t2overheadPPUE, t3overheadPPUE, t4overheadPPUE, t5overheadPPUE, t6overheadPPUE, corpoverheadPPUE);
Here is some of the code that it is getting called from:

This part of the JAVA code:

Any help will be great if anybody can spot why I'm getting the error.
Thanks in advance!
Wayne Burr
Ranch Hand

Joined: Oct 15, 2002
Posts: 38
This is the call in the first set of Code from above:
ParamPYUnderwriterExpense savfactor = new ParamPYUnderwriterExpense(savefactorId, policyyearPPUE, t1overheadPPUE, t2overheadPPUE, t3overheadPPUE, t4overheadPPUE, t5overheadPPUE, t6overheadPPUE, corpoverheadPPUE);
Wayne Burr
Ranch Hand

Joined: Oct 15, 2002
Posts: 38
Problem turned out to be that the constructor was not Public.
Problem solved!
Thanks!
 
 
subject: No constructor matching .....
 
Threads others viewed
constructor problem
Customer Order project
WHy does main() work with private accessibility?
While working from Head first java, I came across this problem... Please help
Grid size limit
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com