-
Notifications
You must be signed in to change notification settings - Fork 11
unable to start plugins (bundle) due nokogiri #20
Comments
never-mind my ps, I'm able to reproduce locally as well using the jruby.jar based on 1.7.12 |
That's odd, XML should definitively be supported. It is probably an import-export problem. We tell KB to export some default classes to OSGI plugins, see the property On the FYI, to build the jruby.jar, build the following submodule: https://github.com/killbill/killbill-platform/tree/master/osgi-bundles/bundles/jruby |
thanks, found the bundle and it seems to help ... I needed to add these for
crazy part is it's also using but at least I'm fine running the older nokogiri 1.6.1 (mentioned on the issue linked above) ... let me know if you want me to fire up a PR with the change (not sure how to test it)
hard to tell ... have not been around long enough, if I would to suspect than maybe Felix got upgraded ... |
That'd be appreciated. For testing, it's fine - manual testing is all we have for that for now...
Good point! We did upgrade it recently (killbill/killbill-oss-parent@5e74dda), but I suspect they are on an older version. |
OK, will do but for now it seems "useless" as it's not enough ;( ... loads but does not work : https://gist.github.com/kares/29fb09165e6014792da2#file-little-nokogiri-add_payment_method-log ... unfortunately it seems the real issue gets swallowed and likely null is returned |
The following did the trick for me:
and
(import and export packages need to be kept in sync). It's really unfortunate all of these core classes are not just visible by default... |
yeah the core ones (present in Java API) are a bit unfortunate, but still nokogiri's use of internal ones is also very unfortunate (one basically can only possibly load nokogiri on Open/Oracle JDK currently) ... I still needed to export |
Fixed in Kill Bill 0.14.0. |
(LoadError) load error: nokogiri/nokogiri -- java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
... as it seems to be accessing classes outside what it is allowed to ?!?
pretty much all the plugins that use XML (require nokogiri) can not load ;(
was unable to setup litle plugin due this, tried going down to 1.6.1 as a work-around but seems it's not the same cause.
this only reproduces with KB ... details at: https://gist.github.com/kares/29fb09165e6014792da2
p.s. might have slipped in due the JRuby 1.7.16 upgrade (not sure really) - would try newer JRuby (there sure might have been some OSGi class-loading updates) if I get some hints how to build an osgi jruby.jar ...
The text was updated successfully, but these errors were encountered: