Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException(The method ReflectUtil.instantiate() throws exception: Cannot cast Integer to int)
[Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException [message #881877] Tue, 05 June 2012 12:12 Go to next message
Robert Maier is currently offline Robert MaierFriend
Messages: 1
Registered: June 2012
Junior Member
Set driver type in cdo-server.xml throws ClassCastException
in method ReflectUtil.instantiate() throws exception: Cannot cast Integer to int.
if is set the parameter "driverType" in the dataSource inside the cdo-server.xml.

To change the condition in line 446 in ReflectUtil to:
else if (type.isAssignableFrom(Integer.class) || type.isAssignableFrom(int.class))
{
value = Integer.parseInt(str);
}
solves the problem.

Can we get support for this bug?

Thanks
Robert

[Updated on: Tue, 05 June 2012 12:14]

Report message to a moderator

Re: [Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException [message #881899 is a reply to message #881877] Tue, 05 June 2012 13:04 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Hi Robert,

Please submit a bugzilla against EMF|cdo.net4j and ideally provide the complete stack trace and your proposal of a fix.

Please note that we stopped CDO 4.0 maintenance, now that 4.1 is almost released and all our current efforts go into the
release.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 05.06.2012 14:12, schrieb Robert Maier:
> Set driver type in cdo-server.xml throws ClassCastException
> in method ReflectUtil.instantiate() throws exception: Cannot cast Integer to int.
> if is set the parameter "driverType" in the dataSource inside the cdo-server.xml.
>
> To change the condition in line 446 in ReflectUtil to:
> else if (type.isAssignableFrom(Integer.class) || type.isAssignableFrom(int.class))
> {
> // patch: || type.isAssignableFrom(int.class) added value = Integer.parseInt(str);
> }
> solves the problem.
>
> Can we get support for this bug?
>
> Thanks
> Robert


Re: [Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException [message #884469 is a reply to message #881899] Mon, 11 June 2012 06:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike and Robert,

i fixed this for 4.1 and Robert should have the patch at hand already.

There are some other issues regarding the DB2-Adapter i would like to
discuss before raising issues but hadn't time to do so.
@Eike Maybe we can find some time at Democamp/Kassel.

Grettings

Jörg
On 06/05/2012 03:04 PM, Eike Stepper wrote:
> Hi Robert,
>
> Please submit a bugzilla against EMF|cdo.net4j and ideally provide the
> complete stack trace and your proposal of a fix.
>
> Please note that we stopped CDO 4.0 maintenance, now that 4.1 is almost
> released and all our current efforts go into the release.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Am 05.06.2012 14:12, schrieb Robert Maier:
>> Set driver type in cdo-server.xml throws ClassCastException
>> in method ReflectUtil.instantiate() throws exception: Cannot cast
>> Integer to int.
>> if is set the parameter "driverType" in the dataSource inside the
>> cdo-server.xml.
>>
>> To change the condition in line 446 in ReflectUtil to:
>> else if (type.isAssignableFrom(Integer.class) ||
>> type.isAssignableFrom(int.class))
>> {
>> // patch: || type.isAssignableFrom(int.class) added value =
>> Integer.parseInt(str);
>> }
>> solves the problem.
>>
>> Can we get support for this bug?
>>
>> Thanks
>> Robert
Re: [Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException [message #884476 is a reply to message #884469] Mon, 11 June 2012 06:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Am 11.06.2012 08:21, schrieb Joerg Pacher:
> Hi Eike and Robert,
>
> i fixed this for 4.1 and Robert should have the patch at hand already.
Great! Please don't forget to attach the patch to the bugzilla Robert wants to submit ;-)

>
> There are some other issues regarding the DB2-Adapter i would like to discuss before raising issues but hadn't time to
> do so.
> @Eike Maybe we can find some time at Democamp/Kassel.
We can certainly try it ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Grettings
>
> Jörg
> On 06/05/2012 03:04 PM, Eike Stepper wrote:
>> Hi Robert,
>>
>> Please submit a bugzilla against EMF|cdo.net4j and ideally provide the
>> complete stack trace and your proposal of a fix.
>>
>> Please note that we stopped CDO 4.0 maintenance, now that 4.1 is almost
>> released and all our current efforts go into the release.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>
>> Am 05.06.2012 14:12, schrieb Robert Maier:
>>> Set driver type in cdo-server.xml throws ClassCastException
>>> in method ReflectUtil.instantiate() throws exception: Cannot cast
>>> Integer to int.
>>> if is set the parameter "driverType" in the dataSource inside the
>>> cdo-server.xml.
>>>
>>> To change the condition in line 446 in ReflectUtil to:
>>> else if (type.isAssignableFrom(Integer.class) ||
>>> type.isAssignableFrom(int.class))
>>> {
>>> // patch: || type.isAssignableFrom(int.class) added value =
>>> Integer.parseInt(str);
>>> }
>>> solves the problem.
>>>
>>> Can we get support for this bug?
>>>
>>> Thanks
>>> Robert
>


Re: [Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException [message #886239 is a reply to message #884476] Thu, 14 June 2012 14:06 Go to previous message
Eclipse UserFriend
Bugzilla entry is https://bugs.eclipse.org/bugs/show_bug.cgi?id=382491
On 06/11/2012 08:31 AM, Eike Stepper wrote:
> Am 11.06.2012 08:21, schrieb Joerg Pacher:
>> Hi Eike and Robert,
>>
>> i fixed this for 4.1 and Robert should have the patch at hand already.
> Great! Please don't forget to attach the patch to the bugzilla Robert
> wants to submit ;-)
>
>>
>> There are some other issues regarding the DB2-Adapter i would like to
>> discuss before raising issues but hadn't time to do so.
>> @Eike Maybe we can find some time at Democamp/Kassel.
> We can certainly try it ;-)
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> Grettings
>>
>> Jörg
>> On 06/05/2012 03:04 PM, Eike Stepper wrote:
>>> Hi Robert,
>>>
>>> Please submit a bugzilla against EMF|cdo.net4j and ideally provide the
>>> complete stack trace and your proposal of a fix.
>>>
>>> Please note that we stopped CDO 4.0 maintenance, now that 4.1 is almost
>>> released and all our current efforts go into the release.
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>>
>>> Am 05.06.2012 14:12, schrieb Robert Maier:
>>>> Set driver type in cdo-server.xml throws ClassCastException
>>>> in method ReflectUtil.instantiate() throws exception: Cannot cast
>>>> Integer to int.
>>>> if is set the parameter "driverType" in the dataSource inside the
>>>> cdo-server.xml.
>>>>
>>>> To change the condition in line 446 in ReflectUtil to:
>>>> else if (type.isAssignableFrom(Integer.class) ||
>>>> type.isAssignableFrom(int.class))
>>>> {
>>>> // patch: || type.isAssignableFrom(int.class) added value =
>>>> Integer.parseInt(str);
>>>> }
>>>> solves the problem.
>>>>
>>>> Can we get support for this bug?
>>>>
>>>> Thanks
>>>> Robert
>>
Previous Topic:[CDO] FileNotFoundException when using object.eGet()
Next Topic:Alternative TextResource(Factory) for EMF model
Goto Forum:
  


Current Time: Thu Aug 22 20:06:53 GMT 2019

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

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

Back to the top