You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by musafir <ne...@gmail.com> on 2016/10/17 21:59:06 UTC
tomcat8 ClassCastException
Hi Apache Team,
Got 2 tomcat hosting same web application. Tomcats are installed on
dedicated centos(6.8) VMs. Everything was working fine in tomcat7 till
upgrade to tomcat8(8.0.38).
Now on one server, i am getting below error..
java.lang.ClassCastException: java.lang.String cannot be cast to
java.lang.Integer
e.g code iFacType = (Integer)userprofilesettings.get("facilityType");
Can you guys pls help understand
a) why it happens only on one server . is it something to do non
deterministic loader as reported in
https://bz.apache.org/bugzilla/show_bug.cgi?id=57129
b) Since its happening only on one server. is there any quick fix i can
use..fyi,if i downgrade to tomcat 7 on VM, application works fine.
Regards, neet.
Re: tomcat8 ClassCastException
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Musafir,
On 10/17/16 5:59 PM, musafir wrote:
> Hi Apache Team,
>
> Got 2 tomcat hosting same web application. Tomcats are installed
> on dedicated centos(6.8) VMs. Everything was working fine in
> tomcat7 till upgrade to tomcat8(8.0.38).
>
> Now on one server, i am getting below error..
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.lang.Integer
>
> e.g code iFacType =
> (Integer)userprofilesettings.get("facilityType");
>
> Can you guys pls help understand a) why it happens only on one
> server . is it something to do non deterministic loader as reported
> in https://bz.apache.org/bugzilla/show_bug.cgi?id=57129 b) Since
> its happening only on one server. is there any quick fix i can
> use..fyi,if i downgrade to tomcat 7 on VM, application works
> fine.
That code is nowhere in Tomcat. The problem is with your application.
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJYB9skAAoJEBzwKT+lPKRYfOgP/R7kk+mvuHvGFJjQQUHhSf3y
9FwLOF+g8ZjZRX3bYkpn2tn+vHzDdE9oAvW6LMLT2drphHlrcLKx/w932vqlMgWN
9BDF4H2cKQcdHTrs54cykT7n74bc8Dxd025PuXaJnelpmBMLbRnO55sPPK2DC1q+
KAb7XRGpopPEp9dcMMqSjKKv0s7p2+Tzn7YsM3SqD0GPg5WX8NaVTa/ByKDCQZ3W
zydht4eDaIUnMkHE0sV2q9a3hqOgj6rj6YHIeCIrtqKBIm86siJGmiPafD68Ghxi
2ELoTY58/DmsiqYIJW872XVXjWzJNdbvHWIFLVHUr04a6qHBKooj7AAYTKcgi8HQ
g8VpHB3Bgzel3deC8WMzFeZ6JbrTJQBj9ofGue/wZ88sjBkVxP4QCgmVQndTbzGD
2TqD7OYB0R/L+0ZAo/xqzXxZXZLthLEdhGiL6n+qQ8FVyzOpPJ1wNDdAl6qfAD/8
AlYZBVVA9ozZgcbZCwnZpD6O4IViwbtAziJmw2+6SFtDu6fcOAKn4UWasfBrRFlv
NIuvyMNjFONRmy2+gzQfeOwDYh/4Ewtt9eMCC0JxwEy709j9psghFSktJa4cX1T0
lINUpQjtDn68dWLPKwhGjGJbCUnfGhvv6kdAea7GFcap8XD2jfKEj0eL8AOeFq7r
KSZLxS9Jd3ZilpneQBUB
=wII0
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat8 ClassCastException
Posted by musafir <ne...@gmail.com>.
Hey Guys, can you pls provide some suggestions..exact copy of
tomcat+webapp working fine on one machine..no issues in tomcat7with either
jdk7/8
On Monday, October 17, 2016, musafir <ne...@gmail.com> wrote:
> Hi Apache Team,
>
> Got 2 tomcat hosting same web application. Tomcats are installed on
> dedicated centos(6.8) VMs. Everything was working fine in tomcat7 till
> upgrade to tomcat8(8.0.38).
>
> Now on one server, i am getting below error..
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.lang.Integer
>
> e.g code iFacType = (Integer)userprofilesettings.get("facilityType");
>
> Can you guys pls help understand
> a) why it happens only on one server . is it something to do non
> deterministic loader as reported in https://bz.apache.org/
> bugzilla/show_bug.cgi?id=57129
> b) Since its happening only on one server. is there any quick fix i can
> use..fyi,if i downgrade to tomcat 7 on VM, application works fine.
>
>
> Regards, neet.
>
>
>
>