Subject RE: [Firebird-Java] Re: Exceptions using org.firebirdsql.gds
Author Ryan Baldwin
Hi,

>This is normall, driver is trying to guess the name of the library.
>I do not have the source in front of me (jaybird source),
>but when I was tampering with embedded client in Linux, I had the same
problem and
>I digged into the code.
>Jaybird is trying several names for .so files

This is exactly it. I will make some changes so that if a client library is
loaded then no stack trace is printed to std out(and simply INFO logged as
to which library was loaded) - and if all attempts to load client library's
log an ERROR via the logging system. Hopefully this will make things less
confusing.

I would like to point out though that as far as I am aware - their is no SS
arch embedded server binaries available for linux.

Their is a libfbembed.so - But I think that it is most likley to be a CS
arch firebird server - as it comes only in the CS arch firebird server
package. Therefore I dont believe it will work relaibly with more then one
connection(a lock up or simple failure to connect is the most likley
consequence of multiple connections in this case I believe) - also I have
never tested jaybird against this(granted it looks for a client library with
this name - possibly not what should occur). If anyone knows otherwise I
would be gratefull for the information.

Thanks
Ryan

-----Original Message-----
From: Niki Ivanchev [mailto:niki_iv@...]
Sent: 01 April 2004 14:21
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Re: Exceptions using org.firebirdsql.gds


This is normall, driver is trying to guess the name of the library.
I do not have the source in front of me (jaybird source),
but when I was tampering with embedded client in Linux, I had the same
problem and
I digged into the code.
Jaybird is trying several names for .so files
Regards
Niki



sbnspindler wrote:

>--- In Firebird-Java@yahoogroups.com, "Ryan Baldwin"
><ryan.baldwin@n...> wrote:
>
>
>>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@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
>>>
>>>
>(GDSFactory.java:60)
>
>> /rest is removed (Niki Ivanchev)/
>>
>>Hello,
>>I've the same problem on my linux.
>>Does nobody have an idea ??
>>Regards,
>>Sabine
>>
>>Yahoo! Groups Links
>>
>>
>
>Hello,
>
>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.
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>



[Non-text portions of this message have been removed]




Yahoo! Groups Links