Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-26 Thread Mark Thomas
On 24/11/2019 13:50, i...@flyingfischer.ch wrote:
> Thanks for confirming and fixing.

I have committed the fix. Can you build from source and test this? If it
is easier for you I can provide binaries.

Thanks,

Mark


> 
> Markus
> 
> Am 24.11.19 um 12:34 schrieb Mark Thomas:
>> Thanks for providing the additional information.
>>
>> Confirmed. This is a regression in the fix for:
>> https://bz.apache.org/bugzilla/show_bug.cgi?id=63815
>>
>> Yon can work-around this by reverting the addition of " in daemon.sh
>> made in this commit:
>> https://markmail.org/message/ouaatfznmjbrva23
>>
>> I'll get this fixed for the next release. The November release was
>> fairly late. The December one should (hopefully) be nearer the beginning
>> of the month.
>>
>> Also...
>>
>> On 24/11/2019 08:20, i...@flyingfischer.ch wrote:
>>
> built with
>
> commons-daemon-native
> tomcat-native (./configure --with-apr=/usr/bin/apr-1-config
> --with-java-home=$JAVA_HOME --with-ssl=yes
> --prefix=/usr/share/tomcat8/$newVersion)
>> Commons daemon doesn't depend on APR, nor on OpenSSL. That looks like a
>> configure for Tomcat Native rather than Commons Daemon.
>>
>> Mark
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-24 Thread i...@flyingfischer.ch
Thanks for confirming and fixing.

Markus

Am 24.11.19 um 12:34 schrieb Mark Thomas:
> Thanks for providing the additional information.
>
> Confirmed. This is a regression in the fix for:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=63815
>
> Yon can work-around this by reverting the addition of " in daemon.sh
> made in this commit:
> https://markmail.org/message/ouaatfznmjbrva23
>
> I'll get this fixed for the next release. The November release was
> fairly late. The December one should (hopefully) be nearer the beginning
> of the month.
>
> Also...
>
> On 24/11/2019 08:20, i...@flyingfischer.ch wrote:
>
 built with

 commons-daemon-native
 tomcat-native (./configure --with-apr=/usr/bin/apr-1-config
 --with-java-home=$JAVA_HOME --with-ssl=yes
 --prefix=/usr/share/tomcat8/$newVersion)
> Commons daemon doesn't depend on APR, nor on OpenSSL. That looks like a
> configure for Tomcat Native rather than Commons Daemon.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-24 Thread Mark Thomas
Thanks for providing the additional information.

Confirmed. This is a regression in the fix for:
https://bz.apache.org/bugzilla/show_bug.cgi?id=63815

Yon can work-around this by reverting the addition of " in daemon.sh
made in this commit:
https://markmail.org/message/ouaatfznmjbrva23

I'll get this fixed for the next release. The November release was
fairly late. The December one should (hopefully) be nearer the beginning
of the month.

Also...

On 24/11/2019 08:20, i...@flyingfischer.ch wrote:

>>> built with
>>>
>>> commons-daemon-native
>>> tomcat-native (./configure --with-apr=/usr/bin/apr-1-config
>>> --with-java-home=$JAVA_HOME --with-ssl=yes
>>> --prefix=/usr/share/tomcat8/$newVersion)

Commons daemon doesn't depend on APR, nor on OpenSSL. That looks like a
configure for Tomcat Native rather than Commons Daemon.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-24 Thread i...@flyingfischer.ch
Starting Tomcat with "service tomcat start | stop | restart" pointing to:

#!/bin/bash

### BEGIN INIT INFO
# Provides:    tomcat
# Required-Start:  $network
# Required-Stop:   $network
# Default-Start:   2 3 4 5
# Default-Stop:    0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/share/tomcat/bin/daemon.sh

case $1 in
    start)
    $DAEMON --java-home /usr/lib/jvm/zulu-13-amd64/
--tomcat-user restrictedtomcatuser start
    ;;
    stop)
    $DAEMON --java-home /usr/lib/jvm/zulu-13-amd64/
--tomcat-user restrictedtomcatuser stop
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    *)
    echo "Usage: $0 {start|stop|restart}"
esac

Markus


Am 23.11.19 um 20:44 schrieb Mark Thomas:
> On 23/11/2019 15:38, i...@flyingfischer.ch wrote:
>> openjdk version "13.0.1" 2019-10-15
>> OpenJDK Runtime Environment Zulu13.28+11-CA (build 13.0.1+10-MTS)
>> OpenJDK 64-Bit Server VM Zulu13.28+11-CA (build 13.0.1+10-MTS, mixed
>> mode, sharing)
> And how are you calling jsvc?
>
> From the stack trace it looks like an empty string is being passed as
> the class name.
>
> I wonder if this is related:
> https://markmail.org/message/ouaatfznmjbrva23
>
> Mark
>
>
>> Linux
>>
>> built with
>>
>> commons-daemon-native
>> tomcat-native (./configure --with-apr=/usr/bin/apr-1-config
>> --with-java-home=$JAVA_HOME --with-ssl=yes
>> --prefix=/usr/share/tomcat8/$newVersion)
>>
>> Markus
>>
>>
>> Am 23.11.19 um 11:37 schrieb Mark Thomas:
>>> On 23/11/2019 09:43, i...@flyingfischer.ch wrote:
 After updating to Tomcat 8.5.49 starting TC on daemon fails with:

 java.lang.StringIndexOutOfBoundsException: String index out of range: 0
 at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
 at java.base/java.lang.String.charAt(String.java:709)
 at
 org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:136)
 Cannot load daemon
 Service exit with a return value of 3

 Did needto roll back to 8.5.47 which runs fine.
>>> Care to provide a few more details?
>>>
>>> Java version?
>>>
>>> Operating system?
>>>
>>> Steps to reproduce from a clean 8.5.49 install?
>>>
>>> Mark
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread Mark Thomas
On 23/11/2019 15:38, i...@flyingfischer.ch wrote:
> openjdk version "13.0.1" 2019-10-15
> OpenJDK Runtime Environment Zulu13.28+11-CA (build 13.0.1+10-MTS)
> OpenJDK 64-Bit Server VM Zulu13.28+11-CA (build 13.0.1+10-MTS, mixed
> mode, sharing)

And how are you calling jsvc?

>From the stack trace it looks like an empty string is being passed as
the class name.

I wonder if this is related:
https://markmail.org/message/ouaatfznmjbrva23

Mark


> 
> Linux
> 
> built with
> 
> commons-daemon-native
> tomcat-native (./configure --with-apr=/usr/bin/apr-1-config
> --with-java-home=$JAVA_HOME --with-ssl=yes
> --prefix=/usr/share/tomcat8/$newVersion)
> 
> Markus
> 
> 
> Am 23.11.19 um 11:37 schrieb Mark Thomas:
>> On 23/11/2019 09:43, i...@flyingfischer.ch wrote:
>>> After updating to Tomcat 8.5.49 starting TC on daemon fails with:
>>>
>>> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>>> at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
>>> at java.base/java.lang.String.charAt(String.java:709)
>>> at
>>> org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:136)
>>> Cannot load daemon
>>> Service exit with a return value of 3
>>>
>>> Did needto roll back to 8.5.47 which runs fine.
>> Care to provide a few more details?
>>
>> Java version?
>>
>> Operating system?
>>
>> Steps to reproduce from a clean 8.5.49 install?
>>
>> Mark
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread i...@flyingfischer.ch
openjdk version "13.0.1" 2019-10-15
OpenJDK Runtime Environment Zulu13.28+11-CA (build 13.0.1+10-MTS)
OpenJDK 64-Bit Server VM Zulu13.28+11-CA (build 13.0.1+10-MTS, mixed
mode, sharing)

Linux

built with

commons-daemon-native
tomcat-native (./configure --with-apr=/usr/bin/apr-1-config
--with-java-home=$JAVA_HOME --with-ssl=yes
--prefix=/usr/share/tomcat8/$newVersion)

Markus


Am 23.11.19 um 11:37 schrieb Mark Thomas:
> On 23/11/2019 09:43, i...@flyingfischer.ch wrote:
>> After updating to Tomcat 8.5.49 starting TC on daemon fails with:
>>
>> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>> at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
>> at java.base/java.lang.String.charAt(String.java:709)
>> at
>> org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:136)
>> Cannot load daemon
>> Service exit with a return value of 3
>>
>> Did needto roll back to 8.5.47 which runs fine.
> Care to provide a few more details?
>
> Java version?
>
> Operating system?
>
> Steps to reproduce from a clean 8.5.49 install?
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread Mark Thomas
On 23/11/2019 09:43, i...@flyingfischer.ch wrote:
> After updating to Tomcat 8.5.49 starting TC on daemon fails with:
> 
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
> at java.base/java.lang.String.charAt(String.java:709)
> at
> org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:136)
> Cannot load daemon
> Service exit with a return value of 3
> 
> Did needto roll back to 8.5.47 which runs fine.

Care to provide a few more details?

Java version?

Operating system?

Steps to reproduce from a clean 8.5.49 install?

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread i...@flyingfischer.ch
After updating to Tomcat 8.5.49 starting TC on daemon fails with:

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48)
at java.base/java.lang.String.charAt(String.java:709)
at
org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:136)
Cannot load daemon
Service exit with a return value of 3

Did needto roll back to 8.5.47 which runs fine.

Best
Markus

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org