Re: Inactive application-scope bean problem

2001-02-22 Thread Geoff Marshall

I'm working on the package, but not that class.  Is that the problem
-- 

-Geoff Marshall, Director of Development

...
t e r r a s c o p e  (415) 951-4944
54 Mint Street, Suite 110 direct (415) 625-0349
San Francisco, CA  94103 fax (415) 625-0306
...

> From: Rafael Alvarez <[EMAIL PROTECTED]>
> Reply-To: Orion-Interest <[EMAIL PROTECTED]>
> Date: Thu, 22 Feb 2001 09:09:27 -0400
> To: Orion-Interest <[EMAIL PROTECTED]>
> Subject: Re: Inactive application-scope bean problem
> 
> Hello Geoff,
> 
> GM> If I don't use the application for some period of time and then try to hit
> GM> the index page, I get this error, which only restarting Orion seems to
> GM> fix...
> 
> GM> 500 Internal Server Error
> 
> GM> java.lang.ClassCastException: db.AppBean
> GM> at /Gold/home.jsp._jspService(/Gold/home.jsp.java:33)
> GM> at com.orionserver.http.OrionHttpJspPage.service(JAX)
> GM> at com.evermind.server.http.HttpApplication.xj(JAX)
> GM> at com.evermind.server.http.JSPServlet.service(JAX)
> GM> at com.evermind.server.http.d3.sw(JAX)
> GM> at com.evermind.server.http.d3.su(JAX)
> GM> at com.evermind.server.http.ef.s1(JAX)
> GM> at com.evermind.server.http.ef.do(JAX)
> GM> at com.evermind.util.f.run(JAX)
> 
> GM> ... any ideas
> 
> Have you modified the class at some point between each hit? That
> errors happen sometimes when the class in disk is different from the
> class in memory.
> 
> -- 
> Best regards,
> Rafaelmailto:[EMAIL PROTECTED]
> 
> 
> 
> 





Re: Inactive application-scope bean problem

2001-02-22 Thread Rafael Alvarez

Hello Geoff,

GM> If I don't use the application for some period of time and then try to hit
GM> the index page, I get this error, which only restarting Orion seems to
GM> fix...

GM> 500 Internal Server Error

GM> java.lang.ClassCastException: db.AppBean
GM> at /Gold/home.jsp._jspService(/Gold/home.jsp.java:33)
GM> at com.orionserver.http.OrionHttpJspPage.service(JAX)
GM> at com.evermind.server.http.HttpApplication.xj(JAX)
GM> at com.evermind.server.http.JSPServlet.service(JAX)
GM> at com.evermind.server.http.d3.sw(JAX)
GM> at com.evermind.server.http.d3.su(JAX)
GM> at com.evermind.server.http.ef.s1(JAX)
GM> at com.evermind.server.http.ef.do(JAX)
GM> at com.evermind.util.f.run(JAX)

GM> ... any ideas

Have you modified the class at some point between each hit? That
errors happen sometimes when the class in disk is different from the
class in memory.

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Inactive application-scope bean problem

2001-02-22 Thread Geoff Marshall

-
Hello all!  I have a simple class that I'm using as a bean.  All it does is
provide a secure and non-secure root url:

package db;

public class AppBean {
private String SecureRootURL, NonSecureRootURL;

public AppBean() {
this.SecureRootURL= "https://mybox.mydomain.com:/whatever/";
this.NonSecureRootURL = "http://mybox.mydomain.com:/whatever/";
}

public void setSecure(String newURL) { SecureRootURL = newURL; }
public String getSecure() { return SecureRootURL; }

public void setNonSecure(String newURL) { NonSecureRootURL = newURL; }
public String getNonSecure() { return NonSecureRootURL; }
}

-
At the top of each JSP page:


<%
// initialize any application stuff

%>



-
If I don't use the application for some period of time and then try to hit
the index page, I get this error, which only restarting Orion seems to
fix...

500 Internal Server Error

java.lang.ClassCastException: db.AppBean
at /Gold/home.jsp._jspService(/Gold/home.jsp.java:33)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.su(JAX)
at com.evermind.server.http.ef.s1(JAX)
at com.evermind.server.http.ef.do(JAX)
at com.evermind.util.f.run(JAX)

... any ideas
-- 

-Geoff Marshall, Director of Development

...
t e r r a s c o p e  (415) 951-4944
54 Mint Street, Suite 110 direct (415) 625-0349
San Francisco, CA  94103 fax (415) 625-0306
...