You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2020/06/10 06:09:41 UTC

Fwd: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Hi Gurkan,

Any way to test it and maybe harness it in geronimo xbean?
Typically it can only happen if the URL is wrongly formatted (means we
should port a fix in xbean too) or the protocol is not supported (likely
means a missing exclusion or new protocol handling in xbean).
I saw some issues with .so in the past in tests but never managed to
reproduce it  and I know jrt brings a new protocol but thought we excluded
it by default so if can confirm this case and if you have a few pointers it
would be great, I would be happy to do the work in xbean about it.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


---------- Forwarded message ---------
De : <ge...@apache.org>
Date: mer. 10 juin 2020 à 07:11
Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
AbstractMetaDataFactory
To: commits@openwebbeans.apache.org <co...@openwebbeans.apache.org>


This is an automated email from the ASF dual-hosted git repository.

gerdogdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
     new ff4c809  Merge branch 'master' of
https://github.com/apache/openwebbeans
b812c6f <https://github.com/apache/openwebbeansb812c6f> is described below

commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
Author: Gurkan Erdogdu <cg...@gmail.com>
AuthorDate: Wed Jun 10 08:10:54 2020 +0300

    OWB-1328 NPE in AbstractMetaDataFactory
---
 .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git
a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
index 44febe9..c011670 100644
---
a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
+++
b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
@@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;

 import javax.decorator.Decorator;
 import javax.interceptor.Interceptor;
+
+import java.io.File;
 import java.io.IOException;
 import java.lang.annotation.Annotation;
 import java.net.URL;
@@ -283,11 +285,14 @@ public abstract class AbstractMetaDataDiscovery
implements BdaScannerService
             else
             {
                 // we could check for
META-INF/maven/org.apache.geronimo.specs presence there but this is faster
-                final String filename = Files.toFile(url).getName();
-                if (filename.startsWith("geronimo-") &&
filename.contains("_spec"))
-                {
-                    it.remove();
-                }
+                File file = Files.toFile(url);
+                if(file!= null && file.exists()) {
+                    final String filename = file.getName();
+                    if (filename.startsWith("geronimo-") &&
filename.contains("_spec"))
+                    {
+                        it.remove();
+                    }
+                }
             }
         }
     }

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Then not sure which place you have in mind to fail?
An alternative could have been to do exclusions on the url.tostring but it
would break current existing apps which is not an option for this thing
IMHO.
Do you have anything in mind?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le sam. 13 juin 2020 à 20:41, Mark Struberg <st...@yahoo.de.invalid> a
écrit :

> No, we did have File in OWB-1.0 and 1.1. And killed that because we got
> problems because not all classpath elemts are file based.
> Examples are some app servers which have even some internal protocols.
> like webjar for example in EARs in WebLogic (yes, there are some peeps who
> use OWB in weblogic, because it's so much faster than the default CDI
> container!). It also might happen in Arquillian for example, or other
> purely memory based scenarios where the JAR never exists on disk..
> This was the reason we switched for URL. Anything file based is
> counterproductive in this location.
>
> LieGrue,
> strub
>
>
> > Am 13.06.2020 um 20:32 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >
> > Yes and no IMHO. Strictly speaking you are perfectly
> > right,
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery#registerBeanArchives
> > should handle File and not URL and do the filtering there (and fail if
> > needed)
> > but
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery#filterExcludedJars
> > is protected and therefore we should respect this signature so sounds
> like
> > we must do it in the registerBeanArchives and keep a map File -> URL to
> > reserve it in filter method. Is it your proposal Mark?
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> >
> >
> > Le sam. 13 juin 2020 à 20:13, Mark Struberg <st...@yahoo.de.invalid>
> a
> > écrit :
> >
> >>
> >>
> >>> Am 13.06.2020 um 19:37 schrieb Romain Manni-Bucau <
> rmannibucau@gmail.com
> >>> :
> >>>
> >>>> e.2)
> >>>> if (file == null) {
> >>>>   throw new IllegalArgumentException(
> >>>> Why? Let's log a WARN, but why blow up? xbean only supports jar: and
> >> file:
> >>>> protocols. Anything other will just not be excluded. So what?
> >>>>
> >>>
> >>> Blow up cause we don't know how to handle it and it is unexpected -
> until
> >>> we refine the exact protocol like jrt:// (but this particular one must
> >> not
> >>> happen here).
> >>> Typically if you silently ignore it then you don't do what is expected
> at
> >>> 100% so better fail when we don't know since it is not a supported case
> >> so
> >>> behavior will be undefined.
> >>> To give you an example: you use jpms to make your app "pseudo native"
> >> then
> >>> scanning is no more done and the app is broken so IMHO best we can do
> is
> >>> fail and point on the two solutions: exclude if ok or use another impl
> >>> (shrinkwrap for the referenced jira).
> >>
> >> But this is totally the wrong location to stop handling this case.
> >>
> >> This method is just for filtering out classpath entries we know must NOT
> >> be scanned.
> >> So the default is to _not_ remove classpath entries if we are unsure.
> >>
> >> IF it turns out that the app cannot handle it, then we will handle this
> in
> >> the Deployer anyway.
> >> I'd rather be really defensive here: the method is for removing
> classpath
> >> entries it KNOWS must not be handled. If it is unsure, then not remove
> >> anything.
> >> Wrong location to complain about any bad protocol!
> >>
> >> LieGrue,
> >> strub
>
>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Mark Struberg <st...@yahoo.de.INVALID>.
No, we did have File in OWB-1.0 and 1.1. And killed that because we got problems because not all classpath elemts are file based.
Examples are some app servers which have even some internal protocols. like webjar for example in EARs in WebLogic (yes, there are some peeps who use OWB in weblogic, because it's so much faster than the default CDI container!). It also might happen in Arquillian for example, or other purely memory based scenarios where the JAR never exists on disk..
This was the reason we switched for URL. Anything file based is counterproductive in this location.

LieGrue,
strub


> Am 13.06.2020 um 20:32 schrieb Romain Manni-Bucau <rm...@gmail.com>:
> 
> Yes and no IMHO. Strictly speaking you are perfectly
> right, org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery#registerBeanArchives
> should handle File and not URL and do the filtering there (and fail if
> needed)
> but org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery#filterExcludedJars
> is protected and therefore we should respect this signature so sounds like
> we must do it in the registerBeanArchives and keep a map File -> URL to
> reserve it in filter method. Is it your proposal Mark?
> 
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <https://www.packtpub.com/application-development/java-ee-8-high-performance>
> 
> 
> Le sam. 13 juin 2020 à 20:13, Mark Struberg <st...@yahoo.de.invalid> a
> écrit :
> 
>> 
>> 
>>> Am 13.06.2020 um 19:37 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
>>> :
>>> 
>>>> e.2)
>>>> if (file == null) {
>>>>   throw new IllegalArgumentException(
>>>> Why? Let's log a WARN, but why blow up? xbean only supports jar: and
>> file:
>>>> protocols. Anything other will just not be excluded. So what?
>>>> 
>>> 
>>> Blow up cause we don't know how to handle it and it is unexpected - until
>>> we refine the exact protocol like jrt:// (but this particular one must
>> not
>>> happen here).
>>> Typically if you silently ignore it then you don't do what is expected at
>>> 100% so better fail when we don't know since it is not a supported case
>> so
>>> behavior will be undefined.
>>> To give you an example: you use jpms to make your app "pseudo native"
>> then
>>> scanning is no more done and the app is broken so IMHO best we can do is
>>> fail and point on the two solutions: exclude if ok or use another impl
>>> (shrinkwrap for the referenced jira).
>> 
>> But this is totally the wrong location to stop handling this case.
>> 
>> This method is just for filtering out classpath entries we know must NOT
>> be scanned.
>> So the default is to _not_ remove classpath entries if we are unsure.
>> 
>> IF it turns out that the app cannot handle it, then we will handle this in
>> the Deployer anyway.
>> I'd rather be really defensive here: the method is for removing classpath
>> entries it KNOWS must not be handled. If it is unsure, then not remove
>> anything.
>> Wrong location to complain about any bad protocol!
>> 
>> LieGrue,
>> strub


Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Yes and no IMHO. Strictly speaking you are perfectly
right, org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery#registerBeanArchives
should handle File and not URL and do the filtering there (and fail if
needed)
but org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery#filterExcludedJars
is protected and therefore we should respect this signature so sounds like
we must do it in the registerBeanArchives and keep a map File -> URL to
reserve it in filter method. Is it your proposal Mark?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le sam. 13 juin 2020 à 20:13, Mark Struberg <st...@yahoo.de.invalid> a
écrit :

>
>
> > Am 13.06.2020 um 19:37 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >
> >> e.2)
> >> if (file == null) {
> >>    throw new IllegalArgumentException(
> >> Why? Let's log a WARN, but why blow up? xbean only supports jar: and
> file:
> >> protocols. Anything other will just not be excluded. So what?
> >>
> >
> > Blow up cause we don't know how to handle it and it is unexpected - until
> > we refine the exact protocol like jrt:// (but this particular one must
> not
> > happen here).
> > Typically if you silently ignore it then you don't do what is expected at
> > 100% so better fail when we don't know since it is not a supported case
> so
> > behavior will be undefined.
> > To give you an example: you use jpms to make your app "pseudo native"
> then
> > scanning is no more done and the app is broken so IMHO best we can do is
> > fail and point on the two solutions: exclude if ok or use another impl
> > (shrinkwrap for the referenced jira).
>
> But this is totally the wrong location to stop handling this case.
>
> This method is just for filtering out classpath entries we know must NOT
> be scanned.
> So the default is to _not_ remove classpath entries if we are unsure.
>
> IF it turns out that the app cannot handle it, then we will handle this in
> the Deployer anyway.
> I'd rather be really defensive here: the method is for removing classpath
> entries it KNOWS must not be handled. If it is unsure, then not remove
> anything.
> Wrong location to complain about any bad protocol!
>
> LieGrue,
> strub

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Mark Struberg <st...@yahoo.de.INVALID>.

> Am 13.06.2020 um 19:37 schrieb Romain Manni-Bucau <rm...@gmail.com>:
> 
>> e.2)
>> if (file == null) {
>>    throw new IllegalArgumentException(
>> Why? Let's log a WARN, but why blow up? xbean only supports jar: and file:
>> protocols. Anything other will just not be excluded. So what?
>> 
> 
> Blow up cause we don't know how to handle it and it is unexpected - until
> we refine the exact protocol like jrt:// (but this particular one must not
> happen here).
> Typically if you silently ignore it then you don't do what is expected at
> 100% so better fail when we don't know since it is not a supported case so
> behavior will be undefined.
> To give you an example: you use jpms to make your app "pseudo native" then
> scanning is no more done and the app is broken so IMHO best we can do is
> fail and point on the two solutions: exclude if ok or use another impl
> (shrinkwrap for the referenced jira).

But this is totally the wrong location to stop handling this case.

This method is just for filtering out classpath entries we know must NOT be scanned.
So the default is to _not_ remove classpath entries if we are unsure.

IF it turns out that the app cannot handle it, then we will handle this in the Deployer anyway.
I'd rather be really defensive here: the method is for removing classpath entries it KNOWS must not be handled. If it is unsure, then not remove anything.
Wrong location to complain about any bad protocol!

LieGrue,
strub

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le sam. 13 juin 2020 à 19:29, Mark Struberg <st...@yahoo.de.invalid> a
écrit :

> Wow, there are sooo many different things going on.
>
> a.) also -1 for 'obvious' - nearly redundant - docs.
>
> b.) In Geronimo there are about 5..7 active folks. Plus the people from
> the TomEE project which do reviews and give precious feedback.
>
> c.) In OWB we also had lots of active people: Romain, Thomas, me,
> Reinhard, Arne, Gurkan, Jean-Louis, Matt Benson, Gerhard Petracek, John
> Ament, Daniel Dias, etc
> It's just that the intensity of being active did change a lot for those
> people over time. Coming and going.
>
> d.) Of course Gurkan you are highly welcome back!
>
> e.) yes, there are MANY questions about this whole filterExcludedJars
> method in the AbstractMetadataDiscovery!
>
> e.1) why do we have some hardcoded exclude gor geronimo spec jars at all?
> This sounds like a bad thing.
>
> e.2)
> if (file == null) {
>     throw new IllegalArgumentException(
> Why? Let's log a WARN, but why blow up? xbean only supports jar: and file:
> protocols. Anything other will just not be excluded. So what?
>

Blow up cause we don't know how to handle it and it is unexpected - until
we refine the exact protocol like jrt:// (but this particular one must not
happen here).
Typically if you silently ignore it then you don't do what is expected at
100% so better fail when we don't know since it is not a supported case so
behavior will be undefined.
To give you an example: you use jpms to make your app "pseudo native" then
scanning is no more done and the app is broken so IMHO best we can do is
fail and point on the two solutions: exclude if ok or use another impl
(shrinkwrap for the referenced jira).


>
> e.3)
> if (file.exists())
> Bloody why? ;) Would this ever work for jar:// protocol? Is this really OS
> independent? There are tons of classpath elements which are just in memory!
> I drove my brain mad to NOT have any protocol dependent code in OWB and
> now we even go for file level ops? That's just wrong. Away with this
> file.exists I'd say!
>
>
+1 to drop, does not make sense.


