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

java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform! #140

Closed
TApplencourt opened this Issue Mar 1, 2016 · 9 comments

Comments

Projects
None yet
3 participants
@TApplencourt
Copy link

TApplencourt commented Mar 1, 2016

On my archlinux, i have this error when running the openmole script:

java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
    at java.awt.Desktop.checkActionSupport(Desktop.java:225)
    at java.awt.Desktop.browse(Desktop.java:381)
    at org.openmole.ui.Application$$anonfun$start$1.browse$1(Application.scala:187)
    at org.openmole.ui.Application$$anonfun$start$1.apply(Application.scala:198)
    at org.openmole.ui.Application$$anonfun$start$1.apply(Application.scala:60)
    at org.openmole.core.replication.DBServerRunning$.useDB(DBServerRunning.scala:42)
    at org.openmole.ui.Application.start(Application.scala:60)
    at org.openmole.ui.Application.start(Application.scala:47)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

java -version give:

openjdk version "1.8.0_74"
OpenJDK Runtime Environment (build 1.8.0_74-b02)
OpenJDK 64-Bit Server VM (build 25.74-b02, mixed mode)
@mathieuleclaire

This comment has been minimized.

Copy link
Contributor

mathieuleclaire commented Mar 1, 2016

Hi Thomas,
it is an error connected to the launching of your web browser (openmole
is now a client/server application). For some reason it is not possible
to launch your default browser with the java browse method. What is your
default web browser ?

However, you can launch the client anyway by surfing to the url:
https://localhost:/
The should have been mentionned just before the error you give.
Something like: "INFOS: Server listening on port 41278"

Mathieu

@TApplencourt

This comment has been minimized.

Copy link
Author

TApplencourt commented Mar 1, 2016

Hi mathieu, thx for the quick help.

Sadly i have no port =(

Null identity service, trying login service: null
Finding identity service: null
!SESSION 2016-03-01 10:46:07.377 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_74
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Framework arguments:  -cp /home/razoa/Downloads/openmole/openmole-plugins -gp /home/razoa/Downloads/openmole/openmole-plugins-gui
Command-line arguments:  -consoleLog -cp /home/razoa/Downloads/openmole/openmole-plugins -gp /home/razoa/Downloads/openmole/openmole-plugins-gui

!ENTRY org.eclipse.osgi 4 0 2016-03-01 10:46:17.614
!MESSAGE Application error
!STACK 1

I have a modified chromium (vivaldi) for main browser. But, I change it to Firefox; The error persist.

I have maybe found something usefull to you:

When attempting to download a modserver trough the FTBLauncher i get the following error log
[11:58:04] [ERROR] Desktop.checkActionSupport:225->OSUtils.browse:374: Could not open link: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!

A quick check in OSUtils.java reveal that when checking for desktop integration (isDesktopSupported) no check for the browse action itself is performed (isSupported(action))

For the record my system is a non-standard unix desktop; the xdg-open fallback works just fine but apparently isDesktopSupported returns true despite that the browse action is unavailable.

@mathieuleclaire

This comment has been minimized.

Copy link
Contributor

mathieuleclaire commented Mar 1, 2016

The fact is the browse method in java.awt.Desktop has been designed for windows and mac. It has been poorly tested on linux and only on gnome and KDE. What is your linux desktop ? Unity? That could explain why the browse method is unstable. Can you please provide with the full stack ?

@TApplencourt

This comment has been minimized.

Copy link
Author

TApplencourt commented Mar 1, 2016

I'm using i3 for the windows manager. So i guess, and use nether gnone or KDE and that the problem.

I will use the command line option of openmol : )

@mathieuleclaire

This comment has been minimized.

Copy link
Contributor

mathieuleclaire commented Mar 1, 2016

This is the problem I guess. So we have to display the port number before lanching the desktop so that you could see it anyway. I will do this, and peharps you could then use openmole with the development version.

@TApplencourt

This comment has been minimized.

Copy link
Author

TApplencourt commented Mar 1, 2016

Oh that will be nice! Thx you

@mathieuleclaire

This comment has been minimized.

Copy link
Contributor

mathieuleclaire commented Mar 2, 2016

Done, you can download the development version (not stable) on next.openmole.org. Then, run ./openmole --no-browser. The server will start, you will get the port so that you can run it in your browser.

@romainreuillon

This comment has been minimized.

Copy link
Contributor

romainreuillon commented Apr 12, 2016

@TApplencourt may we close this issue?

@TApplencourt

This comment has been minimized.

Copy link
Author

TApplencourt commented Apr 13, 2016

Yes for sure! Sorry for that and thanks again.
Le 12 avr. 2016 23:15, "Romain Reuillon" notifications@github.com a
écrit :

@TApplencourt https://github.com/TApplencourt may we close this issue?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#140 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.