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 #1494

Open
nzhdanova-intellective opened this issue May 31, 2024 · 0 comments
Open

InternalExecutionError #1494

nzhdanova-intellective opened this issue May 31, 2024 · 0 comments
Labels
SFGE Issues related to the Salesforce Graph Engine

Comments

@nzhdanova-intellective
Copy link

nzhdanova-intellective commented May 31, 2024

Have you tried to resolve this issue yourself first?
Yes
Bug Description
image
Output / Logs

2024-05-30 21:23:48 bae91924-89c4-4b8d-a1c7-9434e1d61afc WARN  ApexPathExpanderUtil:233 - expand-Finished.
2024-05-30 21:23:48 bae91924-89c4-4b8d-a1c7-9434e1d61afc WARN  ApexValueBuilder:444 - TODO: Choosing trueValue. ternaryVertex=TernaryExpression{properties={FirstChild=false, BeginLine=179, DefiningType_CaseSafe=unityvalidatormodel, LastChild=true, DefiningType=UnityValidatorModel, EndLine=179, childIdx=1, BeginColumn=27}}, trueValue=LiteralExpression{properties={FirstChild=false, BeginLine=179, DefiningType_CaseSafe=unityvalidatormodel, LastChild=false, DefiningType=UnityValidatorModel, EndLine=179, childIdx=1, LiteralType=NULL, BeginColumn=47}}, falseValue=VariableExpression{properties={FirstChild=false, BeginLine=179, DefiningType_CaseSafe=unityvalidatormodel, LastChild=true, DefiningType=UnityValidatorModel, EndLine=179, Name_CaseSafe=unityurl, childIdx=2, BeginColumn=54, Name=unityUrl}}
2024-05-30 21:23:48 bae91924-89c4-4b8d-a1c7-9434e1d61afc WARN  ApexPathExpanderUtil:233 - expand-Finished.
2024-05-30 21:23:48 bae91924-89c4-4b8d-a1c7-9434e1d61afc WARN  ApexValueBuilder:444 - TODO: Choosing trueValue. ternaryVertex=TernaryExpression{properties={FirstChild=false, BeginLine=179, DefiningType_CaseSafe=unityvalidatormodel, LastChild=true, DefiningType=UnityValidatorModel, EndLine=179, childIdx=1, BeginColumn=27}}, trueValue=LiteralExpression{properties={FirstChild=false, BeginLine=179, DefiningType_CaseSafe=unityvalidatormodel, LastChild=false, DefiningType=UnityValidatorModel, EndLine=179, childIdx=1, LiteralType=NULL, BeginColumn=47}}, falseValue=VariableExpression{properties={FirstChild=false, BeginLine=179, DefiningType_CaseSafe=unityvalidatormodel, LastChild=true, DefiningType=UnityValidatorModel, EndLine=179, Name_CaseSafe=unityurl, childIdx=2, BeginColumn=54, Name=unityUrl}}
2024-05-30 21:23:48  INFO  ThreadableRuleExecutor:151 - Submission=RuleRunnerSubmission{pathEntry=Method{properties={FirstChild=false, BeginLine=24, DefiningType_CaseSafe=unityvalidatorservice, LastChild=false, DefiningType=UnityValidatorService, Constructor=false, EndLine=24, Name_CaseSafe=validateconfig, childIdx=2, ReturnType=UnityRestService.ServerCallData, Name=validateConfig, Arity=3, ReturnType_CaseSafe=unityrestservice.servercalldata, BeginColumn=51}}, rules=[com.salesforce.rules.ApexFlsViolationRule@28c669c6, com.salesforce.rules.UseWithSharingOnDatabaseOperation@47f20053]}, Timed out after 15000000 ms
2024-05-30 21:23:48 bae91924-89c4-4b8d-a1c7-9434e1d61afc ERROR ApexPathExpanderUtil:297 - Incomplete. Current ApexPathExpanders size=0
org.apache.tinkerpop.gremlin.process.traversal.util.TraversalInterruptedException: null
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:149) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:150) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:150) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.hasNext(ExpandableStepIterator.java:47) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.CollectingBarrierStep.processNextStart(CollectingBarrierStep.java:108) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:135) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:40) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.Traversal.fill(Traversal.java:184) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.Traversal.toList(Traversal.java:122) ~[gremlin-core-3.5.1.jar:3.5.1]
	at com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:178) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:155) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:188) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:169) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:158) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.ClassStaticScope.getInitializationPath(ClassStaticScope.java:167) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.initializeClassStaticScope(ApexPathExpander.java:393) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.addInstanceInitializationPath(ApexPathExpander.java:705) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.handleMethodCall(ApexPathExpander.java:653) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:532) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:523) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:452) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler.expand(ApexPathExpanderUtil.java:222) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler.expand(ApexPathExpanderUtil.java:160) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler._expand(ApexPathExpanderUtil.java:94) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil.expand(ApexPathExpanderUtil.java:53) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.ApexPathUtil.getPaths(ApexPathUtil.java:201) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.ApexPathUtil.summarizeForwardPaths(ApexPathUtil.java:80) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.PathBasedRuleRunner.getPathSummary(PathBasedRuleRunner.java:222) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.PathBasedRuleRunner.runRules(PathBasedRuleRunner.java:75) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.runRules(ThreadableRuleExecutor.java:230) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:167) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:127) [sfge-1.0.1-pilot.jar:?]
	at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
	at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) [?:?]
	at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) [?:?]
	at java.util.concurrent.ForkJoinTask$AdaptedCallable.run(ForkJoinTask.java:1456) [?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
2024-05-30 21:24:16 bae91924-89c4-4b8d-a1c7-9434e1d61afc ERROR ApexPathExpanderUtil:98 - Incomplete. Current PathCollector size=274573
org.apache.tinkerpop.gremlin.process.traversal.util.TraversalInterruptedException: null
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:149) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:150) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:150) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.hasNext(ExpandableStepIterator.java:47) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.CollectingBarrierStep.processNextStart(CollectingBarrierStep.java:108) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:135) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:40) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.Traversal.fill(Traversal.java:184) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.Traversal.toList(Traversal.java:122) ~[gremlin-core-3.5.1.jar:3.5.1]
	at com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:178) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:155) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:188) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:169) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:158) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.ClassStaticScope.getInitializationPath(ClassStaticScope.java:167) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.initializeClassStaticScope(ApexPathExpander.java:393) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.addInstanceInitializationPath(ApexPathExpander.java:705) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.handleMethodCall(ApexPathExpander.java:653) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:532) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:523) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:452) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler.expand(ApexPathExpanderUtil.java:222) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler.expand(ApexPathExpanderUtil.java:160) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler._expand(ApexPathExpanderUtil.java:94) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil.expand(ApexPathExpanderUtil.java:53) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.ApexPathUtil.getPaths(ApexPathUtil.java:201) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.ApexPathUtil.summarizeForwardPaths(ApexPathUtil.java:80) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.PathBasedRuleRunner.getPathSummary(PathBasedRuleRunner.java:222) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.PathBasedRuleRunner.runRules(PathBasedRuleRunner.java:75) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.runRules(ThreadableRuleExecutor.java:230) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:167) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:127) [sfge-1.0.1-pilot.jar:?]
	at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
	at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) [?:?]
	at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) [?:?]
	at java.util.concurrent.ForkJoinTask$AdaptedCallable.run(ForkJoinTask.java:1456) [?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
2024-05-30 21:24:16  ERROR ThreadableRuleExecutor:185 - Timeout Error executing rule. submission=RuleRunnerSubmission{pathEntry=Method{properties={FirstChild=false, BeginLine=24, DefiningType_CaseSafe=unityvalidatorservice, LastChild=false, DefiningType=UnityValidatorService, Constructor=false, EndLine=24, Name_CaseSafe=validateconfig, childIdx=2, ReturnType=UnityRestService.ServerCallData, Name=validateConfig, Arity=3, ReturnType_CaseSafe=unityrestservice.servercalldata, BeginColumn=51}}, rules=[com.salesforce.rules.ApexFlsViolationRule@28c669c6, com.salesforce.rules.UseWithSharingOnDatabaseOperation@47f20053]}
org.apache.tinkerpop.gremlin.process.traversal.util.TraversalInterruptedException: null
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:149) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:150) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:150) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.hasNext(ExpandableStepIterator.java:47) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.CollectingBarrierStep.processNextStart(CollectingBarrierStep.java:108) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:135) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:40) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.Traversal.fill(Traversal.java:184) ~[gremlin-core-3.5.1.jar:3.5.1]
	at org.apache.tinkerpop.gremlin.process.traversal.Traversal.toList(Traversal.java:122) ~[gremlin-core-3.5.1.jar:3.5.1]
	at com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:178) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.vertex.SFVertexFactory.loadVertices(SFVertexFactory.java:155) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:188) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:169) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.AbstractClassScope.getFields(AbstractClassScope.java:158) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.symbols.ClassStaticScope.getInitializationPath(ClassStaticScope.java:167) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.initializeClassStaticScope(ApexPathExpander.java:393) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.addInstanceInitializationPath(ApexPathExpander.java:705) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.handleMethodCall(ApexPathExpander.java:653) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:532) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:523) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:452) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler.expand(ApexPathExpanderUtil.java:222) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler.expand(ApexPathExpanderUtil.java:160) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil$ApexPathExpansionHandler._expand(ApexPathExpanderUtil.java:94) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.expander.ApexPathExpanderUtil.expand(ApexPathExpanderUtil.java:53) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.ApexPathUtil.getPaths(ApexPathUtil.java:201) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.graph.ops.ApexPathUtil.summarizeForwardPaths(ApexPathUtil.java:80) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.PathBasedRuleRunner.getPathSummary(PathBasedRuleRunner.java:222) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.PathBasedRuleRunner.runRules(PathBasedRuleRunner.java:75) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.runRules(ThreadableRuleExecutor.java:230) ~[sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:167) [sfge-1.0.1-pilot.jar:?]
	at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:127) [sfge-1.0.1-pilot.jar:?]
	at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
	at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) [?:?]
	at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) [?:?]
	at java.util.concurrent.ForkJoinTask$AdaptedCallable.run(ForkJoinTask.java:1456) [?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
2024-05-30 21:24:16  INFO  ThreadableRuleExecutor:216 - Finished. method=UnityValidatorService:validateConfig:24
2024-05-30 21:24:16  INFO  ThreadableRuleExecutor:119 - Future returned after 14823773 ms
2024-05-30 21:24:16  INFO  ThreadableRuleExecutor:58 - Wait #70 finished, adding 1 new entries
2024-05-30 21:24:16  INFO  ThreadableRuleExecutor:68 - Finishing waiting for futures
2024-05-30 21:24:16  INFO  ThreadableRuleExecutor:69 - Shutting down
2024-05-30 21:24:16  INFO  ThreadableRuleExecutor:73 - Finished shutdown

Steps To Reproduce
sf scanner run dfa --format html --outfile CodeAnalyzerDFA.html --target ./force-app --projectdir ./ --category Security --sfgejvmargs -Xmx20g --pathexplimit -1 --rule-thread-count 2 --rule-thread-timeout 15000000
Expected Behavior
I expect a scanning result instead of timeout exception.
Operating System
Windows 11
Salesforce CLI Version
@salesforce/cli/2.42.6 win32-x64 node-v20.12.2
Code Analyzer Plugin (@salesforce/sfdx-scanner) Version
4.2.0
Additional Context (Screenshots, Files, etc)
In sfge.log file there are many references to lines 179 and 163 in UnityValidatorModel. Please see code below for line 179.
getUrl method:

    public String getUrl() {
        if (url1 != null) {
            return url1;
        }

        Map<String,Object> namedCred = getNamedCred();
        if (!defined(namedCred)) {
            return url1;
        }

        url1 = (String) namedCred.get('Endpoint');
        url1 = String.isBlank(url1) ? null : url1; // line 179

        return url1;
    }

Log file makes me think that scanner has stucked on line 179 and repeats the same actions again and again.
sfge.log

Workaround
No response
Urgency
Critical (need it for security review)

@stephen-carter-at-sf stephen-carter-at-sf added the SFGE Issues related to the Salesforce Graph Engine label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SFGE Issues related to the Salesforce Graph Engine
Projects
None yet
Development

No branches or pull requests

2 participants