Re: tomcat8 ClassCastException

2016-10-19 Thread Christopher Schultz
-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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat8 ClassCastException

2016-10-19 Thread Mark Olsson
On Tue, Oct 18, 2016 at 3:17 PM, musafir  wrote:

> 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
>
>
>
What java version and vendor are you using?  Or are you using Scala or some
other JVM based language?  Because, as the error clearly states, casting a
String to an Integer simply isn't valid code, at least not in genuine
Oracle Java 8.

My guess is you've got different versions of an external library somewhere
on each VM.  One VM has userprofilesettings.get() returning an Integer
compatible value and one VM has a library where userprofilesettings.get()
returns a String.  Compare all your library JARs and see where the
difference is.



>
> On Monday, October 17, 2016, 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.
> >
> >
> > Regards, neet.
> >
> >
> >
> >
>


Re: tomcat8 ClassCastException

2016-10-18 Thread musafir
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  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.
>
>
>
>


tomcat8 ClassCastException

2016-10-17 Thread musafir
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.