Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

J2EE struts import data

Thread view: 
Adrien Boutreau - 06 Jul 2007 12:51 GMT
Hi,

I'm developping an application wich import a lot of data into my
database.
Todo this, there is a file which data and format like that
data1|data2|data3 etc.
I'm parsing line by line the current file and doing insert in the
database.
It works fine with few datas but after 5000 lines approximately I have
this error :

"java.sql.SQLException: Exception d'E/S: The Network Adapter could not
establish the connection"

Any ideas ?

Thanks

Sorry for my poor english :(
Richard Senior - 07 Jul 2007 16:33 GMT
> I'm parsing line by line the current file and doing insert in the
> database.
[quoted text clipped - 3 lines]
> "java.sql.SQLException: Exception d'E/S: The Network Adapter could not
> establish the connection"

It's difficult to say without knowing what the database is or seeing the
code but a few wild guesses ...

a. Are you opening a new connection to the database each time and not
closing it?

b. Are you committing each row?

c. If not, and you don't have exclusive access, is there sufficient
rollback for the amount of data you are trying to commit in one go?

d. Is there anything in the trace logs or error logs for the database.

e. Is there no utility for the database that does this (probably using
direct calls and therefore quicker). For example, Oracle has SQL*Loader.

Signature

Regards,

Richard



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.