On 20-12-2020 13:09, Altiy Zemlytskiy wrote:
> I loaded with loadjava tool jaybird-jdk18-3.0.10-20201219.134254-1.jar
> driver and my java class to Oracle database. All classes were resolved.
> When I run Java Stored Procedure from Oracle first time got exception
> stacktrace
> java.sql.SQLException: No message for code 335544421 found.
> [SQLState:HY000, ISC error code:335544421]
[..]
> Checked error code 335544421 from FAQ, username and login are not null,
> nothing is mentioned in firebird.log, WireCrypt = enabled in
> firebird.conf, paragraph 3.4.5 - I think is not my case.
As I mentioned in the comments on Stack Overflow, it looks like the way
Jaybird was loaded into Oracle has either corrupted something, or it did
not include the resources.
It looks like Jaybird cannot load some of its resources, as demonstrated
by your earlier problem where Jaybird could not initialize some of its
internal plugins (which means it cannot read the service definition
resources in META-INF/services), and by the fact that you get a "No
message for code 335544421 found." instead of "connection rejected by
remote interface" (which means that isc_error_msg.properties cannot be
loaded or is otherwise corrupted).
If we follow that lead, then likely Jaybird also couldn't load the
resources driver_property_info.properties and isc_dpb_types.properties,
which are essential for the connection properties to work correctly.
Check if the following resources exists in your Oracle database (I don't
know loadjava, so I cannot provide specifics):
META-INF/services/java.sql.Driver
META-INF/services/org.firebirdsql.encodings.EncodingSet
META-INF/services/org.firebirdsql.gds.impl.GDSFactoryPlugin
META-INF/services.org.firebirdsql.gds.ng.wire.ProtocolDescriptor
org/firebirdsql/jdbc/jaybird_error_msg.properties
org/firebirdsql/jdbc/jaybird_error_sqlstates.properties
org/firebirdsql/jdbc/version.properties
translation/hpux.properties
driver_property_info.properties
isc_dpb_types.properties
isc_error_message.properties
isc_error_sqlstates.properties
isc_tpb_mapping.properties
Mark
--
Mark Rotteveel