You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Dain Sundstrom <da...@iq80.com> on 2007/02/11 19:59:16 UTC
Re: EjbModuleBuilder passing in null arguments to buildEnvironemnt
Moving to dev@geronimo from tck list as this is non tck related.
On Feb 11, 2007, at 10:26 AM, Sachin Patel wrote:
> EjbModuleBuilder is passing in null for both the spec and G plans.
> David what is the intent here?
>
> if (ejbModule.getEjbJar().getAssemblyDescriptor() != null) {
> namingBuilder.buildEnvironment(null, null, environment);
> }
I wrote this code.
We agreed on the dev list that all naming builders would be hard
coded to always add their environment. This is because we must build
the environment before we have a class loader and we do not know what
refs a bean has until we have a class loader (due to the need for
annotation scanning).
Since they are hard coded to always add their environiment, there
should be no inspection of the spec or vendor plans and null is ok.
In the case of EjbModuleBuilder we have not have the XMLBeans trees
at that point in the build so we can not pass in valid args anyway.
As for your specific problem:
Caused by: java.lang.NullPointerException
at
org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder.buildEn
vironment(SwitchingServiceRefBuilder.java:76)
at
org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder$
$FastClassByCGLIB$$c7ee5732.invoke(<generated>)
The SwitchingServiceRefBuilder is inspecting the XMLBeans tree
looking for jaxrpc and jaxws references which is not allowed. That
builder should be hard coded to always add the dependencies.
-dain
Re: EjbModuleBuilder passing in null arguments to buildEnvironemnt
Posted by Sachin Patel <sp...@gmail.com>.
Thanks Jarek!
-sachin
On Feb 11, 2007, at 11:14 PM, Jarek Gawor wrote:
> Created https://issues.apache.org/jira/browse/GERONIMO-2821 with a
> patch that should fix this issue.
>
> Jarek
>
> On 2/11/07, Dain Sundstrom <da...@iq80.com> wrote:
>> Moving to dev@geronimo from tck list as this is non tck related.
>>
>> On Feb 11, 2007, at 10:26 AM, Sachin Patel wrote:
>>
>> > EjbModuleBuilder is passing in null for both the spec and G plans.
>> > David what is the intent here?
>> >
>> > if (ejbModule.getEjbJar().getAssemblyDescriptor() != null) {
>> > namingBuilder.buildEnvironment(null, null, environment);
>> > }
>>
>> I wrote this code.
>>
>> We agreed on the dev list that all naming builders would be hard
>> coded to always add their environment. This is because we must build
>> the environment before we have a class loader and we do not know what
>> refs a bean has until we have a class loader (due to the need for
>> annotation scanning).
>>
>> Since they are hard coded to always add their environiment, there
>> should be no inspection of the spec or vendor plans and null is ok.
>> In the case of EjbModuleBuilder we have not have the XMLBeans trees
>> at that point in the build so we can not pass in valid args anyway.
>>
>> As for your specific problem:
>>
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder.buil
>> dEn
>> vironment(SwitchingServiceRefBuilder.java:76)
>> at
>> org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder$
>> $FastClassByCGLIB$$c7ee5732.invoke(<generated>)
>>
>> The SwitchingServiceRefBuilder is inspecting the XMLBeans tree
>> looking for jaxrpc and jaxws references which is not allowed. That
>> builder should be hard coded to always add the dependencies.
>>
>> -dain
>>
>>
Re: EjbModuleBuilder passing in null arguments to buildEnvironemnt
Posted by Jarek Gawor <jg...@gmail.com>.
Created https://issues.apache.org/jira/browse/GERONIMO-2821 with a
patch that should fix this issue.
Jarek
On 2/11/07, Dain Sundstrom <da...@iq80.com> wrote:
> Moving to dev@geronimo from tck list as this is non tck related.
>
> On Feb 11, 2007, at 10:26 AM, Sachin Patel wrote:
>
> > EjbModuleBuilder is passing in null for both the spec and G plans.
> > David what is the intent here?
> >
> > if (ejbModule.getEjbJar().getAssemblyDescriptor() != null) {
> > namingBuilder.buildEnvironment(null, null, environment);
> > }
>
> I wrote this code.
>
> We agreed on the dev list that all naming builders would be hard
> coded to always add their environment. This is because we must build
> the environment before we have a class loader and we do not know what
> refs a bean has until we have a class loader (due to the need for
> annotation scanning).
>
> Since they are hard coded to always add their environiment, there
> should be no inspection of the spec or vendor plans and null is ok.
> In the case of EjbModuleBuilder we have not have the XMLBeans trees
> at that point in the build so we can not pass in valid args anyway.
>
> As for your specific problem:
>
> Caused by: java.lang.NullPointerException
> at
> org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder.buildEn
> vironment(SwitchingServiceRefBuilder.java:76)
> at
> org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder$
> $FastClassByCGLIB$$c7ee5732.invoke(<generated>)
>
> The SwitchingServiceRefBuilder is inspecting the XMLBeans tree
> looking for jaxrpc and jaxws references which is not allowed. That
> builder should be hard coded to always add the dependencies.
>
> -dain
>
>
Re: EjbModuleBuilder passing in null arguments to buildEnvironemnt
Posted by Sachin Patel <sp...@gmail.com>.
thx for the explanation.
-sachin
On Feb 11, 2007, at 1:59 PM, Dain Sundstrom wrote:
> Moving to dev@geronimo from tck list as this is non tck related.
>
> On Feb 11, 2007, at 10:26 AM, Sachin Patel wrote:
>
>> EjbModuleBuilder is passing in null for both the spec and G
>> plans. David what is the intent here?
>>
>> if (ejbModule.getEjbJar().getAssemblyDescriptor() != null) {
>> namingBuilder.buildEnvironment(null, null, environment);
>> }
>
> I wrote this code.
>
> We agreed on the dev list that all naming builders would be hard
> coded to always add their environment. This is because we must
> build the environment before we have a class loader and we do not
> know what refs a bean has until we have a class loader (due to the
> need for annotation scanning).
>
> Since they are hard coded to always add their environiment, there
> should be no inspection of the spec or vendor plans and null is
> ok. In the case of EjbModuleBuilder we have not have the XMLBeans
> trees at that point in the build so we can not pass in valid args
> anyway.
>
> As for your specific problem:
>
> Caused by: java.lang.NullPointerException
> at
> org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder.build
> Environment(SwitchingServiceRefBuilder.java:76)
> at
> org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder$
> $FastClassByCGLIB$$c7ee5732.invoke(<generated>)
>
> The SwitchingServiceRefBuilder is inspecting the XMLBeans tree
> looking for jaxrpc and jaxws references which is not allowed. That
> builder should be hard coded to always add the dependencies.
>
> -dain
>