You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by David Wynter <da...@btclick.com> on 2002/03/23 14:07:45 UTC

Scheduler fails if 2 jobs scheduled for the same second

I am scheduling many jobs automatically in my Turbine application and on
occasion 2 get scheduled for the same second. Strictly speaking it does not
fail but one of the jobs scheduled for the same second does not run and
thereafter I have 100% CPU utilisation until I kill the Tomcat process.

I am on W2K SP2, Sun's JVM 1.3.1 using Turbine 2.1, although I have noted
that the Scheduler service class stuff had not changed in 2.2b1 I downloaded
about a month ago.

Any ideas.

David


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Filippos Slavik <fs...@forthnet.gr>.
On Mon, 2002-03-25 at 06:36, Peter Lynch wrote:
> 
> ----- Original Message -----
> From: "Filippos Slavik" <fs...@forthnet.gr>
> To: "Turbine Users List" <tu...@jakarta.apache.org>
> Sent: Sunday, March 24, 2002 6:00 AM
> Subject: Re: Tomcat 4.0.3 and redirect problem
> 
> 
> >
> > > I'v tested this against Tomcat 4.0.2 and 4.0.3 both 'lite' and normal
> > > edition with the same result, ie problems with SDK 1.4.0).
> > >
> > > I could not found any related bug in Sun's Bug Database and then started
> > > to searching in tomcat's bug database and I found the same bug entry you
> > > are referring to and although they mention that it has been solved with
> > > the 'new' HTTP/1.1 connector (which is by default used in tomcat in
> > > stand-alone mode) the bug is still there.
> 
> 4.0.3 was packaged on March 3rd.
> The bug was closed on the 9th.
> I tried the nightly build from 23rd, and have not been able to reproduce so
> far. You might want to try that.
> 

Thanks for the tip. I'v checked against 20020325 nightly build and
redirection works now properly. Can't wait for a new stable release :)

Regards
Filippos Slavik
 

> -Peter
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
-- 
################################################################
Filippos Slavik
FORTHnet R&D, Heraklion, Greece
e-mail : fsla@forthnet.gr
phone : (+3) 081 391230
################################################################

"The software said 'runs on Win95 or better,' so I installed it
on Linux..."


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Peter Lynch <pe...@mindspring.com>.
----- Original Message -----
From: "Filippos Slavik" <fs...@forthnet.gr>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Sunday, March 24, 2002 6:00 AM
Subject: Re: Tomcat 4.0.3 and redirect problem


>
> > I'v tested this against Tomcat 4.0.2 and 4.0.3 both 'lite' and normal
> > edition with the same result, ie problems with SDK 1.4.0).
> >
> > I could not found any related bug in Sun's Bug Database and then started
> > to searching in tomcat's bug database and I found the same bug entry you
> > are referring to and although they mention that it has been solved with
> > the 'new' HTTP/1.1 connector (which is by default used in tomcat in
> > stand-alone mode) the bug is still there.

4.0.3 was packaged on March 3rd.
The bug was closed on the 9th.
I tried the nightly build from 23rd, and have not been able to reproduce so
far. You might want to try that.

-Peter


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Filippos Slavik <fs...@forthnet.gr>.
On Sun, 2002-03-24 at 15:26, Filippos Slavik wrote:
> On Sun, 2002-03-24 at 11:31, Peter Lynch wrote:
> > Bug # 6159. Seems resolved as of March 9, but I can't confirm.
> > 
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519
> > 
> Yeap :) I'm having the same problems with SDK1.4. If I switch to 1.3.1
> (Sun or IBM) the problem is solved.
> 

Just to add... I'm using the following code to redirect to screens from
my actions:

public static void redirectToScreen(RunData data, String
template_screen) throws Exception {
	data.getResponse().sendRedirect(data.getResponse().encodeRedirectURL(data.getRequest().getContextPath()+
	data.getRequest().getServletPath()+"/template/"+template_screen));
}

Regards
Filippos Slavik


