Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by borschet
, 1 year ago
java.lang.String cannot be cast to java.lang.Integer
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer	at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getInt(SQLServerResultSet.java:2315)	at slick.jdbc.PositionedResult.nextIntOption(PositionedResult.scala:62)	at slick.jdbc.GetResult$GetIntOption$.apply(GetResult.scala:39)	at slick.jdbc.GetResult$GetIntOption$.apply(GetResult.scala:39)	at slick.jdbc.PositionedResult.$less$less(PositionedResult.scala:31)	at slick.jdbc.PositionedResult.$less$less$qmark(PositionedResult.scala:32)	at slick.jdbc.meta.MColumn$$anonfun$getColumns$2.apply(MColumn.scala:27)	at slick.jdbc.meta.MColumn$$anonfun$getColumns$2.apply(MColumn.scala:20)	at slick.jdbc.ResultSetInvoker$$anon$4.extractValue(ResultSetInvoker.scala:37)	at slick.jdbc.ResultSetInvoker$$anon$2.extractValue(ResultSetInvoker.scala:26)	at slick.jdbc.PositionedResultIterator.fetchNext(PositionedResult.scala:176)	at slick.util.ReadAheadIterator$class.slick$util$ReadAheadIterator$$update(ReadAheadIterator.scala:34)	at slick.util.ReadAheadIterator$class.hasNext(ReadAheadIterator.scala:40)	at slick.jdbc.PositionedResultIterator.hasNext(PositionedResult.scala:167)	at scala.collection.Iterator$class.foreach(Iterator.scala:893)	at slick.jdbc.PositionedResultIterator.foreach(PositionedResult.scala:167)	at slick.jdbc.Invoker$class.foreach(Invoker.scala:49)	at slick.jdbc.ResultSetInvoker.foreach(ResultSetInvoker.scala:14)	at slick.jdbc.StreamingInvokerAction$class.run(StreamingInvokerAction.scala:22)	at slick.jdbc.ResultSetAction$$anon$1.run(ResultSetInvoker.scala:42)	at slick.jdbc.ResultSetAction$$anon$1.run(ResultSetInvoker.scala:42)	at slick.basic.BasicBackend$DatabaseDef$$anon$2.liftedTree1$1(BasicBackend.scala:240)	at slick.basic.BasicBackend$DatabaseDef$$anon$2.run(BasicBackend.scala:240)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)