> LieGrue,
> strub
>
>
> > Am 13.06.2020 um 16:45 schrieb Thomas Andraschko <
> andraschko.thomas@gmail.com>:
> >
> > +1 in general, Gurkan
> >
> > however, we should focus on the most important things only
> > everyone of us is working on many OS projects and its quite hard to write
> > many docu as its very time consuming.
> > i would like to have at least docus on class level (we can also skip them
> > if the class is a POJO or no brainer) - we should really try e.g. to
> > document SPI classes
> >
> > but really -1 for boilerplate docu like the constructor doku (initializes
> > this class) or inhertiDoc.
> >
> > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > Virenfrei.
> > www.avast.com
> > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > Am Sa., 13. Juni 2020 um 13:22 Uhr schrieb Romain Manni-Bucau <
> > rmannibucau@gmail.com>:
> >
> >> Updated this fix by failing if url is null with a message saying to
> either
> >> change the scanner or add the file to exclusions.
> >> Can anyone review it please before next release (2.0.18)?
> >>
> >> Romain Manni-Bucau
> >> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >> <https://rmannibucau.metawerx.net/> | Old Blog
> >> <http://rmannibucau.wordpress.com> | Github <
> >> https://github.com/rmannibucau> |
> >> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >> <
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >>>
> >>
> >>
> >> Le sam. 13 juin 2020 à 12:01, Gurkan Erdogdu <cg...@gmail.com>
> a
> >> écrit :
> >>
> >>>>
> >>>> This is wrong, what does make you think that? I know you left for a
> >> very
> >>>> long time and missed quite a lot of things
> >>>
> >>> I have been following most of the mailing lists even if I am not able
> to
> >>> contribute.
> >>>
> >>>
> >>> but typically most of xbean is
> >>>> not decided by these 3 people but was decided way earlier and we get
> >> like
> >>>> 5-6 people interacting regularly intercommunities (thinking to ee but
> >>>> osgi/karaf and standlaone too). Not huge but clearly not a one man
> >>> project.
> >>>>
> >>> I am not just talking about something special to XBean. General
> >>> observation.
> >>>
> >>> Side note here is that it is not the right list to discuss that and not
> >> the
> >>>> right thread too probably (we shouldnt mix topics in threads IMHO).
> >>>
> >>> Thank you for the advice.
> >>>
> >>> I do not want to continue the discussion. You are always having to say
> >>> something.
> >>> Good luck to you on these projects even in OWB.
> >>> Cheers
> >>> Gurkan
> >>>
> >>>
> >>> On Sat, Jun 13, 2020 at 12:39 PM Romain Manni-Bucau <
> >> rmannibucau@gmail.com
> >>>>
> >>> wrote:
> >>>
> >>>> Le sam. 13 juin 2020 à 10:54, Gurkan Erdogdu <
> cgurkanerdogdu@gmail.com
> >>>
> >>> a
> >>>> écrit :
> >>>>
> >>>>> If you want to revert , you can...
> >>>>> But Xbean method returns null and throwing NPE is not a good way to
> >>> go...
> >>>>>
> >>>>
> >>>> Contract makes it respected. If you run in another env you setup
> >> another
> >>>> impl.
> >>>> Side note being ignoring silently an error is worse IMO.
> >>>>
> >>>>
> >>>>
> >>>>> From my understanding looking to those projects and even OWB, most of
> >>> the
> >>>>> decisions in these projects are only decided by one or two
> >>>> persons(probably
> >>>>> internally) but not with the community, this is not the Apache way of
> >>>>> managing projects.
> >>>>>
> >>>>
> >>>> This is wrong, what does make you think that? I know you left for a
> >> very
> >>>> long time and missed quite a lot of things but typically most of xbean
> >> is
> >>>> not decided by these 3 people but was decided way earlier and we get
> >> like
> >>>> 5-6 people interacting regularly intercommunities (thinking to ee but
> >>>> osgi/karaf and standlaone too). Not huge but clearly not a one man
> >>> project.
> >>>>
> >>>> Side note here is that it is not the right list to discuss that and
> not
> >>> the
> >>>> right thread too probably (we shouldnt mix topics in threads IMHO).
> >>>>
> >>>>
> >>>>> It is impossible for me to contribute such projects which are handled
> >>>> this
> >>>>> way...
> >>>>>
> >>>>> Cheers
> >>>>>
> >>>>> Gurkan
> >>>>>
> >>>>> On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <
> >> rmannibucau@gmail.com>
> >>>>> wrote:
> >>>>>
> >>>>>> Don't want to look mad or bad but I personally have a hard time to
> >>>>> convert
> >>>>>> such statement to action Gurkan.
> >>>>>> Basically most of this code is not that complex so self explanatory
> >>> for
> >>>>> me
> >>>>>> - but also true I never read comments when contributing to project
> >>> I'm
> >>>>> not
> >>>>>> committer in cause they generally brings you in a wrong direction
> >>> IMHO.
> >>>>>> Are you missing some architecture design doc maybe?
> >>>>>>
> >>>>>> Side note: back on this commit, if it is linked to the ticket I
> >>>>> commented,
> >>>>>> it should be reverted right?
> >>>>>>
> >>>>>> Romain Manni-Bucau
> >>>>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >>>>>> <https://rmannibucau.metawerx.net/> | Old Blog
> >>>>>> <http://rmannibucau.wordpress.com> | Github <
> >>>>>> https://github.com/rmannibucau> |
> >>>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >>>>>> <
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <
> >>> cgurkanerdogdu@gmail.com
> >>>>>
> >>>>> a
> >>>>>> écrit :
> >>>>>>
> >>>>>>> Hi
> >>>>>>> I am looking at projects in Apache Geronimo and OWB side such as
> >>>> XBean,
> >>>>>>> Meecrowave, Microprofile, Arthur etc. to contribute more.
> >>>>>>> I have observed that most of the source code has very small code
> >>>>> comments
> >>>>>>> and most of them are driven by a very small group of
> >> contributors.
> >>>>>>> It is really hard to contribute to these projects without some
> >> bit
> >>> of
> >>>>>>> understanding of the source code. The important key idea behind
> >> the
> >>>>>> Apache
> >>>>>>> Projects are community and projects need to be driven by the
> >>>> community.
> >>>>>> To
> >>>>>>> extend the community around projects, we need to more care about
> >>> the
> >>>>>>> source codes, documentation, guides etc.
> >>>>>>> I know that this type of stuff is time consuming but also
> >>> important.
> >>>>>>> I just want to share my observations around these very cool
> >>> projects.
> >>>>>>> Regards.
> >>>>>>> Gurkan
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
> >>>>>> rmannibucau@gmail.com>
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>> Hmm,
> >>>>>>>>
> >>>>>>>> Have to admit I always use maven to run TCK and I use Intellij
> >> so
> >>>> not
> >>>>>>> that
> >>>>>>>> sure.
> >>>>>>>> Maybe something you can give a try is to only open tck module
> >> and
> >>>>> close
> >>>>>>>> other modules to ensure eclipse m2 resolves it through the m2
> >>> repo
> >>>>> but
> >>>>>>>> without any guarantee :s.
> >>>>>>>>
> >>>>>>>> Romain Manni-Bucau
> >>>>>>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >>>>>>>> <https://rmannibucau.metawerx.net/> | Old Blog
> >>>>>>>> <http://rmannibucau.wordpress.com> | Github <
> >>>>>>>> https://github.com/rmannibucau> |
> >>>>>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >>>>>>>> <
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <
> >>>>> cgurkanerdogdu@gmail.com
> >>>>>>>
> >>>>>>> a
> >>>>>>>> écrit :
> >>>>>>>>
> >>>>>>>>> Hi Romain
> >>>>>>>>> I will look into geronimo-xbean.
> >>>>>>>>> In the mean time, I have a question:
> >>>>>>>>> I try to run TestNG plugin in Eclipse but because of javax ->
> >>>>> jakarta
> >>>>>>>> maven
> >>>>>>>>> shading, I am not able to launch the tests via this plugin.
> >> It
> >>>>> throws
> >>>>>>>>> errors like
> >>>>>>>>>
> >>>>>>>>> INFO: CDI-TCK Specification version: null
> >>>>>>>>> java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> >>>>>>>>>
> >>>>>>>>> Do you have any experience on this? I like to use this plugin
> >>> to
> >>>>> see
> >>>>>>>>> visually the tests....
> >>>>>>>>> Regards.
> >>>>>>>>> Gurkan
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> >>>>>>>> rmannibucau@gmail.com>
> >>>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>>> Hi Gurkan,
> >>>>>>>>>>
> >>>>>>>>>> Any way to test it and maybe harness it in geronimo xbean?
> >>>>>>>>>> Typically it can only happen if the URL is wrongly
> >> formatted
> >>>>> (means
> >>>>>>> we
> >>>>>>>>>> should port a fix in xbean too) or the protocol is not
> >>>> supported
> >>>>>>>> (likely
> >>>>>>>>>> means a missing exclusion or new protocol handling in
> >> xbean).
> >>>>>>>>>> I saw some issues with .so in the past in tests but never
> >>>> managed
> >>>>>> to
> >>>>>>>>>> reproduce it  and I know jrt brings a new protocol but
> >>> thought
> >>>> we
> >>>>>>>>> excluded
> >>>>>>>>>> it by default so if can confirm this case and if you have a
> >>> few
> >>>>>>>> pointers
> >>>>>>>>> it
> >>>>>>>>>> would be great, I would be happy to do the work in xbean
> >>> about
> >>>>> it.
> >>>>>>>>>>
> >>>>>>>>>> Romain Manni-Bucau
> >>>>>>>>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >>>>>>>>>> <https://rmannibucau.metawerx.net/> | Old Blog
> >>>>>>>>>> <http://rmannibucau.wordpress.com> | Github <
> >>>>>>>>>> https://github.com/rmannibucau> |
> >>>>>>>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >>>>>>>>>> <
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> ---------- Forwarded message ---------
> >>>>>>>>>> De : <ge...@apache.org>
> >>>>>>>>>> Date: mer. 10 juin 2020 à 07:11
> >>>>>>>>>> Subject: [openwebbeans] branch master updated: OWB-1328 NPE
> >>> in
> >>>>>>>>>> AbstractMetaDataFactory
> >>>>>>>>>> To: commits@openwebbeans.apache.org <
> >>>>>> commits@openwebbeans.apache.org
> >>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> This is an automated email from the ASF dual-hosted git
> >>>>> repository.
> >>>>>>>>>>
> >>>>>>>>>> gerdogdu pushed a commit to branch master
> >>>>>>>>>> in repository
> >>>>> https://gitbox.apache.org/repos/asf/openwebbeans.git
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> The following commit(s) were added to refs/heads/master by
> >>> this
> >>>>>> push:
> >>>>>>>>>>     new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> >>>>>>>>>>     new ff4c809  Merge branch 'master' of
> >>>>>>>>>> https://github.com/apache/openwebbeans
> >>>>>>>>>> b812c6f <https://github.com/apache/openwebbeansb812c6f> is
> >>>>>> described
> >>>>>>>>> below
> >>>>>>>>>>
> >>>>>>>>>> commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> >>>>>>>>>> Author: Gurkan Erdogdu <cg...@gmail.com>
> >>>>>>>>>> AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> >>>>>>>>>>
> >>>>>>>>>>    OWB-1328 NPE in AbstractMetaDataFactory
> >>>>>>>>>> ---
> >>>>>>>>>> .../corespi/scanner/AbstractMetaDataDiscovery.java
> >> |
> >>> 15
> >>>>>>>>>> ++++++++++-----
> >>>>>>>>>> 1 file changed, 10 insertions(+), 5 deletions(-)
> >>>>>>>>>>
> >>>>>>>>>> diff --git
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> >>>>>>>>>> index 44febe9..c011670 100644
> >>>>>>>>>> ---
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> >>>>>>>>>> +++
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> >>>>>>>>>> @@ -43,6 +43,8 @@ import
> >> org.apache.xbean.finder.util.Files;
> >>>>>>>>>>
> >>>>>>>>>> import javax.decorator.Decorator;
> >>>>>>>>>> import javax.interceptor.Interceptor;
> >>>>>>>>>> +
> >>>>>>>>>> +import java.io.File;
> >>>>>>>>>> import java.io.IOException;
> >>>>>>>>>> import java.lang.annotation.Annotation;
> >>>>>>>>>> import java.net.URL;
> >>>>>>>>>> @@ -283,11 +285,14 @@ public abstract class
> >>>>>> AbstractMetaDataDiscovery
> >>>>>>>>>> implements BdaScannerService
> >>>>>>>>>>             else
> >>>>>>>>>>             {
> >>>>>>>>>>                 // we could check for
> >>>>>>>>>> META-INF/maven/org.apache.geronimo.specs presence there but
> >>>> this
> >>>>> is
> >>>>>>>>> faster
> >>>>>>>>>> -                final String filename =
> >>>>>> Files.toFile(url).getName();
> >>>>>>>>>> -                if (filename.startsWith("geronimo-") &&
> >>>>>>>>>> filename.contains("_spec"))
> >>>>>>>>>> -                {
> >>>>>>>>>> -                    it.remove();
> >>>>>>>>>> -                }
> >>>>>>>>>> +                File file = Files.toFile(url);
> >>>>>>>>>> +                if(file!= null && file.exists()) {
> >>>>>>>>>> +                    final String filename =
> >> file.getName();
> >>>>>>>>>> +                    if (filename.startsWith("geronimo-")
> >> &&
> >>>>>>>>>> filename.contains("_spec"))
> >>>>>>>>>> +                    {
> >>>>>>>>>> +                        it.remove();
> >>>>>>>>>> +                    }
> >>>>>>>>>> +                }
> >>>>>>>>>>             }
> >>>>>>>>>>         }
> >>>>>>>>>>     }
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Gurkan Erdogdu
> >>>>>>>>> http://gurkanerdogdu.blogspot.com
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Gurkan Erdogdu
> >>>>>>> http://gurkanerdogdu.blogspot.com
> >>>>>>>
> >>>>>>
> >>>>> --
> >>>>> Gurkan Erdogdu
> >>>>> http://gurkanerdogdu.blogspot.com
> >>>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> Gurkan Erdogdu
> >>> http://gurkanerdogdu.blogspot.com
> >>>
> >>
> >
> > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > Virenfrei.
> > www.avast.com
> > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Mark Struberg <st...@yahoo.de.INVALID>.
Wow, there are sooo many different things going on.