> I'v tested this against Tomcat 4.0.2 and 4.0.3 both 'lite' and normal
> edition with the same result, ie problems with SDK 1.4.0).
> 
> I could not found any related bug in Sun's Bug Database and then started
> to searching in tomcat's bug database and I found the same bug entry you
> are referring to and although they mention that it has been solved with
> the 'new' HTTP/1.1 connector (which is by default used in tomcat in
> stand-alone mode) the bug is still there.
> 
> Regards
> Filippos Slavik
> 
> 
> 
> > -Peter
> > 
> > ----- Original Message -----
> > From: "Marty Phee" <mp...@jump-technologies.com>
> > To: "Turbine Users List" <tu...@jakarta.apache.org>
> > Sent: Saturday, March 23, 2002 7:40 PM
> > Subject: RE: Tomcat 4.0.3 and redirect problem
> > 
> > 
> > > That was it.  Thanks for the help.
> > >
> > > I went back to 1.3.1, and it worked.
> > >
> > > Marty
> > >
> > > On Sat, 2002-03-23 at 12:45, Jason van Zyl wrote:
> > > > On Sat, 2002-03-23 at 14:52, David Sean Taylor wrote:
> > > >
> > > > > >
> > > > > > The problem is more likely because you're using Java 1.4. Try
> > > > > > it with 1.3 and see if you get the same error.
> > > > > >
> > > > >
> > > > > Could you explain what the problem is with Java 1.4?
> > > > > We are getting reports of the same kind in Jetspeed, and wondering if
> > > > > its something we are doing.
> > > >
> > > > I don't have any idea yet. I haven't tried 1.4 yet because I'm afraid.
> > > >
> > > > > David
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > > > --
> > > > jvz.
> > > >
> > > > Jason van Zyl
> > > > jvanzyl@apache.org
> > > >
> > > > http://tambora.zenplex.org
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> > 
> > 
> -- 
> ################################################################
> Filippos Slavik
> FORTHnet R&D, Heraklion, Greece
> e-mail : fsla@forthnet.gr
> phone : (+3) 081 391230
> ################################################################
> 
> "The software said 'runs on Win95 or better,' so I installed it
> on Linux..."
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
-- 
################################################################
Filippos Slavik
FORTHnet R&D, Heraklion, Greece
e-mail : fsla@forthnet.gr
phone : (+3) 081 391230
################################################################

"The software said 'runs on Win95 or better,' so I installed it
on Linux..."


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Jason van Zyl <jv...@zenplex.com> writes:

> On Sun, 2002-03-24 at 08:26, Filippos Slavik wrote:
> > On Sun, 2002-03-24 at 11:31, Peter Lynch wrote:
>> > Bug # 6159. Seems resolved as of March 9, but I can't confirm.
>> > 
>> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519
>> > 
>> Yeap :) I'm having the same problems with SDK1.4. If I switch to 1.3.1
>> (Sun or IBM) the problem is solved.
>
> I not positive, but is it possible that the tomcat distribution for
> 4.0.3 was built with Java 1.4?

That's a really good point, Jason.  I think that Craig uses JDK 1.4
quite a bit, so if he did the build there's a good chance that you're
on the money.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Jason van Zyl <jv...@zenplex.com>.
On Sun, 2002-03-24 at 08:26, Filippos Slavik wrote:
> On Sun, 2002-03-24 at 11:31, Peter Lynch wrote:
> > Bug # 6159. Seems resolved as of March 9, but I can't confirm.
> > 
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519
> > 
> Yeap :) I'm having the same problems with SDK1.4. If I switch to 1.3.1
> (Sun or IBM) the problem is solved.

I not positive, but is it possible that the tomcat distribution for
4.0.3 was built with Java 1.4?
 
