Git Product home page Git Product logo

Comments (10)

vatri avatar vatri commented on August 26, 2024 1

P.S.

do you know how to pull another GIT branch? I've just created "hotfix/1" branch so you can pull the changes from there instead of copying from above comment.

from invman.

vatri avatar vatri commented on August 26, 2024

Try to replace existing line 126 with following:

System.out.println(e.getMessage());

Old line was:

System.out.println(e.getCause());

Then run it again same way and send output.

from invman.

skadimoolam avatar skadimoolam commented on August 26, 2024

The output seem to be very similar to the first one.

$ mvn exec:java                                                                                                               
[INFO] Scanning for projects...                                                                                               
[INFO]                                                                                                                        
[INFO] ------------------------------------------------------------------------                                               
[INFO] Building invman 1.0-SNAPSHOT                                                                                           
[INFO] ------------------------------------------------------------------------                                               
[INFO]                                                                                                                        
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ invman >>>                                                 
[INFO]                                                                                                                        
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ invman <<<                                                 
[INFO]                                                                                                                        
[INFO]                                                                                                                        
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ invman ---                                                            
null                                                                                                                          
java.net.UnknownHostException: C                                                                                              
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)                                         
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)                                                         
        at java.net.Socket.connect(Socket.java:589)                                                                           
        at java.net.Socket.connect(Socket.java:538)                                                                           
        at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:964)                                                           
        at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:924)                                                          
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1019)                                                            
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1005)                                                            
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)                                       
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:400)                                
        at java.net.URL.openStream(URL.java:1045)                                                                             
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2440)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)                                                              
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)                                                                  
        at net.vatri.inventory.App.getView(App.java:123)                                                                      
        at net.vatri.inventory.App.start(App.java:46)                                                                         
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)                       
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)                               
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)                                     
        at java.security.AccessController.doPrivileged(Native Method)                                                         
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)                                 
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)                                   
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)                                                        
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)                                       
        at java.lang.Thread.run(Thread.java:748)                                                                              
Showing page:login                                                                                                            
Exception in Application start method                                                                                         
Exception in Application stop method                                                                                          
[WARNING]                                                                                                                     
java.lang.reflect.InvocationTargetException                                                                                   
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                        
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                              
        at java.lang.reflect.Method.invoke(Method.java:498)                                                                   
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)                                                   
        at java.lang.Thread.run(Thread.java:748)                                                                              
Caused by: java.lang.RuntimeException: Exception in Application start method                                                  
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)                                  
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)                        
        ... 1 more                                                                                                            
Caused by: java.lang.NullPointerException                                                                                     
        at net.vatri.inventory.App.showPage(App.java:106)                                                                     
        at net.vatri.inventory.App.start(App.java:54)                                                                         
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)                       
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)                               
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)                                     
        at java.security.AccessController.doPrivileged(Native Method)                                                         
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)                                 
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)                                   
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)                                                        
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)                                       
        ... 1 more                                                                                                            
[INFO] ------------------------------------------------------------------------                                               
[INFO] BUILD FAILURE                                                                                                          
[INFO] ------------------------------------------------------------------------                                               
[INFO] Total time: 9.292 s                                                                                                    
[INFO] Finished at: 2017-04-27T17:57:25+05:30                                                                                 
[INFO] Final Memory: 8M/138M                                                                                                  
[INFO] ------------------------------------------------------------------------                                               
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project invman: An exception oc
red while executing the Java class. null: InvocationTargetException: Exception in Application start method: NullPointerExcepti
 -> [Help 1]                                                                                                                  
[ERROR]                                                                                                                       
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.                                           
[ERROR] Re-run Maven using the -X switch to enable full debug logging.                                                        
[ERROR]                                                                                                                       
[ERROR] For more information about the errors and possible solutions, please read the following articles:                     
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException                                      
                                                                                                                              
The output seem to be very similar to the first one.
$ mvn exec:java                                                                                                               
[INFO] Scanning for projects...                                                                                               
[INFO]                                                                                                                        
[INFO] ------------------------------------------------------------------------                                               
[INFO] Building invman 1.0-SNAPSHOT                                                                                           
[INFO] ------------------------------------------------------------------------                                               
[INFO]                                                                                                                        
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ invman >>>                                                 
[INFO]                                                                                                                        
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ invman <<<                                                 
[INFO]                                                                                                                        
[INFO]                                                                                                                        
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ invman ---                                                            
null                                                                                                                          
java.net.UnknownHostException: C                                                                                              
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)                                         
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)                                                         
        at java.net.Socket.connect(Socket.java:589)                                                                           
        at java.net.Socket.connect(Socket.java:538)                                                                           
        at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:964)                                                           
        at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:924)                                                          
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1019)                                                            
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1005)                                                            
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)                                       
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:400)                                
        at java.net.URL.openStream(URL.java:1045)                                                                             
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2440)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)                                                              
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)                                                              
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)                                                                  
        at net.vatri.inventory.App.getView(App.java:123)                                                                      
        at net.vatri.inventory.App.start(App.java:46)                                                                         
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)                       
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)                               
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)                                     
        at java.security.AccessController.doPrivileged(Native Method)                                                         
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)                                 
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)                                   
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)                                                        
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)                                       
        at java.lang.Thread.run(Thread.java:748)                                                                              
Showing page:login                                                                                                            
Exception in Application start method                                                                                         
Exception in Application stop method                                                                                          
[WARNING]                                                                                                                     
java.lang.reflect.InvocationTargetException                                                                                   
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                        
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                              
        at java.lang.reflect.Method.invoke(Method.java:498)                                                                   
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)                                                   
        at java.lang.Thread.run(Thread.java:748)                                                                              
Caused by: java.lang.RuntimeException: Exception in Application start method                                                  
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)                                  
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)                        
        ... 1 more                                                                                                            
Caused by: java.lang.NullPointerException                                                                                     
        at net.vatri.inventory.App.showPage(App.java:106)                                                                     
        at net.vatri.inventory.App.start(App.java:54)                                                                         
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)                       
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)                               
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)                                     
        at java.security.AccessController.doPrivileged(Native Method)                                                         
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)                                 
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)                                   
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)                                                        
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)                                       
        ... 1 more                                                                                                            
[INFO] ------------------------------------------------------------------------                                               
[INFO] BUILD FAILURE                                                                                                          
[INFO] ------------------------------------------------------------------------                                               
[INFO] Total time: 9.292 s                                                                                                    
[INFO] Finished at: 2017-04-27T17:57:25+05:30                                                                                 
[INFO] Final Memory: 8M/138M                                                                                                  
[INFO] ------------------------------------------------------------------------                                               
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project invman: An exception oc
red while executing the Java class. null: InvocationTargetException: Exception in Application start method: NullPointerExcepti
 -> [Help 1]                                                                                                                  
[ERROR]                                                                                                                       
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.                                           
[ERROR] Re-run Maven using the -X switch to enable full debug logging.                                                        
[ERROR]                                                                                                                       
[ERROR] For more information about the errors and possible solutions, please read the following articles:                     
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException                                      
                                                                                                                              

from invman.

vatri avatar vatri commented on August 26, 2024

Try below command instead "mvn exec:java"

mvn -e exec:java

And send output same way.

from invman.

skadimoolam avatar skadimoolam commented on August 26, 2024

Here's what you asked for.

$ mvn -e exec:java
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building invman 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ invman >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ invman <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ invman ---
null
java.net.UnknownHostException: C
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:964)
        at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:924)
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1019)
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1005)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:400)
        at java.net.URL.openStream(URL.java:1045)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2440)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
        at net.vatri.inventory.App.getView(App.java:123)
        at net.vatri.inventory.App.start(App.java:46)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        at java.lang.Thread.run(Thread.java:748)
Showing page:login
Exception in Application start method
Exception in Application stop method
[WARNING]
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
        ... 1 more
Caused by: java.lang.NullPointerException
        at net.vatri.inventory.App.showPage(App.java:106)
        at net.vatri.inventory.App.start(App.java:54)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        ... 1 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.106 s
[INFO] Finished at: 2017-04-27T21:38:26+05:30
[INFO] Final Memory: 7M/57M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project invman: An exception occured while executing the Java class. null: InvocationTargetException: Exception in Application start method: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project invman: An exception occured while executing the Java class. null
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. null
        at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:352)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
        ... 1 more
Caused by: java.lang.NullPointerException
        at net.vatri.inventory.App.showPage(App.java:106)
        at net.vatri.inventory.App.start(App.java:54)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        ... 1 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

from invman.

vatri avatar vatri commented on August 26, 2024

I assume problem is b/c the program can't find FXML views. You probably use Windows OS, right?

Try to:

  1. Add into head import java.io.File;

  2. replace App.java at line 123 (String viewPath = System.getProperty("user.dir") + "/src/main/resources/views/";) with:

String viewPath = new StringBuilder(System.getProperty("user.dir"))
                    .append(File.separator).append("src")
                    .append(File.separator).append("main")
                    .append(File.separator).append("resources")
                    .append(File.separator).append("views")
                    .append(File.separator).toString();

from invman.

vatri avatar vatri commented on August 26, 2024

@skadimoolam Did it solve the issue? :)

from invman.

skadimoolam avatar skadimoolam commented on August 26, 2024

Nope. It's still not fixed I get the same error again.

And Yes, I do use a windows machine.

$ mvn exec:java
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building invman 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ invman >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ invman <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ invman ---
null
java.net.UnknownHostException: C
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:964)
        at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:924)
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1019)
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1005)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:400)
        at java.net.URL.openStream(URL.java:1045)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2440)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
        at net.vatri.inventory.App.getView(App.java:132)
        at net.vatri.inventory.App.start(App.java:47)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        at java.lang.Thread.run(Thread.java:748)
Showing page:login
Exception in Application start method
Exception in Application stop method
[WARNING]
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
        ... 1 more
Caused by: java.lang.NullPointerException
        at net.vatri.inventory.App.showPage(App.java:107)
        at net.vatri.inventory.App.start(App.java:55)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        ... 1 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.979 s
[INFO] Finished at: 2017-04-28T18:55:45+05:30
[INFO] Final Memory: 8M/135M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project invman: An exception occured while executing the Java class. null: InvocationTargetException: Exception in Application start method: NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

from invman.

skadimoolam avatar skadimoolam commented on August 26, 2024

Finally, I found a work around,

I change this.

String viewPath = new StringBuilder(System.getProperty("user.dir"))
        .append(File.separator).append("src")
        .append(File.separator).append("main")
        .append(File.separator).append("resources")
        .append(File.separator).append("views")
        .append(File.separator).toString();

java.net.URL viewRes = new java.net.URL("file://" + viewPath + viewFile + ".fxml");
activeElement = FXMLLoader.load(viewRes);

To this.

FXMLLoader loader = new FXMLLoader();
loader.setLocation(App.class.getResource("/views/"+ viewFile +".fxml"));
activeElement = loader.load();

from invman.

skadimoolam avatar skadimoolam commented on August 26, 2024

I have made pull request of this fix.

from invman.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.