Hi Frank, I've just run "svn update" followed by "mvn" in sdo-api, sdo, then cts and I still get the same error.
I'll file a JIRA for adding the test to the UnderReviewTestSuite for now, so that others can try running this. Thanks, Andy. -----Original Message----- From: Frank Budinsky [mailto:[EMAIL PROTECTED] Sent: 26 April 2007 14:39 To: [email protected] Subject: Re: [CTS] Sequence support question Hi Andy, At first glance, it looks like a Tuscany bug. Are you sure you've got the latest Tuscany code from HEAD? Support for this was recently added (about a week ago). Thanks, Frank. "Andy Grove" <[EMAIL PROTECTED]> wrote on 04/26/2007 04:07:31 AM: > I'm currently porting one of Rogue Wave's tests for SDO sequence > support over to the CTS and I've encountered an error when running > this against Tuscany. > > The code defines an open, sequenced type, e.g. > > DataObject typeDef = dataFactory.create( "commonj.sdo", "Type" > ); > typeDef.set( "uri", "http://www.example.com/cts/SequenceAddTest" > ); > typeDef.set( "name", "OpenDataObject" ); > typeDef.set( "open", true ); > typeDef.set( "sequenced", true ); > Type openType = typeHelper.define( typeDef ); > > And then attempts to add a value to the sequence: > > Sequence testSequence = testOpenDataObject.getSequence(); > testSequence.add("testBoolean1", Boolean.TRUE); > > This results in a NullPointerException in the EMF library: > > 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:11 > 01 > ) > at > org.apache.tuscany.sdo.util.BasicSequence.add(BasicSequence.java:90) > at > test.sdo21.tests.api.SequenceAddTest.testAddBooleanByName(SequenceAddT > es > t.java:80) > > Is this a bug in Tuscany or am I doing something wrong in my code? > > Thanks, > > Andy. --------------------------------------------------------------------- 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]
