Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » java.lang.Integer cannot be cast to java.lang.Long - When trying to connect to MySQL
java.lang.Integer cannot be cast to java.lang.Long - When trying to connect to MySQL [message #879113] Wed, 30 May 2012 14:35 Go to next message
Birt Unmitigated is currently offline Birt UnmitigatedFriend
Messages: 14
Registered: February 2012
Junior Member
This is only happening on Linux. The exact same connection works fine on the Mac.

Here is my connection information:
Driver Class: com.mysql.jdbc.Driver (v5.1)
Database URL: jdbc:mysql://mysql2:3306/job_manager
User name: job_read_user
Password: ***
JNDI URL: <left blank>


And here's the error I'm getting when I press "test connection":

There is an error in get connection, java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long.


I'm really stuck on this guys, any help you could give would be so great!

[Updated on: Wed, 30 May 2012 14:40]

Report message to a moderator

Re: java.lang.Integer cannot be cast to java.lang.Long - When trying to connect to MySQL [message #879294 is a reply to message #879113] Wed, 30 May 2012 23:26 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

As a test can you try a different version of the mysql driver?

Jason

On 5/30/2012 10:35 AM, Birt Unmitigated wrote:
> This is only happening on Linux. The exact same connection works fine on
> the Mac.
>
> Here is my connection information:
> Driver Class: com.mysql.jdbc.Driver (v5.1)
> Database URL: jdbc:mysql://mysql2:3306/job_manager
> User name: job_read_user
> Password: ***
> JNDI URL: <left blank>
>
> And here's the error I'm getting when I press "test connection":
>
> There is an error in get connection, java.lang.ClassCastException:
> java.lang.Integer cannot be cast to java.lang.Long.
>
> I'm really stuck on this guys, any help you could give would be so great!
>
> Thanks,
>
> Birt (Yes, my name really is Birt!)
>
Previous Topic:Build DataSource from code - without external resources?
Next Topic:Facing an issue while adding a New iServer Profile
Goto Forum:
  


Current Time: Thu Apr 25 22:11:47 GMT 2024

Powered by FUDForum. Page generated in 0.06052 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top