On Tue, Oct 18, 2016 at 3:17 PM, musafir <neet.musa...@gmail.com> 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 <neet.musa...@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.
> >
> >
> >
> >
>

Reply via email to