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

Local jdeploy crashes #45

Open
Folcon opened this issue Mar 9, 2022 · 2 comments
Open

Local jdeploy crashes #45

Folcon opened this issue Mar 9, 2022 · 2 comments

Comments

@Folcon
Copy link

Folcon commented Mar 9, 2022

Hey, I just had this happen when installing jdeploy as a local package and then running ./node_modules/jdeploy/bin/jdeploy

 ./node_modules/jdeploy/bin/jdeploy.js
Launching shellmarks gui.  Use jdeploy -help for help
Exception in thread "AWT-EventQueue-0" org.json.JSONException: JSONObject["name"] not found.
        at org.json.JSONObject.get(JSONObject.java:580)
        at org.json.JSONObject.getString(JSONObject.java:867)
        at ca.weblite.jdeploy.gui.JDeployProjectEditor.show(JDeployProjectEditor.java:298)
        at ca.weblite.jdeploy.JDeploy.lambda$main$0(JDeploy.java:1867)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
@shannah
Copy link
Owner

shannah commented Mar 9, 2022

If you don't have a package.json file yet, it will create one with all the needed keys. Unfortunately, because you installed it locally, it generated a package.json file for that installation. jdeploy is reading that and it's missing a bunch of stuff.

This is still a bug, because it should be able to handle malformed package.json files. Will fix this on my next pass.

@Folcon
Copy link
Author

Folcon commented Mar 9, 2022

So for a workaround I should just delete the package.json I assume?

===== EDIT =====

Yep, that works!

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