Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Could not connect; Native Library loaded in another classloader
Could not connect; Native Library loaded in another classloader [message #20455] Wed, 23 August 2006 07:05 Go to next message
Eclipse UserFriend
Originally posted by: sjeeva.eclipse.org

Hi,

Under connectivity preferances, I added a Generic JDBC driver for my
database - TimesTen (in memory database; a product of Oracle corp.)

In the Data Source Explorer view added a new Database of SQL Model JDBC
Connection; and specified the above driver.

But when I try connecting, I get

Could not connect to TimesTen.
Error creating SQL Model Connection connection to TimesTen. (Error: Native
Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in another
classloader)

Any clues will be appreciated.

~g1

PS:
I am using Eclipse Calisto - Version: 3.2.0; Build id: M20060629-1905
Via the update manager,
I installed everything available under the Eclipse DataTools platform
(Version: 0.9.0.200606161; Build id: 0.9.0.200606161)
Re: Could not connect; Native Library loaded in another classloader [message #20456 is a reply to message #20455] Wed, 23 August 2006 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sjeeva.eclipse.org

and the .log file has the following trace

!ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:30.277
!MESSAGE Error creating SQL Model Connection connection to TimesTen.
(Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
another classloader)
!STACK 0
java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
already loaded in another classloader
at
com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
at
org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
at
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
at
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:31.964
!MESSAGE Could not connect to TimesTen.
!SUBENTRY 1 org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:31.964
!MESSAGE Error creating SQL Model Connection connection to TimesTen.
(Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
another classloader)
!STACK 0
java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
already loaded in another classloader
at
com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
at
org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
at
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
at
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
!SUBENTRY 1 org.eclipse.core.runtime 2006-08-23 11:28:31.964
!MESSAGE OK
Re: Could not connect; Native Library loaded in another classloader [message #21955 is a reply to message #20456] Tue, 03 October 2006 19:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adidas28.yahoo.com

I'm having the same issue with DB2 V7. The db2jdbc.dll file gives me the
same error.. Has anyone resolved this?


"jeevan" <sjeeva@eclipse.org> wrote in message
news:626da2914d1e70cc5087f796d9b9c9d0$1@www.eclipse.org...
> and the .log file has the following trace
>
> !ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:30.277
> !MESSAGE Error creating SQL Model Connection connection to TimesTen.
> (Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
> another classloader)
> !STACK 0
> java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
> already loaded in another classloader
> at
> com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
> !ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:31.964
> !MESSAGE Could not connect to TimesTen.
> !SUBENTRY 1 org.eclipse.datatools.connectivity 4 -1 2006-08-23
> 11:28:31.964
> !MESSAGE Error creating SQL Model Connection connection to TimesTen.
> (Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
> another classloader)
> !STACK 0
> java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
> already loaded in another classloader
> at
> com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> !SUBENTRY 1 org.eclipse.core.runtime 2006-08-23 11:28:31.964
> !MESSAGE OK
>
>
>
Re: Could not connect; Native Library loaded in another classloader [message #22133 is a reply to message #20455] Mon, 16 October 2006 15:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: john.graham.sybase.com

jeevan wrote:

> Hi,

> Under connectivity preferances, I added a Generic JDBC driver for my
> database - TimesTen (in memory database; a product of Oracle corp.)

> In the Data Source Explorer view added a new Database of SQL Model JDBC
> Connection; and specified the above driver.

> But when I try connecting, I get

> Could not connect to TimesTen.
> Error creating SQL Model Connection connection to TimesTen. (Error: Native
> Library C:WINDOWSsystem32ttJdbc60.dll already loaded in another
> classloader)

> Any clues will be appreciated.

> ~g1

> PS:
> I am using Eclipse Calisto - Version: 3.2.0; Build id: M20060629-1905
> Via the update manager,
> I installed everything available under the Eclipse DataTools platform
> (Version: 0.9.0.200606161; Build id: 0.9.0.200606161)

Hi Jeevan:

We'd appreciate a Bugzilla entry for this problem, so we can track the
issue with our Connectivity project team.

Regards,
John Graham
Eclipse Data Tools Platform PMC Chair
Re: Could not connect; Native Library loaded in another classloader [message #22299 is a reply to message #21955] Mon, 23 October 2006 18:52 Go to previous messageGo to next message
Rob Cernich is currently offline Rob CernichFriend
Messages: 56
Registered: July 2009
Member
Please review the following BZ entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=130799

Regards,
Rob
Re: Could not connect; Native Library loaded in another classloader [message #22999 is a reply to message #20455] Fri, 10 November 2006 16:15 Go to previous message
Rob Cernich is currently offline Rob CernichFriend
Messages: 56
Registered: July 2009
Member
There were general problems using drivers that had dependencies on native
libraries. A patch for this problem has been applied which improves
support.

Note, you will still have problems if you have more than one driver
definition that references the same native library (e.g. if you have two
driver definitions that reference the same native library and connection
profiles which reference one or the other, you will be able to connect to
those profiles referencing the same driver definition as the one used for
the first connection, but the profiles referencing the other driver
definition will fail).

(The technical problem: each driver definition manages its own class
loader. This class loader is shared among connections. If you have two
driver definitions, there will be two different class loaders and if both
have a dependency on the same native library, the second class loader that
is used will fail to load the native library.)

Thanks to Brian for checking in the fix.

Rob
Re: Could not connect; Native Library loaded in another classloader [message #581869 is a reply to message #20455] Wed, 23 August 2006 07:08 Go to previous message
jeevan is currently offline jeevanFriend
Messages: 20
Registered: July 2009
Junior Member
and the .log file has the following trace

!ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:30.277
!MESSAGE Error creating SQL Model Connection connection to TimesTen.
(Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
another classloader)
!STACK 0
java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
already loaded in another classloader
at
com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
at
org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
at
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
at
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:31.964
!MESSAGE Could not connect to TimesTen.
!SUBENTRY 1 org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:31.964
!MESSAGE Error creating SQL Model Connection connection to TimesTen.
(Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
another classloader)
!STACK 0
java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
already loaded in another classloader
at
com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
at
org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
at
org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
at
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
at
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
!SUBENTRY 1 org.eclipse.core.runtime 2006-08-23 11:28:31.964
!MESSAGE OK
Re: Could not connect; Native Library loaded in another classloader [message #582527 is a reply to message #20456] Tue, 03 October 2006 19:04 Go to previous message
Eclipse UserFriend
Originally posted by: adidas28.yahoo.com

I'm having the same issue with DB2 V7. The db2jdbc.dll file gives me the
same error.. Has anyone resolved this?


"jeevan" <sjeeva@eclipse.org> wrote in message
news:626da2914d1e70cc5087f796d9b9c9d0$1@www.eclipse.org...
> and the .log file has the following trace
>
> !ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:30.277
> !MESSAGE Error creating SQL Model Connection connection to TimesTen.
> (Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
> another classloader)
> !STACK 0
> java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
> already loaded in another classloader
> at
> com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
> !ENTRY org.eclipse.datatools.connectivity 4 -1 2006-08-23 11:28:31.964
> !MESSAGE Could not connect to TimesTen.
> !SUBENTRY 1 org.eclipse.datatools.connectivity 4 -1 2006-08-23
> 11:28:31.964
> !MESSAGE Error creating SQL Model Connection connection to TimesTen.
> (Error: Native Library C:\WINDOWS\system32\ttJdbc60.dll already loaded in
> another classloader)
> !STACK 0
> java.sql.SQLException: Native Library C:\WINDOWS\system32\ttJdbc60.dll
> already loaded in another classloader
> at
> com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnect ion.java:1704)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :362)
> at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java :218)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection .createConnection(JDBCConnection.java:88)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.inte rnalCreateConnection(DriverConnectionBase.java:103)
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.open (DriverConnectionBase.java:53)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection . <init>(JDBCConnection.java:48)
> at
> org.eclipse.datatools.connectivity.db.generic.JDBCConnection Factory.createConnection(JDBCConnectionFactory.java:51)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:85 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:69 )
> at
> org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:304)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:622)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> !SUBENTRY 1 org.eclipse.core.runtime 2006-08-23 11:28:31.964
> !MESSAGE OK
>
>
>
Re: Could not connect; Native Library loaded in another classloader [message #582625 is a reply to message #20455] Mon, 16 October 2006 15:44 Go to previous message
John Graham is currently offline John GrahamFriend
Messages: 183
Registered: July 2009
Senior Member
jeevan wrote:

> Hi,

> Under connectivity preferances, I added a Generic JDBC driver for my
> database - TimesTen (in memory database; a product of Oracle corp.)

> In the Data Source Explorer view added a new Database of SQL Model JDBC
> Connection; and specified the above driver.

> But when I try connecting, I get

> Could not connect to TimesTen.
> Error creating SQL Model Connection connection to TimesTen. (Error: Native
> Library C:WINDOWSsystem32ttJdbc60.dll already loaded in another
> classloader)

> Any clues will be appreciated.

> ~g1

> PS:
> I am using Eclipse Calisto - Version: 3.2.0; Build id: M20060629-1905
> Via the update manager,
> I installed everything available under the Eclipse DataTools platform
> (Version: 0.9.0.200606161; Build id: 0.9.0.200606161)

Hi Jeevan:

We'd appreciate a Bugzilla entry for this problem, so we can track the
issue with our Connectivity project team.

Regards,
John Graham
Eclipse Data Tools Platform PMC Chair
Re: Could not connect; Native Library loaded in another classloader [message #582691 is a reply to message #21955] Mon, 23 October 2006 18:52 Go to previous message
Rob Cernich is currently offline Rob CernichFriend
Messages: 56
Registered: July 2009
Member
Please review the following BZ entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=130799

Regards,
Rob
Re: Could not connect; Native Library loaded in another classloader [message #583018 is a reply to message #20455] Fri, 10 November 2006 16:15 Go to previous message
Rob Cernich is currently offline Rob CernichFriend
Messages: 56
Registered: July 2009
Member
There were general problems using drivers that had dependencies on native
libraries. A patch for this problem has been applied which improves
support.

Note, you will still have problems if you have more than one driver
definition that references the same native library (e.g. if you have two
driver definitions that reference the same native library and connection
profiles which reference one or the other, you will be able to connect to
those profiles referencing the same driver definition as the one used for
the first connection, but the profiles referencing the other driver
definition will fail).

(The technical problem: each driver definition manages its own class
loader. This class loader is shared among connections. If you have two
driver definitions, there will be two different class loaders and if both
have a dependency on the same native library, the second class loader that
is used will fail to load the native library.)

Thanks to Brian for checking in the fix.

Rob
Previous Topic:Connecting to Derby via Embedded Driver
Next Topic:TPTP Profiling .ear file
Goto Forum:
  


Current Time: Fri Apr 26 06:08:31 GMT 2024

Powered by FUDForum. Page generated in 0.03560 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top