Subject | RE: [Firebird-Java] Re: Exceptions using org.firebirdsql.gds |
---|---|
Author | Ryan Baldwin |
Post date | 2004-04-01T10:29:56Z |
Hi,
This problem is due to the driver being used in either Type 2 or embedded
mode and the process not being able to load the appropriate client library.
If using Type 2 mode the driver will be looking for libfbclient.so or
libgds.so. If using embedded mode the driver will be looking for
libfbembed.so(currently no SS arch embedded server exists for linux - but I
have been away for a while so this may be out of date.)
To fix this problem you need to make it possible for the java process to
load the firebird client library. If you have problems doing this let us
know and I can give some further advice.
Alternativly you could use the driver in type 4 mode and it will not need to
load any native library. I am assuming though that you are trying to use the
driver in type 2 mode for a specific reason.
Hope this helps
Ryan
Also - my appologies for vanishing for the last couple of months.
-----Original Message-----
From: sbnspindler [mailto:sabine.spindler@...]
Sent: 01 April 2004 09:46
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Re: Exceptions using org.firebirdsql.gds
--- In Firebird-Java@yahoogroups.com, Tim Peterson <txpet1957@y...>
wrote:
I've the same problem on my linux.
Does nobody have an idea ??
Regards,
Sabine
Yahoo! Groups Links
This problem is due to the driver being used in either Type 2 or embedded
mode and the process not being able to load the appropriate client library.
If using Type 2 mode the driver will be looking for libfbclient.so or
libgds.so. If using embedded mode the driver will be looking for
libfbembed.so(currently no SS arch embedded server exists for linux - but I
have been away for a while so this may be out of date.)
To fix this problem you need to make it possible for the java process to
load the firebird client library. If you have problems doing this let us
know and I can give some further advice.
Alternativly you could use the driver in type 4 mode and it will not need to
load any native library. I am assuming though that you are trying to use the
driver in type 2 mode for a specific reason.
Hope this helps
Ryan
Also - my appologies for vanishing for the last couple of months.
-----Original Message-----
From: sbnspindler [mailto:sabine.spindler@...]
Sent: 01 April 2004 09:46
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Re: Exceptions using org.firebirdsql.gds
--- In Firebird-Java@yahoogroups.com, Tim Peterson <txpet1957@y...>
wrote:
> I am experimenting the import org.firebirdsql.gds(GDS_Impl.java:117)
> classes. I keep getting the following exception when
> attaching, however, the attachement appears to work.
> I am able to use the resulting handle. The client
> directorys are being loaded in ldconfig (SUSE 9.0).
> Any idea's?
>
> org.firebirdsql.ngds.InternalError:
> FirebirdApiBinding::Initialize - Could not find or
> load the firebird client library.
> at
> org.firebirdsql.ngds.GDS_Impl.nativeInitilize(Native
> Method)
> at
> org.firebirdsql.ngds.GDS_Impl.attemptToLoadAClientLibraryFromList
> at(UserIF.java:306)
> org.firebirdsql.ngds.GDS_Impl.<init>(GDS_Impl.java:74)
> at
> org.firebirdsql.gds.GDSFactory.createGDSForType(GDSFactory.java:60)
> at
> org.firebirdsql.gds.GDSFactory.getGDSForType(GDSFactory.java:48)
> at
> com.trfd.fbassist.gui.common.UserNode.save(UserNode.java:285)
> at
> com.trfd.fbassist.gui.uif.UserIF.m_saveButtonActionPerformed
> at(AbstractButton.java:1786)
> com.trfd.fbassist.gui.uif.UserIF$3.actionPerformed(UserIF.java:173)
> at
> javax.swing.AbstractButton.fireActionPerformed
> at(AbstractButton.java:1839)
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
> at(DefaultButtonModel.java:420)
> javax.swing.DefaultButtonModel.fireActionPerformed
> at(DefaultButtonModel.java:258)
> javax.swing.DefaultButtonModel.setPressed
> at(BasicButtonListener.java:245)
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased
> at(Container.java:3483)
> java.awt.Component.processMouseEvent(Component.java:5100)
> at
> java.awt.Component.processEvent(Component.java:4897)
> at
> java.awt.Container.processEvent(Container.java:1569)
> at
> java.awt.Component.dispatchEventImpl(Component.java:3615)
> at
> java.awt.Container.dispatchEventImpl(Container.java:1627)
> at
> java.awt.Component.dispatchEvent(Component.java:3477)
> at
> java.awt.LightweightDispatcher.retargetMouseEvent
> at(Container.java:3198)
> java.awt.LightweightDispatcher.processMouseEvent
> at(EventDispatchThread.java:201)
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
> at
> java.awt.Container.dispatchEventImpl(Container.java:1613)
> at
> java.awt.Window.dispatchEventImpl(Window.java:1606)
> at
> java.awt.Component.dispatchEvent(Component.java:3477)
> at
> java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
> at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy
> at(EventDispatchThread.java:151)
> java.awt.EventDispatchThread.pumpEventsForHierarchy
> at(EventDispatchThread.java:145)
> java.awt.EventDispatchThread.pumpEvents
> at(EventDispatchThread.java:137)
> java.awt.EventDispatchThread.pumpEvents
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>Hello,
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
I've the same problem on my linux.
Does nobody have an idea ??
Regards,
Sabine
Yahoo! Groups Links