简体   繁体   中英

Grails/Groovy string error

I am getting the following error which I cannot seem to understand:

| Error 2014-07-19 02:31:31,563 [http-bio-8080-exec-5] ERROR errors.GrailsExceptionResolver  - MissingMethodException occurred when processing request: [POST] /FatcaOne_0/customer/upload - parameters:
dataTypegrp: 3
fileTypegrp: 1
No signature of method: java.lang.String.negative() is applicable for argument types: () values: []
Possible solutions: notify(), next(), normalize(), next(), normalize(). Stacktrace follows:
Message: No signature of method: java.lang.String.negative() is applicable for argument types: () values: []
Possible solutions: notify(), next(), normalize(), next(), normalize()
    Line | Method
->>  238 | doCall                         in com.twc.fatcaone.FileImportService$_$tt__excelIndividualFileUpload_closure16$$EOkQLTQ0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    162 | $tt__excelIndividualFileUpload in com.twc.fatcaone.FileImportService$$EOkQLTQ0
|    147 | upload . . . . . . . . . . . . in com.twc.fatcaone.CustomerController
|    198 | doFilter                       in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter . . . . . . . . . . . in grails.plugin.cache.web.filter.AbstractFilter
|   1145 | runWorker                      in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run                            in java.lang.Thread

The line of code that this error points to reads as:

def (redFlags, yellowFlags) = processExistingIndividualRecordFlags(incomingRecord, recordThatAlreadyExists, params)

I am calling this line repeatedly in a loop and some previous few calls to it aren't causing any problem. So I'm stumped as to what/where I am doing to a String that seems to be causing this String related error.

当我尝试从列表中删除一个字符串并像这样向后返回我的“-”和“ =”时,我曾经遇到此错误:

listOfStrings =- stringTobeRemoved

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM