• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

more DB to bean to servlet to table problems

 
Greenhorn
Posts: 17
Netbeans IDE Windows Vista Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Windows Vista Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Windows Vista Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankyou. Im new to this I will post here next time.
 
reply
    Bookmark Topic Watch Topic
  • New Topic