[Net4j.util 4.0.0] Set driver type in cdo-server.xml throws ClassCastException [message #881877] |
Tue, 05 June 2012 12:12 |
Robert Maier 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 #884469 is a reply to message #881899] |
Mon, 11 June 2012 06:21 |
Eclipse User |
|
|
|
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 |
|
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
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
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 |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.05894 seconds