> I'v tested this against Tomcat 4.0.2 and 4.0.3 both 'lite' and normal
> edition with the same result, ie problems with SDK 1.4.0).
> 
> I could not found any related bug in Sun's Bug Database and then started
> to searching in tomcat's bug database and I found the same bug entry you
> are referring to and although they mention that it has been solved with
> the 'new' HTTP/1.1 connector (which is by default used in tomcat in
> stand-alone mode) the bug is still there.
> 
> Regards
> Filippos Slavik
> 
> 
> 
> > -Peter
> > 
> > ----- Original Message -----
> > From: "Marty Phee" <mp...@jump-technologies.com>
> > To: "Turbine Users List" <tu...@jakarta.apache.org>
> > Sent: Saturday, March 23, 2002 7:40 PM
> > Subject: RE: Tomcat 4.0.3 and redirect problem
> > 
> > 
> > > That was it.  Thanks for the help.
> > >
> > > I went back to 1.3.1, and it worked.
> > >
> > > Marty
> > >
> > > On Sat, 2002-03-23 at 12:45, Jason van Zyl wrote:
> > > > On Sat, 2002-03-23 at 14:52, David Sean Taylor wrote:
> > > >
> > > > > >
> > > > > > The problem is more likely because you're using Java 1.4. Try
> > > > > > it with 1.3 and see if you get the same error.
> > > > > >
> > > > >
> > > > > Could you explain what the problem is with Java 1.4?
> > > > > We are getting reports of the same kind in Jetspeed, and wondering if
> > > > > its something we are doing.
> > > >
> > > > I don't have any idea yet. I haven't tried 1.4 yet because I'm afraid.
> > > >
> > > > > David
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > > > --
> > > > jvz.
> > > >
> > > > Jason van Zyl
> > > > jvanzyl@apache.org
> > > >
> > > > http://tambora.zenplex.org
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> > 
> > 
> -- 
> ################################################################
> Filippos Slavik
> FORTHnet R&D, Heraklion, Greece
> e-mail : fsla@forthnet.gr
> phone : (+3) 081 391230
> ################################################################
> 
> "The software said 'runs on Win95 or better,' so I installed it
> on Linux..."
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Filippos Slavik <fs...@forthnet.gr>.
On Sun, 2002-03-24 at 11:31, Peter Lynch wrote:
> Bug # 6159. Seems resolved as of March 9, but I can't confirm.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519
> 
Yeap :) I'm having the same problems with SDK1.4. If I switch to 1.3.1
(Sun or IBM) the problem is solved.

I'v tested this against Tomcat 4.0.2 and 4.0.3 both 'lite' and normal
edition with the same result, ie problems with SDK 1.4.0).

I could not found any related bug in Sun's Bug Database and then started
to searching in tomcat's bug database and I found the same bug entry you
are referring to and although they mention that it has been solved with
the 'new' HTTP/1.1 connector (which is by default used in tomcat in
stand-alone mode) the bug is still there.

Regards
Filippos Slavik



> -Peter
> 
> ----- Original Message -----
> From: "Marty Phee" <mp...@jump-technologies.com>
> To: "Turbine Users List" <tu...@jakarta.apache.org>
> Sent: Saturday, March 23, 2002 7:40 PM
> Subject: RE: Tomcat 4.0.3 and redirect problem
> 
> 
> > That was it.  Thanks for the help.
> >
> > I went back to 1.3.1, and it worked.
> >
> > Marty
> >
> > On Sat, 2002-03-23 at 12:45, Jason van Zyl wrote:
> > > On Sat, 2002-03-23 at 14:52, David Sean Taylor wrote:
> > >
> > > > >
> > > > > The problem is more likely because you're using Java 1.4. Try
> > > > > it with 1.3 and see if you get the same error.
> > > > >
> > > >
> > > > Could you explain what the problem is with Java 1.4?
> > > > We are getting reports of the same kind in Jetspeed, and wondering if
> > > > its something we are doing.
> > >
> > > I don't have any idea yet. I haven't tried 1.4 yet because I'm afraid.
> > >
> > > > David
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> > > --
> > > jvz.
> > >
> > > Jason van Zyl
> > > jvanzyl@apache.org
> > >
> > > http://tambora.zenplex.org
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
-- 
################################################################
Filippos Slavik
FORTHnet R&D, Heraklion, Greece
e-mail : fsla@forthnet.gr
phone : (+3) 081 391230
################################################################

