Skip to content

L3-Workshop-Automation: Error in test case 01-batches/unloading for compare

2

Hi Everyone,

While executing the automation step in the Blu Age L3 workshop, the batch test cases are passing. However, during the unloading process, I am encountering a deserialization error for 4 datasets. I believe this issue is related to the error I am experiencing in the Blu Age compare step.

Here is the error I encountered:

Enter image description here

This is the deserialization error I got

Unload Bluesam Log Output:

Unload Bluesam [AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS] to [D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/01-batches/functional-equivalence/bluesam/outputs]  
     [echo] ------------------------------------------------------------------------------------------------------------------------------------------------  
     [exec] 2025-01-05 08:45:48.581  INFO  --- [             main] Export Bluesam datasets to file system  
     [exec] 2025-01-05 08:45:48.873  INFO  --- [             main] Cache 'metadata' created in EhcacheManager.  
     [exec] 2025-01-05 08:45:49.999  INFO  --- [             main] Exporting Bluesam dataset: AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS  
     [exec] 2025-01-05 08:45:49.999  INFO  --- [             main] Opening dataSet AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS ...  
     [exec] 2025-01-05 08:45:50.006  INFO  --- [             main] Using regular expression provided through VM argument org.ehcache.sizeof.filters.AnnotationSizeOfFilter.pattern for IgnoreSizeOf annotation : ^.*cache\..*IgnoreSizeOf$  
     [exec] 2025-01-05 08:45:50.153  INFO  --- [             main] Detected JVM data model settings of: 64-Bit OpenJDK JVM with Compressed OOPs  
     [exec] 2025-01-05 08:45:50.263  INFO  --- [             main] Failed to attach to VM and load the agent: class java.io.IOException: Can not attach to current VM  
     [exec] 2025-01-05 08:45:50.304  INFO  --- [             main] Cache 'AWS_M2_CARDDEMO_TRANSACT_VSAM_KSDS' created in EhcacheManager.  
     [exec] 2025-01-05 08:45:50.394  INFO  --- [             main] Loaded 312 records from AWS_M2_CARDDEMO_TRANSACT_VSAM_KSDS in 86 ms  

Error Logs:

[exec] 2025-01-05 08:45:50.455  ERROR --- [             main] Unexpected error while exporting datasets to file system  
[exec] com.netfective.bluage.gapwalk.bluesam.core.metadata.DeserializationException: Expected token: }, read token: persistenceId  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.metadata.Deserializer$a.parse(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.metadata.Deserializer.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.metadata.Deserializer.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.metadata.Deserializer.deserializeInternalMetadata(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.storage.rdbms.AbstractRdbmsMetadataPersistence.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.storage.rdbms.AbstractRdbmsMetadataPersistence.b(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.storage.rdbms.AbstractRdbmsMetadataPersistence.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.storage.rdbms.AbstractRdbmsMetadataPersistence.getInternalMetadata(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.metadata.CoreDataSetMetadata.getInternalMetadata(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.metadata.CoreMetadata.getInternalMetadata(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.CoreDataSet.<init>(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.CoreBluesamManager.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.CoreBluesam.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.CoreBluesam.a(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.core.CoreBluesam.open(Unknown Source)  
[exec] 	at com.netfective.bluage.gapwalk.bluesam.Bluesam.open(Unknown Source)  
[exec] 	at aws.bluage.bluesam.export.services.BluesamServices.openBluesam(BluesamServices.java:30)  
[exec] 	at aws.bluage.bluesam.export.services.ExportServices.export(ExportServices.java:38)  
[exec] 	at aws.bluage.bluesam.export.Export.main(Export.java:36)  

Additionally, my online test cases are passing except for one: bill payment. It is failing because it cannot find the transaction ID. I suspect this issue is linked to the deserialization error, as the console log indicates that AWS_M2_CARDDEMO_TRANSACT_VSAM_KSDS is empty.

Enter image description here Enter image description here Enter image description here Enter image description here

I found similar questions from others experiencing this issue:

L3 Workshop - Automation - Execute - Unloading of Bluesam KSDS file for compare is failing.

Unloading issue during automation process in L3 workshop

Blu Age L3 workshop automation: Online testcase assertion error

I checked bac has correct data/records. But don't know why it is not getting trans id during check in bill payment? If anyone has resolved this issue or has suggestions on how to address it, please share your insights. Thanks in advance!

asked 2 years ago306 views

2 Answers
0

The issue you're experiencing during the automation step of the Blu Age L3 workshop is related to a deserialization error that occurs while unloading Bluesam datasets. This error is preventing some datasets from being properly exported, which in turn affects the comparison step and causes issues with certain test cases, such as the bill payment transaction.

The deserialization error suggests there might be a problem with the metadata structure of the affected files. The error message indicates that the system is expecting a closing bracket (}) but instead encounters a "persistenceId" token. This could be due to a syntax error in the file definition or a potential caching issue.

To address this problem, you can try the following steps:

  1. Clear any cached data or temporary files that might be interfering with the unloading process. Sometimes, residual data from previous runs can cause unexpected behavior.

  2. Double-check all configurations and ad-hoc modifications to ensure they've been correctly applied. Incorrect configurations can lead to issues during the automation process.

  3. Verify that you're using the correct version of the workshop tools and executables. The L3 Workshop is designed to work with specific versions, and using an incompatible version could lead to unexpected errors.

  4. If possible, try rerunning the classification step in your code base project. This might help reset file types and resolve any metadata inconsistencies.

  5. Check the CSD (CICS System Definition) file to ensure it contains the expected VSAM file definitions. If the CSD file is incomplete or contains errors, it could lead to issues during the unloading process.

  6. Ensure that the database server is started and running correctly, and that all required datasources (jics, bluesam, bac, primary) are properly configured.

If these steps don't resolve the issue, you may need to reach out to the AWS BluAge support team or the workshop facilitators for more specific guidance. They might be able to provide a targeted solution based on the exact version and configuration of your workshop environment.

Regarding the bill payment test case failure, it appears to be related to the deserialization error preventing the proper loading of transaction data. Once you resolve the unloading issue, this test case should likely pass as well.

If the problem persists after trying these solutions, consider restarting your Eclipse environment with the updated configuration files, as this has helped some users resolve similar issues in the past.
Sources
Unloading issue during automation process in L3 Workshop | AWS re:Post
L3 Workshop - Automation - Execute - Unloading of Bluesam KSDS file for compare is failing. | AWS re:Post
In AWS Blu Age L3 Workshop I get error when running POSTRAN backend in BAC | AWS re:Post

answered 2 years ago

0
AWS

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.