This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190110 - UnsatisfiedLinkError: Native Library C:\Oracle\ora10204\BIN\ocijdbc10.dll already loaded in another classloader
Summary: UnsatisfiedLinkError: Native Library C:\Oracle\ora10204\BIN\ocijdbc10.dll alr...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-02 14:15 UTC by dan.deter
Modified: 2013-12-11 12:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153842


Attachments
stacktrace (7.61 KB, text/plain)
2010-09-02 14:15 UTC, dan.deter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dan.deter 2010-09-02 14:15:28 UTC
Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
dan.deter: Using the Hibernate Reverse Engineering Wizard to create the reveng.xml file from an oracle database.

GUEST: I'm trying to configure the reverse engineering tool

GUEST: Conecction with the Oracle DataBase 10g r2




Stacktrace: 
java.lang.UnsatisfiedLinkError: Native Library C:\Oracle\ora10204\BIN\ocijdbc10.dll already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1768)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1028)
   at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:4085)
   at java.security.AccessController.doPrivileged(AccessController.java:0)
Comment 1 dan.deter 2010-09-02 14:15:32 UTC
Created attachment 101833 [details]
stacktrace
Comment 2 sinbadinux 2011-01-04 13:39:09 UTC
The workaround i found is to use the oracle thin driver in the 'hibernate configuration wizard' I don't know if this will cause some side effects in the next development steps.

To use the oracle thin driver I selected:
1- New Hibernate Configuration Wizard;
2- In the Database connection field select: New Database Connection;
3- the New Database Connection window will be shown;
4- In the driver name I selected: New Driver;
5- the New JDBC Driver dialog will be shown;
6- click the add button and select the ojdbc6.jar which is in the folder: <oracle_path>\oracle\product\11.1.0\client_1\jdbc\lib
7- automatically the fields Driver Class and name will be filled with Oracle Thin;
8- use this JDBC Driver for the hibernate configuration.
Comment 3 Sergey Petrov 2011-02-24 18:48:13 UTC
may be fixed with issue 194449 if classloader will be properly released after usage (but may not if it will be loaded by one classloader in services tab and second hibernate classloader).
it's good there is a workaround.
Comment 4 Sergey Petrov 2013-12-11 12:07:37 UTC
mark as works for me as it's unclear if it was fixed, but according to latest comment it may be fixed as side effect of another issue and there are no reports after 6.9.1