You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (JIRA)" <ji...@apache.org> on 2018/02/21 20:51:00 UTC

[jira] [Commented] (AIRAVATA-2684) registry-refactoring: can't convert short (-47) to a boolean

    [ https://issues.apache.org/jira/browse/AIRAVATA-2684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16371994#comment-16371994 ] 

Marcus Christie commented on AIRAVATA-2684:
-------------------------------------------

I wonder why these boolean fields are mapped to the short type in the entities?  Maybe we can map them to boolean?

> registry-refactoring: can't convert short (-47) to a boolean
> ------------------------------------------------------------
>
>                 Key: AIRAVATA-2684
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2684
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Priority: Major
>
> Here's the error message:
> {noformat}
> 2018-02-21 20:29:45,503 [pool-9-thread-32] ERROR org.dozer.MappingProcessor  - Field mapping error -->
>   MapId: null
>   Type: null
>   Source parent class: org.apache.airavata.registry.core.entities.appcatalog.ComputeResourceEntity
>   Source field name: gatewayUsageReporting
>   Source field type: class java.lang.Short
>   Source field value: -47
>   Dest parent class: org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription
>   Dest field name: gatewayUsageReporting
>   Dest field type: boolean
> org.dozer.converters.ConversionException: org.apache.commons.beanutils.ConversionException: Can't convert value '-47' t
> o a Boolean
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)