tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "info@flyingfischer.ch" <i...@flyingfischer.ch>
Subject Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException
Date Sun, 24 Nov 2019 08:20:26 GMT
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, info@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, info@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-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Mime
View raw message