JavaFX InvocationTarget Fix – Are there better alternatives?

Whenever I use JavaFX’s FXMLLoader.load(URL) I end up with InvocationTargetException like this:

Exception in Application start method java.lang.reflect.InvocationTargetException     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)     at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)     at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)     at java.base/sun.launcher.LauncherHelper$  FXHelper.main(LauncherHelper.java:1051) Caused by: java.lang.RuntimeException: Exception in Application start method     at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)     at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$  launchApplication$  2(LauncherImpl.java:195)     at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.IllegalAccessError: class com.sun.javafx.fxml.FXMLLoaderHelper (in unnamed module @0x37b175c4) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x37b175c4     at com.sun.javafx.fxml.FXMLLoaderHelper.<clinit>(FXMLLoaderHelper.java:38)     at javafx.fxml.FXMLLoader.<clinit>(FXMLLoader.java:2056)     at net.chatbrain.desktop.misc.StageManager.changeScene(StageManager.java:90)     at net.chatbrain.desktop.misc.StageManager.startup(StageManager.java:81)     at net.chatbrain.desktop.models.MainStage.start(MainStage.java:18)     at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$  launchApplication1$  9(LauncherImpl.java:846)     at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$  runAndWait$  12(PlatformImpl.java:455)     at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$  runLater$  10(PlatformImpl.java:428)     at java.base/java.security.AccessController.doPrivileged(Native Method)     at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$  runLater$  11(PlatformImpl.java:427)     at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$  Future.run(InvokeLaterDispatcher.java:96)     at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$  runLoop$  3(WinApplication.java:174)     ... 1 more Exception running application net.chatbrain.desktop.models.MainStage 

However, I was able to fix the problem by adding a bunch of –add-export VM-Flags, e.g. --add-exports=javafx.graphics/com.sun.javafx.reflect=ALL-UNNAMED

I have added like 20 of these, each one of them apparently solves problem, and each time I add one of these, another arose until I came to roughly 10. After the GUI finally worked, but as I proceeded to develop, rerunning spawned new InvocationTargetExceptions. This has since happened for every change I made. Adding this large amount did solve the problem,but it’s very inconvenient and inelegant to me. Additionaly, I have to apply this everytime I’m working with JavaFX. So my question: Is there any better alternative to this that fixes this permanentely? Thanks in advance, John

Alternatives to APFS which keeps corrupting itself? [duplicate]

This question already has an answer here:

  • Can you update to macOS 10.14 (Mojave) without converting to APFS? 6 answers

Macos mojave locked up, forcing me to reboot. I was then presented with the prohibitory symbol indicating that the OS can no longer load. It was caused by APFS being corrupted, confirmed by disk utility in recovery mode. Disk utility did nothing to repair the problem.

I reinstalled the OS and restored everything from a backup. One day later macos locked up again, and I once again had to reboot. It now stops booting after filling the progress bar while loading the OS. APFS has once again managed to corrupt itself, evident both when staring in verbose mode and when running disk utility in recovery mode. A checksum for some object is invalid. Disk utility once again makes no attempt to actually fix anything and I have found no evidence of any other APFS tools from apple for this purpose.

I’m not resizing partitions or anything advanced when it happens, just using Firefox and getting a beach ball.

I can’t think of any other solution to the situation other than to get rid of APFS:

  • Reinstalling the OS onto an HFS+ partition. I tried this — the installer ignores the existing file system and created APFS anyway.
  • Install an older version of the OS on HFS+
  • Use some hack to force mojave onto HFS+
  • Use a different OS

The SSD is a 500 GB, less than a year old Samsung 860 EVO that boots Windows 10 with seemingly no problems so the hardware does not seem to be the problem.

Are there any other obvious options that I have missed in my list? (buying new hardware because the file system is useless doesn’t qualify)

Top 15 Fiverr Clones and Alternatives You Must Be Aware Of

Listed below are the websites for Fiverr Alternatives or say Fiverr Clones

Do ADD …if not included

  1. http://Gigbucks.com
  2. http://www.myntmarket.com
  3. http://fourerr.com
  4. http://www.fivesquids.co.uk
  5. http://www.fiversworld.com
  6. http://zeerk.com
  7. http://www.goferr.com
  8. http://tenbux.com
  9. http://mycheapjobs.com…

