question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ServiceLoader Action$Factory

See original GitHub issue

I’m getting an error when i use it inside an OSGI environment. With an older version its running fine. The error occurs when the runtime is running and when i deactivate and active a bundle (where ical4j is used inside). Stacktrace:

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:231)
        at java.util.ServiceLoader.access$300(ServiceLoader.java:181)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:369)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
        at net.fortuna.ical4j.model.AbstractContentFactory.getFactory(AbstractContentFactory.java:85)
        at net.fortuna.ical4j.model.PropertyFactoryImpl.createProperty(PropertyFactoryImpl.java:78)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benfortunacommented, Apr 29, 2016

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” notifications@github.com 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 https://github.com/ical4j/ical4j/issues/64#issuecomment-215666130

0reactions
benfortunacommented, Nov 27, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

ServiceLoader (Java Platform SE 8 ) - Oracle Help Center
A simple service-provider loading facility. A service is a well-known set of interfaces and (usually abstract) classes. A service provider is a specific ......
Read more >
Automatical updating of `META-INF/services` with annotations ...
It's very easy to forget about updating META-INF/services for ServiceLoader every time HandlerFactory or ActionFactory is created/deleted.
Read more >
Source code - JMRI
ServiceLoader ; 008 009import javax.annotation. ... actionFactory : ServiceLoader.load(DigitalActionFactory.class)) { 034 actionFactory.init(); 035 } 036 037 ...
Read more >
ActionFactory (SAS Foundation Services) - SAS Support
ServiceLoader · ServiceLookupFailedException · ServiceNotAvailableException ... public class ActionFactory ... ActionFactory. public ActionFactory() ...
Read more >
CalDav Binding not working anymore - Bindings - openHAB ...
Action$Factory not a subtype at java.util. ... ServiceLoader$LazyIterator.access$700(ServiceLoader.java:323) ~[?:?] at java.util.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found