Subject Re: [Firebird-Java] Jaybird 3.0.0-beta-3 EncodingFactory$DefaultEncodingFactory error
Author Mark Rotteveel
On 2017-03-12 20:37, 'William L. Thomson Jr.' wlt-ml@...
[Firebird-Java] wrote:
> On Sunday, March 12, 2017 3:54:50 AM EDT Andrew Ushkov
> andrew.ushkov@...
> [Firebird-Java] wrote:
>> Hi all.
>> I'm stated to test Jaybird 3B3 and see one error.
>> When i'm connect to DB in application - all ok but when i'm trying to
>> register driver in Netbeans 8.2 and connect thru NB i'm got errors.
>> Tryed put encoding in URL and in properties - same error.
>> coud'nt connect
>> jdbc:firebirdsql:\cc1.fdb?encoding=WIN1251
>> with org.firebirdsql.jdbc.FBDriver (Could not initialize class
>> org.firebirdsql.encodings.EncodingFactory$DefaultEncodingFactory)
> Check archives I just went over this as it was causing me problems for
> some
> time. You likely need
> jdbc:firebirdsql:\cc1.fdb?charSet=WIN1251

Probably not, encoding is the alias for lc_ctype, and WIN1251 is a
Firebird character set name (and - unless I'm mistaken - not a Java
character set alias).

In my experience, Netbeans has the annoying habit of blocking certain
paths on the classpath, which might causes resources necessary for
Jaybird to not be loaded from the classpath. That is also the reason I
asked for the full stacktrace, to identify the specific problem.