Okay. This one is solved. The problem arose because I packaged the jollyday jar file into the OSGi bundle and set the classpath of the bundle accordingly. This is cute because you can supply your bundle with all needed libraries. For other libraries this worked alright. But jollyday caused problems on subsequent reloads of the same bundle (stop/start). So the solution was to repackage and deploy the jollyday jar as a bundle to the OSGi container and load the classes from the OSGi containers classloader....
Just noticed that this seems to be related to this topic but there is no statement how the workaround was made.
Hi all. I have used jollyday before in other projects and first wanted thank anyone involved for this great library. Currently I develop a new software as bundle within a running OSGi environment. This is a third-party commercial implementation (not equinox). No when the bundle gets redeployed I face classloading errors like the following: Caused by: java.lang.IllegalStateException: Cannot create parsers. at de.jollyday.impl.DefaultHolidayManager.getParsers(DefaultHolidayManager.java:190) at de.jollyday.impl.DefaultHolidayManager.parseHolidays(DefaultHolidayManager.java:151)...
Linked in more active github.com issue tracker and repository: https://github.com/svendiedrichsen/jollyday/issues/51
... because I'm loading them this way, that is. int currentYear = LocalDate.now().getYear(); int previousYear = currentYear - 1; int lastFutureYear = currentYear + loadThisManyFutureYears; for (int year = previousYear; year <= lastFutureYear; ++year) { HOLIDAYS.addAll(holidayMgr.getHolidays(year, "de")); } ... and loadThisManyFutureYears is usually configured as 2. I could imagine I could add a second xml configuration file, so that I have one for recurring holidays and one for single-use holidays...
... because I'm loading them this way, that is. int currentYear = LocalDate.now().getYear(); int previousYear = currentYear - 1; int lastFutureYear = currentYear + loadThisManyFutureYears; for (int year = previousYear; year <= lastFutureYear; ++year) { HOLIDAYS.addAll(holidayMgr.getHolidays(year, "de")); } ... and loadThisManyFutureYears is usually configured as 2. I could imagine I could add a second xml configuration file, one for recurring holidays and one for holidays only for the current year,...
It's been a while, but as far as I can tell (and the developers of the 3rd party software that I am plugging my code into could help) it is indeed some class loader issue. Workarounds have been provided, not really appealing ones, but ... well. Thanks again.
Hi. Is there a way to configure one single non-recurring holiday? I've tried <tns:Fixed .../>, but that will give me a holiday every year. Background: Reformation day this year (2017-10-31) is a holiday in Germany, but only this year. Thanks -- Wolfgang
Hi. Is there a way to configure one single non-recurring holiday? I've tried <tns:Fixed .../>, but that will wive me a holiday every year. Background: Reformation day this year (2017-10-31) is a holiday in Germany, but only this year. Thanks -- Wolfgang
Hi. Is there a way to configure one single non-recurring holiday? I've tried <tns:Fixed ...="">, but that will wive me a holiday every year. Background: Reformation day this year (2017-10-31) is a holiday in Germany, but only this year. Thanks -- Wolfgang
Help! I am stuck and I can't get my own holidays to work :(
I get an error trying to use the syntax on the help page. URL url = new URL("file:some/path/MyHolidays.xml");...
In our project we have a custom ClassLoader hierarchy, which seems to lead to a NullPointerException...
Hi. What does "... exporting this class ..." mean? Do you build your application...
Done. Thanks.
http://prague.tv/en/s72/Directory/c212-Relocation/n5201-Good-Friday-Czech-Republ...
Good Day. I'm trying to implement Jolliday into an Java Application called "Starface"...
Good Day. I'm trying to implement Jolliday into an Java Application called "Starface"...
Hi Luisa, unfortunately there is no way to merge two or more holiday files upon runtime....
Hello, I was tring to use the holidays provided by jullyday plus others. My question...
Hello Sven, I can't find the quoted sentence in Wikipedia. Google finds it here:...
Hello Sven, I can't find the quoted sentence in Wikipedia. Google finds it here:...
I will investigate, thanks so far. w6gb
It would probably be sufficient to add it like this if I am not mistaken: <tns:ChristianHoliday...
A new holiday was approved by the parliament lately, see https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic...
I can only guess from here without having access to the specific code of yours, but...
Hi. I am experiencing a ClassCastException when I run my maven built jar-with-dependencies...
Hi, In some countries, such as Turkey, they take days off after an Islamic Holyday,...
Maybe you can post your problem at the Stanford NLP APIs mailing list http://nlp...
Hi Ivo if you read the Wikipedia article about the public holidays in the Czech Republic...
I'm sorry but I'm not familiar with the Stanford NLP library. I was not involved...
See https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic.
Starting up a Java app that uses the Stanford NLP library, I get an error that suggests...
thx that helped
Hi Lars, sorry the usage page is a little out of date. 1) Use HolidayManager.createManager(ManagerParameter)...
Hi I'm following the usage page and try to set my own XML via a url but the there...
Great, it worked like a charm! Regards, Michael
Problem is solved. Thanks for your fast help and your library. chris
Fixed the problem with 0.5.1. thanks for the info. cheers Sven
Pulled your changes, made some minor fixes and released 0.5.1. In 0.5.0 I signed...
Hi Sven, Could you please take a look at this when you're back from vacation? Regards,...
BTW, Sven, thanks a lot for the jollyday library - great functionality! Mike
Hi Sven, I observed the same problem. The jar you provided shows the same issue expecting...
Hi Chris, could you please check if the jar file under https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.jollyday&a=jollyday&v=0.5.0&e=jar...
Hi, I added the jar jollyday-0.5.0.jar and on HolidayManager.getInstance(ManagerParameters.create(HolidayCalendar.GERMANY));...
Hi, thats imo a question of how to handle bad input prevent = maybe have a different...
Hi, the first two are relicts from multi-threaded times and can go. The third point...
Hi, the first two are relicts from multi-threaded passend and can go. The third point...
Hi, In this line: https://github.com/svendiedrichsen/jollyday/blob/23a71f4985f85b8da7adf11599c10d08e856769d/src/main/java/de/jollyday/parser/impl/FixedWeekdayRelativeToFixedParser.java#L82...
Hi, I have some questions about this class: Why is the holidaySet synchronized? https://github.com/svendiedrichsen/jollyday/blob/78da125093d4d6c9d9bb6bb5d1fe942d7e6cf80a/src/main/java/de/jollyday/impl/DefaultHolidayManager.java#L75...
Hi Sven, Thanks! However, something went wrong with the artifact deployment though....
Hi Michael, I have just release version 0.5.0 with your changes for Java 8 support....
added.
done
done
Done
Fixed it by changing javadoc plugin version to 2.10.2. I will pull your changes into...
I have a build error when running javadoc. Probably my fault but do you have any...
Well, I had understood where the changes needed to be made, so I changed the code...
I have just looked through your changes and they look very good. The change towards...
Regarding the failing tests, here is what Stephen Colebourne kindly told me: "There...
Better diff in this pull request: https://github.com/svendiedrichsen/jollyday/pull/1...
OK, here is the code, for some reason some files have a full diff: https://github.com/sjmisterm/jollyday/commit/ad8a12ea04c79007c8a3fb7544782dc50f783386...
Ok, so except for some deviations with the IslamicChronology to HijrahChronology...
Hi Michael, you are very welcome to port Jollyday to Java 8. I already have the trunk...
Hi guys, We have been using jollyday in our internal business days calculations with...
removed empty folder
Belarus (BY) is already part of the standard distribution.
Made christian holiday movable
Can you please add configuration for the country of Belarus? A list of public holidays...
Hello, there is a typo in the name of the Germany's federal state Baden-Württemberg....
The official alpha-2 code for United Kingdom is GB, but in Jollyday it is UK. http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#UK...
Hi, it is currently only possible to use moving condition on Fixed holidays. I added...
Hi, There was a change in law in the country and some of the christian holidays have...
Hi, There was a change in law in the country and some of the christian holidays have...
Hello. Hopefully this is the correct place to post this. Otherwise, kindly point...
Hello. Hopefully this is the correct place to post this. Otherwise, kindly point...
Hi Alex, you can create your own holiday xml file, put it into your classpath and...
Hi, while working with the library I ran into a problem. My problem is that the 31.12....
Version 0.4.7 data is showing <tns:Fixed month="JANUARY" day="26" validTo="2007"...
yes, combining the Set is what I'm doing now. What I had been looking for was a direct...
You can 'combine' the holidays by simply adding them to one Set. Or please specify...
netherland the queens birthday is replaced by t...
fixed broken iso codes test
added Pentecost holiday to danish holidays file
added TARGET holidays