• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

ClassCastException

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! I got this error:

I think i got it from there:


Here is the full code:

Could anyone help me with it?
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Something's gone very wrong with that exception (I assume it's an exception and not a compilation error).

Can you post the full exception, including the stack trace, here?
Not in any tags.
 
Ombodi Gergő
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you thought of that ?
1 - [0052ba] Error in class com.ish.medsol.base.dao.phsevents_item.StoreMovings.public static java.lang.Object[][] com.ish.medsol.base.dao.phsevents_item.StoreMovings.call_execute(com.ish.fw.ConnectionProvider,java.lang.Object[],java.util.ArrayList,java.util.ArrayList,com.ish.fw.action.ActionResult,java.text.SimpleDateFormat,java.text.SimpleDateFormat,java.text.SimpleDateFormat,java.lang.Integer) throws com.ish.fw.exception.ApplicationException DAO method calling java.lang.ClassCastException: java.lang.Integer
 
Sheriff
Posts: 7113
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you running this code?  From a build tool like Gradle or Maven?  From an IDE?  Which one?  From the command line?

It looks like the value from DAOUtil.daoQueryGetParam(aPublicParameters, 0) is not returning a valid integer.
 
Ombodi Gergő
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's running from Eclipse with a Tomcat server.
 
Dave Tolls
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If that's an exception then whatever you are using to log it is really messing it up.
There should be a stack trace somewhere/
 
A timing clock, fuse wire, high explosives and a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic