I am trying to deploy executable war (java -jar myapp.jar) on Heroku, which I am successfully able to execute on local machine.
I followed below steps to do it on heroku using CLI
heroku plugins:install java
heroku create --no-remote --app testjar
heroku deploy:jar target/my-app.jar --app testjar
First two steps run fine... but in 3rd I got below exception. Any idea on the cause ? Or what information it wants? I Have given it all as per the document https://devcenter.heroku.com/articles/deploying-executable-jar-files
Uploading funApp.jar
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:19)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:252:12)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
docker#default:/c/Users/Abhi/DockerAppHub/heroku/bin$ ./heroku deploy:jar ./funApp.jar --app testjar08
Uploading funApp.jar events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:19)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:252:12)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Related
I am getting this are after running all of my test cases in the cypress dashboard. Can anyone help me to solve this issue? Test cases are running no issues in there.
An error was thrown in your plugins file while executing the handler for the after:run event.
The error we received was:
Error: spawn cucumber-json-formatter.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Yarn Install successful:
C:\Users\Yael\Downloads\metamask-extension-8.0.9\metamask-extension-8.0.9>yarn
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 2.77s.
Yarn dist error:
C:\Users\Yael\Downloads\metamask-extension-8.0.9\metamask-extension-8.0.9>yarn dist
yarn run v1.22.10
$ yarn build prod
$ node development/build/index.js prod
running task "prod"...
Starting 'prod'...
Starting 'clean'...
(node:12548) ExperimentalWarning: The fs.promises API is experimental
Finished 'clean'
Starting 'styles:prod'...
Finished 'styles:prod'
Starting 'scripts:deps:background'...
Starting 'scripts:deps:ui'...
Starting 'scripts:core:prod:background'...
Starting 'scripts:core:prod:ui'...
Starting 'scripts:core:prod:phishing-detect'...
Starting 'scripts:core:prod:contentscript'...
Starting 'static:prod'...
Starting 'manifest:prod'...
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn yarn ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
C:\Users\Yael\Downloads\metamask-extension-8.0.9\metamask-extension-8.0.9>
I am running a javascript app in heroku (scoold) and have been told by the developer that there is a new jar file to upload. I Downloaded the heroku cli and jar file and ran the following commands as instructed:
heroku plugins:install java
heroku deploy:jar scoold-x.y.z.jar --app myscooldapp
However, I am getting the following error:
C:\Sites>heroku deploy:jar scoold-pro-1.37.1.jar --app nocodeflow
Uploading scoold-pro-1.37.1.jar
events.js:187
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn java',
path: 'java',
spawnargs: [
'-Dheroku.appName=nocodeflow',
'-Xmx1g',
'-Dheroku.jarFile=scoold-pro-1.37.1.jar',
'-Dheroku.jarOpts=',
'-cp',
'C:\\Users\\Artwe\\AppData\\Local\\heroku\\node_modules\\#heroku-cli\\plugin-java\\lib\\heroku-deploy-complete.jar',
'com.heroku.sdk.deploy.DeployJar'
]
}
I create a ticket on the Heroku support center, because I had the same problem.
I want to deploy a simple war and normally I don't need any Node.js ...
Getting the following error while trying to use typescript with cucumber feature file. Everything works fine if I change the .ts to .js. Error also seems clueless.
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
at EventEmitter.handler (C:\Users\A527629\AppData\Local\Cypress\Cache\3.2.0\Cypress\resources\app\packages\server\lib\plugins\util.js:67:29)
at emitOne (events.js:115:13)
at EventEmitter.emit (events.js:210:7)
at ChildProcess.<anonymous> (C:\Users\...\Local\Cypress\Cache\3.2.0\Cypress\resources\app\packages\server\lib\plugins\util.js:25:29)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at emit (internal/child_process.js:768:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
I referred the url to configure it.
More details about the set up can be found at - url
var forever = require('forever-monitor');
var panel = new (forever.Monitor)('p.js');
panel.start();
this code outputs :
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
at first i thought my code has a problem so i installed forever globally and tried
forever p.js
and it says
C:\w>forever p.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
while node p.js in the same directory works just fine , the file is there
when trying to run a non-existent file forever gives a different error message
any clues on where to look is appreciated .
try with C:\w>forever -c node p.js
was the fix to my problem...