"The software said 'runs on Win95 or better,' so I installed it
on Linux..."


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: tdk-2.2-b1 problems with newapp

Posted by Jason van Zyl <jv...@zenplex.com>.
On Sun, 2002-03-24 at 14:36, Randall G. Alley wrote:
> Hi guys,
> 
> I've been trying to get the new tdk-2.2-b1 to build a newapp, and I've 
> having lots of problems.
> The TDK how-to doesn't seem complete for me. I have the same problems 
> under NT4.0 or Linux.
> Note that I have no problem creating applications under tdk-2.1.

Thanks Randall, I'll fix these and make it easier.

> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


tdk-2.2-b1 problems with newapp

Posted by "Randall G. Alley" <ir...@bellsouth.net>.
Hi guys,

I've been trying to get the new tdk-2.2-b1 to build a newapp, and I've 
having lots of problems.
The TDK how-to doesn't seem complete for me. I have the same problems 
under NT4.0 or Linux.
Note that I have no problem creating applications under tdk-2.1.

1) I have to add the tdk.home property to tdk/build.properties, 
otherwise the "ant" command fails to make the newapp.
tdk.home=e:/jakarta/tdk-2.2-b1/tdk

2) Having done the above, the next step, executing "ant init" in the 
newapp/WEB-INF/build directory fails.
I have to add a bunch of properties to the build.properties file, some 
of which I don't know what their value should be.
A number of the properties are undefined. databasePassword, 
databaseUser, and databaseHost are circularly defined.
I tried adding the following:

tdk.home = e:/jakarta/tdk-2.2-b1/tdk
target.database = mysql

createDatabaseUrl = jdbc:mysql://127.0.0.1/newapp
buildDatabaseUrl = jdbc:mysql://127.0.0.1/newapp
databaseUrl = jdbc:mysql://127.0.0.1/newapp
databaseDriver = org.gjt.mm.mysql.Driver
databaseUser =
databasePassword =
databaseHost = 127.0.0.1


Here's the top of build.properties after step 1).
------------------------------------------------------------------------------------------------------------------------
# -------------------------------------------------------------------
#
# P R O J E C T  P R O P E R T I E S
#
# -------------------------------------------------------------------

tdk.turbineVersion = 2
tdk.project = newapp
# This currently duplicated because the torque templates have
# a dependency on $project.
project = newapp
app.root = ../${tdk.project}
build.webappRoot = ${tdk.home}/webapps/${tdk.project}
target.package = org.mycompany.newapp
target.directory = org/mycompany/newapp
build.dest = ${build.webappRoot}/WEB-INF/classes
version = 0.1
src.dir = ${tdk.home}/webapps/newapp/WEB-INF/src
conf.dir = ${tdk.home}/webapps/newapp/WEB-INF/conf
master.conf.dir = ${tdk.home}/tdk/ancillary/${tdk.turbineVersion}/src/conf
debug = on
optimize = off
deprecation = on
idTableDatabase = newapp

# todo!!!
lib.dir = ${build.webappRoot}/WEB-INF/lib
torque.home = ${build.webappRoot}/WEB-INF
outputDirectory = src
schemaDirectory = conf

# -------------------------------------------------------------------
#
#  D A T A B A S E  S E T T I N G S
#
# -------------------------------------------------------------------

database.name = newapp
database = ${target.database}
createDatabaseUrl = ${createDatabaseUrl}
buildDatabaseUrl = ${buildDatabaseUrl}
databaseUrl = ${databaseUrl}
databaseDriver = ${database.driver}
databaseUser = ${databaseUser}
databasePassword = ${databasePassword}
databaseHost = ${databaseHost}
----------------------------------------------------------------------------------------------------------------------------

After the changes mentioned above, a database is not created. Here's the 
error report. Any idea of what I should do here ?

----------------------------------------------------------------------------------------------------------------------------
E:\Jakarta\tdk-2.2-b1\tdk\webapps\newapp\WEB-INF\build>ant init
Buildfile: build.xml

check-webinf-exists:

setup-webinf:

init:

setup:

init-tasks:

create-database:

project-create-db-classpath:
     [echo]
      driver="org.gjt.mm.mysql.Driver"
      url="jdbc:mysql://127.0.0.1/newapp"
      userid=""
      password=""

[torque-create-db] Using classpath
[torque-create-db] Generating to file 
E:\Jakarta\tdk-2.2-b1\tdk\webapps\newapp\WEB-INF\src\sql\
create-db.sql
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform
 package

BUILD FAILED

E:\Jakarta\tdk-2.2-b1\tdk\webapps\newapp\WEB-INF\build\build-torque.xml:593: 
java.sql.SQLExcept
ion: General error: Unknown database 'newapp'

Total time: 2 seconds
E:\Jakarta\tdk-2.2-b1\tdk\webapps\newapp\WEB-INF\build>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Peter Lynch <pe...@mindspring.com>.
Bug # 6159. Seems resolved as of March 9, but I can't confirm.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519

-Peter

----- Original Message -----
From: "Marty Phee" <mp...@jump-technologies.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Saturday, March 23, 2002 7:40 PM
Subject: RE: Tomcat 4.0.3 and redirect problem


> That was it.  Thanks for the help.
>
> I went back to 1.3.1, and it worked.
>
> Marty
>
> On Sat, 2002-03-23 at 12:45, Jason van Zyl wrote:
> > On Sat, 2002-03-23 at 14:52, David Sean Taylor wrote:
> >
> > > >
> > > > The problem is more likely because you're using Java 1.4. Try
> > > > it with 1.3 and see if you get the same error.
> > > >
> > >
> > > Could you explain what the problem is with Java 1.4?
> > > We are getting reports of the same kind in Jetspeed, and wondering if
> > > its something we are doing.
> >
> > I don't have any idea yet. I haven't tried 1.4 yet because I'm afraid.
> >
> > > David
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> > --
> > jvz.
> >
> > Jason van Zyl
> > jvanzyl@apache.org
> >
> > http://tambora.zenplex.org
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat 4.0.3 and redirect problem

Posted by Marty Phee <mp...@jump-technologies.com>.
That was it.  Thanks for the help.

I went back to 1.3.1, and it worked.

Marty

On Sat, 2002-03-23 at 12:45, Jason van Zyl wrote:
> On Sat, 2002-03-23 at 14:52, David Sean Taylor wrote:
> 
> > > 
> > > The problem is more likely because you're using Java 1.4. Try 
> > > it with 1.3 and see if you get the same error.
> > >  
> > 
> > Could you explain what the problem is with Java 1.4?
> > We are getting reports of the same kind in Jetspeed, and wondering if
> > its something we are doing.
> 
> I don't have any idea yet. I haven't tried 1.4 yet because I'm afraid.
>  
> > David
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> -- 
> jvz.
> 
> Jason van Zyl
> jvanzyl@apache.org
> 
> http://tambora.zenplex.org
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat 4.0.3 and redirect problem

Posted by Jason van Zyl <jv...@zenplex.com>.
On Sat, 2002-03-23 at 14:52, David Sean Taylor wrote:

> > 
> > The problem is more likely because you're using Java 1.4. Try 
> > it with 1.3 and see if you get the same error.
> >  
> 
> Could you explain what the problem is with Java 1.4?
> We are getting reports of the same kind in Jetspeed, and wondering if
> its something we are doing.

I don't have any idea yet. I haven't tried 1.4 yet because I'm afraid.
 
> David
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Tomcat 4.0.3 and redirect problem

Posted by David Sean Taylor <da...@bluesunrise.com>.