Top 15 Fiverr Clones and Alternatives You Must Be Aware Of

CAPTCHA on mobile: what are the alternatives?

From a UX perspective, CAPTCHA’s are bad, bad, bad.

But let’s say we have this as a requirement. And it’s for a hybrid app (compiled app, but built upon an HTML5 platform).

I’m trying to find out:

  • is bot traffic from an iPhone (or Android device) actually a problem? (or–my theory–is this an outdated hold-over requirement that has been cut-and-pasted into technical requirement documents since 1998?)
  • If so, are there better alternatives that are mobile-centric over yet-another-annoying-CAPTCHA?

ERROR SRVE0777E: None of the policy alternatives can be satisfied

Genere un cliente correctamente desde Eclipse pero al momento de utilizar el servicio tengo el siguiente error:

[ERROR ] SRVE0777E: Excepción lanzada por la clase de aplicación ‘org.apache.cxf.jaxws.JaxWsClientProxy.invoke:156’ javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) at [internal classes] at com.sun.proxy.$ Proxy69.consultaVencimientos(Unknown Source) at ar.com.vignete.ws.implementations.ServiceConsultasClient.obtenerDetalleVencimientos(ServiceConsultasClient.java:1520) at com.vignete.seguros.home.servlets.VencimientosTotalesHomeWebBean.initVencimiento(VencimientosTotalesHomeWebBean.java:55) at com.vignete.seguros.home.servlets.HomeServlet.doGet(HomeServlet.java:150) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at [internal classes] Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:165)

Parece que falta definir en el cliente las políticas de seguridad del servicio, ya que no son standards, buscando en internet el error se resuelve ignorando las políticas o mediante un provider. Estuve probando ambas alternativas, sobre todo la de ignorar las políticas mediante la clase IgnorablePolicyInterceptorProvider pero sigo con el error. Alguna idea? Silvio

What are the other alternatives to Photoshop’s “crop and straighten” for scanned images that have rounded corners

I’m scanning a lot of cards and I’m using Photoshop’s automated “crop and straighten” function to auto rotate and crop them after. But the result wasn’t very accurate as some of the sides of the scans were clearly cropped off. I think maybe that has to do with my cards having rounded corners? What other alternative program do I have on this?

How to represent alternatives in a column view (like the Mac OS Finder)


Background

In an expert system, configuration users may be able to define custom behavior by way of business rules or decision tables. For those to be meaningful, the system offers its domain-specific data model as input. This kind of data model may be fairly complex and subject to changes over time, which means it is hard to document in a usable way without risking it getting outdated quickly.

I don’t expect users to consult long lists/tables in a manual to find what they are after. The same goes for some big/separate documentation like Javadoc or JSDoc. Instead, it should be available in-line together with the business rule or decision table being defined.

Approach

  1. Avoid overwhelming the user while allowing to traverse the complex hierarchical data structure by not displaying the full tree but rather only the sub-elements of a particular selection in a column view like in the Mac OS Finder: Mac OS Finder: Column View
  2. Utilize a standard way of describing a data structure that can be generated from code (like Javadoc/JSDoc): JSON-Schema

You can find the current state of my component on GitHub and even play around in its Storybook.

Challenge

In contrast to a file system (as represented by the Finder’s column view), such a domain-specific data model can contain optional elements. This can be represented in a JSON-Schema in multiple ways – mainly as anyOf or oneOf sub-structures.

E.g. a customer may be a private individual (with a first name, surname, date of birth, etc.) or company (with a single name, an organization number, etc.) – on an invoice the customer may be represented as:

Invoice: {   properties: {     Customer: {       oneOf: [         { $  ref: "PrivateIndividual" },         { $  ref: "Company" }       ]     }   } } 

How to meaningfully show these alternatives?

From the top of my head, I can think of the following approaches but am not fully convinced by any one of them, especially with the anyOf in mind where sub-structures may even be combined (instead of the exclusive oneOf alternatives):

mockup

download bmml source – Wireframes created with Balsamiq Mockups

  • How can these be improved?
  • Is there a better one that I simply missed?
  • How to handle anyOf?