Sealing violation: package oracle.jdbc is sealed from org/jruby/javasupport/JavaPackage.java

Hi
I update EazyBi from 4.7.3 to latest version and I facing this error with Internal Server Error (500):

```sealing violation: package oracle.jdbc is sealed from org/jruby/javasupport/JavaPackage.java:252:in method_missing' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb:36:in ’ from org/jruby/RubyKernel.java:978:in require' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in block in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/active_record/connection_adapters/oracle_enhanced/connection.rb:116:in <main>' from org/jruby/RubyKernel.java:978:in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in block in require' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:33:in ’ from org/jruby/RubyKernel.java:978:in require' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in block in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/activerecord-oracle_enhanced-adapter.rb:12:in block in OracleEnhancedRailtie' from org/jruby/RubyBasicObject.java:2608:in instance_eval’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:28:in block in on_load’ from org/jruby/RubyArray.java:1814:in each' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:27:in on_load’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/activerecord-oracle_enhanced-adapter.rb:11:in <class:OracleEnhancedRailtie>' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/activerecord-oracle_enhanced-adapter.rb:6:in module:ConnectionAdapters’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/activerecord-oracle_enhanced-adapter.rb:5:in <module:ActiveRecord>' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activerecord-oracle_enhanced-adapter-1.6.7/lib/activerecord-oracle_enhanced-adapter.rb:4:in ’ from org/jruby/RubyKernel.java:978:in require' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in block in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/rails.root/vendor/gems/eazybi/lib/jdbc/oracle_enhanced_patches.class:6:in <main>' from org/jruby/RubyKernel.java:1020:in load’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in block in load' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in load' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/rails.root/vendor/gems/eazybi/lib/jdbc/oracle_enhanced_patches.rb:1:in ’ from org/jruby/RubyKernel.java:978:in require' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in block in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/rails.root/vendor/gems/eazybi/config/initializers/jdbc.class:41:in <main>' from org/jruby/RubyKernel.java:1020:in load’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in block in load' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in load' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/rails.root/vendor/gems/eazybi/config/initializers/jdbc.rb:1:in ’ from org/jruby/RubyKernel.java:1020:in load' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in block in load’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in load’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/engine.rb:658:in block in load_config_initializer' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in instrument’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/engine.rb:657:in load_config_initializer' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/engine.rb:622:in block in Engine’ from org/jruby/RubyArray.java:1814:in each' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/engine.rb:621:in block in Engine’ from org/jruby/RubyBasicObject.java:2680:in instance_exec' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/initializable.rb:30:in run’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/initializable.rb:55:in block in run_initializers' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:228:in block in tsort_each’ from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:350:in block in each_strongly_connected_component' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:422:in block in each_strongly_connected_component_from’ from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:431:in each_strongly_connected_component_from' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:421:in block in each_strongly_connected_component_from’ from org/jruby/RubyArray.java:1814:in each' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/initializable.rb:44:in tsort_each_child’ from org/jruby/RubyMethod.java:120:in call' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:415:in each_strongly_connected_component_from’ from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:349:in block in each_strongly_connected_component' from org/jruby/RubyArray.java:1814:in each’ from org/jruby/RubyMethod.java:132:in call' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:347:in each_strongly_connected_component’ from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:226:in tsort_each' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:205:in tsort_each’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/initializable.rb:54:in run_initializers' from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/gem.home/gems/railties-4.2.10/lib/rails/application.rb:352:in initialize!’ from /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle311/version0.0/plugin_3893768761532981301_eazybi-jira-5.3.2_1586751923000.jar-lib/0/META-INF/rails.root/config/environment.rb:5:in <main>' from org/jruby/RubyKernel.java:978:in require’ from uri:classloader:/jruby/rack/rails/environment3.rb:25:in load_environment' from uri:classloader:/jruby/rack/rails_booter.rb:83:in load_environment’ from :1:in `’

You’re seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.```

Could you help me how to solve it?

Hello Ansar,

The problem is related to the Oracle JDBC driver file load. Therefore, the first question is - do you use Oracle database for Jira or eazyBI? If no, then please delete all Oracle JDBC JAR files (all files that start with ojdbc ) from Jira installation directory, lib subdirectory. If you use Oracle database, then please search Jira installation and Jira home directories for Oracle JDBC JAR files by executing the following command from Jira server command line:

find <JIRA_INSTALLATION_DIRECTORY> -iname ojdbc* find <JIRA_HOME_DIRECTORY> -iname ojdbc*

It could be that there are multiple driver files and therefore eazyBI Java class loading ends with an error when trying to reload Oracle JDBC driver classes. According to Atlassian documentation ( https://confluence.atlassian.com/adminjiraserver080/connecting-jira-applications-to-oracle-967896919.html ), Oracle JDBC driver JAR file should be placed inside the lib/ directory in the Jira installation directory. So there should be one ojdbc8.jar under <JIRA_INSTALL_DIR>/lib and no other ojdbc*.jar files.

Best regards,