> -----Original Message-----
> From: Jason van Zyl [mailto:jvanzyl@zenplex.com] 
> Sent: Saturday, March 23, 2002 9:41 AM
> To: Turbine Users List
> Subject: Re: Tomcat 4.0.3 and redirect problem
> 
> 
> On Sat, 2002-03-23 at 10:22, Marty Phee wrote:
> > When I try to do a redirect using Tomcat 4.0.3 I get the 
> following.  
> > It works with 4.0.2.  Anyone else have this problem?
> > 
> > Turbine 2.2b.1
> > 
> > This is in an action.  After the action I have it do a 
> redirect to my 
> > next template.
> 
> The problem is more likely because you're using Java 1.4. Try 
> it with 1.3 and see if you get the same error.
>  

Could you explain what the problem is with Java 1.4?
We are getting reports of the same kind in Jetspeed, and wondering if
its something we are doing.

David



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 and redirect problem

Posted by Jason van Zyl <jv...@zenplex.com>.
On Sat, 2002-03-23 at 10:22, Marty Phee wrote:
> When I try to do a redirect using Tomcat 4.0.3 I get the following.  It
> works with 4.0.2.  Anyone else have this problem?
> 
> Turbine 2.2b.1
> 
> This is in an action.  After the action I have it do a redirect to my
> next template.

The problem is more likely because you're using Java 1.4. Try it with
1.3 and see if you get the same error.
 
> Apache Tomcat/4.0.3
> java.lang.IllegalStateException: Current state = FLUSHED, new state =
> CODING_END
> 	at
> java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:919)
> 	at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:528)
> 	at
> sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:345)
> 	at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:402)
> 	at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:150)
> 	at java.io.OutputStreamWriter.close(OutputStreamWriter.java:225)
> 	at java.io.PrintWriter.close(PrintWriter.java:140)
> 	at
> org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:482)
> 	at
> org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:236)
> 	at
> org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
> 	at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1039)
> 	at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
> 	at java.lang.Thread.run(Thread.java:539)
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Tomcat 4.0.3 and redirect problem

Posted by Marty Phee <mp...@jump-technologies.com>.
When I try to do a redirect using Tomcat 4.0.3 I get the following.  It
works with 4.0.2.  Anyone else have this problem?

Turbine 2.2b.1

This is in an action.  After the action I have it do a redirect to my
next template.

Apache Tomcat/4.0.3
java.lang.IllegalStateException: Current state = FLUSHED, new state =
CODING_END
	at
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:919)
	at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:528)
	at
sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:345)
	at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:402)
	at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:150)
	at java.io.OutputStreamWriter.close(OutputStreamWriter.java:225)
	at java.io.PrintWriter.close(PrintWriter.java:140)
	at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:482)
	at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:236)
	at
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1039)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
	at java.lang.Thread.run(Thread.java:539)


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Scheduler fails if 2 jobs scheduled for the same second

Posted by David Wynter <da...@btclick.com>.
New discovery. It does not seem to be those that had jobs scheduled for the
same second after all. I changed the metadata that controls when the jobs
run to prevent same second schedules. I have a total of 51 jobs that are
scheduled after a particular job runs. They are staggered about 2 - 5
seconds apart. I get groupings of the time of those that fail as follows:

70 and 77 seconds after.
107 and 125 seconds after
190 and 195 seconds after
275 and 280 seconds after

It is always 8 that fail to run.

I can probably work around until I can get Turbine 2.2b1 running under debug
to see the behaviour first hand.

Thanks

David

-----Original Message-----
From: David Wynter [mailto:david.wynter@btclick.com]
Sent: 23 March 2002 13:08
To: Turbine-User
Subject: Scheduler fails if 2 jobs scheduled for the same second


I am scheduling many jobs automatically in my Turbine application and on
occasion 2 get scheduled for the same second. Strictly speaking it does not
fail but one of the jobs scheduled for the same second does not run and
thereafter I have 100% CPU utilisation until I kill the Tomcat process.

I am on W2K SP2, Sun's JVM 1.3.1 using Turbine 2.1, although I have noted
that the Scheduler service class stuff had not changed in 2.2b1 I downloaded
about a month ago.

Any ideas.

David


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>