Re: [JBoss-user] problem with stateful session bean

2002-04-12 Thread Marius Kotsbak

OK. I probably get this because of exceptions or timed out sessions
during testing.


On fre, 2002-04-12 at 10:32, Sternagel Annegret (SYS/PE) wrote:
> Which jboss version ?
> 
> If You access an instance of a SFSB and jboss can't access it jboss tries to
> activate it.
> The cause jboss can't access the bean can be
> 
> - the bean has been passivated 
>   => activate should be successfull
> - a previous method call has thrown a java.rmi.RemoteException or
> RunTimeException
>   => jboss has discarded the bean, no .ser file exists
>   => error on activate
> - the bean has been removed autoamtically, 
>   default time for removal in jboss 2.4.x is after 30 minutes
>   => bean no longer available, no .ser file exists
>   => error on activate
> 
> The error only says that the .ser file does not exist but not what the
> initial problem is.
> 
> Hope this helps.
> 
> 
> Annegret
> 
> 
> -Ursprüngliche Nachricht-
> Von: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 11. April 2002 22:24
> An: Joost v.d. Wijgerd
> Cc: Leonard Wolters; [EMAIL PROTECTED]
> Betreff: RE: [JBoss-user] problem with stateful session bean
> 
> 
> I often see the same error. Not sure if it is excactly the same, but it
> complains of not finding a file.ser. My beans seems to work ok
> though
> 
> Maybe this should be reported as a bug if noone can explain it?
> 
> On tor, 2002-04-11 at 17:20, Joost v.d. Wijgerd wrote:
> > Leo,
> > 
> > Maybe your bean is invalidated because you get a Runtime exception
> somewhere in your code but you keep using the instance?
> > 
> > cheer,
> > 
> > Joost :-)
> > 
> > -Original Message-
> > From: Leonard Wolters 
> > Sent: Thursday, April 11, 2002 4:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] problem with stateful session bean
> > 
> > 
> > 
> > Hello,
> > 
> > I have a problem with stateful session beans.
> > After successfully deploying this bean, I'm able
> > to access this bean and call any method. However,
> > when calling a second method, I receive a '
> > NoSuchObjectException' (see below). 
> > 
> > [j2eejunit] RemoteException occurred in server thread; nested exception
> is:
> > [j2eejunit] java.rmi.NoSuchObjectException: Could not activate; nested
> exception is:
> > [j2eejunit] java.io.FileNotFoundException:
> D:\development\java\rkm\JBoss-Tomcat\jboss\db\sessions\smarthaven.doccompare
> .DocumentComparat
> > or\101852411.ser (The system cannot find the file specified)
> > 
> > 
> > As one can see, JBoss is trying to 'activate' my session bean
> > (or something else ?) This however is quite strange since my 
> > session bean has not been passivated yet ! BTW: both methods 
> > are called directly after each other, i.e. within milliseconds.
> > 
> > Most probably, i'm forgetting something in the deployment descriptor.
> > It seems that for any method call a new session bean is created ?
> > 
> > Does anyone has any suggestions what the problem can be ?
> > 
> > T.i.a.,
> > 
> > Leonard Wolters
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problem with stateful session bean

2002-04-12 Thread Sternagel Annegret (SYS/PE)

Which jboss version ?

If You access an instance of a SFSB and jboss can't access it jboss tries to
activate it.
The cause jboss can't access the bean can be

- the bean has been passivated 
  => activate should be successfull
- a previous method call has thrown a java.rmi.RemoteException or
RunTimeException
  => jboss has discarded the bean, no .ser file exists
  => error on activate
- the bean has been removed autoamtically, 
  default time for removal in jboss 2.4.x is after 30 minutes
  => bean no longer available, no .ser file exists
  => error on activate

The error only says that the .ser file does not exist but not what the
initial problem is.

Hope this helps.


Annegret


-Ursprüngliche Nachricht-
Von: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. April 2002 22:24
An: Joost v.d. Wijgerd
Cc: Leonard Wolters; [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] problem with stateful session bean


I often see the same error. Not sure if it is excactly the same, but it
complains of not finding a file.ser. My beans seems to work ok
though

Maybe this should be reported as a bug if noone can explain it?

