AlchemyJ

by Axisoft

  • Features

  • Rule Engine

  • Resource

    • AJ Video
    • AJ Sample Model
    • AJ Template
    • AJ Excel Template
  • Download

  • Support

    • Blog
    • Docs
  • Buy

  • Contact Us

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    hugkin
    Jun 08, 2021

    Hi, I’m having trouble generating my Rest API.

    in Questions and Support

    Hi, I’m having trouble generating my Rest API, I’m using the template from this video: https://www.youtube.com/watch?v=eTyYTf1sw9k and each time I try, I get this error message:


    What could be the problem?

    Thank you very much in advance.


    [INFO ] - -------------------------------------------------------------------

    [INFO ] - AlchemyJ (Community Edition) Startup ...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Start to prepare AlchemyJ workspace...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - AlchemyJ Compiler Command-Line Parameter Information:

    [INFO ] - Compiler execution location: C:/Users/HugoKinneteg/Downloads/AlchemyJ v4.1.1.201109 Community/AlchemyJ Community Edition/AlchemyJ Compiler/

    [INFO ] - Target folder location: C:/Users/HugoKinneteg/Documents/TMP/tmp-2021060808233761-##RestApi/

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Copying studio output resources to compiler execution temp folder

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - AlchemyJ workspace is ready...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Start parsing studio output configuration file

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Parsing studio output configuration file: index.json

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/Compilation Config/%%SysConfig.json

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/Compilation Config/%%AppConfig.json

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/main.json

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/datadict.json

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/AlchemyJ Package Object Definition.json

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Completed all studio output configuration parsing tasks.

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Identify configuration type as [Java Rest Project], Start work...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Start to parse [Rest Project] compilation configuration

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/Compilation Config/##RestApi.json

    [INFO ] - Parsing studio output configuration file: REST API Sample Model2.xlsm/Compilation Config/##RestEndpointGroup.json

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Completed to do [Rest Project] compilation configuration parsing work

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Start to parse the target workbook...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Calculating workbook analysis scope

    [INFO ] - No any processing unit sheet found on workbook REST API Sample Model2.xlsm

    [INFO ] - Analysing each function point's workbook scope and workbook parsing scope

    [INFO ] - Loading AlchemyJ Library Function and preparing workbook parsing environment

    [INFO ] - ----- Open workbook REST API Sample Model2.xlsm to analysis -----

    [INFO ] - Parsing workbook sheet definition included in workbook REST API Sample Model2.xlsm

    [INFO ] - Parsing workbook name definition included in workbook REST API Sample Model2.xlsm

    [INFO ] - Parsing workbook non array formula cell definition included in workbook REST API Sample Model2.xlsm

    [INFO ] - Parsing workbook array formula cell definition included in workbook REST API Sample Model2.xlsm

    [INFO ] - ----- Workbook REST API Sample Model2.xlsm closed -----

    [INFO ] - Analysing AlchemyJ library module usage and do the supporting checking

    [INFO ] - Analysis end, AlchemyJ library module(s) [common-fun] will be embedded to API.

    [INFO ] - Collecting function point [Function Point 1] workbook parsing result, doing out of scope checking and processing unit sheet removing

    [INFO ] - Finish collecting function point [Function Point 1] workbook parsing result, doing out of scope checking and processing unit sheet removing

    [INFO ] - ------ [REST API Sample Model2.xlsm] Function point (Function Point 1) processing unit sheet handled result ------

    [INFO ] - No out of range cell needs to be processed

    [INFO ] - ----------------------------------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Complete parsing the workbook...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Start to prepare JAVA API execution definition...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Not found any defined function point, skip java api execution definition analysis work

    [INFO ] - Analysing application properties cell address mapping to API execution definition

    [INFO ] - Start to analysis entity definition to API execution definition

    [INFO ] - Collecting function point workbook initialization definition from workbook parsing result

    [INFO ] - Current generation mode is not debug mode, skip the function point in/out cell range analysis

    [INFO ] - Current generation mode is not high performance mode, Skip function point evaluation cell range analysis

    [INFO ] - Collecting AlchemyJ Library function required inforation

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Complete JAVA API execution definition analysis work...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Analyzing [Java Rest Project] overall information...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - [REST Project] Analysis Result: Base Package Name is my_api.

    [INFO ] - [REST Project] Analysis Result: Is Output as War is false.

    [INFO ] - [REST Project] Analysis Result: Is Generation as Micro-Service is false.

    [INFO ] - [REST Project] Analysis Result: External Yaml Configuration Location is null.

    [INFO ] - [REST Project] Analysis Result: External Yaml Configuration Environment Variable Name is null.

    [INFO ] - [REST Project] Analysis Result: External LOG Configuration Location is null.

    [INFO ] - [REST Project] Analysis Result: External LOG Configuration Environment Variable Name is null.

    [INFO ] - Identifying Runtime configuration

    [INFO ] - Identifying Build-and-Run Web Server Configuration

    [INFO ] - Identifying Advance Settings

    [INFO ] - Identifying application properties

    [INFO ] - Finish Yaml analysis, identify total 21 properties

    [INFO ] - [REST Project] Analysis Result: Maven Group Id is my_api.

    [INFO ] - [REST Project] Analysis Result: Maven Artifact Id is MyRESTAPI.

    [INFO ] - [REST Project] Analysis Result: Maven Version No. is 1.0.0.

    [INFO ] - [REST Project] Analysis Result: Compiler JDK version is 1.8.

    [INFO ] - [REST Project] Analysis Result: Packaging is Jar.

    [INFO ] - Identify total 1 entities: [my_api.entity.Output]

    [INFO ] - Identify 1 need to be generated, name(s) are [EndpointGroupController]

    [INFO ] - Identify 1 end point id for EndpointGroupController, for function point: [Function Point 1]

    [INFO ] - Identify 1 input end point parameter for EndpointGroupController function point Function Point 1

    [INFO ] - Identify 0 full-set end point parameter for EndpointGroupController function point Function Point 1

    [INFO ] - Identify 0 response operation end point parameter for EndpointGroupController function point Function Point 1

    [INFO ] - Identify 1 need to be generated, name(s) are [EndpointGroupService]

    [INFO ] - Identify 1 end point id for EndpointGroupService, for function point: [Function Point 1]

    [INFO ] - Identify 1 input end point parameter for EndpointGroupService function point Function Point 1

    [INFO ] - [REST Project] Analysis Result: Session Management Store Storage is Application Server.

    [INFO ] - Identify session management store type Application Server, no need to do any analysis step.

    [INFO ] - [REST Project] Analysis Result: Debug mode is false.

    [INFO ] - [REST Project] Analysis Result: Workbook [REST API Sample Model2.xlsm] Debug Command Action File Location is %CYAN%<>.

    [INFO ] - Identify rest API document enabled, start to do analysis

    [INFO ] - Workbook has no LDAP operation, skip all LDAP setting(s).

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Completed [Java Rest Project] code and project generation

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Start to do [Java Rest Project] code and project generation...

    [INFO ] - -------------------------------------------------------------------

    [INFO ] - Preparing class [my_api.Constants] code statement

    [INFO ] - Preparing class [my_api.AlchemyjSpringApplicationBootstrap] code statement

    [INFO ] - Preparing class [my_api.configuration.AlchemyjConfiguration] code statement

    [INFO ] - Preparing class [my_api.configuration.properties.AlchemyjProperties] code statement

    [INFO ] - Preparing class [my_api.configuration.properties.AlchemyjApiFpWbBufferProperties] code statement

    [INFO ] - Preparing class [my_api.configuration.properties.CustomizedFpWbCacheSizeConfigProperties] code statement

    [INFO ] - Preparing class [my_api.configuration.GlobalControllerExceptionHandler] code statement

    [INFO ] - Preparing class [my_api.configuration.ServiceAopHandler] code statement

    [INFO ] - Preparing class [my_api.configuration.application.listener.ExternalYamlConfigApplicationListener] code statement

    [INFO ] - Preparing class [my_api.configuration.application.listener.ExternalLogConfigApplicationListener] code statement

    [INFO ] - Preparing class [my_api.configuration.application.listener.SpringApplicationReadyApplicationListener] code statement

    [INFO ] - Preparing class [my_api.configuration.smtp.AlchemyjSmtpInfoProperties] code statement

    [INFO ] - Preparing class [my_api.configuration.smtp.AlchemyjSmtpInfoCollector] code statement

    [INFO ] - Preparing class [my_api.entity.base.AlchemyjResource] code statement

    [INFO ] - Preparing class [my_api.util.AdditionalInfoResponseUtils] code statement

    [INFO ] - Preparing class [my_api.util.EndPointExecutionUtils] code statement

    [INFO ] - Preparing class [my_api.util.SpringInitializerLogger] code statement

    [INFO ] - Preparing class [my_api.util.AuthenticationUtils] code statement

    [INFO ] - Preparing class [my_api.util.JacksonCustomizedDoubleSerializer] code statement

    [INFO ] - Preparing class [my_api.util.WebFileUpDownloadHelper] code statement

    [INFO ] - Preparing class [my_api.servlet.filter.ExceptionHandlingFilter] code statement

    [INFO ] - Preparing class [my_api.servlet.filter.ServletFilterConfiguration] code statement

    [INFO ] - Preparing 1 service statement file...

    [INFO ] - Preparing class [my_api.service.EndpointGroupService] code statement

    [INFO ] - Preparing class [my_api.service.impl.EndpointGroupServiceImpl] code statement

    [INFO ] - Preparing 1 controller statement file...

    [INFO ] - Preparing class [my_api.controller.EndpointGroupController] code statement

    [INFO ] - No any database operation found on REST Project, skip the data source configuration class generation.

    [INFO ] - Preparing class [my_api.entity.Output] code statement

    [INFO ] - Generating spring.factories file

    [INFO ] - Generating project log configuration XML file

    [INFO ] - Generating AlchemyJ file for workbook: [REST API Sample Model2.xlsm]

    [INFO ] - Generating YAML file

    [INFO ] - Preparing content of file pom.xml

    [INFO ] - Identify session management store type Application Server, no need prepare session management code statement.

    [INFO ] - Preparing class [my_api.configuration.SpringFoxSwaggerConfiguration] code statement

    [INFO ] - Start to generate [REST Project] Maven Project, project name: MyRESTAPI.

    [INFO ] - Running file generation task, file name: Constants.java

    [INFO ] - Running file generation task, file name: AlchemyjSpringApplicationBootstrap.java

    [INFO ] - Running file generation task, file name: AlchemyjConfiguration.java

    [INFO ] - Running file generation task, file name: AlchemyjProperties.java

    [INFO ] - Running file generation task, file name: AlchemyjApiFpWbBufferProperties.java

    [INFO ] - Running file generation task, file name: CustomizedFpWbCacheSizeConfigProperties.java

    [INFO ] - Running file generation task, file name: GlobalControllerExceptionHandler.java

    [INFO ] - Running file generation task, file name: ServiceAopHandler.java

    [INFO ] - Running file generation task, file name: ExternalYamlConfigApplicationListener.java

    [INFO ] - Running file generation task, file name: ExternalLogConfigApplicationListener.java

    [INFO ] - Running file generation task, file name: SpringApplicationReadyApplicationListener.java

    [INFO ] - Running file generation task, file name: AlchemyjSmtpInfoProperties.java

    [INFO ] - Running file generation task, file name: AlchemyjSmtpInfoCollector.java

    [INFO ] - Running file generation task, file name: AlchemyjResource.java

    [INFO ] - Running file generation task, file name: AdditionalInfoResponseUtils.java

    [INFO ] - Running file generation task, file name: EndPointExecutionUtils.java

    [INFO ] - Running file generation task, file name: SpringInitializerLogger.java

    [INFO ] - Running file generation task, file name: AuthenticationUtils.java

    [INFO ] - Running file generation task, file name: JacksonCustomizedDoubleSerializer.java

    [INFO ] - Running file generation task, file name: WebFileUpDownloadHelper.java

    [INFO ] - Running file generation task, file name: ExceptionHandlingFilter.java

    [INFO ] - Running file generation task, file name: ServletFilterConfiguration.java

    [INFO ] - Running file generation task, file name: EndpointGroupService.java

    [INFO ] - Running file generation task, file name: EndpointGroupServiceImpl.java

    [INFO ] - Running file generation task, file name: EndpointGroupController.java

    [INFO ] - Running file generation task, file name: Output.java

    [INFO ] - Running file generation task, file name: spring.factories

    [INFO ] - Running file generation task, file name: logback-spring.xml

    [INFO ] - Running file generation task, file name: ExecutionDefinition.aj

    [INFO ] - Running file generation task, file name: AlchemyJDefGuider.json

    [INFO ] - Running file generation task, file name: application.yml

    [INFO ] - Running file generation task, file name: pom.xml

    [INFO ] - Running file generation task, file name: SpringFoxSwaggerConfiguration.java

    [INFO ] - Running file generation task, file name: MyRESTAPI.bat

    [INFO ] - -------------------------------------------------------------------