Subject | Re: Exceptions using org.firebirdsql.gds |
---|---|
Author | sbnspindler |
Post date | 2004-04-01T12:21:37Z |
--- In Firebird-Java@yahoogroups.com, "Ryan Baldwin"
<ryan.baldwin@n...> wrote:
I want to use the driver in the embedded mode. The libfbclient.so and
also the libfbembed.so are accessible to the java process, but the
problem still exists. What else can I made wrong ?
By the way, the exception only occurs at the first time, but the java
application can create the database and work with it.
<ryan.baldwin@n...> wrote:
> Hi,embedded
>
> This problem is due to the driver being used in either Type 2 or
> mode and the process not being able to load the appropriate clientlibrary.
> If using Type 2 mode the driver will be looking for libfbclient.soor
> libgds.so. If using embedded mode the driver will be looking forlinux - but I
> libfbembed.so(currently no SS arch embedded server exists for
> have been away for a while so this may be out of date.)process to
>
> To fix this problem you need to make it possible for the java
> load the firebird client library. If you have problems doing thislet us
> know and I can give some further advice.not need to
>
> Alternativly you could use the driver in type 4 mode and it will
> load any native library. I am assuming though that you are tryingto use the
> driver in type 2 mode for a specific reason.(GDSFactory.java:60)
>
> Hope this helps
> Ryan
>
> Also - my appologies for vanishing for the last couple of months.
>
> -----Original Message-----
> From: sbnspindler [mailto:sabine.spindler@f...]
> 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
> > 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
> (GDS_Impl.java:117)
> > at
> > org.firebirdsql.ngds.GDS_Impl.<init>(GDS_Impl.java:74)
> > at
> > org.firebirdsql.gds.GDSFactory.createGDSForType
> > at(UserIF.java:173)
> > 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
> (UserIF.java:306)
> > at
> > com.trfd.fbassist.gui.uif.UserIF$3.actionPerformed
> > atHello,
> > javax.swing.AbstractButton.fireActionPerformed
> (AbstractButton.java:1786)
> > at
> > javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
> (AbstractButton.java:1839)
> > at
> > javax.swing.DefaultButtonModel.fireActionPerformed
> (DefaultButtonModel.java:420)
> > at
> > javax.swing.DefaultButtonModel.setPressed
> (DefaultButtonModel.java:258)
> > at
> > javax.swing.plaf.basic.BasicButtonListener.mouseReleased
> (BasicButtonListener.java:245)
> > at
> > 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
> (Container.java:3483)
> > at
> > java.awt.LightweightDispatcher.processMouseEvent
> (Container.java:3198)
> > at
> > 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
> (EventDispatchThread.java:201)
> > at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:151)
> > at
> > java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:145)
> > at
> > java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:137)
> > at java.awt.EventDispatchThread.run
> (EventDispatchThread.java:100)
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance Tax Center - File online. File on time.
> > http://taxes.yahoo.com/filing.html
>
>
> Hello,
> I've the same problem on my linux.
> Does nobody have an idea ??
> Regards,
> Sabine
>
>
>
>
>
>
>
> Yahoo! Groups Links
I want to use the driver in the embedded mode. The libfbclient.so and
also the libfbembed.so are accessible to the java process, but the
problem still exists. What else can I made wrong ?
By the way, the exception only occurs at the first time, but the java
application can create the database and work with it.