Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 10:35 Go to next message
Birt Unmitigated is currently offline Birt Unmitigated
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 10: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 19:26 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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: Wed Jul 30 09:15:22 EDT 2014

Powered by FUDForum. Page generated in 0.03561 seconds