On Thu, Jul 21, 2011 at 11:39 AM, Luciano Resende <[email protected]>wrote:

> On Wed, Jul 20, 2011 at 12:52 PM, Subash Chaturanga <[email protected]>
> wrote:
> > Hi all,
> >
> > I have added a JUnit test case to invoke the Generic Face Recognition
> > services . The test
> > case
> org.apache.photark.face.facebook.test.GenericFaceRecognitionTestCase, is
> > under @Ignore. Because there is some issue which I couldn't figured out.
> So
> > it will be great if that can be checked and try to figure out what the
> issue
> > is.
> > The problem can be an issue with the way I approach to invoke a typical
> SCA
> > component from a Java class.
> >
> > FYI: This test case is under the revision 1145680 in phot-ark trunk.
> >
> > Regards
> > --
> > Subash Chaturanga
> > Department of Computer Science & Engineering
> > University of Moratuwa
> > Sri Lanka
> >
> > Blog -  http://subashsdm.blogspot.com/
> > Twitter - http://twitter.com/subash89
> >
>
> Couple things I noticed :
>
> - Missing node-impl dependency with test scope
> - Missing composite file in the project (which is the sac
> contribution). The web.composite is only used for the webapp module
> and not visible for the jar
>
>
> I fixed these issues, the test now runs if you remove the @Ignore, but
> then there is a NPE in the service implementation as the
> defaultFaceClient does not seem to be initialized.
>
> Please let me know if you can make some progress now.
>
>
I was looking on it. And the code breaks from the line under   @BeforeClass

node.start();

But the service init happens in the test case from the line

       FaceRecognitionService defaultFaceClient =

(FaceRecognitionService)node.getService(FaceRecognitionService.class,
"FaceRecognitionService");

 which is seems correct as getService arguments are correct. Still couldn't
figure out what the issue is.

Regards

>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>



-- 
Subash Chaturanga
Department of Computer Science & Engineering
University of Moratuwa
Sri Lanka

Blog -  http://subashsdm.blogspot.com/
Twitter - http://twitter.com/subash89

Reply via email to