• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

more DB to bean to servlet to table problems

 
Angel Kal
Greenhorn
Posts: 17
Chrome Netbeans IDE Windows Vista
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I keep getting the same error on line 107 (CourseBean cbl = new CourseBean()) of my servlet here "actual and formal argument length differ". Im not 100% but i believe it has to do with my table key not being an integer, and I think the error may be in my bean class. If anyone can help resolve this error I will be so greatful!

Servlet:


Bean:


BeanList:



If any of the other files are needed to help decypher this one let me know I will gladly post. Thank you in advance, and happy holidays to everyone
 
Rob Spoor
Sheriff
Pie
Posts: 20749
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You try to call the constructor that takes no arguments, but you don't have such a constructor. You only have one that takes several Strings.
 
Angel Kal
Greenhorn
Posts: 17
Chrome Netbeans IDE Windows Vista
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow....I feel dumb...thank you! I guess I must have just been staring at it too long to realize it wasn't there! Now Im having a problem at line 115 it says that cbl cannot be converted by method invocation conversion? Any ideas as to what that could mean? Again, Im very new to servlets, and Im not having any problems with databases that have a numeric index key, so I guess I must need to learn more about using string table keys!
 
Angel Kal
Greenhorn
Posts: 17
Chrome Netbeans IDE Windows Vista
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou. Im new to this I will post here next time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic