It seems to go off into the sdo xmlhelper which inturn further goes into
emf-ecore-xmi-2.2.3 classes.  I couldn't get the concise source for this and
ended up downloading
http://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/downloads/drops/2.2.3/R200705141058/emf-sdo-xsd-SDK-2.2.3.zipand
extracting the source.

- Venkat

On 9/21/07, Raymond Feng <[EMAIL PROTECTED]> wrote:
>
> I don't see this problem.
>
> Which EMF version are you seeing? The 'billTo' is an unqualified element
> under the 'purchaseOrder' element and the namespace URI is null.
>
> Thanks,
> Raymond
>
> ----- Original Message -----
> From: "Venkata Krishnan" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, September 21, 2007 12:10 AM
> Subject: Re: Trunk : Null pointer exception in SCA Data binding for SDO
>
>
> > Hi,
> >
> > Further looking, it seems like the namespaceUri for 'billTo' child
> element
> > is null and down there in the emf there is some code that does
> > namespaceUri.length() and thats the source for the NPE.  Am I alone in
> > this
> > problem ?  Where could I be going wrong ?
> >
> > - Venkat
> >
> >
> >
> > On 9/21/07, Venkata Krishnan <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Raymond, thanks for responding.  This seems like something weird as
> it
> >> fails somewhere in the emf code.  I am trying to debug further.. here
> is
> >> a
> >> bit more of the stack...
> >>
> >>
> -----------------------------------------------------------------------------------------------------------
> >>
> >> java.lang.NullPointerException
> >>     at
> >>
> org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement
> >> (SDOXMLResourceImpl.java:390)
> >>     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.traverse (
> >> XMLLoadImpl.java:529)
> >>     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.traverse(
> >> XMLLoadImpl.java:534)
> >>     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.traverse(
> >> XMLLoadImpl.java:518)
> >>     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load (
> XMLLoadImpl.java
> >> :405)
> >>     at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
> >> XMLResourceImpl.java:606)
> >>     at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(
> >> XMLResourceImpl.java:577)
> >>     at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load (
> >> XMLDocumentImpl.java:249)
> >>     at
> >> org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java
> >> :113)
> >>     at org.apache.tuscany.sca.databinding.sdo.Node2DataObject.transform
> (
> >> Node2DataObject.java:46)
> >>     at
> >>
> org.apache.tuscany.sca.databinding.sdo.DataObject2NodeTestCase.testTransform
> (
> >> DataObject2NodeTestCase.java:53)
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >>     at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
> >>
> >>
> ---------------------------------------------------------------------------------------------------------------
> >>
> >> Thanks
> >>
> >> - Venkat
> >>
> >> On 9/20/07, Raymond Feng <[EMAIL PROTECTED]> wrote:
> >> >
> >> > Hi, Venkat.
> >> >
> >> > Can you provide the full stacktrace? If you can debug out which
> >> > variable
> >> > is
> >> > null, it would be even better.
> >> >
> >> > Thanks,
> >> > Raymond
> >> >
> >> > ----- Original Message -----
> >> > From: "Venkata Krishnan" < [EMAIL PROTECTED]>
> >> > To: <[email protected]>
> >> > Sent: Thursday, September 20, 2007 9:15 AM
> >> > Subject: Trunk : Null pointer exception in SCA Data binding for SDO
> >> >
> >> >
> >> > > Hi,
> >> > >
> >> > > Is anything seeing on the trunk ?  I updated and am trying a clean
> >> > build.
> >> > >
> >> > > testTransform(
> >> > org.apache.tuscany.sca.databinding.sdo.DataObject2NodeTestCase)
> >> > > Time elapsed: 0.02 sec  <<< ERROR!
> >> > > org.apache.tuscany.sca.databinding.TransformationException:
> >> > > java.lang.NullPointerException
> >> > >        at
> >> > > org.apache.tuscany.sca.databinding.sdo.Node2DataObject.transform (
> >> > > Node2DataObject.java:47)
> >> > >        at
> >> > >
> >> >
> org.apache.tuscany.sca.databinding.sdo.DataObject2NodeTestCase.testTransform
> >> > > (DataObject2NodeTestCase.java
> >> > > 53)
> >> > >
> >> > > Thanks
> >> > >
> >> > > - Venkat
> >> > >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > 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