Environemt: Windows 2000 SP4
Java: j2sdk1.4.2_06
I am trying to transfer tables from oracle 10g to MySQL
5.0.2. During the transfer process:
java.lang.UnsatisfiedLinkError: Native Library
D:\oracledb\product\10.1.0\db_1\BIN\ocijdbc10.dll
already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(Unknown
Source)
at java.lang.ClassLoader.loadLibrary(Unknown
Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at
oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2855)
at
oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:222)
at
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:344)
at
oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:136)
at
oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
at
net.antonywarner.db2db.jdbcconnection.JDBCConnection.initialiseConnection(JDBCConnection.java:137)
at
net.antonywarner.db2db.jdbcconnection.JDBCConnection.get(JDBCConnection.java:239)
at
net.antonywarner.db2db.jdbcconnection.JDBCConnectionManager.get(JDBCConnectionManager.java:104)
at
net.antonywarner.db2db.jdbcconnection.JDBCConnectionManager.get(JDBCConnectionManager.java:70)
at
net.antonywarner.db2db.jdbcdatabase.Database.<init>(Database.java:152)
at
net.antonywarner.db2db.jdbcdatabase.DatabaseCache.cache(DatabaseCache.java:93)
at
net.antonywarner.db2db.jdbcdatabase.DatabaseCache.get(DatabaseCache.java:62)
at
net.antonywarner.db2db.gui.internalframe.wizardsteps.WizardStepChooseUserConnections$6.construct(WizardStepChooseUserConnections.java:289)
at
net.antonywarner.common.jframework.threads.SwingWorker$2.run(SwingWorker.java:109)
at java.lang.Thread.run(Unknown Source)
and
java.lang.IllegalArgumentException: DatabaseCache#get:
The 'uConnection' parameter is null.
at
net.antonywarner.db2db.jdbcdatabase.DatabaseCache.get(DatabaseCache.java:53)
at
net.antonywarner.db2db.gui.internalframe.wizardsteps.WizardStepChooseTables.start(WizardStepChooseTables.java:137)
at
net.antonywarner.db2db.gui.internalframe.TransferPhasedProcessDispatcher.performCurrentPhase(TransferPhasedProcessDispatcher.java:105)
at
net.antonywarner.common.phasedprocess.PhasedProcessDispatcher.phasedProcessHandler(PhasedProcessDispatcher.java:154)
at
net.antonywarner.db2db.gui.internalframe.TransferPhasedProcessDispatcher.next(TransferPhasedProcessDispatcher.java:122)
at
net.antonywarner.db2db.gui.internalframe.TransferJInternalFrame$NextAction.actionPerformed(TransferJInternalFrame.java:481)
at
javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown
Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Window.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown
Source)
at
net.antonywarner.db2db.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:51)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Any ideas?
Logged In: NO
Well, this is a blast from the past, I'm not actively
developing db2db anymore.
As for the problem, I see you're driver is a dll. Off the
top of my head, when you register the driver with db2db I
think you can use the 'Load driver from Classpath' checkbox.
Did you do that? Apart from that, I'd have to look into it.
You could use the Oracle thin drivers! These work ok as that
is what I use, and they are very good.
Post back if you can't get it working, and I'll help.
Logged In: YES
user_id=804092
The above post was from me, btw.