Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  CPLEX 20.10 on Mac getting error java.lang.NullPointerException

    Posted Mon September 27, 2021 02:46 PM
    Hi,

    I have tried to install Optimization Studio and getting an error. 

    IBM Version :  IBM ILOG CPLEX Optimization Studio V20.10 for OSX (CC8AVML )  
    Mac Version: macOS Big Sur - 11.2
    $Path :

    /Applications/CPLEX_Studio201/cpoptimizer/bin/x86-64_osx/:/Applications/CPLEX_Studio201/cpoptimizer/bin/:/Applications/CPLEX_Studio201/cplex/bin/x86-64_osx:


    The installation was completed without any issues but when I try to open Oplide I am getting an error. Here is the log file :

    !SESSION 2021-09-27 23:55:27.701 -----------------------------------------------

    eclipse.buildId=Build R0

    java.version=1.8.0_221

    java.vendor=Oracle Corporation

    BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB

    Framework arguments:  -keyring /Users/shanakaperera/.eclipse_keyring

    Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -clean -keyring /Users/shanakaperera/.eclipse_keyring

    !ENTRY org.eclipse.osgi 4 0 2021-09-27 23:55:44.798

    !MESSAGE Application error

    !STACK 1

    java.lang.NullPointerException

            at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2176)

            at org.eclipse.swt.graphics.GC.<init>(GC.java:174)

            at org.eclipse.swt.graphics.GC.<init>(GC.java:135)

            at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits(Dialog.java:934)

            at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:142)

            at org.eclipse.jface.window.Window.create(Window.java:426)

            at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)

            at org.eclipse.jface.window.Window.open(Window.java:783)

            at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(ChooseWorkspaceDialog.java:114)

            at ilog.odms.ide.rcp.IloApplication.promptForWorkspace(IloApplication.java:287)

            at ilog.odms.ide.rcp.IloApplication.checkInstanceLocation(IloApplication.java:201)

            at ilog.odms.ide.rcp.IloApplication.start(IloApplication.java:109)

            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)

            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)

            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:653)

            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)

            at org.eclipse.equinox.launcher.Main.run(Main.java:1499)


    Can someone please help me to fix this issue?

    Thanks,
    Shanaka                                                                     



    ------------------------------
    SHanaka Perera
    ------------------------------

    #DecisionOptimization


  • 2.  RE: CPLEX 20.10 on Mac getting error java.lang.NullPointerException

    Posted Thu October 07, 2021 03:55 AM
    Hi,

    Your version of MacOS (bigSur) is not officially supported, so you might need a specific version of COS.

    Are you an academic ?

    ------------------------------
    Frederic Delhoume
    ------------------------------



  • 3.  RE: CPLEX 20.10 on Mac getting error java.lang.NullPointerException

    Posted Thu October 07, 2021 05:01 AM
    Hi Federic, 

    Thanks for your reply. 

    Yes, I am an academic. Btw I wanted to use this with docplex and I managed to do this by using execfile='/Applications/CPLEX_Studio201/cpoptimizer/bin/x86-64_osx/cpoptimizer , even though I couldn't get the IDE up. So I am fine. 

    Regards,
    Shanaka

    ------------------------------
    SHanaka Perera
    ------------------------------



  • 4.  RE: CPLEX 20.10 on Mac getting error java.lang.NullPointerException

    Posted Thu October 07, 2021 05:12 AM
    Ok, if you need to run the IDE, feel free to contact us.

    ------------------------------
    Frederic Delhoume
    ------------------------------