{"action":"created","issue":{"url":"https://api.github.com/repos/mrosseel/bisq-api/issues/22","repository_url":"https://api.github.com/repos/mrosseel/bisq-api","labels_url":"https://api.github.com/repos/mrosseel/bisq-api/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/mrosseel/bisq-api/issues/22/comments","events_url":"https://api.github.com/repos/mrosseel/bisq-api/issues/22/events","html_url":"https://github.com/mrosseel/bisq-api/issues/22","id":295276373,"number":22,"title":"Headless api fails to launch on server.","user":{"login":"citkane","id":998947,"avatar_url":"https://avatars2.githubusercontent.com/u/998947?v=4","gravatar_id":"","url":"https://api.github.com/users/citkane","html_url":"https://github.com/citkane","followers_url":"https://api.github.com/users/citkane/followers","following_url":"https://api.github.com/users/citkane/following{/other_user}","gists_url":"https://api.github.com/users/citkane/gists{/gist_id}","starred_url":"https://api.github.com/users/citkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citkane/subscriptions","organizations_url":"https://api.github.com/users/citkane/orgs","repos_url":"https://api.github.com/users/citkane/repos","events_url":"https://api.github.com/users/citkane/events{/privacy}","received_events_url":"https://api.github.com/users/citkane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T20:12:12Z","updated_at":"2018-02-07T20:16:22Z","closed_at":null,"author_association":"NONE","body":"All is working on a laptop/desktop when running the headless API, but on an actual headless server:\r\n```\r\nBISQ_API_PORT=4445 mvn exec:java -X -Dexec.mainClass=\"io.bisq.api.app.ApiMain\" -Dexec.args=\"--baseCurrencyNetwork=BTC_REGTEST --bitcoinRegtestHost localhost --nodePort 4444 --useLocalhost true --appName Bisq-Regtest-Arbitrator --seedNodes=localhost:2002\"\r\n```\r\nProduces: [server.log](https://github.com/mrosseel/bisq-api/files/1704566/server.log)\r\n\r\nWhat appears to be the relevant bit is:\r\n```\r\njava.lang.UnsupportedOperationException: Unable to open DISPLAY\r\n    at com.sun.glass.ui.gtk.GtkApplication.<init> (GtkApplication.java:68)\r\n    at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication (GtkPlatformFactory.java:41)\r\n    at com.sun.glass.ui.Application.run (Application.java:146)\r\n    at com.sun.javafx.tk.quantum.QuantumToolkit.startup (QuantumToolkit.java:257)\r\n    at com.sun.javafx.application.PlatformImpl.startup (PlatformImpl.java:211)\r\n    at javafx.embed.swing.JFXPanel.initFx (JFXPanel.java:215)\r\n    at javafx.embed.swing.JFXPanel.<init> (JFXPanel.java:230)\r\n    at io.bisq.api.app.MainViewModelHeadless.lambda$initialiseJavaFxToolkit$0 (MainViewModelHeadless.java:274)\r\n    at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:311)\r\n    at java.awt.EventQueue.dispatchEventImpl (EventQueue.java:756)\r\n    at java.awt.EventQueue.access$500 (EventQueue.java:97)\r\n    at java.awt.EventQueue$3.run (EventQueue.java:709)\r\n    at java.awt.EventQueue$3.run (EventQueue.java:703)\r\n    at java.security.AccessController.doPrivileged (Native Method)\r\n    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)\r\n    at java.awt.EventQueue.dispatchEvent (EventQueue.java:726)\r\n    at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:201)\r\n    at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:116)\r\n    at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:105)\r\n    at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:101)\r\n    at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:93)\r\n    at java.awt.EventDispatchThread.run (EventDispatchThread.java:82)\r\nFeb-07 21:04:08.672 [BisqApiMain] ERROR i.b.api.app.Api: Uncaught Exception from thread BisqApiMain \r\nFeb-07 21:04:08.673 [BisqApiMain] ERROR i.b.api.app.Api: throwableMessage= null \r\nFeb-07 21:04:08.673 [BisqApiMain] ERROR i.b.api.app.Api: throwableClass= class java.lang.ExceptionInInitializerError \r\nFeb-07 21:04:08.676 [BisqApiMain] ERROR i.b.api.app.Api: Stack trace:\r\njava.lang.ExceptionInInitializerError\r\n\tat io.bisq.api.app.MainViewModelHeadless.initialiseJavaFxToolkit(MainViewModelHeadless.java:279)\r\n\tat io.bisq.api.app.MainViewModelHeadless.start(MainViewModelHeadless.java:253)\r\n\tat io.bisq.api.app.Api.<init>(Api.java:119)\r\n\tat io.bisq.api.app.ApiMain.lambda$doExecute$0(ApiMain.java:95)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n \r\njava.lang.ExceptionInInitializerError\r\n\tat io.bisq.api.app.MainViewModelHeadless.initialiseJavaFxToolkit(MainViewModelHeadless.java:279)\r\n\tat io.bisq.api.app.MainViewModelHeadless.start(MainViewModelHeadless.java:253)\r\n\tat io.bisq.api.app.Api.<init>(Api.java:119)\r\n\tat io.bisq.api.app.ApiMain.lambda$doExecute$0(ApiMain.java:95)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n```"},"comment":{"url":"https://api.github.com/repos/mrosseel/bisq-api/issues/comments/363896559","html_url":"https://github.com/mrosseel/bisq-api/issues/22#issuecomment-363896559","issue_url":"https://api.github.com/repos/mrosseel/bisq-api/issues/22","id":363896559,"user":{"login":"mrosseel","id":1465310,"avatar_url":"https://avatars3.githubusercontent.com/u/1465310?v=4","gravatar_id":"","url":"https://api.github.com/users/mrosseel","html_url":"https://github.com/mrosseel","followers_url":"https://api.github.com/users/mrosseel/followers","following_url":"https://api.github.com/users/mrosseel/following{/other_user}","gists_url":"https://api.github.com/users/mrosseel/gists{/gist_id}","starred_url":"https://api.github.com/users/mrosseel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrosseel/subscriptions","organizations_url":"https://api.github.com/users/mrosseel/orgs","repos_url":"https://api.github.com/users/mrosseel/repos","events_url":"https://api.github.com/users/mrosseel/events{/privacy}","received_events_url":"https://api.github.com/users/mrosseel/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T20:16:22Z","updated_at":"2018-02-07T20:16:22Z","author_association":"OWNER","body":"yes that might be a problem, I have to actually start the javafx framework. To avoid this, heavy refactoring in bisq will be needed I think. \r\n\r\nFor the time being, it might be a solution to install X on your remote server. Let me know if this solves it"}}
{"actor":{"display_login":"mrosseel"}}