Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mark.bennett
Post subject: Database Explorer driver binds to library permanently  PostPosted: Dec 01, 2004 - 08:57 PM
Veteran Member
Veteran Member


Joined: Nov 19, 2004
Posts: 3

- System Setup -------------------------------
Operating System and version: XP
Eclipse version: 3.0.1
Eclipse build id:
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 3
MyEclipse version: 3.8.2
Eclipse JDK version: 1.4.2
Application Server JDK version:
Are there any exceptions in the Eclipse log file?

- Message Body -------------------------------

When using the Database Explorer it appears that when I map a driver to my library it will bind and cannot be removed and it cannot be used by more than one driver.

The problem started just because I was supposed to type 'jdbc:db2:NCJDEV' but accidentally typed 'jdbc:odbc:NCJDEV'. But now I am stuck and can't get it to forget my initial attempt. When I try to change it I get this error:

Error Adding Driver: java.lang.UnsatisfiedLinkError: Native Library C:\Program Files\SQLLIB\bin\db2jdbc.dll already loaded in another classloader

Editing or even removing the database explorer driver does not release the binding. I have even tried uninstalling and re-installing the myeclipse plugin but when I return to the preference settings it still remembers everything and can't be changed.


Thank you, I appreciate the help.

Mark
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Dec 01, 2004 - 11:32 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Interesting... the DLL issue is a side effect of how Java treats them, not necessarily an Eclipse issue... but I will ask the DB dev to see if there is something we can do to lazy-load the DLL to avoid things like this.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-jeff
Post subject:   PostPosted: Dec 04, 2004 - 01:28 AM
Moderator
Moderator


Joined: Jul 18, 2004
Posts: 357

This is a known issue with the DB Explorer and type-2 drivers. I have a fix request in the queue, but it has not been prioritized for the current release. I will add your post to the request.

_________________
jeff
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MatthiasFraass
Post subject:   PostPosted: Jun 30, 2005 - 11:40 AM
Veteran Member
Veteran Member


Joined: Jun 30, 2005
Posts: 1

Hi,

I just installed M2 and was disappointed that this bug was not fixed.
I know that the problem lies within the JVM but there must be a workaround for MyEclipseIDE.
I tried copying the dll to winnt/system32 on a running system, so MyEclipseIDE would be independent from other apps which probably loaded this dll before.
I got the same error. I tried to delete the dll but couldn't - it was locked. I had to quit Eclipse - then it worked. So it's obvious that MyEclipseIDE is locking the DLL itself [1] when trying to invoke the driver.

Please, fix this!

Regards,

Matthias

[1] it was a fresh eclipse3.1-installation with no other plugins and not even projects
 
 View user's profile Send private message  
Reply with quote Back to top
dhodnett
Post subject: still having trouble with connections in Database Explorer  PostPosted: Dec 20, 2005 - 07:35 PM
Veteran Member
Veteran Member


Joined: Jul 24, 2003
Posts: 4

bummed out ...

This issue still exists in ver 4.0.3 GA ( build 20051025-4.0.3-GA )
when attempting a connection in the Database Explorer perspective after
having connected to same db when running application in the Java perspective
I get a notification popup with a message like:
"db2jdbc.dll already loaded in another classloader"

only the first connection attempt using the same driver will succeed.

if I run the Database Explorer first ( after a fresh restart ) then the connection
attempt will succeed, of course ( but the application connect will fail )
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dhodnett
Post subject:   PostPosted: Dec 20, 2005 - 07:49 PM
Veteran Member
Veteran Member


Joined: Jul 24, 2003
Posts: 4

This is the same problem, in another form, as reported in another thread
"Classloader Errors with 4.0M2 and the Eclipse BIRT project"
Here is the link:
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=8378

_________________
Dan Hodnett
Raleigh, NC
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Dec 20, 2005 - 08:04 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2281

dhodnett,

I bumped the issue on our internal issue tracker. Is using a Type 3 driver to connect to the database from the DB explorer a viable alternative for you? You can use the Type 3 driver in the Browser and continue to use your current driver for your application.

Best,
Brian.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
janolaveide
Post subject:   PostPosted: Jan 30, 2006 - 10:15 AM
Registered Member
Registered Member


Joined: Mar 11, 2005
Posts: 2

Still a problem in 4.1, very disappointed...
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jan 30, 2006 - 01:19 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2281

Yes, we know :(

This issue is active on our internal issue tracker; unfortunately it was not as highly prioritized as other 4.1GA items and we did not get the time to come around to it.
We are going to try and get a fix in for 4.1.1.

Sorry for the delay and inconvenice,

Best,
Brian.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Feb 09, 2006 - 07:47 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2281

Guys,

We have started investigating this DLL locking issue internally.
1) I setup a connection to DB2 via a type 2 driver using the DB explorer.
2) In the Java perspective of the same eclipse instance which is connected to DB2, I ran a small standalone java application which simply connects to DB2 using the same driver, user details and connect string.

The application ran without a hitch. I restarted eclipse and tried the converse - I ran the app first, and then tried to connect to the DB2 database in the DB Explorer; again, no problems.

The restriction that Java places on DLLs is that they maybe loaded by only a single classloader per JVM. I verified that the DB Explorer does not attempt to violate this rule.
If you are running applications, AFAIK, Eclipse spins up a new JVM instance to run your application, so even though the DLL is loaded by a classloader already, it's in another JVM (the one running Eclipse) so there shouldn't be a conflict.

Have I misunderstood the scenario you are trying to describe? Do you have any other plugins running with Eclipse which might interfere with the DLL or is your application doing something unusual?

I'm assuming you are on Windows - please note your DB2 Database and Driver versions. Also post your error log when you see this problem. More instructions here: Posting Guidelines

Best,
Brian.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
janolaveide
Post subject:   PostPosted: Mar 15, 2006 - 07:30 PM
Registered Member
Registered Member


Joined: Mar 11, 2005
Posts: 2

works for me now in 4.1.1 GA
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits