[ 
https://issues.apache.org/activemq/browse/SM-441?page=comments#action_36223 ] 

Guillaume Nodet commented on SM-441:
------------------------------------

This bug has already been fixed one week ago ;)
See http://svn.apache.org/viewvc?rev=409084&view=rev
Are you sure you use the latest snapshot ? 
I will redeploy new ones just in case.

> NullPointerException of retrieveInterfaceFromSUDescriptor in 
> EndpointRegistry.java
> ----------------------------------------------------------------------------------
>
>          Key: SM-441
>          URL: https://issues.apache.org/activemq/browse/SM-441
>      Project: ServiceMix
>         Type: Bug

>   Components: servicemix-core
>     Versions: 3.0-M2
>  Environment: linux redhat 9
>     Reporter: Freeman Fang
>  Attachments: Services.java
>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> I am a member of celtix team and doing integration between celtix and 
> servicemix.
> I just develop my ServiceEngine Component and Service Unit demo and try to 
> develop it into ServiceMix. I am using the latest nightly binary kit which is 
> incubating-servicemix-3.0-SNAPSHOT.zip.
> But I get NullPointerException when I try to start service assembly.
> The exception was thrown at line ****  *****
> if (services != null) {
>                 Provides[] provides = services.getProvides();
> ************ for (int j = 0; j < provides.length; j++) { *************
> The problem is that variable "provides" was not checked null or not. In fact, 
> this variable would be null always since services.setProvides() method is 
> never called in the whole code base.
> I modify Services.java a little bit which can make my demo works with 
> ServiceMix
> codebase:
> private Provides[] provides;
> private Consumes[] consumes;
> my change:
> private Provides[] provides = new Provides[0];
> private Consumes[] consumes = new Consumes[0];
> Just makesure provides is not null.
> The attachment is Services.java I modified.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to