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]
> >
> >
>

Reply via email to