a.) also -1 for 'obvious' - nearly redundant - docs.

b.) In Geronimo there are about 5..7 active folks. Plus the people from the TomEE project which do reviews and give precious feedback.

c.) In OWB we also had lots of active people: Romain, Thomas, me, Reinhard, Arne, Gurkan, Jean-Louis, Matt Benson, Gerhard Petracek, John Ament, Daniel Dias, etc
It's just that the intensity of being active did change a lot for those people over time. Coming and going. 

d.) Of course Gurkan you are highly welcome back!

e.) yes, there are MANY questions about this whole filterExcludedJars method in the AbstractMetadataDiscovery!

e.1) why do we have some hardcoded exclude gor geronimo spec jars at all? This sounds like a bad thing.

e.2) 
if (file == null) {
    throw new IllegalArgumentException(
Why? Let's log a WARN, but why blow up? xbean only supports jar: and file: protocols. Anything other will just not be excluded. So what? 

e.3)
if (file.exists())
Bloody why? ;) Would this ever work for jar:// protocol? Is this really OS independent? There are tons of classpath elements which are just in memory! 
I drove my brain mad to NOT have any protocol dependent code in OWB and now we even go for file level ops? That's just wrong. Away with this file.exists I'd say!

LieGrue,
strub


> Am 13.06.2020 um 16:45 schrieb Thomas Andraschko <an...@gmail.com>:
> 
> +1 in general, Gurkan
> 
> however, we should focus on the most important things only
> everyone of us is working on many OS projects and its quite hard to write
> many docu as its very time consuming.
> i would like to have at least docus on class level (we can also skip them
> if the class is a POJO or no brainer) - we should really try e.g. to
> document SPI classes
> 
> but really -1 for boilerplate docu like the constructor doku (initializes
> this class) or inhertiDoc.
> 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Virenfrei.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> 
> Am Sa., 13. Juni 2020 um 13:22 Uhr schrieb Romain Manni-Bucau <
> rmannibucau@gmail.com>:
> 
>> Updated this fix by failing if url is null with a message saying to either
>> change the scanner or add the file to exclusions.
>> Can anyone review it please before next release (2.0.18)?
>> 
>> Romain Manni-Bucau
>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>> <https://rmannibucau.metawerx.net/> | Old Blog
>> <http://rmannibucau.wordpress.com> | Github <
>> https://github.com/rmannibucau> |
>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>> <
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>>> 
>> 
>> 
>> Le sam. 13 juin 2020 à 12:01, Gurkan Erdogdu <cg...@gmail.com> a
>> écrit :
>> 
>>>> 
>>>> This is wrong, what does make you think that? I know you left for a
>> very
>>>> long time and missed quite a lot of things
>>> 
>>> I have been following most of the mailing lists even if I am not able to
>>> contribute.
>>> 
>>> 
>>> but typically most of xbean is
>>>> not decided by these 3 people but was decided way earlier and we get
>> like
>>>> 5-6 people interacting regularly intercommunities (thinking to ee but
>>>> osgi/karaf and standlaone too). Not huge but clearly not a one man
>>> project.
>>>> 
>>> I am not just talking about something special to XBean. General
>>> observation.
>>> 
>>> Side note here is that it is not the right list to discuss that and not
>> the
>>>> right thread too probably (we shouldnt mix topics in threads IMHO).
>>> 
>>> Thank you for the advice.
>>> 
>>> I do not want to continue the discussion. You are always having to say
>>> something.
>>> Good luck to you on these projects even in OWB.
>>> Cheers
>>> Gurkan
>>> 
>>> 
>>> On Sat, Jun 13, 2020 at 12:39 PM Romain Manni-Bucau <
>> rmannibucau@gmail.com
>>>> 
>>> wrote:
>>> 
>>>> Le sam. 13 juin 2020 à 10:54, Gurkan Erdogdu <cgurkanerdogdu@gmail.com
>>> 
>>> a
>>>> écrit :
>>>> 
>>>>> If you want to revert , you can...
>>>>> But Xbean method returns null and throwing NPE is not a good way to
>>> go...
>>>>> 
>>>> 
>>>> Contract makes it respected. If you run in another env you setup
>> another
>>>> impl.
>>>> Side note being ignoring silently an error is worse IMO.
>>>> 
>>>> 
>>>> 
>>>>> From my understanding looking to those projects and even OWB, most of
>>> the
>>>>> decisions in these projects are only decided by one or two
>>>> persons(probably
>>>>> internally) but not with the community, this is not the Apache way of
>>>>> managing projects.
>>>>> 
>>>> 
>>>> This is wrong, what does make you think that? I know you left for a
>> very
>>>> long time and missed quite a lot of things but typically most of xbean
>> is
>>>> not decided by these 3 people but was decided way earlier and we get
>> like
>>>> 5-6 people interacting regularly intercommunities (thinking to ee but
>>>> osgi/karaf and standlaone too). Not huge but clearly not a one man
>>> project.
>>>> 
>>>> Side note here is that it is not the right list to discuss that and not
>>> the
>>>> right thread too probably (we shouldnt mix topics in threads IMHO).
>>>> 
>>>> 
>>>>> It is impossible for me to contribute such projects which are handled
>>>> this
>>>>> way...
>>>>> 
>>>>> Cheers
>>>>> 
>>>>> Gurkan
>>>>> 
>>>>> On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <
>> rmannibucau@gmail.com>
>>>>> wrote:
>>>>> 
>>>>>> Don't want to look mad or bad but I personally have a hard time to
>>>>> convert
>>>>>> such statement to action Gurkan.
>>>>>> Basically most of this code is not that complex so self explanatory
>>> for
>>>>> me
>>>>>> - but also true I never read comments when contributing to project
>>> I'm
>>>>> not
>>>>>> committer in cause they generally brings you in a wrong direction
>>> IMHO.
>>>>>> Are you missing some architecture design doc maybe?
>>>>>> 
>>>>>> Side note: back on this commit, if it is linked to the ticket I
>>>>> commented,
>>>>>> it should be reverted right?
>>>>>> 
>>>>>> Romain Manni-Bucau
>>>>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>>>>>> <https://rmannibucau.metawerx.net/> | Old Blog
>>>>>> <http://rmannibucau.wordpress.com> | Github <
>>>>>> https://github.com/rmannibucau> |
>>>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>>>>>> <
>>>>>> 
>>>>> 
>>>> 
>>> 
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <
>>> cgurkanerdogdu@gmail.com
>>>>> 
>>>>> a
>>>>>> écrit :
>>>>>> 
>>>>>>> Hi
>>>>>>> I am looking at projects in Apache Geronimo and OWB side such as
>>>> XBean,
>>>>>>> Meecrowave, Microprofile, Arthur etc. to contribute more.
>>>>>>> I have observed that most of the source code has very small code
>>>>> comments
>>>>>>> and most of them are driven by a very small group of
>> contributors.
>>>>>>> It is really hard to contribute to these projects without some
>> bit
>>> of
>>>>>>> understanding of the source code. The important key idea behind
>> the
>>>>>> Apache
>>>>>>> Projects are community and projects need to be driven by the
>>>> community.
>>>>>> To
>>>>>>> extend the community around projects, we need to more care about
>>> the
>>>>>>> source codes, documentation, guides etc.
>>>>>>> I know that this type of stuff is time consuming but also
>>> important.
>>>>>>> I just want to share my observations around these very cool
>>> projects.
>>>>>>> Regards.
>>>>>>> Gurkan
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
>>>>>> rmannibucau@gmail.com>
>>>>>>> wrote:
>>>>>>> 
>>>>>>>> Hmm,
>>>>>>>> 
>>>>>>>> Have to admit I always use maven to run TCK and I use Intellij
>> so
>>>> not
>>>>>>> that
>>>>>>>> sure.
>>>>>>>> Maybe something you can give a try is to only open tck module
>> and
>>>>> close
>>>>>>>> other modules to ensure eclipse m2 resolves it through the m2
>>> repo
>>>>> but
>>>>>>>> without any guarantee :s.
>>>>>>>> 
>>>>>>>> Romain Manni-Bucau
>>>>>>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>>>>>>>> <https://rmannibucau.metawerx.net/> | Old Blog
>>>>>>>> <http://rmannibucau.wordpress.com> | Github <
>>>>>>>> https://github.com/rmannibucau> |
>>>>>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>>>>>>>> <
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <
>>>>> cgurkanerdogdu@gmail.com
>>>>>>> 
>>>>>>> a
>>>>>>>> écrit :
>>>>>>>> 
>>>>>>>>> Hi Romain
>>>>>>>>> I will look into geronimo-xbean.
>>>>>>>>> In the mean time, I have a question:
>>>>>>>>> I try to run TestNG plugin in Eclipse but because of javax ->
>>>>> jakarta
>>>>>>>> maven
>>>>>>>>> shading, I am not able to launch the tests via this plugin.
>> It
>>>>> throws
>>>>>>>>> errors like
>>>>>>>>> 
>>>>>>>>> INFO: CDI-TCK Specification version: null
>>>>>>>>> java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
>>>>>>>>> 
>>>>>>>>> Do you have any experience on this? I like to use this plugin
>>> to
>>>>> see
>>>>>>>>> visually the tests....
>>>>>>>>> Regards.
>>>>>>>>> Gurkan
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
>>>>>>>> rmannibucau@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> Hi Gurkan,
>>>>>>>>>> 
>>>>>>>>>> Any way to test it and maybe harness it in geronimo xbean?
>>>>>>>>>> Typically it can only happen if the URL is wrongly
>> formatted
>>>>> (means
>>>>>>> we
>>>>>>>>>> should port a fix in xbean too) or the protocol is not
>>>> supported
>>>>>>>> (likely
>>>>>>>>>> means a missing exclusion or new protocol handling in
>> xbean).
>>>>>>>>>> I saw some issues with .so in the past in tests but never
>>>> managed
>>>>>> to
>>>>>>>>>> reproduce it  and I know jrt brings a new protocol but
>>> thought
>>>> we
>>>>>>>>> excluded
>>>>>>>>>> it by default so if can confirm this case and if you have a
>>> few
>>>>>>>> pointers
>>>>>>>>> it
>>>>>>>>>> would be great, I would be happy to do the work in xbean
>>> about
>>>>> it.
>>>>>>>>>> 
>>>>>>>>>> Romain Manni-Bucau
>>>>>>>>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>>>>>>>>>> <https://rmannibucau.metawerx.net/> | Old Blog
>>>>>>>>>> <http://rmannibucau.wordpress.com> | Github <
>>>>>>>>>> https://github.com/rmannibucau> |
>>>>>>>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>>>>>>>>>> <
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> ---------- Forwarded message ---------
>>>>>>>>>> De : <ge...@apache.org>
>>>>>>>>>> Date: mer. 10 juin 2020 à 07:11
>>>>>>>>>> Subject: [openwebbeans] branch master updated: OWB-1328 NPE
>>> in
>>>>>>>>>> AbstractMetaDataFactory
>>>>>>>>>> To: commits@openwebbeans.apache.org <
>>>>>> commits@openwebbeans.apache.org
>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> This is an automated email from the ASF dual-hosted git
>>>>> repository.
>>>>>>>>>> 
>>>>>>>>>> gerdogdu pushed a commit to branch master
>>>>>>>>>> in repository
>>>>> https://gitbox.apache.org/repos/asf/openwebbeans.git
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> The following commit(s) were added to refs/heads/master by
>>> this
>>>>>> push:
>>>>>>>>>>     new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
>>>>>>>>>>     new ff4c809  Merge branch 'master' of
>>>>>>>>>> https://github.com/apache/openwebbeans
>>>>>>>>>> b812c6f <https://github.com/apache/openwebbeansb812c6f> is
>>>>>> described
>>>>>>>>> below
>>>>>>>>>> 
>>>>>>>>>> commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
>>>>>>>>>> Author: Gurkan Erdogdu <cg...@gmail.com>
>>>>>>>>>> AuthorDate: Wed Jun 10 08:10:54 2020 +0300
>>>>>>>>>> 
>>>>>>>>>>    OWB-1328 NPE in AbstractMetaDataFactory
>>>>>>>>>> ---
>>>>>>>>>> .../corespi/scanner/AbstractMetaDataDiscovery.java
>> |
>>> 15
>>>>>>>>>> ++++++++++-----
>>>>>>>>>> 1 file changed, 10 insertions(+), 5 deletions(-)
>>>>>>>>>> 
>>>>>>>>>> diff --git
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
>>>>>>>>>> index 44febe9..c011670 100644
>>>>>>>>>> ---
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
>>>>>>>>>> +++
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
>>>>>>>>>> @@ -43,6 +43,8 @@ import
>> org.apache.xbean.finder.util.Files;
>>>>>>>>>> 
>>>>>>>>>> import javax.decorator.Decorator;
>>>>>>>>>> import javax.interceptor.Interceptor;
>>>>>>>>>> +
>>>>>>>>>> +import java.io.File;
>>>>>>>>>> import java.io.IOException;
>>>>>>>>>> import java.lang.annotation.Annotation;
>>>>>>>>>> import java.net.URL;
>>>>>>>>>> @@ -283,11 +285,14 @@ public abstract class
>>>>>> AbstractMetaDataDiscovery
>>>>>>>>>> implements BdaScannerService
>>>>>>>>>>             else
>>>>>>>>>>             {
>>>>>>>>>>                 // we could check for
>>>>>>>>>> META-INF/maven/org.apache.geronimo.specs presence there but
>>>> this
>>>>> is
>>>>>>>>> faster
>>>>>>>>>> -                final String filename =
>>>>>> Files.toFile(url).getName();
>>>>>>>>>> -                if (filename.startsWith("geronimo-") &&
>>>>>>>>>> filename.contains("_spec"))
>>>>>>>>>> -                {
>>>>>>>>>> -                    it.remove();
>>>>>>>>>> -                }
>>>>>>>>>> +                File file = Files.toFile(url);
>>>>>>>>>> +                if(file!= null && file.exists()) {
>>>>>>>>>> +                    final String filename =
>> file.getName();
>>>>>>>>>> +                    if (filename.startsWith("geronimo-")
>> &&
>>>>>>>>>> filename.contains("_spec"))
>>>>>>>>>> +                    {
>>>>>>>>>> +                        it.remove();
>>>>>>>>>> +                    }
>>>>>>>>>> +                }
>>>>>>>>>>             }
>>>>>>>>>>         }
>>>>>>>>>>     }
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> --
>>>>>>>>> Gurkan Erdogdu
>>>>>>>>> http://gurkanerdogdu.blogspot.com
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Gurkan Erdogdu
>>>>>>> http://gurkanerdogdu.blogspot.com
>>>>>>> 
>>>>>> 
>>>>> --
>>>>> Gurkan Erdogdu
>>>>> http://gurkanerdogdu.blogspot.com
>>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> Gurkan Erdogdu
>>> http://gurkanerdogdu.blogspot.com
>>> 
>> 
> 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Virenfrei.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Thomas Andraschko <an...@gmail.com>.
+1 in general, Gurkan

