Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

illegalArgumentException, HSQLDB, and Hibernate

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

So I whipped up a java/swing/hibernate/hsqldb desktop app in Eclipse.

pertinent.cfg.xml


...seems ok as code runs through my HibernateUtil.java fine.
My StudentOfDistrict class has a constructor that takes an array of Strings.


Since I'm just in the prototyping stage right now I manually start the HSQLDB server from within a CommandWindow before attempting to execute the app from within Eclipse.
as
M$prompt> java -classpath hsqldb.jar org.hsqldb.Server

this does bring up the server

then executing the app connection to server is made, all goes well until I actually try to create a new instance of StudentOfDistrict ( insert a row into students_of_district)

but

fails with a illegalArgumentException

I know the database server is up and a connection is made, but I don't know if the table students_of_district is getting automatically created by Hibernate prior to trying to insert.

Any ideas?

TIA,

Still-learning Steve
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the stack trace?
 
Stuart Rogers
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My bad... the offending snippet had nothing to do with HSQLDB or Hibernate... I had the wrong date-formatting within my constructor



where in my EDA_utils.java


DoH!

But, thanks for looking on a Saturday night! Now it's Miller Time!

CASE CLOSED


Still-learning Steve
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for dropping an update, it helps.
 
A teeny tiny vulgar attempt to get you to buy our stuff
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic