Project

General

Profile

bug #8429

Rename DeterminationEvent_Reference.setOfReferences_id

Added by Andreas Kohlbecker about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Highest
Category:
cdm
Target version:
Start date:
07/30/2019
Due date:
% Done:

0%

Severity:
normal
Found in Version:

Description

[algaterra_new] 2019-07-30 15:49:23,008 INFO [qtp532445947-4997] [eu.etaxonomy.cdm.remote.controller.BaseController] - doGet() /algaterra_new/portal/occurrence/d5b1a677-c8eb-444c-bd37-a1d39b1e1a75
[palmae] 2019-07-30 15:49:23,024 INFO [qtp532445947-4994] [eu.etaxonomy.cdm.remote.controller.VocabularyController] - terms() GET: /palmae/termVocabulary/ca04609b-1ba0-4d31-9c2e-aa8eb2f4e62d/terms?orderBy=BY_ORDER_INDEX_ASC&pageNumber=0&pageSize=500
[palmae] 2019-07-30 15:49:23,033 WARN [qtp532445947-4994] [eu.etaxonomy.cdm.remote.controller.OrderHintPreset] - BY_ORDER_INDEX_ASC not possible with TermVocabulary , falling back to BY_TITLE_CACHE_ASC
[palmae] 2019-07-30 15:49:23,054 INFO [qtp532445947-4992] [eu.etaxonomy.cdm.remote.controller.BaseController] - doGet() /palmae/portal/taxon/603caff7-4f1e-4deb-9fb6-84cec68029ab
[palmae] 2019-07-30 15:49:23,077 INFO [qtp532445947-4994] [eu.etaxonomy.cdm.remote.controller.VocabularyController] - terms() GET: /palmae/termVocabulary/ca04609b-1ba0-4d31-9c2e-aa8eb2f4e62d/terms?orderBy=BY_ORDER_INDEX_ASC&pageNumber=0&pageSize=500
[palmae] 2019-07-30 15:49:23,091 INFO [qtp532445947-4992] [eu.etaxonomy.cdm.remote.controller.NameController] - doGetRegistrationsGET: /palmae/name/d1655ebf-d2e0-4ca2-bc2a-a69357e11222/registrations
[palmae] 2019-07-30 15:49:23,092 WARN [qtp532445947-4989] [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver] - Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type [
java.lang.String] to required type [java.util.UUID]; nested exception is java.lang.NumberFormatException: For input string: "df0f495a34c2%25252523materials_examined%253Fq%253Dnode"
[palmae] 2019-07-30 15:49:23,093 WARN [qtp532445947-4994] [eu.etaxonomy.cdm.remote.controller.OrderHintPreset] - BY_ORDER_INDEX_ASC not possible with TermVocabulary , falling back to BY_TITLE_CACHE_ASC
[algaterra_new] 2019-07-30 15:49:23,093 ERROR [qtp532445947-4997] [eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer] - error while getting collection property
java.lang.NoSuchMethodException: Unknown property 'setOfReferences' on class 'class eu.etaxonomy.cdm.model.occurrence.DeterminationEvent'
at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1257)
at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:808)
at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:884)
at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:464)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.bulkLoadLazyCollections(AdvancedBeanInitializer.java:544)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.bulkLoadLazies(AdvancedBeanInitializer.java:435)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeWildcard(AdvancedBeanInitializer.java:154)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNode(AdvancedBeanInitializer.java:123)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeRecursive(AdvancedBeanInitializer.java:105)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeRecursive(AdvancedBeanInitializer.java:107)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeRecursive(AdvancedBeanInitializer.java:107)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeAll(AdvancedBeanInitializer.java:85)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initialize(AdvancedBeanInitializer.java:57)
at eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase.load(CdmEntityDaoBase.java:785)
at eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase.load(VersionableDaoBase.java:113)
at eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase.load(VersionableDaoBase.java:106)
at eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase.load(VersionableDaoBase.java:36)
at eu.etaxonomy.cdm.api.service.ServiceBase.load(ServiceBase.java:202)
at eu.etaxonomy.cdm.api.service.ServiceBase.load(ServiceBase.java:42)
at sun.reflect.GeneratedMethodAccessor64005.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy3769.load(Unknown Source)
at eu.etaxonomy.cdm.remote.controller.BaseController.getCdmBaseInstance(BaseController.java:331)
at eu.etaxonomy.cdm.remote.controller.BaseController.getCdmBaseInstance(BaseController.java:306)
at eu.etaxonomy.cdm.remote.controller.BaseController.doGet(BaseController.java:108)


  

Related issues

Copied to Edit - feature request #8463: Make DeterminationEvent.references sources New 08/14/2019

Associated revisions

Revision 878c54ea (diff)
Added by Andreas Müller about 1 month ago

ref #8429 add SchemaUpdater_58_581 and implement update script for setOfReferences renaming

Revision 7b733b2a (diff)
Added by Andreas Müller about 1 month ago

ref #8429 rename DeterminationEvent.setOfReferences to DeterminationEvent.references

Revision 43f0e2a1 (diff)
Added by Andreas Müller about 1 month ago

ref #8442 , ref #8429 adapt test schemas to model changes

History

#1 Updated by Andreas Müller about 2 months ago

  • Subject changed from NoSuchMethodException: Unknown property 'setOfReferences' in AdvancedBeanInitializer to NoSuchMethodException: Unknown property DeterminationEvent.setOfReferences in AdvancedBeanInitializer
  • Target version changed from Unassigned CDM tickets to Release 5.9

The reason is that the references are called setOfReferences while the getter is getReferences.

Simplest solution: add to exceptions in a advancedBeanInitializer
Better solution: rename parameter, but keep column name
Better solution: rename parameter and rename column name (model change!)
Best solution: change to "sources" and handle like all other SourceableEntities

#2 Updated by Andreas Müller about 2 months ago

  • Status changed from New to In Progress
  • Priority changed from New to Highest
  • Target version changed from Release 5.9 to CDM UML 5.8

For now we do the column renaming with a model change.

DeterminationEvent_Reference.setOfReferences_id = references_id

#3 Updated by Andreas Müller about 2 months ago

  • Subject changed from NoSuchMethodException: Unknown property DeterminationEvent.setOfReferences in AdvancedBeanInitializer to Rename DeterminationEvent_Reference.setOfReferences_id
  • Category changed from cdmlib to cdm

#4 Updated by Andreas Müller about 1 month ago

#5 Updated by Andreas Müller about 1 month ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Andreas Müller to Andreas Kohlbecker

This is fixed now by renaming the parameter in model from setOfReferences to references.

Making it a set of sources I moved to #8463.

Please review.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)