java.lang.RuntimeException: Method code too large [Transformation – script map]

    • Dhanasekar
      Participant
      2 years, 9 months ago #3511

      Is there any limit in the lines of code in our ebonding Tranformation Script mapping (preblock / param mapping) ?
      If so what is the limit ? and how to handle such scenarios ?

      we observe this exception,

      com.digitate.ignio.log.LogAspect:?|?|Error in service Map com.digitate.ignio.platform.actionmapper.service.ActionMappingService.getCatalogMapping(Map, String, String, String) com.digitate.ignio.utils.exception.IgnioInvalidRequestExeception: Exception Context: [1:INTERACTION_ID=93ca2cb1-3867-412c-a953-ebc847aa1c3a] [2:USER_ID=null] --------------------------------- 422startup failed: General error during class generation: <strong>Method code too large! java.lang.RuntimeException: Method code too large!</strong> at groovyjarjarasm.asm.MethodWriter.getSize(MethodWriter.java:2059) at groovyjarjarasm.asm.ClassWriter.toByteArray(ClassWriter.java:861) at org.codehaus.groovy.control.CompilationUnit$17.call(CompilationUnit.java:850) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)

    • santoshk
      Participant
      2 years, 9 months ago #3513
      Up
      2
      Down
      ::

      In groovy mapping section – It is recommended to keep the code smaller and readable – 20-30 lines.
      You can use the library to refactor the larger code in multiple methods, classes.
      https://digitate.atlassian.net/wiki/spaces/ID/pages/679742451/Libraries

Viewing 1 reply thread

You must be logged in to reply to this topic.