Hi,

i guess you add something which is not built in since we never had this one
and we use several resolvers. But globally i think you are right. That said
that's more a geronimo issue ATM since they hold the apache spec jar and we
just shade them to get a javaee-api jar (easier to use).

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/12 Walz, Michael <[email protected]>

> Hi!
>
> I've got a problem with "javax.el.CompositeELResolver" which is used by
> TomEE's "javaee-api-6.0-5.jar".
>
> Version information and svn-repository here:
> http://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-el_2.2_spec/1.0.2
> Source of class CompositeELResolver here:
> http://svn.apache.org/viewvc/geronimo/specs/tags/geronimo-el_2.2_spec-1.0.2/src/main/java/javax/el/CompositeELResolver.java?view=log
>
>
> In the "invoke" method I get a null pointer exception because the for-loop
> iterates through the whole resolvers-array which has got fields with value
> "null". I suppose this is not avoidable because of the "add" method that
> doubles the array size if required but does not initialize any values.
> Shouldn't there be a check if the resolver is "null" in the "invoke" method
> before using it?
>
>
> For comparison I ran my application with another  javax.el implementation
> and it's working properly:
>
> <dependency>
>   <groupId>javax.el</groupId>
>   <artifactId>el-api</artifactId>
>   <version>2.2</version>
> </dependency>
>
>
> Am I wrong with my supposition?
>
>
> I found a similar-sounding issue here:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50293
>
> Is it possible that multi-threading causes my problem?
>
>
>
> Best regards
>
> Michael Walz
>
>

Reply via email to