however, we should focus on the most important things only
everyone of us is working on many OS projects and its quite hard to write
many docu as its very time consuming.
i would like to have at least docus on class level (we can also skip them
if the class is a POJO or no brainer) - we should really try e.g. to
document SPI classes

but really -1 for boilerplate docu like the constructor doku (initializes
this class) or inhertiDoc.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Sa., 13. Juni 2020 um 13:22 Uhr schrieb Romain Manni-Bucau <
rmannibucau@gmail.com>:

> Updated this fix by failing if url is null with a message saying to either
> change the scanner or add the file to exclusions.
> Can anyone review it please before next release (2.0.18)?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le sam. 13 juin 2020 à 12:01, Gurkan Erdogdu <cg...@gmail.com> a
> écrit :
>
> > >
> > > This is wrong, what does make you think that? I know you left for a
> very
> > > long time and missed quite a lot of things
> >
> > I have been following most of the mailing lists even if I am not able to
> > contribute.
> >
> >
> > but typically most of xbean is
> > > not decided by these 3 people but was decided way earlier and we get
> like
> > > 5-6 people interacting regularly intercommunities (thinking to ee but
> > > osgi/karaf and standlaone too). Not huge but clearly not a one man
> > project.
> > >
> > I am not just talking about something special to XBean. General
> > observation.
> >
> > Side note here is that it is not the right list to discuss that and not
> the
> > > right thread too probably (we shouldnt mix topics in threads IMHO).
> >
> > Thank you for the advice.
> >
> > I do not want to continue the discussion. You are always having to say
> > something.
> > Good luck to you on these projects even in OWB.
> > Cheers
> > Gurkan
> >
> >
> > On Sat, Jun 13, 2020 at 12:39 PM Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >
> > wrote:
> >
> > > Le sam. 13 juin 2020 à 10:54, Gurkan Erdogdu <cgurkanerdogdu@gmail.com
> >
> > a
> > > écrit :
> > >
> > > > If you want to revert , you can...
> > > > But Xbean method returns null and throwing NPE is not a good way to
> > go...
> > > >
> > >
> > > Contract makes it respected. If you run in another env you setup
> another
> > > impl.
> > > Side note being ignoring silently an error is worse IMO.
> > >
> > >
> > >
> > > > From my understanding looking to those projects and even OWB, most of
> > the
> > > > decisions in these projects are only decided by one or two
> > > persons(probably
> > > > internally) but not with the community, this is not the Apache way of
> > > > managing projects.
> > > >
> > >
> > > This is wrong, what does make you think that? I know you left for a
> very
> > > long time and missed quite a lot of things but typically most of xbean
> is
> > > not decided by these 3 people but was decided way earlier and we get
> like
> > > 5-6 people interacting regularly intercommunities (thinking to ee but
> > > osgi/karaf and standlaone too). Not huge but clearly not a one man
> > project.
> > >
> > > Side note here is that it is not the right list to discuss that and not
> > the
> > > right thread too probably (we shouldnt mix topics in threads IMHO).
> > >
> > >
> > > > It is impossible for me to contribute such projects which are handled
> > > this
> > > > way...
> > > >
> > > > Cheers
> > > >
> > > > Gurkan
> > > >
> > > > On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > > > wrote:
> > > >
> > > > > Don't want to look mad or bad but I personally have a hard time to
> > > > convert
> > > > > such statement to action Gurkan.
> > > > > Basically most of this code is not that complex so self explanatory
> > for
> > > > me
> > > > > - but also true I never read comments when contributing to project
> > I'm
> > > > not
> > > > > committer in cause they generally brings you in a wrong direction
> > IMHO.
> > > > > Are you missing some architecture design doc maybe?
> > > > >
> > > > > Side note: back on this commit, if it is linked to the ticket I
> > > > commented,
> > > > > it should be reverted right?
> > > > >
> > > > > Romain Manni-Bucau
> > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > https://github.com/rmannibucau> |
> > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > <
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > >
> > > > >
> > > > >
> > > > > Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <
> > cgurkanerdogdu@gmail.com
> > > >
> > > > a
> > > > > écrit :
> > > > >
> > > > > > Hi
> > > > > > I am looking at projects in Apache Geronimo and OWB side such as
> > > XBean,
> > > > > > Meecrowave, Microprofile, Arthur etc. to contribute more.
> > > > > > I have observed that most of the source code has very small code
> > > > comments
> > > > > > and most of them are driven by a very small group of
> contributors.
> > > > > > It is really hard to contribute to these projects without some
> bit
> > of
> > > > > > understanding of the source code. The important key idea behind
> the
> > > > > Apache
> > > > > > Projects are community and projects need to be driven by the
> > > community.
> > > > > To
> > > > > > extend the community around projects, we need to more care about
> > the
> > > > > > source codes, documentation, guides etc.
> > > > > > I know that this type of stuff is time consuming but also
> > important.
> > > > > > I just want to share my observations around these very cool
> > projects.
> > > > > > Regards.
> > > > > > Gurkan
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hmm,
> > > > > > >
> > > > > > > Have to admit I always use maven to run TCK and I use Intellij
> so
> > > not
> > > > > > that
> > > > > > > sure.
> > > > > > > Maybe something you can give a try is to only open tck module
> and
> > > > close
> > > > > > > other modules to ensure eclipse m2 resolves it through the m2
> > repo
> > > > but
> > > > > > > without any guarantee :s.
> > > > > > >
> > > > > > > Romain Manni-Bucau
> > > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > > https://github.com/rmannibucau> |
> > > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > > > <
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <
> > > > cgurkanerdogdu@gmail.com
> > > > > >
> > > > > > a
> > > > > > > écrit :
> > > > > > >
> > > > > > > > Hi Romain
> > > > > > > > I will look into geronimo-xbean.
> > > > > > > > In the mean time, I have a question:
> > > > > > > > I try to run TestNG plugin in Eclipse but because of javax ->
> > > > jakarta
> > > > > > > maven
> > > > > > > > shading, I am not able to launch the tests via this plugin.
> It
> > > > throws
> > > > > > > > errors like
> > > > > > > >
> > > > > > > > INFO: CDI-TCK Specification version: null
> > > > > > > > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> > > > > > > >
> > > > > > > > Do you have any experience on this? I like to use this plugin
> > to
> > > > see
> > > > > > > > visually the tests....
> > > > > > > > Regards.
> > > > > > > > Gurkan
> > > > > > > >
> > > > > > > >
> > > > > > > > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> > > > > > > rmannibucau@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Hi Gurkan,
> > > > > > > > >
> > > > > > > > > Any way to test it and maybe harness it in geronimo xbean?
> > > > > > > > > Typically it can only happen if the URL is wrongly
> formatted
> > > > (means
> > > > > > we
> > > > > > > > > should port a fix in xbean too) or the protocol is not
> > > supported
> > > > > > > (likely
> > > > > > > > > means a missing exclusion or new protocol handling in
> xbean).
> > > > > > > > > I saw some issues with .so in the past in tests but never
> > > managed
> > > > > to
> > > > > > > > > reproduce it  and I know jrt brings a new protocol but
> > thought
> > > we
> > > > > > > > excluded
> > > > > > > > > it by default so if can confirm this case and if you have a
> > few
> > > > > > > pointers
> > > > > > > > it
> > > > > > > > > would be great, I would be happy to do the work in xbean
> > about
> > > > it.
> > > > > > > > >
> > > > > > > > > Romain Manni-Bucau
> > > > > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > > > > https://github.com/rmannibucau> |
> > > > > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > > > > > <
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ---------- Forwarded message ---------
> > > > > > > > > De : <ge...@apache.org>
> > > > > > > > > Date: mer. 10 juin 2020 à 07:11
> > > > > > > > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE
> > in
> > > > > > > > > AbstractMetaDataFactory
> > > > > > > > > To: commits@openwebbeans.apache.org <
> > > > > commits@openwebbeans.apache.org
> > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > This is an automated email from the ASF dual-hosted git
> > > > repository.
> > > > > > > > >
> > > > > > > > > gerdogdu pushed a commit to branch master
> > > > > > > > > in repository
> > > > https://gitbox.apache.org/repos/asf/openwebbeans.git
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > The following commit(s) were added to refs/heads/master by
> > this
> > > > > push:
> > > > > > > > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > > > >      new ff4c809  Merge branch 'master' of
> > > > > > > > > https://github.com/apache/openwebbeans
> > > > > > > > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is
> > > > > described
> > > > > > > > below
> > > > > > > > >
> > > > > > > > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > > > > > > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > > > > > > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > > > > > > > >
> > > > > > > > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > > > > ---
> > > > > > > > >  .../corespi/scanner/AbstractMetaDataDiscovery.java
> |
> > 15
> > > > > > > > > ++++++++++-----
> > > > > > > > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > > > > > > > >
> > > > > > > > > diff --git
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > > index 44febe9..c011670 100644
> > > > > > > > > ---
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > > +++
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > > @@ -43,6 +43,8 @@ import
> org.apache.xbean.finder.util.Files;
> > > > > > > > >
> > > > > > > > >  import javax.decorator.Decorator;
> > > > > > > > >  import javax.interceptor.Interceptor;
> > > > > > > > > +
> > > > > > > > > +import java.io.File;
> > > > > > > > >  import java.io.IOException;
> > > > > > > > >  import java.lang.annotation.Annotation;
> > > > > > > > >  import java.net.URL;
> > > > > > > > > @@ -283,11 +285,14 @@ public abstract class
> > > > > AbstractMetaDataDiscovery
> > > > > > > > > implements BdaScannerService
> > > > > > > > >              else
> > > > > > > > >              {
> > > > > > > > >                  // we could check for
> > > > > > > > > META-INF/maven/org.apache.geronimo.specs presence there but
> > > this
> > > > is
> > > > > > > > faster
> > > > > > > > > -                final String filename =
> > > > > Files.toFile(url).getName();
> > > > > > > > > -                if (filename.startsWith("geronimo-") &&
> > > > > > > > > filename.contains("_spec"))
> > > > > > > > > -                {
> > > > > > > > > -                    it.remove();
> > > > > > > > > -                }
> > > > > > > > > +                File file = Files.toFile(url);
> > > > > > > > > +                if(file!= null && file.exists()) {
> > > > > > > > > +                    final String filename =
> file.getName();
> > > > > > > > > +                    if (filename.startsWith("geronimo-")
> &&
> > > > > > > > > filename.contains("_spec"))
> > > > > > > > > +                    {
> > > > > > > > > +                        it.remove();
> > > > > > > > > +                    }
> > > > > > > > > +                }
> > > > > > > > >              }
> > > > > > > > >          }
> > > > > > > > >      }
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Gurkan Erdogdu
> > > > > > > > http://gurkanerdogdu.blogspot.com
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Gurkan Erdogdu
> > > > > > http://gurkanerdogdu.blogspot.com
> > > > > >
> > > > >
> > > > --
> > > > Gurkan Erdogdu
> > > > http://gurkanerdogdu.blogspot.com
> > > >
> > >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
> >
>

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Updated this fix by failing if url is null with a message saying to either
change the scanner or add the file to exclusions.
Can anyone review it please before next release (2.0.18)?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le sam. 13 juin 2020 à 12:01, Gurkan Erdogdu <cg...@gmail.com> a
écrit :

> >
> > This is wrong, what does make you think that? I know you left for a very
> > long time and missed quite a lot of things
>
> I have been following most of the mailing lists even if I am not able to
> contribute.
>
>
> but typically most of xbean is
> > not decided by these 3 people but was decided way earlier and we get like
> > 5-6 people interacting regularly intercommunities (thinking to ee but
> > osgi/karaf and standlaone too). Not huge but clearly not a one man
> project.
> >
> I am not just talking about something special to XBean. General
> observation.
>
> Side note here is that it is not the right list to discuss that and not the
> > right thread too probably (we shouldnt mix topics in threads IMHO).
>
> Thank you for the advice.
>
> I do not want to continue the discussion. You are always having to say
> something.
> Good luck to you on these projects even in OWB.
> Cheers
> Gurkan
>
>
> On Sat, Jun 13, 2020 at 12:39 PM Romain Manni-Bucau <rmannibucau@gmail.com
> >
> wrote:
>
> > Le sam. 13 juin 2020 à 10:54, Gurkan Erdogdu <cg...@gmail.com>
> a
> > écrit :
> >
> > > If you want to revert , you can...
> > > But Xbean method returns null and throwing NPE is not a good way to
> go...
> > >
> >
> > Contract makes it respected. If you run in another env you setup another
> > impl.
> > Side note being ignoring silently an error is worse IMO.
> >
> >
> >
> > > From my understanding looking to those projects and even OWB, most of
> the
> > > decisions in these projects are only decided by one or two
> > persons(probably
> > > internally) but not with the community, this is not the Apache way of
> > > managing projects.
> > >
> >
> > This is wrong, what does make you think that? I know you left for a very
> > long time and missed quite a lot of things but typically most of xbean is
> > not decided by these 3 people but was decided way earlier and we get like
> > 5-6 people interacting regularly intercommunities (thinking to ee but
> > osgi/karaf and standlaone too). Not huge but clearly not a one man
> project.
> >
> > Side note here is that it is not the right list to discuss that and not
> the
> > right thread too probably (we shouldnt mix topics in threads IMHO).
> >
> >
> > > It is impossible for me to contribute such projects which are handled
> > this
> > > way...
> > >
> > > Cheers
> > >
> > > Gurkan
> > >
> > > On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <rm...@gmail.com>
> > > wrote:
> > >
> > > > Don't want to look mad or bad but I personally have a hard time to
> > > convert
> > > > such statement to action Gurkan.
> > > > Basically most of this code is not that complex so self explanatory
> for
> > > me
> > > > - but also true I never read comments when contributing to project
> I'm
> > > not
> > > > committer in cause they generally brings you in a wrong direction
> IMHO.
> > > > Are you missing some architecture design doc maybe?
> > > >
> > > > Side note: back on this commit, if it is linked to the ticket I
> > > commented,
> > > > it should be reverted right?
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > <http://rmannibucau.wordpress.com> | Github <
> > > > https://github.com/rmannibucau> |
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > <
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > >
> > > >
> > > >
> > > > Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <
> cgurkanerdogdu@gmail.com
> > >
> > > a
> > > > écrit :
> > > >
> > > > > Hi
> > > > > I am looking at projects in Apache Geronimo and OWB side such as
> > XBean,
> > > > > Meecrowave, Microprofile, Arthur etc. to contribute more.
> > > > > I have observed that most of the source code has very small code
> > > comments
> > > > > and most of them are driven by a very small group of contributors.
> > > > > It is really hard to contribute to these projects without some bit
> of
> > > > > understanding of the source code. The important key idea behind the
> > > > Apache
> > > > > Projects are community and projects need to be driven by the
> > community.
> > > > To
> > > > > extend the community around projects, we need to more care about
> the
> > > > > source codes, documentation, guides etc.
> > > > > I know that this type of stuff is time consuming but also
> important.
> > > > > I just want to share my observations around these very cool
> projects.
> > > > > Regards.
> > > > > Gurkan
> > > > >
> > > > >
> > > > >
> > > > > On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
> > > > rmannibucau@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hmm,
> > > > > >
> > > > > > Have to admit I always use maven to run TCK and I use Intellij so
> > not
> > > > > that
> > > > > > sure.
> > > > > > Maybe something you can give a try is to only open tck module and
> > > close
> > > > > > other modules to ensure eclipse m2 resolves it through the m2
> repo
> > > but
> > > > > > without any guarantee :s.
> > > > > >
> > > > > > Romain Manni-Bucau
> > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > https://github.com/rmannibucau> |
> > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > > <
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > > >
> > > > > >
> > > > > >
> > > > > > Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <
> > > cgurkanerdogdu@gmail.com
> > > > >
> > > > > a
> > > > > > écrit :
> > > > > >
> > > > > > > Hi Romain
> > > > > > > I will look into geronimo-xbean.
> > > > > > > In the mean time, I have a question:
> > > > > > > I try to run TestNG plugin in Eclipse but because of javax ->
> > > jakarta
> > > > > > maven
> > > > > > > shading, I am not able to launch the tests via this plugin. It
> > > throws
> > > > > > > errors like
> > > > > > >
> > > > > > > INFO: CDI-TCK Specification version: null
> > > > > > > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> > > > > > >
> > > > > > > Do you have any experience on this? I like to use this plugin
> to
> > > see
> > > > > > > visually the tests....
> > > > > > > Regards.
> > > > > > > Gurkan
> > > > > > >
> > > > > > >
> > > > > > > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hi Gurkan,
> > > > > > > >
> > > > > > > > Any way to test it and maybe harness it in geronimo xbean?
> > > > > > > > Typically it can only happen if the URL is wrongly formatted
> > > (means
> > > > > we
> > > > > > > > should port a fix in xbean too) or the protocol is not
> > supported
> > > > > > (likely
> > > > > > > > means a missing exclusion or new protocol handling in xbean).
> > > > > > > > I saw some issues with .so in the past in tests but never
> > managed
> > > > to
> > > > > > > > reproduce it  and I know jrt brings a new protocol but
> thought
> > we
> > > > > > > excluded
> > > > > > > > it by default so if can confirm this case and if you have a
> few
> > > > > > pointers
> > > > > > > it
> > > > > > > > would be great, I would be happy to do the work in xbean
> about
> > > it.
> > > > > > > >
> > > > > > > > Romain Manni-Bucau
> > > > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > > > https://github.com/rmannibucau> |
> > > > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > > > > <
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ---------- Forwarded message ---------
> > > > > > > > De : <ge...@apache.org>
> > > > > > > > Date: mer. 10 juin 2020 à 07:11
> > > > > > > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE
> in
> > > > > > > > AbstractMetaDataFactory
> > > > > > > > To: commits@openwebbeans.apache.org <
> > > > commits@openwebbeans.apache.org
> > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > This is an automated email from the ASF dual-hosted git
> > > repository.
> > > > > > > >
> > > > > > > > gerdogdu pushed a commit to branch master
> > > > > > > > in repository
> > > https://gitbox.apache.org/repos/asf/openwebbeans.git
> > > > > > > >
> > > > > > > >
> > > > > > > > The following commit(s) were added to refs/heads/master by
> this
> > > > push:
> > > > > > > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > > >      new ff4c809  Merge branch 'master' of
> > > > > > > > https://github.com/apache/openwebbeans
> > > > > > > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is
> > > > described
> > > > > > > below
> > > > > > > >
> > > > > > > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > > > > > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > > > > > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > > > > > > >
> > > > > > > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > > > ---
> > > > > > > >  .../corespi/scanner/AbstractMetaDataDiscovery.java        |
> 15
> > > > > > > > ++++++++++-----
> > > > > > > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > > > > > > >
> > > > > > > > diff --git
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > index 44febe9..c011670 100644
> > > > > > > > ---
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > +++
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> > > > > > > >
> > > > > > > >  import javax.decorator.Decorator;
> > > > > > > >  import javax.interceptor.Interceptor;
> > > > > > > > +
> > > > > > > > +import java.io.File;
> > > > > > > >  import java.io.IOException;
> > > > > > > >  import java.lang.annotation.Annotation;
> > > > > > > >  import java.net.URL;
> > > > > > > > @@ -283,11 +285,14 @@ public abstract class
> > > > AbstractMetaDataDiscovery
> > > > > > > > implements BdaScannerService
> > > > > > > >              else
> > > > > > > >              {
> > > > > > > >                  // we could check for
> > > > > > > > META-INF/maven/org.apache.geronimo.specs presence there but
> > this
> > > is
> > > > > > > faster
> > > > > > > > -                final String filename =
> > > > Files.toFile(url).getName();
> > > > > > > > -                if (filename.startsWith("geronimo-") &&
> > > > > > > > filename.contains("_spec"))
> > > > > > > > -                {
> > > > > > > > -                    it.remove();
> > > > > > > > -                }
> > > > > > > > +                File file = Files.toFile(url);
> > > > > > > > +                if(file!= null && file.exists()) {
> > > > > > > > +                    final String filename = file.getName();
> > > > > > > > +                    if (filename.startsWith("geronimo-") &&
> > > > > > > > filename.contains("_spec"))
> > > > > > > > +                    {
> > > > > > > > +                        it.remove();
> > > > > > > > +                    }
> > > > > > > > +                }
> > > > > > > >              }
> > > > > > > >          }
> > > > > > > >      }
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Gurkan Erdogdu
> > > > > > > http://gurkanerdogdu.blogspot.com
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Gurkan Erdogdu
> > > > > http://gurkanerdogdu.blogspot.com
> > > > >
> > > >
> > > --
> > > Gurkan Erdogdu
> > > http://gurkanerdogdu.blogspot.com
> > >
> >
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Gurkan Erdogdu <cg...@gmail.com>.
>
> This is wrong, what does make you think that? I know you left for a very
> long time and missed quite a lot of things

I have been following most of the mailing lists even if I am not able to
contribute.


but typically most of xbean is
> not decided by these 3 people but was decided way earlier and we get like
> 5-6 people interacting regularly intercommunities (thinking to ee but
> osgi/karaf and standlaone too). Not huge but clearly not a one man project.
>
I am not just talking about something special to XBean. General observation.

Side note here is that it is not the right list to discuss that and not the
> right thread too probably (we shouldnt mix topics in threads IMHO).

Thank you for the advice.

I do not want to continue the discussion. You are always having to say
something.
Good luck to you on these projects even in OWB.
Cheers
Gurkan


On Sat, Jun 13, 2020 at 12:39 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Le sam. 13 juin 2020 à 10:54, Gurkan Erdogdu <cg...@gmail.com> a
> écrit :
>
> > If you want to revert , you can...
> > But Xbean method returns null and throwing NPE is not a good way to go...
> >
>
> Contract makes it respected. If you run in another env you setup another
> impl.
> Side note being ignoring silently an error is worse IMO.
>
>
>
> > From my understanding looking to those projects and even OWB, most of the
> > decisions in these projects are only decided by one or two
> persons(probably
> > internally) but not with the community, this is not the Apache way of
> > managing projects.
> >
>
> This is wrong, what does make you think that? I know you left for a very
> long time and missed quite a lot of things but typically most of xbean is
> not decided by these 3 people but was decided way earlier and we get like
> 5-6 people interacting regularly intercommunities (thinking to ee but
> osgi/karaf and standlaone too). Not huge but clearly not a one man project.
>
> Side note here is that it is not the right list to discuss that and not the
> right thread too probably (we shouldnt mix topics in threads IMHO).
>
>
> > It is impossible for me to contribute such projects which are handled
> this
> > way...
> >
> > Cheers
> >
> > Gurkan
> >
> > On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <rm...@gmail.com>
> > wrote:
> >
> > > Don't want to look mad or bad but I personally have a hard time to
> > convert
> > > such statement to action Gurkan.
> > > Basically most of this code is not that complex so self explanatory for
> > me
> > > - but also true I never read comments when contributing to project I'm
> > not
> > > committer in cause they generally brings you in a wrong direction IMHO.
> > > Are you missing some architecture design doc maybe?
> > >
> > > Side note: back on this commit, if it is linked to the ticket I
> > commented,
> > > it should be reverted right?
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > >
> > > Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <cgurkanerdogdu@gmail.com
> >
> > a
> > > écrit :
> > >
> > > > Hi
> > > > I am looking at projects in Apache Geronimo and OWB side such as
> XBean,
> > > > Meecrowave, Microprofile, Arthur etc. to contribute more.
> > > > I have observed that most of the source code has very small code
> > comments
> > > > and most of them are driven by a very small group of contributors.
> > > > It is really hard to contribute to these projects without some bit of
> > > > understanding of the source code. The important key idea behind the
> > > Apache
> > > > Projects are community and projects need to be driven by the
> community.
> > > To
> > > > extend the community around projects, we need to more care about the
> > > > source codes, documentation, guides etc.
> > > > I know that this type of stuff is time consuming but also important.
> > > > I just want to share my observations around these very cool projects.
> > > > Regards.
> > > > Gurkan
> > > >
> > > >
> > > >
> > > > On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
> > > rmannibucau@gmail.com>
> > > > wrote:
> > > >
> > > > > Hmm,
> > > > >
> > > > > Have to admit I always use maven to run TCK and I use Intellij so
> not
> > > > that
> > > > > sure.
> > > > > Maybe something you can give a try is to only open tck module and
> > close
> > > > > other modules to ensure eclipse m2 resolves it through the m2 repo
> > but
> > > > > without any guarantee :s.
> > > > >
> > > > > Romain Manni-Bucau
> > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > https://github.com/rmannibucau> |
> > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > <
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > >
> > > > >
> > > > >
> > > > > Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <
> > cgurkanerdogdu@gmail.com
> > > >
> > > > a
> > > > > écrit :
> > > > >
> > > > > > Hi Romain
> > > > > > I will look into geronimo-xbean.
> > > > > > In the mean time, I have a question:
> > > > > > I try to run TestNG plugin in Eclipse but because of javax ->
> > jakarta
> > > > > maven
> > > > > > shading, I am not able to launch the tests via this plugin. It
> > throws
> > > > > > errors like
> > > > > >
> > > > > > INFO: CDI-TCK Specification version: null
> > > > > > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> > > > > >
> > > > > > Do you have any experience on this? I like to use this plugin to
> > see
> > > > > > visually the tests....
> > > > > > Regards.
> > > > > > Gurkan
> > > > > >
> > > > > >
> > > > > > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Gurkan,
> > > > > > >
> > > > > > > Any way to test it and maybe harness it in geronimo xbean?
> > > > > > > Typically it can only happen if the URL is wrongly formatted
> > (means
> > > > we
> > > > > > > should port a fix in xbean too) or the protocol is not
> supported
> > > > > (likely
> > > > > > > means a missing exclusion or new protocol handling in xbean).
> > > > > > > I saw some issues with .so in the past in tests but never
> managed
> > > to
> > > > > > > reproduce it  and I know jrt brings a new protocol but thought
> we
> > > > > > excluded
> > > > > > > it by default so if can confirm this case and if you have a few
> > > > > pointers
> > > > > > it
> > > > > > > would be great, I would be happy to do the work in xbean about
> > it.
> > > > > > >
> > > > > > > Romain Manni-Bucau
> > > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > > https://github.com/rmannibucau> |
> > > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > > > <
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ---------- Forwarded message ---------
> > > > > > > De : <ge...@apache.org>
> > > > > > > Date: mer. 10 juin 2020 à 07:11
> > > > > > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> > > > > > > AbstractMetaDataFactory
> > > > > > > To: commits@openwebbeans.apache.org <
> > > commits@openwebbeans.apache.org
> > > > >
> > > > > > >
> > > > > > >
> > > > > > > This is an automated email from the ASF dual-hosted git
> > repository.
> > > > > > >
> > > > > > > gerdogdu pushed a commit to branch master
> > > > > > > in repository
> > https://gitbox.apache.org/repos/asf/openwebbeans.git
> > > > > > >
> > > > > > >
> > > > > > > The following commit(s) were added to refs/heads/master by this
> > > push:
> > > > > > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > >      new ff4c809  Merge branch 'master' of
> > > > > > > https://github.com/apache/openwebbeans
> > > > > > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is
> > > described
> > > > > > below
> > > > > > >
> > > > > > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > > > > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > > > > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > > > > > >
> > > > > > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > > ---
> > > > > > >  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> > > > > > > ++++++++++-----
> > > > > > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > > > > > >
> > > > > > > diff --git
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > index 44febe9..c011670 100644
> > > > > > > ---
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > +++
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> > > > > > >
> > > > > > >  import javax.decorator.Decorator;
> > > > > > >  import javax.interceptor.Interceptor;
> > > > > > > +
> > > > > > > +import java.io.File;
> > > > > > >  import java.io.IOException;
> > > > > > >  import java.lang.annotation.Annotation;
> > > > > > >  import java.net.URL;
> > > > > > > @@ -283,11 +285,14 @@ public abstract class
> > > AbstractMetaDataDiscovery
> > > > > > > implements BdaScannerService
> > > > > > >              else
> > > > > > >              {
> > > > > > >                  // we could check for
> > > > > > > META-INF/maven/org.apache.geronimo.specs presence there but
> this
> > is
> > > > > > faster
> > > > > > > -                final String filename =
> > > Files.toFile(url).getName();
> > > > > > > -                if (filename.startsWith("geronimo-") &&
> > > > > > > filename.contains("_spec"))
> > > > > > > -                {
> > > > > > > -                    it.remove();
> > > > > > > -                }
> > > > > > > +                File file = Files.toFile(url);
> > > > > > > +                if(file!= null && file.exists()) {
> > > > > > > +                    final String filename = file.getName();
> > > > > > > +                    if (filename.startsWith("geronimo-") &&
> > > > > > > filename.contains("_spec"))
> > > > > > > +                    {
> > > > > > > +                        it.remove();
> > > > > > > +                    }
> > > > > > > +                }
> > > > > > >              }
> > > > > > >          }
> > > > > > >      }
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Gurkan Erdogdu
> > > > > > http://gurkanerdogdu.blogspot.com
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Gurkan Erdogdu
> > > > http://gurkanerdogdu.blogspot.com
> > > >
> > >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
> >
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le sam. 13 juin 2020 à 10:54, Gurkan Erdogdu <cg...@gmail.com> a
écrit :

> If you want to revert , you can...
> But Xbean method returns null and throwing NPE is not a good way to go...
>

Contract makes it respected. If you run in another env you setup another
impl.
Side note being ignoring silently an error is worse IMO.



> From my understanding looking to those projects and even OWB, most of the
> decisions in these projects are only decided by one or two persons(probably
> internally) but not with the community, this is not the Apache way of
> managing projects.
>

This is wrong, what does make you think that? I know you left for a very
long time and missed quite a lot of things but typically most of xbean is
not decided by these 3 people but was decided way earlier and we get like
5-6 people interacting regularly intercommunities (thinking to ee but
osgi/karaf and standlaone too). Not huge but clearly not a one man project.

Side note here is that it is not the right list to discuss that and not the
right thread too probably (we shouldnt mix topics in threads IMHO).


> It is impossible for me to contribute such projects which are handled this
> way...
>
> Cheers
>
> Gurkan
>
> On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Don't want to look mad or bad but I personally have a hard time to
> convert
> > such statement to action Gurkan.
> > Basically most of this code is not that complex so self explanatory for
> me
> > - but also true I never read comments when contributing to project I'm
> not
> > committer in cause they generally brings you in a wrong direction IMHO.
> > Are you missing some architecture design doc maybe?
> >
> > Side note: back on this commit, if it is linked to the ticket I
> commented,
> > it should be reverted right?
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <cg...@gmail.com>
> a
> > écrit :
> >
> > > Hi
> > > I am looking at projects in Apache Geronimo and OWB side such as XBean,
> > > Meecrowave, Microprofile, Arthur etc. to contribute more.
> > > I have observed that most of the source code has very small code
> comments
> > > and most of them are driven by a very small group of contributors.
> > > It is really hard to contribute to these projects without some bit of
> > > understanding of the source code. The important key idea behind the
> > Apache
> > > Projects are community and projects need to be driven by the community.
> > To
> > > extend the community around projects, we need to more care about the
> > > source codes, documentation, guides etc.
> > > I know that this type of stuff is time consuming but also important.
> > > I just want to share my observations around these very cool projects.
> > > Regards.
> > > Gurkan
> > >
> > >
> > >
> > > On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
> > rmannibucau@gmail.com>
> > > wrote:
> > >
> > > > Hmm,
> > > >
> > > > Have to admit I always use maven to run TCK and I use Intellij so not
> > > that
> > > > sure.
> > > > Maybe something you can give a try is to only open tck module and
> close
> > > > other modules to ensure eclipse m2 resolves it through the m2 repo
> but
> > > > without any guarantee :s.
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > <http://rmannibucau.wordpress.com> | Github <
> > > > https://github.com/rmannibucau> |
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > <
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > >
> > > >
> > > >
> > > > Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <
> cgurkanerdogdu@gmail.com
> > >
> > > a
> > > > écrit :
> > > >
> > > > > Hi Romain
> > > > > I will look into geronimo-xbean.
> > > > > In the mean time, I have a question:
> > > > > I try to run TestNG plugin in Eclipse but because of javax ->
> jakarta
> > > > maven
> > > > > shading, I am not able to launch the tests via this plugin. It
> throws
> > > > > errors like
> > > > >
> > > > > INFO: CDI-TCK Specification version: null
> > > > > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> > > > >
> > > > > Do you have any experience on this? I like to use this plugin to
> see
> > > > > visually the tests....
> > > > > Regards.
> > > > > Gurkan
> > > > >
> > > > >
> > > > > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> > > > rmannibucau@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Gurkan,
> > > > > >
> > > > > > Any way to test it and maybe harness it in geronimo xbean?
> > > > > > Typically it can only happen if the URL is wrongly formatted
> (means
> > > we
> > > > > > should port a fix in xbean too) or the protocol is not supported
> > > > (likely
> > > > > > means a missing exclusion or new protocol handling in xbean).
> > > > > > I saw some issues with .so in the past in tests but never managed
> > to
> > > > > > reproduce it  and I know jrt brings a new protocol but thought we
> > > > > excluded
> > > > > > it by default so if can confirm this case and if you have a few
> > > > pointers
> > > > > it
> > > > > > would be great, I would be happy to do the work in xbean about
> it.
> > > > > >
> > > > > > Romain Manni-Bucau
> > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > https://github.com/rmannibucau> |
> > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > > <
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > > >
> > > > > >
> > > > > >
> > > > > > ---------- Forwarded message ---------
> > > > > > De : <ge...@apache.org>
> > > > > > Date: mer. 10 juin 2020 à 07:11
> > > > > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> > > > > > AbstractMetaDataFactory
> > > > > > To: commits@openwebbeans.apache.org <
> > commits@openwebbeans.apache.org
> > > >
> > > > > >
> > > > > >
> > > > > > This is an automated email from the ASF dual-hosted git
> repository.
> > > > > >
> > > > > > gerdogdu pushed a commit to branch master
> > > > > > in repository
> https://gitbox.apache.org/repos/asf/openwebbeans.git
> > > > > >
> > > > > >
> > > > > > The following commit(s) were added to refs/heads/master by this
> > push:
> > > > > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > > > > >      new ff4c809  Merge branch 'master' of
> > > > > > https://github.com/apache/openwebbeans
> > > > > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is
> > described
> > > > > below
> > > > > >
> > > > > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > > > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > > > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > > > > >
> > > > > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > > > > ---
> > > > > >  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> > > > > > ++++++++++-----
> > > > > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > > > > >
> > > > > > diff --git
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > index 44febe9..c011670 100644
> > > > > > ---
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > +++
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> > > > > >
> > > > > >  import javax.decorator.Decorator;
> > > > > >  import javax.interceptor.Interceptor;
> > > > > > +
> > > > > > +import java.io.File;
> > > > > >  import java.io.IOException;
> > > > > >  import java.lang.annotation.Annotation;
> > > > > >  import java.net.URL;
> > > > > > @@ -283,11 +285,14 @@ public abstract class
> > AbstractMetaDataDiscovery
> > > > > > implements BdaScannerService
> > > > > >              else
> > > > > >              {
> > > > > >                  // we could check for
> > > > > > META-INF/maven/org.apache.geronimo.specs presence there but this
> is
> > > > > faster
> > > > > > -                final String filename =
> > Files.toFile(url).getName();
> > > > > > -                if (filename.startsWith("geronimo-") &&
> > > > > > filename.contains("_spec"))
> > > > > > -                {
> > > > > > -                    it.remove();
> > > > > > -                }
> > > > > > +                File file = Files.toFile(url);
> > > > > > +                if(file!= null && file.exists()) {
> > > > > > +                    final String filename = file.getName();
> > > > > > +                    if (filename.startsWith("geronimo-") &&
> > > > > > filename.contains("_spec"))
> > > > > > +                    {
> > > > > > +                        it.remove();
> > > > > > +                    }
> > > > > > +                }
> > > > > >              }
> > > > > >          }
> > > > > >      }
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Gurkan Erdogdu
> > > > > http://gurkanerdogdu.blogspot.com
> > > > >
> > > >
> > >
> > >
> > > --
> > > Gurkan Erdogdu
> > > http://gurkanerdogdu.blogspot.com
> > >
> >
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Gurkan Erdogdu <cg...@gmail.com>.
If you want to revert , you can...
But Xbean method returns null and throwing NPE is not a good way to go...

From my understanding looking to those projects and even OWB, most of the
decisions in these projects are only decided by one or two persons(probably
internally) but not with the community, this is not the Apache way of
managing projects.

It is impossible for me to contribute such projects which are handled this
way...

Cheers

Gurkan

On 13 Jun 2020 Sat at 09:18 Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Don't want to look mad or bad but I personally have a hard time to convert
> such statement to action Gurkan.
> Basically most of this code is not that complex so self explanatory for me
> - but also true I never read comments when contributing to project I'm not
> committer in cause they generally brings you in a wrong direction IMHO.
> Are you missing some architecture design doc maybe?
>
> Side note: back on this commit, if it is linked to the ticket I commented,
> it should be reverted right?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <cg...@gmail.com> a
> écrit :
>
> > Hi
> > I am looking at projects in Apache Geronimo and OWB side such as XBean,
> > Meecrowave, Microprofile, Arthur etc. to contribute more.
> > I have observed that most of the source code has very small code comments
> > and most of them are driven by a very small group of contributors.
> > It is really hard to contribute to these projects without some bit of
> > understanding of the source code. The important key idea behind the
> Apache
> > Projects are community and projects need to be driven by the community.
> To
> > extend the community around projects, we need to more care about the
> > source codes, documentation, guides etc.
> > I know that this type of stuff is time consuming but also important.
> > I just want to share my observations around these very cool projects.
> > Regards.
> > Gurkan
> >
> >
> >
> > On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> > > Hmm,
> > >
> > > Have to admit I always use maven to run TCK and I use Intellij so not
> > that
> > > sure.
> > > Maybe something you can give a try is to only open tck module and close
> > > other modules to ensure eclipse m2 resolves it through the m2 repo but
> > > without any guarantee :s.
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > >
> > > Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <cgurkanerdogdu@gmail.com
> >
> > a
> > > écrit :
> > >
> > > > Hi Romain
> > > > I will look into geronimo-xbean.
> > > > In the mean time, I have a question:
> > > > I try to run TestNG plugin in Eclipse but because of javax -> jakarta
> > > maven
> > > > shading, I am not able to launch the tests via this plugin. It throws
> > > > errors like
> > > >
> > > > INFO: CDI-TCK Specification version: null
> > > > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> > > >
> > > > Do you have any experience on this? I like to use this plugin to see
> > > > visually the tests....
> > > > Regards.
> > > > Gurkan
> > > >
> > > >
> > > > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> > > rmannibucau@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Gurkan,
> > > > >
> > > > > Any way to test it and maybe harness it in geronimo xbean?
> > > > > Typically it can only happen if the URL is wrongly formatted (means
> > we
> > > > > should port a fix in xbean too) or the protocol is not supported
> > > (likely
> > > > > means a missing exclusion or new protocol handling in xbean).
> > > > > I saw some issues with .so in the past in tests but never managed
> to
> > > > > reproduce it  and I know jrt brings a new protocol but thought we
> > > > excluded
> > > > > it by default so if can confirm this case and if you have a few
> > > pointers
> > > > it
> > > > > would be great, I would be happy to do the work in xbean about it.
> > > > >
> > > > > Romain Manni-Bucau
> > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > https://github.com/rmannibucau> |
> > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > > <
> > > > >
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > > >
> > > > >
> > > > >
> > > > > ---------- Forwarded message ---------
> > > > > De : <ge...@apache.org>
> > > > > Date: mer. 10 juin 2020 à 07:11
> > > > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> > > > > AbstractMetaDataFactory
> > > > > To: commits@openwebbeans.apache.org <
> commits@openwebbeans.apache.org
> > >
> > > > >
> > > > >
> > > > > This is an automated email from the ASF dual-hosted git repository.
> > > > >
> > > > > gerdogdu pushed a commit to branch master
> > > > > in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
> > > > >
> > > > >
> > > > > The following commit(s) were added to refs/heads/master by this
> push:
> > > > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > > > >      new ff4c809  Merge branch 'master' of
> > > > > https://github.com/apache/openwebbeans
> > > > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is
> described
> > > > below
> > > > >
> > > > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > > > >
> > > > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > > > ---
> > > > >  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> > > > > ++++++++++-----
> > > > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > > > >
> > > > > diff --git
> > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > index 44febe9..c011670 100644
> > > > > ---
> > > > >
> > > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > +++
> > > > >
> > > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> > > > >
> > > > >  import javax.decorator.Decorator;
> > > > >  import javax.interceptor.Interceptor;
> > > > > +
> > > > > +import java.io.File;
> > > > >  import java.io.IOException;
> > > > >  import java.lang.annotation.Annotation;
> > > > >  import java.net.URL;
> > > > > @@ -283,11 +285,14 @@ public abstract class
> AbstractMetaDataDiscovery
> > > > > implements BdaScannerService
> > > > >              else
> > > > >              {
> > > > >                  // we could check for
> > > > > META-INF/maven/org.apache.geronimo.specs presence there but this is
> > > > faster
> > > > > -                final String filename =
> Files.toFile(url).getName();
> > > > > -                if (filename.startsWith("geronimo-") &&
> > > > > filename.contains("_spec"))
> > > > > -                {
> > > > > -                    it.remove();
> > > > > -                }
> > > > > +                File file = Files.toFile(url);
> > > > > +                if(file!= null && file.exists()) {
> > > > > +                    final String filename = file.getName();
> > > > > +                    if (filename.startsWith("geronimo-") &&
> > > > > filename.contains("_spec"))
> > > > > +                    {
> > > > > +                        it.remove();
> > > > > +                    }
> > > > > +                }
> > > > >              }
> > > > >          }
> > > > >      }
> > > > >
> > > >
> > > >
> > > > --
> > > > Gurkan Erdogdu
> > > > http://gurkanerdogdu.blogspot.com
> > > >
> > >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
> >
>
-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Don't want to look mad or bad but I personally have a hard time to convert
such statement to action Gurkan.
Basically most of this code is not that complex so self explanatory for me
- but also true I never read comments when contributing to project I'm not
committer in cause they generally brings you in a wrong direction IMHO.
Are you missing some architecture design doc maybe?

Side note: back on this commit, if it is linked to the ticket I commented,
it should be reverted right?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le ven. 12 juin 2020 à 21:45, Gurkan Erdogdu <cg...@gmail.com> a
écrit :

> Hi
> I am looking at projects in Apache Geronimo and OWB side such as XBean,
> Meecrowave, Microprofile, Arthur etc. to contribute more.
> I have observed that most of the source code has very small code comments
> and most of them are driven by a very small group of contributors.
> It is really hard to contribute to these projects without some bit of
> understanding of the source code. The important key idea behind the Apache
> Projects are community and projects need to be driven by the community. To
> extend the community around projects, we need to more care about the
> source codes, documentation, guides etc.
> I know that this type of stuff is time consuming but also important.
> I just want to share my observations around these very cool projects.
> Regards.
> Gurkan
>
>
>
> On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Hmm,
> >
> > Have to admit I always use maven to run TCK and I use Intellij so not
> that
> > sure.
> > Maybe something you can give a try is to only open tck module and close
> > other modules to ensure eclipse m2 resolves it through the m2 repo but
> > without any guarantee :s.
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <cg...@gmail.com>
> a
> > écrit :
> >
> > > Hi Romain
> > > I will look into geronimo-xbean.
> > > In the mean time, I have a question:
> > > I try to run TestNG plugin in Eclipse but because of javax -> jakarta
> > maven
> > > shading, I am not able to launch the tests via this plugin. It throws
> > > errors like
> > >
> > > INFO: CDI-TCK Specification version: null
> > > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> > >
> > > Do you have any experience on this? I like to use this plugin to see
> > > visually the tests....
> > > Regards.
> > > Gurkan
> > >
> > >
> > > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> > rmannibucau@gmail.com>
> > > wrote:
> > >
> > > > Hi Gurkan,
> > > >
> > > > Any way to test it and maybe harness it in geronimo xbean?
> > > > Typically it can only happen if the URL is wrongly formatted (means
> we
> > > > should port a fix in xbean too) or the protocol is not supported
> > (likely
> > > > means a missing exclusion or new protocol handling in xbean).
> > > > I saw some issues with .so in the past in tests but never managed to
> > > > reproduce it  and I know jrt brings a new protocol but thought we
> > > excluded
> > > > it by default so if can confirm this case and if you have a few
> > pointers
> > > it
> > > > would be great, I would be happy to do the work in xbean about it.
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > > <http://rmannibucau.wordpress.com> | Github <
> > > > https://github.com/rmannibucau> |
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > > <
> > > >
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > > >
> > > >
> > > >
> > > > ---------- Forwarded message ---------
> > > > De : <ge...@apache.org>
> > > > Date: mer. 10 juin 2020 à 07:11
> > > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> > > > AbstractMetaDataFactory
> > > > To: commits@openwebbeans.apache.org <commits@openwebbeans.apache.org
> >
> > > >
> > > >
> > > > This is an automated email from the ASF dual-hosted git repository.
> > > >
> > > > gerdogdu pushed a commit to branch master
> > > > in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
> > > >
> > > >
> > > > The following commit(s) were added to refs/heads/master by this push:
> > > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > > >      new ff4c809  Merge branch 'master' of
> > > > https://github.com/apache/openwebbeans
> > > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is described
> > > below
> > > >
> > > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > > >
> > > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > > ---
> > > >  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> > > > ++++++++++-----
> > > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > > >
> > > > diff --git
> > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > index 44febe9..c011670 100644
> > > > ---
> > > >
> > > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > +++
> > > >
> > > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> > > >
> > > >  import javax.decorator.Decorator;
> > > >  import javax.interceptor.Interceptor;
> > > > +
> > > > +import java.io.File;
> > > >  import java.io.IOException;
> > > >  import java.lang.annotation.Annotation;
> > > >  import java.net.URL;
> > > > @@ -283,11 +285,14 @@ public abstract class AbstractMetaDataDiscovery
> > > > implements BdaScannerService
> > > >              else
> > > >              {
> > > >                  // we could check for
> > > > META-INF/maven/org.apache.geronimo.specs presence there but this is
> > > faster
> > > > -                final String filename = Files.toFile(url).getName();
> > > > -                if (filename.startsWith("geronimo-") &&
> > > > filename.contains("_spec"))
> > > > -                {
> > > > -                    it.remove();
> > > > -                }
> > > > +                File file = Files.toFile(url);
> > > > +                if(file!= null && file.exists()) {
> > > > +                    final String filename = file.getName();
> > > > +                    if (filename.startsWith("geronimo-") &&
> > > > filename.contains("_spec"))
> > > > +                    {
> > > > +                        it.remove();
> > > > +                    }
> > > > +                }
> > > >              }
> > > >          }
> > > >      }
> > > >
> > >
> > >
> > > --
> > > Gurkan Erdogdu
> > > http://gurkanerdogdu.blogspot.com
> > >
> >
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Gurkan Erdogdu <cg...@gmail.com>.
Hi
I am looking at projects in Apache Geronimo and OWB side such as XBean,
Meecrowave, Microprofile, Arthur etc. to contribute more.
I have observed that most of the source code has very small code comments
and most of them are driven by a very small group of contributors.
It is really hard to contribute to these projects without some bit of
understanding of the source code. The important key idea behind the Apache
Projects are community and projects need to be driven by the community. To
extend the community around projects, we need to more care about the
source codes, documentation, guides etc.
I know that this type of stuff is time consuming but also important.
I just want to share my observations around these very cool projects.
Regards.
Gurkan



