Ticket #334 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

groovy.lang.MissingMethodException in AssayController

Reported by: robert@… Owned by: business@…
Priority: major Milestone:
Component: Unknown Version: 0.6.5
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

See  http://test.dbnp.org/gscf-0.6.5-dbnptest/assay/selectAssay

Error 500: Executing action [selectAssay] of controller [dbnp.studycapturing.AssayController?] caused exception: groovy.lang.MissingMethodException?: No signature of method: dbnp.studycapturing.Assay.findAllByParent() is applicable for argument types: () values: [] Possible solutions: findAllByParent(java.util.List)
Servlet: grails
URI: /gscf-0.6.5-dbnptest/grails/assay/selectAssay.dispatch
Exception Message: No signature of method: dbnp.studycapturing.Assay.findAllByParent() is applicable for argument types: () values: [] Possible solutions: findAllByParent(java.util.List)
Caused by: No signature of method: dbnp.studycapturing.Assay.findAllByParent() is applicable for argument types: () values: [] Possible solutions: findAllByParent(java.util.List)
Class: AssayController?
At Line: [129]
Code Snippet:
Stack Trace

groovy.lang.MissingMethodException?: No signature of method: dbnp.studycapturing.Assay.findAllByParent() is applicable for argument types: () values: []
Possible solutions: findAllByParent(java.util.List)

at dbnp.studycapturing.AssayController?$_closure10.doCall(AssayController?.groovy:129)

at dbnp.studycapturing.AssayController?$_closure10.doCall(AssayController?.groovy)

at org.apache.jk.server.JkCoyoteHandler?.invoke(JkCoyoteHandler?.java:190)

at org.apache.jk.common.HandlerRequest?.invoke(HandlerRequest?.java:291)

at org.apache.jk.common.ChannelSocket?.invoke(ChannelSocket?.java:774)

at org.apache.jk.common.ChannelSocket?.processConnection(ChannelSocket?.java:703)

at org.apache.jk.common.ChannelSocket?$SocketConnection?.runIt(ChannelSocket?.java:896)

at java.lang.Thread.run(Thread.java:662)

Change History

Changed 3 years ago by business@…

  • status changed from new to assigned
  • owner changed from business@… to robert@…

Hello Robert, could you explain how you got here via the UI? I can't deduce that from the stacktrace.

Changed 3 years ago by robert@…

  • owner changed from robert@… to business@…

Choose Assay -> Export Assay to Excel

Changed 3 years ago by business@…

  • status changed from assigned to closed
  • resolution set to fixed

Solved by correcting the database, which had an invalid record in the assay table:\

gscf-test=# select * from assay;
  id  | version |                  external_assayid                  | module_id |            name            | parent_id | template_id | assays_idx |              assayuuid               
------+---------+----------------------------------------------------+-----------+----------------------------+-----------+-------------+------------+--------------------------------------
 1169 |       0 | Nugo_ppsh_Transcriptomics                          |       428 | affymetrix                 |        58 |         360 |          1 | 81e1aed3-c6f9-4803-9e35-360395459dbf
(10 rows)

This was the only record for this study, so the assays_idx should have been 0.
Solved it by issueing this SQL command:

gscf-test=# update assay set assays_idx = 0 where id=1169;
UPDATE 1
Note: See TracTickets for help on using tickets.