On tor, 2002-04-11 at 17:20, Joost v.d. Wijgerd wrote:
> Leo,
> 
> Maybe your bean is invalidated because you get a Runtime exception
somewhere in your code but you keep using the instance?
> 
> cheer,
> 
> Joost :-)
> 
> -Original Message-
> From: Leonard Wolters 
> Sent: Thursday, April 11, 2002 4:39 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] problem with stateful session bean
> 
> 
> 
> Hello,
> 
> I have a problem with stateful session beans.
> After successfully deploying this bean, I'm able
> to access this bean and call any method. However,
> when calling a second method, I receive a '
> NoSuchObjectException' (see below). 
> 
> [j2eejunit] RemoteException occurred in server thread; nested exception
is:
> [j2eejunit] java.rmi.NoSuchObjectException: Could not activate; nested
exception is:
> [j2eejunit] java.io.FileNotFoundException:
D:\development\java\rkm\JBoss-Tomcat\jboss\db\sessions\smarthaven.doccompare
.DocumentComparat
> or\101852411.ser (The system cannot find the file specified)
> 
> 
> As one can see, JBoss is trying to 'activate' my session bean
> (or something else ?) This however is quite strange since my 
> session bean has not been passivated yet ! BTW: both methods 
> are called directly after each other, i.e. within milliseconds.
> 
> Most probably, i'm forgetting something in the deployment descriptor.
> It seems that for any method call a new session bean is created ?
> 
> Does anyone has any suggestions what the problem can be ?
> 
> T.i.a.,
> 
> Leonard Wolters
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] problem with stateful session bean

2002-04-11 Thread Marius Kotsbak

I often see the same error. Not sure if it is excactly the same, but it
complains of not finding a file.ser. My beans seems to work ok
though

Maybe this should be reported as a bug if noone can explain it?

On tor, 2002-04-11 at 17:20, Joost v.d. Wijgerd wrote:
> Leo,
> 
> Maybe your bean is invalidated because you get a Runtime exception somewhere in your 
>code but you keep using the instance?
> 
> cheer,
> 
> Joost :-)
> 
> -Original Message-
> From: Leonard Wolters 
> Sent: Thursday, April 11, 2002 4:39 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] problem with stateful session bean
> 
> 
> 
> Hello,
> 
> I have a problem with stateful session beans.
> After successfully deploying this bean, I'm able
> to access this bean and call any method. However,
> when calling a second method, I receive a '
> NoSuchObjectException' (see below). 
> 
> [j2eejunit] RemoteException occurred in server thread; nested exception is:
> [j2eejunit] java.rmi.NoSuchObjectException: Could not activate; nested exception 
>is:
> [j2eejunit] java.io.FileNotFoundException: 
>D:\development\java\rkm\JBoss-Tomcat\jboss\db\sessions\smarthaven.doccompare.DocumentComparat
> or\101852411.ser (The system cannot find the file specified)
> 
> 
> As one can see, JBoss is trying to 'activate' my session bean
> (or something else ?) This however is quite strange since my 
> session bean has not been passivated yet ! BTW: both methods 
> are called directly after each other, i.e. within milliseconds.
> 
> Most probably, i'm forgetting something in the deployment descriptor.
> It seems that for any method call a new session bean is created ?
> 
> Does anyone has any suggestions what the problem can be ?
> 
> T.i.a.,
> 
> Leonard Wolters
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] problem with stateful session bean

2002-04-11 Thread Joost v.d. Wijgerd

Leo,

Maybe your bean is invalidated because you get a Runtime exception somewhere in your 
code but you keep using the instance?

cheer,

Joost :-)

-Original Message-
From: Leonard Wolters 
Sent: Thursday, April 11, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] problem with stateful session bean



Hello,

I have a problem with stateful session beans.
After successfully deploying this bean, I'm able
to access this bean and call any method. However,
when calling a second method, I receive a '
NoSuchObjectException' (see below). 

[j2eejunit] RemoteException occurred in server thread; nested exception is:
[j2eejunit] java.rmi.NoSuchObjectException: Could not activate; nested exception 
is:
[j2eejunit] java.io.FileNotFoundException: 
D:\development\java\rkm\JBoss-Tomcat\jboss\db\sessions\smarthaven.doccompare.DocumentComparat
or\101852411.ser (The system cannot find the file specified)


As one can see, JBoss is trying to 'activate' my session bean
(or something else ?) This however is quite strange since my 
session bean has not been passivated yet ! BTW: both methods 
are called directly after each other, i.e. within milliseconds.

Most probably, i'm forgetting something in the deployment descriptor.
It seems that for any method call a new session bean is created ?

Does anyone has any suggestions what the problem can be ?

T.i.a.,

Leonard Wolters

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user