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

StackOverflowError during scan ant/javafx #7375

Closed
davd211 opened this issue May 13, 2024 · 2 comments
Closed

StackOverflowError during scan ant/javafx #7375

davd211 opened this issue May 13, 2024 · 2 comments
Labels
Ant [ci] enable "build tools" tests JavaFX [ci] enable JavaFX job kind:bug Bug report or fix needs:triage Requires attention from one of the committers pending-response Awaiting further information to be supplied

Comments

@davd211
Copy link

davd211 commented May 13, 2024

Apache NetBeans version

Apache NetBeans 21

What happened

estoy intentando que me funcione javafx.

Language / Project Type / NetBeans Component

No response

How to reproduce

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
 */
package javafx;

import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 *
 * @author David.P
 */
public class Javafx {

 public static void main(String[] args)
 {
 // TODO code application logic here
 launch(args);
 }

 
 
 public void start(Stage stage) throws Exception
 {
 Parent root = FXMLLoader.load(getClass().getResource("FXML.fxml"));

 Scene scene = new Scene(root);

 stage.setScene(scene);
 stage.show();
 }

}

este es el codigo que me han dado para ejecutarlo y me tendri aque saltar una ventanita, tambien tengo instalado scenebuilder

Did this work correctly in an earlier version?

No / Don't know

Operating System

windows

JDK

21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

messages.log
este es el mensaje de log
image
image

Are you willing to submit a pull request?

Yes

@davd211 davd211 added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels May 13, 2024
@johntor
Copy link
Contributor

johntor commented May 22, 2024

Try File / New Project...

Select: Java with Maven
then: FXML JavaFX Maven Archetype

Chick Next and then Finish.

You should have a running JavaFX Example with FXML files.

Chears!
J!

@mbien mbien added JavaFX [ci] enable JavaFX job Ant [ci] enable "build tools" tests labels May 23, 2024
@mbien mbien changed the title javafx StackOverflowError during scan ant/javafx May 23, 2024
@mbien
Copy link
Member

mbien commented May 23, 2024

the stack trace looks like it is walking a cyclic java module tree or something similar. Difficult to say without seeing the project - it might be a invalid module-info.java cycle or something like that.

it had some ant project stack frames in it, would be worth a try and check if it works with maven like @johntor suggested.

@mbien mbien added the pending-response Awaiting further information to be supplied label May 23, 2024
@davd211 davd211 closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ant [ci] enable "build tools" tests JavaFX [ci] enable JavaFX job kind:bug Bug report or fix needs:triage Requires attention from one of the committers pending-response Awaiting further information to be supplied
Projects
None yet
Development

No branches or pull requests

3 participants