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

Unhandled Exception When --hzPublicAddress Option is not set with --outputUberJar #3166

Closed
jwadel opened this issue Sep 14, 2018 · 1 comment
Milestone

Comments

@jwadel
Copy link

jwadel commented Sep 14, 2018

When a user runs a command to create an UberJar without specifying the --hzPublicAddress option on Windows 10 command line interface, an exception is thrown.

For example,

When a user runs:

java -jar payara-micro.jar --deploy my-app.war --port 8080 --outputUberJar myApp.jar

The following exception is thrown:

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 fish.payara.micro.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
        at fish.payara.micro.boot.loader.Launcher.launch(Launcher.java:107)
        at fish.payara.micro.boot.loader.Launcher.launch(Launcher.java:70)
        at fish.payara.micro.boot.PayaraMicroLauncher.main(PayaraMicroLauncher.java:79)
        at fish.payara.micro.PayaraMicro.main(PayaraMicro.java:397)
Caused by: java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:460)
        at java.util.Properties.setProperty(Properties.java:166)
        at fish.payara.micro.impl.PayaraMicroImpl.packageUberJar(PayaraMicroImpl.java:2293)
        at fish.payara.micro.impl.PayaraMicroImpl.main(PayaraMicroImpl.java:198)

An appropriate error message instructing the user to specify a Public Address using the --hzPublicAddress should at least be shown.

@smillidge smillidge added this to the Payara 5.184 milestone Sep 14, 2018
@smillidge
Copy link
Contributor

smillidge commented Sep 14, 2018

Hi this is a known issue fixed by #3134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants