Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InternalExecutionError WHILE scanning my code with DFA #1493

Closed
ThamaraiAster opened this issue May 30, 2024 · 1 comment
Closed

InternalExecutionError WHILE scanning my code with DFA #1493

ThamaraiAster opened this issue May 30, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists SFGE Issues related to the Salesforce Graph Engine

Comments

@ThamaraiAster
Copy link

Have you tried to resolve this issue yourself first?

Yes

Bug Description

Severity- 3 | \classes\iq_CreateShipmentController.cls | Source Line -- 73 | Source Column -- 38 | iq_CreateShipmentController | Method -- > calculatePalletSpots |   | InternalExecutionError
ERROR Message :
Graph Engine identified your source and sink, but you must manually verify that you have a sanitizer in this path. Then, add an engine directive to skip the path. Next, create a Github issue for the Code Analyzer team that includes the error and stack trace. After we fix this issue, check the Code Analyzer release notes for more info. Error and stacktrace: UnexpectedException: MethodCallExpressionVertex{fullMethodName=totalShipmentAmount.setScale, referenceVertex=LazyVertex{result=ReferenceExpression{properties={FirstChild=true, Names=[totalShipmentAmount], BeginLine=122, DefiningType_CaseSafe=iq_shipmentutils, LastChild=false, DefiningType=iq_ShipmentUtils, EndLine=122, Name_CaseSafe=totalshipmentamount, childIdx=0, BeginColumn=35, ReferenceType=METHOD, Name=totalShipmentAmount}}}, chainedNames=[totalShipmentAmount], properties={FirstChild=false, FullMethodName=totalShipmentAmount.setScale, BeginLine=122, FullMethodName_CaseSafe=totalshipmentamount.setscale, DefiningType_CaseSafe=iq_shipmentutils, LastChild=true, DefiningType=iq_ShipmentUtils, EndLine=122, MethodName_CaseSafe=setscale, childIdx=1, BeginColumn=55, MethodName=setScale}}: com.salesforce.graph.symbols.apex.ApexSimpleValue.apply(ApexSimpleValue.java:55);com.salesforce.graph.symbols.apex.ApexNumberValue.apply(ApexNumberValue.java:42);com.salesforce.graph.symbols.apex.ApexIntegerValue.apply(ApexIntegerValue.java:9);com.salesforce.graph.symbols.PathScopeVisitor.handleApexValueMethod(PathScopeVisitor.java:1487);com.salesforce.graph.symbols.PathScopeVisitor.afterVisit(PathScopeVisitor.java:1242);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterVisit(DefaultSymbolProviderVertexVisitor.java:800)

Output / Logs

No response

Steps To Reproduce

When i run dfa scan for the class "iq_CreateShipmentController" class , i am getting same kind of error for 29 classes in my code base.

Expected Behavior

I expect a scanning result for my class.

Operating System

Window 11

Salesforce CLI Version

@salesforce/cli 2.41.8

Code Analyzer Plugin (@salesforce/sfdx-scanner) Version

@salesforce/sfdx-scanner 4.1.0 (latest-beta)

Java Version

java version "21.0.2" 2024-01-16 LTS

Additional Context (Screenshots, Files, etc)

iq_CreateShipmentController.cls.zip
while scanning this file we were getting the problem.

Workaround

No Work Around

Urgency

High

@stephen-carter-at-sf stephen-carter-at-sf added the SFGE Issues related to the Salesforce Graph Engine label May 31, 2024
@stephen-carter-at-sf stephen-carter-at-sf added the duplicate This issue or pull request already exists label Jun 3, 2024
@stephen-carter-at-sf
Copy link
Collaborator

Marked this as a duplicate of #1497

@stephen-carter-at-sf stephen-carter-at-sf closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists SFGE Issues related to the Salesforce Graph Engine
Projects
None yet
Development

No branches or pull requests

2 participants