Skip to content

Failed to extract component #129

@abdullahtellioglu

Description

@abdullahtellioglu

Description of the bug

Unable to extract SwingBridge component

Info

Error Message -> Failed to extract component
Error Details -> Could not find mappings for all constructor parameters
Active Level -> WarehouseView

WarehouseView.java

@Route(value = "")
public class WarehouseView extends VerticalLayout {
   private static final String MAIN_CLASS = "com.my.parser.MainClass";

   public WarehouseView() {
       add(new SwingBridge(MAIN_CLASS));
   }

}

Stacktrace

java.lang.IllegalArgumentException: Could not find mappings for all constructor parameters
   at com.vaadin.copilot.javarewriter.JavaRewriter.extractComponent(JavaRewriter.java:1897)
   at com.vaadin.copilot.JavaRewriteHandler.handleExtractComponent(JavaRewriteHandler.java:680)
   at com.vaadin.copilot.JavaRewriteHandler$RewriteHandler.handle(JavaRewriteHandler.java:88)
   at com.vaadin.copilot.JavaRewriteHandler.handleMessage(JavaRewriteHandler.java:144)
   at com.vaadin.copilot.CopilotSession.handleMessageSync(CopilotSession.java:155)
   at com.vaadin.copilot.CopilotSession.handleMessage(CopilotSession.java:122)
   at com.vaadin.copilot.Copilot.handleMessage(Copilot.java:70)

Versions

Flow: 25.1.0-beta1
Vaadin: 25.1.0-beta1
Spring Boot: 4.0.3
Spring: 7.0.5
Copilot: 25.1.0-beta1
Frontend Hotswap: Pre-Built Bundle
OS: aarch64 Mac OS X 26.2
Java: Eclipse Adoptium 22.0.2
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Java Hotswap: Hotswap is disabled
IDE Plugin: Not installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions