GithubHelp home page GithubHelp logo

ServiceLoader Action$Factory about ical4j HOT 6 CLOSED

ical4j avatar ical4j commented on June 5, 2024
ServiceLoader Action$Factory

from ical4j.

Comments (6)

benfortuna avatar benfortuna commented on June 5, 2024 1

Hi,

There is a pre-built jar available here:

https://oss.sonatype.org/content/repositories/snapshots/org/mnode/ical4j/ical4j/2.0.0-bugfix-serviceloader-osgi-SNAPSHOT/

If you could let me know if you have success with it that would be
appreciated.

Regards,
Ben
On 29 Apr 2016 7:17 pm, "paphko" [email protected] wrote:

@benfortuna https://github.com/benfortuna Thank you for investigating
this issue. Do I have to re-build the ical4j lib from sources myself to get
the fix or is there somewhere a jar already available with that fix?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#64 (comment)

from ical4j.

paphko avatar paphko commented on June 5, 2024

I get the same error when I build the org.openhab.io.caldav bundle from the current master branch and deploy it to a 1.8.2 runtime:

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-all-2.1.7.jar:na]
Caused by: java.util.ServiceConfigurationError: net.fortuna.ical4j.model.PropertyFactory: Provider net.fortuna.ical4j.model.property.Action$Factory not a subtype
        at java.util.ServiceLoader.fail(ServiceLoader.java:239) ~[na:1.8.0]
        at java.util.ServiceLoader.access$300(ServiceLoader.java:185) ~[na:1.8.0]
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376) ~[na:1.8.0]
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) ~[na:1.8.0]
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480) ~[na:1.8.0]
        at net.fortuna.ical4j.model.AbstractContentFactory.getFactory(AbstractContentFactory.java:85) ~[na:na]
        at net.fortuna.ical4j.model.PropertyFactoryImpl.createProperty(PropertyFactoryImpl.java:78) ~[na:na]
        at net.fortuna.ical4j.data.CalendarBuilder$ContentHandlerImpl.startProperty(CalendarBuilder.java:326) ~[na:na]
        at net.fortuna.ical4j.data.CalendarParserImpl$PropertyParser.parse(CalendarParserImpl.java:206) ~[na:na]
        at net.fortuna.ical4j.data.CalendarParserImpl$PropertyParser.access$1100(CalendarParserImpl.java:190) ~[na:na]
        at net.fortuna.ical4j.data.CalendarParserImpl$PropertyListParser.parse(CalendarParserImpl.java:173) ~[na:na]
        at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:122) ~[na:na]
        at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:198) ~[na:na]
        at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:299) ~[na:na]
        at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:279) ~[na:na]
        at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:111) ~[na:na]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-all-2.1.7.jar:na]
        ... 1 common frames omitted

from ical4j.

benfortuna avatar benfortuna commented on June 5, 2024

I'm currently testing a workaround to this issue, although ultimately I am now thinking using ServiceLoader may not have been the best decision. I will ultimately look for a solution that is more compatible with OSGi environments. Here is the pull request: #80

from ical4j.

paphko avatar paphko commented on June 5, 2024

@benfortuna Thank you for investigating this issue. Do I have to re-build the ical4j lib from sources myself to get the fix or is there somewhere a jar already available with that fix?

from ical4j.

paphko avatar paphko commented on June 5, 2024

@benfortuna Thanks, it works again!

from ical4j.

benfortuna avatar benfortuna commented on June 5, 2024

Fixed for now, but will probably look at replacing ServiceLoader in future

from ical4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.