Another Hmmm moment,
the only insight I can offer, is that the source attachment that I have
registered against my EMF 2.2.2 jars (which I'm pretty sure is the source
distribution associated with the 2.2.2 release) shows the top level caller
in the stack frame snippet you provided as being a blank line,  i.e. the
BasicSequence Code is

 protected EStructuralFeature getEStructuralFeature(int propertyIndex)
 {
   return
(EStructuralFeature)DataObjectUtil.getProperty((DataObject)featureMap.getEObject(),
propertyIndex);
 }
****   this is line 105 ****
 public boolean add(String propertyName, Object value)
 {
   return featureMap.add(getEStructuralFeature(propertyName, value),
value);
 }

the other line numbers reported seem to be sensible,  and if true then it
would seem that the EMF eStructuralFeature which underpins the SDO Property
that we are trying to add to the Sequence is null.

Kelvin.



On 04/05/07, Andy Grove <[EMAIL PROTECTED]> wrote:


I've set up Eclipse following the instructions and that worked smoothly.

However, I get the same results as I do when running via mvn:

Tests run: 398, Failures: 7, Errors: 29, Skipped: 3

I'm concerned that I'm seeing 29 errors when others obviously aren't
seeing this. Do you have any suggestions why this might be the case?

Most of the failures seem to be due:

java.lang.NullPointerException
        at
org.eclipse.emf.ecore.util.FeatureMapUtil.isFeatureMap(FeatureMapUtil.ja
va:120)
        at
org.eclipse.emf.ecore.util.BasicFeatureMap.add(BasicFeatureMap.java:1071
)
        at
org.apache.tuscany.sdo.util.BasicSequence.add(BasicSequence.java:105)

Thanks,

Andy.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of kelvin goodson
Sent: 04 May 2007 10:06
To: tuscany-dev@ws.apache.org
Subject: Re: [Java SDO CTS] running the CTS inside eclipse

Hmmm,  I'm can't offer any insights into mavens behaviour,  as I
consistently get 0 tests run,  however, I have updated the wiki page [1]
to show how to set up Eclipse to run the test in the way I described
above.
Any comments on the update would be most welcome.  I alos opened a Jira
and referecned it from the wiki page to alert unsuspecting users to the
fact that there is an issue.

It strikes me that we could perhaps do with factoring out the generic
instructions on how to configure the M2_REPO variable, and how to import
a maven created project into eclipse,  so that these could be referenced
from various locations.  We currently have two SDO pages replicating
this content,  and I guess DAS and SCA may have similar somewhere.

[1] http://cwiki.apache.org/confluence/display/TUSCANY/SDO+CTS

Regards, Kelvin.

On 04/05/07, Andy Grove <[EMAIL PROTECTED]> wrote:
>
>
> And for some reason, I get this output - most of the SequenceAdd*Test
> tests are failing for me. There certainly seems to be an element of
> randomness in the whole thing when run using mvn.
>
> Tests run: 398, Failures: 5, Errors: 29, Skipped: 3
>
> -----Original Message-----
> From: ant elder [mailto:[EMAIL PROTECTED]
> Sent: 04 May 2007 09:07
> To: tuscany-dev@ws.apache.org; [EMAIL PROTECTED]
> Subject: Re: [Java SDO CTS] running the CTS inside eclipse
>
> On 5/3/07, kelvin goodson <[EMAIL PROTECTED]> wrote:
>
> <snip/>
>
> BTW We still have the issue that many of us don't see any test run
> under
> > maven,  which is not a show-stopper but would be nice to fix.  Has
> > anyone who has this running thought of any extra steps they took to
> > configure their environment?
>
>
> I've done nothing special and when I run them i get: Tests run: 398,
> Failures: 3, Errors: 6, Skipped: 3
>
> The console log for that is: http://rafb.net/p/9EWCrM63.html
>
> What do others console logs show?
>
>    ...ant
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to