You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Aristedes Maniatis <ar...@ish.com.au> on 2008/01/22 09:17:00 UTC

MissingSessionException

OK, I've got one more client/server issue which arose when I upgraded  
our code to 3.0M3 and used the server/client Cayenne jars (I  
previously had the full jar at both ends).  
org.apache.cayenne.remote.service.MissingSessionException is not  
available on the client.

We use it on the client like this to detect a lost connection:

if (e.getCause() instanceof MissingSessionException) ....


but this has never actually worked, so perhaps I've misunderstood its  
purpose.

* should this be available on the client? I'd think that any exception  
which might be propagated across Hessian should be available on the  
client.
* should it be working as I've used above?



Cheers
Ari





-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A



Re: MissingSessionException

Posted by Tore Halset <ha...@pvv.ntnu.no>.
On Jan 22, 2008, at 12:01 , Andrus Adamchik wrote:

> If this exception is to be caught on the client (and if it works), I  
> suggest we move it to the "org.apache.cayenne.remote" package to  
> indicate that it needs to be present on both server and client.

That would be great. I would prefer someone else (than me) fixing this  
as I do not have any java ROP client.

  - Tore.

>
>
> Andrus
>
>
> On Jan 22, 2008, at 10:30 AM, Tore Halset wrote:
>
>> Hello.
>>
>> I think I added MissingSessionException on the serverside to  
>> support the cocoa client. It is working for the cocoa client, but I  
>> do not think I tested it with a normal java ROP client.
>>
>> - Tore.
>>
>> On Jan 22, 2008, at 9:17 , Aristedes Maniatis wrote:
>>
>>> OK, I've got one more client/server issue which arose when I  
>>> upgraded our code to 3.0M3 and used the server/client Cayenne jars  
>>> (I previously had the full jar at both ends).  
>>> org.apache.cayenne.remote.service.MissingSessionException is not  
>>> available on the client.
>>>
>>> We use it on the client like this to detect a lost connection:
>>>
>>> if (e.getCause() instanceof MissingSessionException) ....
>>>
>>>
>>> but this has never actually worked, so perhaps I've misunderstood  
>>> its purpose.
>>>
>>> * should this be available on the client? I'd think that any  
>>> exception which might be propagated across Hessian should be  
>>> available on the client.
>>> * should it be working as I've used above?
>>>
>>>
>>>
>>> Cheers
>>> Ari
>>>
>>>
>>>
>>>
>>>
>>> -------------------------->
>>> ish
>>> http://www.ish.com.au
>>> Level 1, 30 Wilson Street Newtown 2042 Australia
>>> phone +61 2 9550 5001   fax +61 2 9550 4001
>>> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>>>
>>>
>>>
>>
>>
>
>


Re: MissingSessionException

Posted by Andrus Adamchik <an...@objectstyle.org>.
If this exception is to be caught on the client (and if it works), I  
suggest we move it to the "org.apache.cayenne.remote" package to  
indicate that it needs to be present on both server and client.

Andrus


On Jan 22, 2008, at 10:30 AM, Tore Halset wrote:

> Hello.
>
> I think I added MissingSessionException on the serverside to support  
> the cocoa client. It is working for the cocoa client, but I do not  
> think I tested it with a normal java ROP client.
>
> - Tore.
>
> On Jan 22, 2008, at 9:17 , Aristedes Maniatis wrote:
>
>> OK, I've got one more client/server issue which arose when I  
>> upgraded our code to 3.0M3 and used the server/client Cayenne jars  
>> (I previously had the full jar at both ends).  
>> org.apache.cayenne.remote.service.MissingSessionException is not  
>> available on the client.
>>
>> We use it on the client like this to detect a lost connection:
>>
>> if (e.getCause() instanceof MissingSessionException) ....
>>
>>
>> but this has never actually worked, so perhaps I've misunderstood  
>> its purpose.
>>
>> * should this be available on the client? I'd think that any  
>> exception which might be propagated across Hessian should be  
>> available on the client.
>> * should it be working as I've used above?
>>
>>
>>
>> Cheers
>> Ari
>>
>>
>>
>>
>>
>> -------------------------->
>> ish
>> http://www.ish.com.au
>> Level 1, 30 Wilson Street Newtown 2042 Australia
>> phone +61 2 9550 5001   fax +61 2 9550 4001
>> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>>
>>
>>
>
>


Re: MissingSessionException

Posted by Tore Halset <ha...@pvv.ntnu.no>.
Hello.

I think I added MissingSessionException on the serverside to support  
the cocoa client. It is working for the cocoa client, but I do not  
think I tested it with a normal java ROP client.

  - Tore.

On Jan 22, 2008, at 9:17 , Aristedes Maniatis wrote:

> OK, I've got one more client/server issue which arose when I  
> upgraded our code to 3.0M3 and used the server/client Cayenne jars  
> (I previously had the full jar at both ends).  
> org.apache.cayenne.remote.service.MissingSessionException is not  
> available on the client.
>
> We use it on the client like this to detect a lost connection:
>
> if (e.getCause() instanceof MissingSessionException) ....
>
>
> but this has never actually worked, so perhaps I've misunderstood  
> its purpose.
>
> * should this be available on the client? I'd think that any  
> exception which might be propagated across Hessian should be  
> available on the client.
> * should it be working as I've used above?
>
>
>
> Cheers
> Ari
>
>
>
>
>
> -------------------------->
> ish
> http://www.ish.com.au
> Level 1, 30 Wilson Street Newtown 2042 Australia
> phone +61 2 9550 5001   fax +61 2 9550 4001
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>
>
>