airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2684) registry-refactoring: can't convert short (-47) to a boolean
Date Wed, 21 Feb 2018 21:02:00 GMT

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

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

Here's the fuller stack trace:
{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' to a Boolean
        at org.dozer.converters.PrimitiveOrWrapperConverter.convert(PrimitiveOrWrapperConverter.java:72)
        at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:430)
        at org.dozer.MappingProcessor.mapFromFieldMap(MappingProcessor.java:342)
        at org.dozer.MappingProcessor.mapField(MappingProcessor.java:288)
        at org.dozer.MappingProcessor.map(MappingProcessor.java:248)
        at org.dozer.MappingProcessor.map(MappingProcessor.java:197)
        at org.dozer.MappingProcessor.map(MappingProcessor.java:187)
        at org.dozer.MappingProcessor.map(MappingProcessor.java:124)
        at org.dozer.MappingProcessor.map(MappingProcessor.java:119)
        at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:120)
        at org.apache.airavata.registry.core.repositories.appcatalog.AppCatAbstractRepository.lambda$select$4(AppCatAbstractRepository.java:82)
        at java.util.Iterator.forEachRemaining(Iterator.java:116)
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
        at org.apache.airavata.registry.core.repositories.appcatalog.AppCatAbstractRepository.select(AppCatAbstractRepository.java:82)
        at org.apache.airavata.registry.core.repositories.appcatalog.ComputeResourceRepository.getAvailableComputeResourceIdList(ComputeResourceRepository.java:154)
        at org.apache.airavata.registry.api.service.handler.RegistryServerHandler.getAvailableAppInterfaceComputeResources(RegistryServerHandler.java:1528)
        at org.apache.airavata.registry.api.RegistryService$Processor$getAvailableAppInterfaceComputeResources.getResult(RegistryService.java:16274)
        at org.apache.airavata.registry.api.RegistryService$Processor$getAvailableAppInterfaceComputeResources.getResult(RegistryService.java:16258)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.commons.beanutils.ConversionException: Can't convert value '-47' to
a Boolean
        at org.apache.commons.beanutils.converters.BooleanConverter.convertToType(BooleanConverter.java:223)
        at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)
        at org.dozer.converters.PrimitiveOrWrapperConverter.convert(PrimitiveOrWrapperConverter.java:70)
        ... 24 common frames omitted
{noformat}

It's weird that this conversion seems to work fine in the ComputeResourceRepositoryTest. Maybe
it works with Derby but not MariaDB?

> 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)

Mime
View raw message