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

[BUG] vertex=ArrayLoadExpression{DefiningType= #973

Open
Olchawa opened this issue Feb 15, 2023 · 2 comments
Open

[BUG] vertex=ArrayLoadExpression{DefiningType= #973

Olchawa opened this issue Feb 15, 2023 · 2 comments
Labels
BUG P2 Malfunctioning Often SFGE Issues related to the Salesforce Graph Engine

Comments

@Olchawa
Copy link

Olchawa commented Feb 15, 2023

Hey, I am getting unexpected exception thrown for the following code.

com.salesforce.exception.UnexpectedException: vertex=ArrayLoadExpression{DefiningType=SharingSetupManager, BeginLine=7, EndLine=7}, labels=[Ljava.lang.String;@3a70acd5
at com.salesforce.graph.build.MethodPathBuilderVisitor.assertVertexLabel(MethodPathBuilderVisitor.java:638) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.MethodPathBuilderVisitor.visitSwitchStatement(MethodPathBuilderVisitor.java:436) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.MethodPathBuilderVisitor._visit(MethodPathBuilderVisitor.java:140) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.MethodPathBuilderVisitor._visit(MethodPathBuilderVisitor.java:159) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.MethodPathBuilderVisitor.apply(MethodPathBuilderVisitor.java:97) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.AbstractApexVertexBuilder.afterInsert(AbstractApexVertexBuilder.java:119) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.AbstractApexVertexBuilder.buildVertices(AbstractApexVertexBuilder.java:103) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.AbstractApexVertexBuilder.buildVertices(AbstractApexVertexBuilder.java:99) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.AbstractApexVertexBuilder.buildVertices(AbstractApexVertexBuilder.java:35) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.CustomerApexVertexBuilder.build(CustomerApexVertexBuilder.java:21) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.build.Util.buildGraph(Util.java:39) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.ops.GraphUtil.loadSourceFolders(GraphUtil.java:168) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.Main$Dependencies.loadSourceFoldersToGraph(Main.java:246) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.Main.execute(Main.java:149) [sfge-1.0.1-pilot.jar:?]
at com.salesforce.Main.process(Main.java:99) [sfge-1.0.1-pilot.jar:?]
at com.salesforce.Main.main(Main.java:68) [sfge-1.0.1-pilot.jar:?]

and code:
Zrzut ekranu 2023-02-15 o 10 16 17

@rmohan20
Copy link
Contributor

Hi @Olchawa - thanks for letting us know. You've found a new bug for us - we'll fix this.
In the meantime, could you extract lstInputRecords[0] to a new variable and use the variable in the switch statement? That could temporarily workaround the issue. Please let us know if it helps you get past this error.

@rmohan20 rmohan20 added the BUG P2 Malfunctioning Often label Feb 15, 2023
@git2gus
Copy link

git2gus bot commented Feb 15, 2023

This issue has been linked to a new work item: W-12550237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG P2 Malfunctioning Often SFGE Issues related to the Salesforce Graph Engine
Projects
None yet
Development

No branches or pull requests

3 participants