-
database execute batch errors
Hi Im currently writing a program to index a collection of documents. I read the documents and then put the words/phrases in an arrayList of dataEntry (a special ADT that records the word and occurance). Then i add the word and occurance to a MS ACess database. For some reason sometimes i get a
sun.jdbc.odbc.JdbcOdbcBatchUpdateException: General error
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.emulateExecuteBatch(JdbcOdbcPreparedStatement.java :2163)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeBatchUpdate(JdbcOdbcPreparedStatement.java: 1781)
at sun.jdbc.odbc.JdbcOdbcStatement.executeBatch(JdbcOdbcStatement.java:912)
at indexcreator.DatabaseManager.DataBatch(DatabaseManager.java:76)
at indexcreator.main.main(main.java:62)
but not all the time, i was wondering if maybe some of my words are key words(though it mainly skrews up on phrases) if so how do i fix this and if that is not the problem does anyone have any ideas what it might be.
ps. if i do 1 document at a time I don't get any errors on the first document but 3word phrases and 4 word phrases both create errors on the second document.
Similar Threads
-
By flashkid in forum .NET
Replies: 7
Last Post: 05-31-2005, 11:14 AM
-
By Russ in forum Database
Replies: 0
Last Post: 06-04-2002, 12:57 AM
-
By Michael Tzoanos in forum Database
Replies: 0
Last Post: 04-12-2002, 11:19 AM
-
By Raffaele in forum VB Classic
Replies: 15
Last Post: 06-27-2001, 09:28 AM
-
By Joshua in forum Database
Replies: 3
Last Post: 10-27-2000, 07:39 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks