Skip to content

AWS Blu Age workshop L3 -Implement refactorings-NullPointerException

0

When I implement the refacoring class "replaceCee3abdCalls" and tried to execute the code i got a NullPointerException, while I used those two arguments for execution : D:\PhotonUser\Workshop\workspace\carddemo-refactoring\test\sample\dsl D:\PhotonUser\Workshop\workspace\carddemo-refactoring\test\sample\dsl_refactored

Here is the error msg showed on the console : The error "DSL STM file is null! Skipping refactoring." indicates that dslBean.getStmFile() is null. This means that in some cases DSLBean does not contain a valid STM file.

2025/02/21 10:43:55.199 INFO LoggerUtils - Refactoring configuration: 2025/02/21 10:43:55.199 INFO LoggerUtils - -> Input path: D:\PhotonUser\Workshop\workspace\carddemo-refactoring\test\sample\dsl 2025/02/21 10:43:55.200 INFO LoggerUtils - -> Output path: D:\PhotonUser\Workshop\workspace\carddemo-refactoring\test\sample\dsl_refactored 2025/02/21 10:43:55.350 INFO LoggerUtils - -> Refactorings: Naming, CEE3ABD 2025/02/21 10:43:55.351 INFO LoggerUtils - -> Save debug files: false 2025/02/21 10:43:55.351 INFO LoggerUtils - -> Transformation center: false 2025/02/21 10:43:55.357 INFO LoggerUtils - Create fresh output project... 2025/02/21 10:43:55.456 INFO LoggerUtils - -> Done. 2025/02/21 10:43:55.458 INFO LoggerUtils - Scan Velocity inputs... 2025/02/21 10:43:55.513 INFO LoggerUtils - -> Found 0 CL files. 2025/02/21 10:43:55.516 INFO LoggerUtils - -> Found 0 JCL files. 2025/02/21 10:43:55.519 INFO LoggerUtils - -> Found 2 DS/STM pairs. 2025/02/21 10:43:55.520 INFO LoggerUtils - -> Found 2 unknown/orphan files. 2025/02/21 10:43:55.521 INFO LoggerUtils - Parse DSL inputs... 2025/02/21 10:43:56.553 INFO LoggerUtils - -> Done. 2025/02/21 10:43:56.554 INFO LoggerUtils - Process refactorings... 2025/02/21 10:43:56.559 INFO LoggerUtils - -> Process refactoring Naming... 2025/02/21 10:43:56.572 INFO LoggerUtils - [CBACT02C.cbl.stm] Renamed process from _1000CardfileGetNext to cardfileGetNext. 2025/02/21 10:43:56.576 INFO LoggerUtils - [CBACT02C.cbl.stm] Renamed process from _0000CardfileOpen to cardfileOpen. 2025/02/21 10:43:56.578 INFO LoggerUtils - [CBACT02C.cbl.stm] Renamed process from _9000CardfileClose to cardfileClose. 2025/02/21 10:43:56.581 INFO LoggerUtils - [CBACT02C.cbl.stm] Renamed process from _9999AbendProgram to abendProgram. 2025/02/21 10:43:56.583 INFO LoggerUtils - [CBACT02C.cbl.stm] Renamed process from _9910DisplayIoStatus to displayIoStatus. 2025/02/21 10:43:56.593 INFO LoggerUtils - -> Process refactoring CEE3ABD... 2025/02/21 10:43:56.599 INFO LoggerUtils - [CBACT02C.cbl.stm] Replace call to CEE3ABD by call to Abend API 2025/02/21 10:43:56.603 INFO LoggerUtils - -> Done. 2025/02/21 10:43:56.603 INFO LoggerUtils - Write outputs... 2025/02/21 10:43:56.664 ERROR LoggerUtils - java.lang.NullPointerException: Cannot invoke "com.netfective.bluage.reverse.gapwalk.refactoring.GapWalk.Common.DSLFile.eResource()" because "<parameter2>" is null at com.netfective.bluage.reverse.gapwalk.refactoring.java.model.dsl.DSLInputWriter.a(Unknown Source) at com.netfective.bluage.reverse.gapwalk.refactoring.java.model.dsl.DSLInputWriter$a.run(Unknown Source) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)

asked 2 years ago151 views

1 Answer
0

The error you're encountering in the AWS Blu Age L3 Workshop during the implementation of the "replaceCee3abdCalls" refactoring appears to be related to a null pointer exception when trying to write the output files.

This issue could be caused by a few factors:

  1. Missing or corrupt input files: Ensure that all required input files are present in the specified input directory and that they are not corrupted.

  2. Incorrect file paths: Double-check that the input and output paths you provided are correct and accessible.

  3. Permissions issues: Verify that you have the necessary read and write permissions for both the input and output directories.

  4. Incompatible versions: Make sure you're using the correct version of the Blu Age tools that matches the workshop environment.

To troubleshoot this issue:

  1. Verify that all required files are present in the input directory.
  2. Check file and directory permissions.
  3. Try running the refactoring process with administrator privileges.
  4. Ensure you're using the correct version of the Blu Age tools for the workshop.
  5. If possible, try the process with a simpler or known working set of input files to isolate the issue.

If the problem persists after trying these steps, you may need to consult the workshop documentation or reach out to AWS support for further assistance specific to the Blu Age L3 Workshop environment.
Sources
AWS BluAge L3 workshop. Go-Live->Deploy->Start application. Application fails to start. | AWS re:Post
Blu Age L3 Workshop : Execution > Test > Batch > CREASTMT - { "exitCode": -1, "stepName": "STEP020", "program": "IDCAMS", "status": "Error" } | AWS re:Post

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.