On 7/15/07, Mike Edwards <[EMAIL PROTECTED]> wrote:

Rob,

I'm having a bit of trouble understanding exactly what you are trying to
do.  Could you post some of your code so that we get a better idea of
what is going on, please?


Yours,  Mike.

Robert Young wrote:
> Hi,
>
> I am running Tuscany within a Tomcat web project and I am getting the
> following exception
> Caused by: java.lang.NullPointerException
>        at
> commonj.sdo.impl.HelperProvider.getDefaultContext(HelperProvider.java
:379)
>        ...
> I am guessing this is to do with trying to return a complex type from
> one of my services which is being exposed over JSONRPC. In this
> situation do I have to use SDO or are there other, simpler options?
>
> Cheers
> Rob
>
> ---------------------------------------------------------------------
> 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]

Hi Rob

I came across a problem when returning SDOs from services exposed with the
JSONRPC binding ( http://issues.apache.org/jira/browse/TUSCANY-1337) that is
not fixed yet. In my case it was to do with returning types represented by
generated SDO classes. The JSONRPC binding was struggling trying to
serialize the underlying EMF classes. I wasn't getting a NPE though. As Mike
says if you could provide a bit more detail of your scenario we can work out
if this is the same problem or a new one.

As a work round I created a class to represent the complex type manually and
returned that.

Regards

Simon

Reply via email to