-1

when i create table directly from java in ms access,"Null" occurs.What is meant by this this

Gord Thompson
  • 98,607
  • 26
  • 164
  • 342
Mcolo
  • 149
  • 2
  • 10

2 Answers2

0

It means that there was an Exception thrown:

net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::3.0.6 null

Which is caused by an infinite loop - StackOverflow. You have to change the heap size. This can be done by running your application with:

java -Xmx1g myprogram

You can increase the value (1g is 1GB, 14g will be 14GB) as you wish as long as you have enough memory available.

Also, you can add ;memory = false to the end of the url with which you connect to the db.

xenteros
  • 14,275
  • 12
  • 47
  • 81
-1

You can counter this by using this with your code

DriverManager.getConnection("jdbc:ucanaccess://D:Database.accdb memory=false");

and then go to your ms access database file and open it and go to Database Tool and Click to Compact and repair option.