• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

ClassCastException

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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?
 
Master Rancher
Posts: 4371
47
  • Mark post as helpful
  • send pies
  • 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: 21
  • Mark post as helpful
  • send pies
  • 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: 6456
172
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's running from Eclipse with a Tomcat server.
 
Dave Tolls
Master Rancher
Posts: 4371
47
  • Mark post as helpful
  • send pies
  • 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/
 
Police line, do not cross. Well, this tiny ad can go through:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!