On Wed, Jun 10, 2020 at 9:58 AM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Hmm,
>
> Have to admit I always use maven to run TCK and I use Intellij so not that
> sure.
> Maybe something you can give a try is to only open tck module and close
> other modules to ensure eclipse m2 resolves it through the m2 repo but
> without any guarantee :s.
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <cg...@gmail.com> a
> écrit :
>
> > Hi Romain
> > I will look into geronimo-xbean.
> > In the mean time, I have a question:
> > I try to run TestNG plugin in Eclipse but because of javax -> jakarta
> maven
> > shading, I am not able to launch the tests via this plugin. It throws
> > errors like
> >
> > INFO: CDI-TCK Specification version: null
> > java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
> >
> > Do you have any experience on this? I like to use this plugin to see
> > visually the tests....
> > Regards.
> > Gurkan
> >
> >
> > On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> > > Hi Gurkan,
> > >
> > > Any way to test it and maybe harness it in geronimo xbean?
> > > Typically it can only happen if the URL is wrongly formatted (means we
> > > should port a fix in xbean too) or the protocol is not supported
> (likely
> > > means a missing exclusion or new protocol handling in xbean).
> > > I saw some issues with .so in the past in tests but never managed to
> > > reproduce it  and I know jrt brings a new protocol but thought we
> > excluded
> > > it by default so if can confirm this case and if you have a few
> pointers
> > it
> > > would be great, I would be happy to do the work in xbean about it.
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > >
> > > ---------- Forwarded message ---------
> > > De : <ge...@apache.org>
> > > Date: mer. 10 juin 2020 à 07:11
> > > Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> > > AbstractMetaDataFactory
> > > To: commits@openwebbeans.apache.org <co...@openwebbeans.apache.org>
> > >
> > >
> > > This is an automated email from the ASF dual-hosted git repository.
> > >
> > > gerdogdu pushed a commit to branch master
> > > in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
> > >
> > >
> > > The following commit(s) were added to refs/heads/master by this push:
> > >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> > >      new ff4c809  Merge branch 'master' of
> > > https://github.com/apache/openwebbeans
> > > b812c6f <https://github.com/apache/openwebbeansb812c6f> is described
> > below
> > >
> > > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > > Author: Gurkan Erdogdu <cg...@gmail.com>
> > > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> > >
> > >     OWB-1328 NPE in AbstractMetaDataFactory
> > > ---
> > >  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> > > ++++++++++-----
> > >  1 file changed, 10 insertions(+), 5 deletions(-)
> > >
> > > diff --git
> > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > index 44febe9..c011670 100644
> > > ---
> > >
> > >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > +++
> > >
> > >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> > >
> > >  import javax.decorator.Decorator;
> > >  import javax.interceptor.Interceptor;
> > > +
> > > +import java.io.File;
> > >  import java.io.IOException;
> > >  import java.lang.annotation.Annotation;
> > >  import java.net.URL;
> > > @@ -283,11 +285,14 @@ public abstract class AbstractMetaDataDiscovery
> > > implements BdaScannerService
> > >              else
> > >              {
> > >                  // we could check for
> > > META-INF/maven/org.apache.geronimo.specs presence there but this is
> > faster
> > > -                final String filename = Files.toFile(url).getName();
> > > -                if (filename.startsWith("geronimo-") &&
> > > filename.contains("_spec"))
> > > -                {
> > > -                    it.remove();
> > > -                }
> > > +                File file = Files.toFile(url);
> > > +                if(file!= null && file.exists()) {
> > > +                    final String filename = file.getName();
> > > +                    if (filename.startsWith("geronimo-") &&
> > > filename.contains("_spec"))
> > > +                    {
> > > +                        it.remove();
> > > +                    }
> > > +                }
> > >              }
> > >          }
> > >      }
> > >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
> >
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hmm,

Have to admit I always use maven to run TCK and I use Intellij so not that
sure.
Maybe something you can give a try is to only open tck module and close
other modules to ensure eclipse m2 resolves it through the m2 repo but
without any guarantee :s.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mer. 10 juin 2020 à 08:38, Gurkan Erdogdu <cg...@gmail.com> a
écrit :

> Hi Romain
> I will look into geronimo-xbean.
> In the mean time, I have a question:
> I try to run TestNG plugin in Eclipse but because of javax -> jakarta maven
> shading, I am not able to launch the tests via this plugin. It throws
> errors like
>
> INFO: CDI-TCK Specification version: null
> java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
>
> Do you have any experience on this? I like to use this plugin to see
> visually the tests....
> Regards.
> Gurkan
>
>
> On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Hi Gurkan,
> >
> > Any way to test it and maybe harness it in geronimo xbean?
> > Typically it can only happen if the URL is wrongly formatted (means we
> > should port a fix in xbean too) or the protocol is not supported (likely
> > means a missing exclusion or new protocol handling in xbean).
> > I saw some issues with .so in the past in tests but never managed to
> > reproduce it  and I know jrt brings a new protocol but thought we
> excluded
> > it by default so if can confirm this case and if you have a few pointers
> it
> > would be great, I would be happy to do the work in xbean about it.
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > ---------- Forwarded message ---------
> > De : <ge...@apache.org>
> > Date: mer. 10 juin 2020 à 07:11
> > Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> > AbstractMetaDataFactory
> > To: commits@openwebbeans.apache.org <co...@openwebbeans.apache.org>
> >
> >
> > This is an automated email from the ASF dual-hosted git repository.
> >
> > gerdogdu pushed a commit to branch master
> > in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
> >
> >
> > The following commit(s) were added to refs/heads/master by this push:
> >      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
> >      new ff4c809  Merge branch 'master' of
> > https://github.com/apache/openwebbeans
> > b812c6f <https://github.com/apache/openwebbeansb812c6f> is described
> below
> >
> > commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> > Author: Gurkan Erdogdu <cg...@gmail.com>
> > AuthorDate: Wed Jun 10 08:10:54 2020 +0300
> >
> >     OWB-1328 NPE in AbstractMetaDataFactory
> > ---
> >  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> > ++++++++++-----
> >  1 file changed, 10 insertions(+), 5 deletions(-)
> >
> > diff --git
> >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > index 44febe9..c011670 100644
> > ---
> >
> >
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > +++
> >
> >
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> > @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
> >
> >  import javax.decorator.Decorator;
> >  import javax.interceptor.Interceptor;
> > +
> > +import java.io.File;
> >  import java.io.IOException;
> >  import java.lang.annotation.Annotation;
> >  import java.net.URL;
> > @@ -283,11 +285,14 @@ public abstract class AbstractMetaDataDiscovery
> > implements BdaScannerService
> >              else
> >              {
> >                  // we could check for
> > META-INF/maven/org.apache.geronimo.specs presence there but this is
> faster
> > -                final String filename = Files.toFile(url).getName();
> > -                if (filename.startsWith("geronimo-") &&
> > filename.contains("_spec"))
> > -                {
> > -                    it.remove();
> > -                }
> > +                File file = Files.toFile(url);
> > +                if(file!= null && file.exists()) {
> > +                    final String filename = file.getName();
> > +                    if (filename.startsWith("geronimo-") &&
> > filename.contains("_spec"))
> > +                    {
> > +                        it.remove();
> > +                    }
> > +                }
> >              }
> >          }
> >      }
> >
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Re: [openwebbeans] branch master updated: OWB-1328 NPE in AbstractMetaDataFactory

Posted by Gurkan Erdogdu <cg...@gmail.com>.
Hi Romain
I will look into geronimo-xbean.
In the mean time, I have a question:
I try to run TestNG plugin in Eclipse but because of javax -> jakarta maven
shading, I am not able to launch the tests via this plugin. It throws
errors like

INFO: CDI-TCK Specification version: null
java.lang.NoClassDefFoundError: javax/el/ExpressionFactory

Do you have any experience on this? I like to use this plugin to see
visually the tests....
Regards.
Gurkan


On Wed, Jun 10, 2020 at 9:09 AM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Hi Gurkan,
>
> Any way to test it and maybe harness it in geronimo xbean?
> Typically it can only happen if the URL is wrongly formatted (means we
> should port a fix in xbean too) or the protocol is not supported (likely
> means a missing exclusion or new protocol handling in xbean).
> I saw some issues with .so in the past in tests but never managed to
> reproduce it  and I know jrt brings a new protocol but thought we excluded
> it by default so if can confirm this case and if you have a few pointers it
> would be great, I would be happy to do the work in xbean about it.
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> ---------- Forwarded message ---------
> De : <ge...@apache.org>
> Date: mer. 10 juin 2020 à 07:11
> Subject: [openwebbeans] branch master updated: OWB-1328 NPE in
> AbstractMetaDataFactory
> To: commits@openwebbeans.apache.org <co...@openwebbeans.apache.org>
>
>
> This is an automated email from the ASF dual-hosted git repository.
>
> gerdogdu pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
>
>
> The following commit(s) were added to refs/heads/master by this push:
>      new b812c6f  OWB-1328 NPE in AbstractMetaDataFactory
>      new ff4c809  Merge branch 'master' of
> https://github.com/apache/openwebbeans
> b812c6f <https://github.com/apache/openwebbeansb812c6f> is described below
>
> commit b812c6ff7db69723d692efa1efd4dca00fd73c2a
> Author: Gurkan Erdogdu <cg...@gmail.com>
> AuthorDate: Wed Jun 10 08:10:54 2020 +0300
>
>     OWB-1328 NPE in AbstractMetaDataFactory
> ---
>  .../corespi/scanner/AbstractMetaDataDiscovery.java        | 15
> ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
>
> diff --git
>
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
>
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> index 44febe9..c011670 100644
> ---
>
> a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> +++
>
> b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
> @@ -43,6 +43,8 @@ import org.apache.xbean.finder.util.Files;
>
>  import javax.decorator.Decorator;
>  import javax.interceptor.Interceptor;
> +
> +import java.io.File;
>  import java.io.IOException;
>  import java.lang.annotation.Annotation;
>  import java.net.URL;
> @@ -283,11 +285,14 @@ public abstract class AbstractMetaDataDiscovery
> implements BdaScannerService
>              else
>              {
>                  // we could check for
> META-INF/maven/org.apache.geronimo.specs presence there but this is faster
> -                final String filename = Files.toFile(url).getName();
> -                if (filename.startsWith("geronimo-") &&
> filename.contains("_spec"))
> -                {
> -                    it.remove();
> -                }
> +                File file = Files.toFile(url);
> +                if(file!= null && file.exists()) {
> +                    final String filename = file.getName();
> +                    if (filename.startsWith("geronimo-") &&
> filename.contains("_spec"))
> +                    {
> +                        it.remove();
> +                    }
> +                }
>              }
>          }
>      }
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com