-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
picocontainer to 2.15 has started throwing errors on Linux java #39
Comments
There's a chance, for sure. Looks like root cause is in Paranamer which I also update, but isn't needed in the Java9+ era Does izpack need to use |
i do not know much about izpack internals, i am just a user of izpack. but maybe you can explain it more so i would have enough understanding to investigate |
There have been some commits to the head of the PicoContainer2 project this year adding Java 21 support. I have had success running IzPack against the current, locally built, PicoContainer snapshot on java 21. With some minor modifications to the PicoContainer build script IzPack will run successfully on Java 17 too. |
@sucitram does this mean the error is fixed and PicoContainer2 just needs another release done? |
That has been my experience. Though I didn't test thoroughly and was only concerned with the PicoContainer artifacts used by IzPack. @paul-hammant committed the recent changes and would be better placed to comment on the readiness for release. |
https://github.com/search?q=repo%3Aizpack%2Fizpack+USE_NAMES&type=code is where Paranamer (not needed at Java-9) is activated. Java 9 provided its own way of accessing parameter names (for constructors and methods). I am not sure that PicoContainer ever utilized that mechanism, but could have it added. |
I've made a branch - https://github.com/picocontainer/PicoContainer2/tree/picocontainer-2.15 if we're doing work on that it would be with (say) JDK-9 or (better) JDK-11 to drop Paranamer and use JDK-9's own way of accessing parameter names. Or we fix the bug in Paranamer which could be update Paranamer's use of ASM .. https://github.com/paul-hammant/paranamer/blob/master/paranamer-generator/pom.xml#L21 ... then build release a point version of Paranamer, then build a point release of PicoContainer. pom.xml deps being the changes in each https://mvnrepository.com/artifact/org.ow2.asm/asm/5.2 is newer than 5.1. There's newer still 6, 7, 8 and 9 but backwards compatibility could have been lost in any of those |
I've updated Paranamer to latest asm (and latest qdox). https://github.com/paul-hammant/paranamer/commits/master/ For me, this builds under JDK11. That's not released yet. I'll go on try see if that works with PicoContainer 2.15 |
Using JDK11 First build paranamer from master which makes 2.8.1-SNAPSHOT Then in a branch of this repo - https://github.com/picocontainer/PicoContainer2/tree/picocontainer-2.15 also using JDK 11, cd into 'pico That makes picocontainer-2.15.1-SNAPSHOT which you can test |
I can't add a comment to https://izpack.atlassian.net/browse/IZPACK-1786 for some reason (to link back here) |
i added another comment there, (i think you need an account to post) |
izpack dev is actually on github https://github.com/izpack/ |
Team uses mail-lists, too https://izpack.org/mailing-lists/ |
@sdyura I could add the snapshot dependency to the current izpack build if there is an official SNAPSHOT available. (@paul-hammant any chance to publish such a version?) |
@paul-hammant This would be my preferred way as I plan to lift the minimal JDK Version to 21 going forward (as older usages should use the older izpack versions) |
@sdyura just successfully built and tested izpack with Java 21 using the |
Yes, it's all the upgrades you'd need for JDK21 - with JDK11 .class file format, IYKWIM. I'll go ahead and publish those to maven central - though that might require more pom.xml changes which I'm not familar with in the last few years. |
That would be great. I will then update the IzPack project as soon I've got the update in... |
doesn’t izpack need to support java 1.8? as thats still the version most people download from java.com |
You could still use the older revisions of IzPack if you have the need to run it under JDK 8. On the other hand no one will use IzPack for new Projects, it it does not run under later JDKs let alone the security issues we currently have because of libraries we can not update when we want stick on JDK 8. When IzPack stops keeping up to date, we will not have any relevance in the future... |
Ugh, I'm stuck with the paranamer release :-(
Yes, I made a token within the sonatype portal. That's in ~/.m2/settings.xml instead of my old (5 years ago) name+password. Yes, I can log into https://central.sonatype.com/account and did do to generate the token Yes I can log into https://oss.sonatype.org/#welcome but see no messages for me I wish the 401 response came with some debug info in the content of the request. like "no token specified", or "token specified but incorrect", or "that's a correct and valid-today token, but YOU are not authorized to deploy the artifact in question" I need to pubish paranamer, before I change picocontainer to use the non-SNAPSHOT version and publish that |
@paul-hammant I owe you at least one beer if we ever meet in person! |
Pat, do you have recent deploy-to-maven-central skills? If yes, could I add you to the so-authorized list to do so and you help me here? |
Sure, if I can help.... |
modern java apps all bundle jre so use things like https://conveyor.hydraulic.dev/ for installers but there are old apps, written to support all java versions, that are still quite popular and need to be able to install on all versions of java, 1.8 to 21. with the same installer. izpack 5.2.3 worked well on all versions until this bug came along. eventually these projects do need to be updated to more modern solutions, but if its a big project that is a lot of work. |
I see no reason, why those projects with old Java versions need to update to a newer IzPack version. If you only use Java 8 features (without lambdas & method references) in classes used directly by IzPack there should be no problem with the current version. If you decide to use newer Java language features, you then also will have no problem using an IzPack version that requires a later version Java I guess. For me as maintainer of the IzPack project wanting to stay relevant, it is required to be able to move forward in regards to new versions and also using of new Java features that may help in order to do so. |
@reinhapa It seems ways of publishing to maven central have changed. We used to use This page though - https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication gives blocks of config that pertain to
If there was a body with more detail for the the 401 response, it is long lost. |
So I go back to the old publication URL (that I may be grandfathered into) - paul-hammant/paranamer@7938054 - but it is the same. I'm sure as shit I made a token yesterday and pasted locally:
I'm lost - the lack of a more precise message is leaving me not wanting to use the maven-central. GitHub Packages Registry or JitPack are alternatives to Sonatype stuff. If I moved Paranamer and PicoContainer publication one of those, you'd have to reconfigure your deps some. |
Hmm, I wrote a message to your email address as stated in your Github profile. Also not that "s01.oss.sonatype.org" uses a different token as "oss.sonatype.org". Looking at your change I guess that you should use the later and make sure to get the token from the later site (had same issues in my different projects using one and the other site) |
Will continue chat in email :) |
my project does not use any new java features, but the installer is broken for my users that have a new version of java on Linux. |
Link to your project, Yura? |
this was the bug report i got from a user: https://sourceforge.net/p/domination/bugs/50/ |
Just installed the latest version of your project using Java 21 and even the latest 24 early access without any problem as stated in the IZPACK-1786 issue and I'm totally confused... How ever, when there will be a new version available, I will do a new version. |
Toward a release of PicoContainer, Paranamer has been released @reinhapa helping me do many years of upgrades to maven-central bits and pieces. Now compiled on JDK-11 byecode level, brings in an optional feature from JDK-9 (parameter name access). I'll get PicoContainer 2.15.1 out in the next few days. |
PicoContainer 2.15.1 release is out now - dependent on in JDK11 now. |
izpack https://github.com/izpack/izpack installer is still used by many projects and it uses picocontainer 2.15
it has stopped working on Linux because of an error in picocontainer 2.15
reported https://izpack.atlassian.net/browse/IZPACK-1786 and https://izpack.atlassian.net/browse/IZPACK-1787
is there any chance the issue can be fixed and new version released?
thanks
The text was updated successfully, but these errors were encountered: