Gluon Mobile - ResourceBundle.getBundle and class.getResource don't load the resources - gluon-mobile

I'm currently porting a javafx desktop app to be a gluon mobile app. I'm a completely beginner using this platform.
When launched as a desktop app, it works properly.
When launched on the ipad simulator the application breaks with messages like the ones below.
[WARN] java.lang.Class: Class.forName() failed to load 'com.objectdb.ui.language.Locale_en_EN'. Use the -forcelinkclasses command line option or add <forceLinkClasses><pattern>com.objectdb.ui.language.Locale_en_EN</pattern></forceLinkClasses> to your robovm.xml file to link it in.
[WARN] java.lang.Class: Class.forName() failed to load 'com.objectdb.ui.language.Locale_en'. Use the -forcelinkclasses command line option or add <forceLinkClasses><pattern>com.objectdb.ui.language.Locale_en</pattern></forceLinkClasses> to your robovm.xml file to link it in.
[WARN] java.lang.Class: Class.forName() failed to load 'javax.xml.stream.FactoryFinder$ClassLoaderFinderConcrete'. Use the -forcelinkclasses command line option or add <forceLinkClasses><pattern>javax.xml.stream.FactoryFinder$ClassLoaderFinderConcrete</pattern></forceLinkClasses> to your robovm.xml file to link it in.
[WARN] java.lang.Class: Class.forName() failed to load 'javax.servlet.Servlet'. Use the -forcelinkclasses command line option or add <forceLinkClasses><pattern>javax.servlet.Servlet</pattern></forceLinkClasses> to your robovm.xml file to link it in.
I can't find where to include these on the gluon mobile app, if somebody could point me on the right direction, documentation, etc...

Related

Freeradius using Google LDAP error with rlm_options

I've got a fresh freeradius server and I'm trying to set it up with Gsuites LDAP service for authentication using the instructions set here:
https://support.google.com/cloudidentity/answer/9089736?hl=en&ref_topic=9173976#zippy=%2Cfreeradius
Debug mode worked prior to installing and configuring the ldap module. I've gone through and checked my settings, when I start freeradius in debug mode I receive the error:
/etc/freeradius/3.0/mods-enabled/ldap[496]: Failed to link to module 'rlm_options': /usr/lib/freeradius/rlm_options.so: cannot open shared object file: No such file or directory
I'm unclear on what that file is or why it's missing. Searching documentation I haven't found any reference to the file.
Line 496 in the ldap file seems to refer to the options { breadcrumb section.
Curious if anybody can point me in the right direction, or if I just comment out the options section.

Trying to run a Robot Framework Test Case against a Windows app with Appium Server - possible?

I am using Robot Framework with the RIDE IDE. I have an Appium Server session running. As a first try, I want to write a Robot Framework test case to open an instance of the Windows notepad. Firstly, is this even possible, or am I misguided?
Appium
The following are the settings used:
Remote Host: 127.0.0.1
Remote Port: 4723
Remote Path: /
SSL: disabled
The "Desired Capabilities" are set as represented by the following JSON:
{
"app": "C:\\Windows\\system32\\notepad.exe"
}
WinAppDriver
It is running on port 4723.
RIDE IDE
The following test case is being executed:
*** Settings ***
Library AppiumLibrary
*** Test Cases ***
TC0
Open Application http://localhost:4723/wd/hub app=C:\Windows\System32\notepad.exe
This yields the following error:
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No application is open
What might be the cause of this?
Edit: Additional information - when executing the above test case, the following appears in the WinAppDriver console:
Per default AppiumLibrary will run Capture Page Screenshot on failure.
AppiumLibrary Documentation
Most likely sequence is as follow.
Test case try open notepad but fail.
Open Application http://localhost:4723/wd/hub app=C:\Windows\System32\notepad.exe
On this failure AppiumLibrary try Capture Page Screenshot but fails due to there is no open application since step 1 failed.
I believe you need to focus on troubleshooting why the app do not open properly.
If you like to suppress this failure you can you can set AppiumLibrary to not capture screen on failure in the import with run_on_failure=No Operation, see the linked documentation above.
Library AppiumLibrary run_on_failure=No Operation
Slightly unrelated but I just wanted to give a few tips with using winappdriver and robotframework as there isn't a lot of concise information out there.
I personally have found that running the winappdriver through appium has been slower than running the winappdriver standalone.
localhost is also slower than using 127.0.0.1 as your system has to resolve that address each time: https://github.com/microsoft/WinAppDriver/issues/1269
AppiumLibrary is still very tailored to Mobile automation so it is missing some of the usual things you would want in desktop automation such as 'drag and drop', 'mouse over element', keywords for controlling the driver setup/teardown, etc. RobotFramework-Zoomba's DesktopLibrary extends AppiumLibrary and adds a lot of these keywords if you would be willing to try that out. Keyword docs can be found here: https://accruent.github.io/robotframework-zoomba/DesktopLibraryDocumentation.html

Packaging Electron Apps with external files

In my Electron application, I have a button in which a user can click which triggers node's child_process and runs an external .jar file in the background:
exec(`java -jar encoder.jar -i filein -o fileout`, function(err, stdout, stderr)
The actual .jar file is located within the root directory of the project. When running in development mode(unpackaged) this works great. However, when I package it and run the application, I get the following error:
There was an error: Error: Unable to access jarfile encoder.jar
Am I to assume that everything in the project folder gets packaged when using electron-packager? If not, what am I missing?
look into process.resourcesPath

main.dart not found since upgrade to Dart 1.9.1

Since I upgraded to Dart 1.9.1 whenever I try to run my main.dart by clicking in Run in Dartium or Run as JavaScript I get this error on the browsers console
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/main.dart
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/main.dart.js
I tried running my own bin/server.dart so I didn't rely on the pub server to serve my static files. From this script, the directions to reach the web folder usually where "../web", I had to change this to just "web" in order for this to work.
Was there a change I am not aware? Is this a bug?
Edit
I also get this message on Dartium
You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer.
Update
The directory problem might be because of a change an update in Shelf or Redstone. I did a pub update as suggested and that might have changed the way the framework looked for folders.
The problem seems to be that you're trying to run an application (server-side) as a website.
If you press the icon next to the run icon and in the dropdown menu click on "Manage launches" you can click the left of the icons (the server-icon) which allows you to run a CommandLine application.
If you select your dart script here (server.dart or main.dart) you'll be able to use it.

Blackberry Error: Jar Command Failed

Following is the error I get
Error: jar command failed:
jar -cfm "E:\Blackberry
Workspace\Kenexa\deliverables\Standard\7.1.0\Kenexa.jar"
C:\Users\Acer\AppData\Local ... Packaging project Kenexa failed (took
8.81 seconds)
Project was just working fine, and it suddenly occurred.
I have read the forums they said to set the environmental variable for the jdk to the system and also some said to place the jre exe file in jdk something like this, I did both the options but still not working and I get this error.
But when I delete some classes it starts working and adding new classes again gives this problem, I have total of 22 classes right now, is this something related to size or limitations??
Thanks for the Help!
Answer from Blackberry Support Are you using the BlackBerry JDE or BlackBerry Java Plug-in for Eclipse?
If you are using the BlackBerry JDE you could be running into an issue where you have reached the maximum supported length for a command line (all files are listed on a command line). If this is the case you could resolve it by reducing the number of classes (as you have done) or by reducing the length of the path to your source files (move them closer to the root of your drive). Mark Sohm BlackBerry Development Advisor
So, I just have to change my workspace folder name from "Blackberry Workspace" to "Workspace". The command line was not taking long path.

Resources