Decision Management (ODM,ADS)

 View Only
Expand all | Collapse all

how to connect Rule Designer 8.11 to Docker's Decision Center

  • 1.  how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Wed June 01, 2022 12:08 PM

    Hi i managed to spin up the docker version of ODM. using this docker from here, Docker Hub

    then i also install Rule designer 8.11 on my Eclipse (version: IDE 2020-06 R (4.16))

    when i tried to connect to Decision Center from the Eclipse, Rule Designer, i got some error.

    am i doing something wrong?



    ------------------------------
    Kian Seng Goh
    ------------------------------



  • 2.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Wed June 01, 2022 12:38 PM

    That looks OK to me - provided you typed the password OK.

    I'm using the same URL for ODM installed in Docker Desktop for Windows.

    Is the ODM server started OK in Docker?
    A simple test is to try to connect from a web browser to the RES console. This is the URL I use - http://localhost:9060/res



    ------------------------------
    Andy Macdonald
    ------------------------------



  • 3.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Wed June 01, 2022 12:56 PM

    Hi, 

    yes docker started and i am able to view the Decision Server, Execution Server website.
    i confirmed i entered the password correctly. just copy and paste.



    ------------------------------
    Kian Seng Goh
    ------------------------------



  • 4.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Thu June 02, 2022 06:04 AM
    Did you checked the logs of Rule Designer and/or Decision Center?

    ------------------------------
    Fadi Sandakly
    Decision Management SME - Cloud Pak for Automation
    IBM EMEA
    ------------------------------



  • 5.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Thu June 02, 2022 10:18 PM

    Hi Mr Fadi

    This is the error i saw in Eclipse

    java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
    at ilog.rules.synchronization.endpoint.remote.client.Http4CredentialsHandler.encodeCredentialsWithBase64(Http4CredentialsHandler.java:107)
    at ilog.rules.synchronization.endpoint.remote.client.Http4CredentialsHandler.setBasicAuthenticationHeader(Http4CredentialsHandler.java:78)
    at ilog.rules.synchronization.endpoint.remote.client.Http4CredentialsHandler.hasAccessGranted(Http4CredentialsHandler.java:159)
    at ilog.rules.synchronization.endpoint.remote.client.Http4CredentialsHandler.authenticate(Http4CredentialsHandler.java:114)
    at ilog.rules.synchronization.endpoint.remote.client.Http4RemoteAccessProvider.authenticate(Http4RemoteAccessProvider.java:128)
    at ilog.rules.synchronization.eclipseui.RuleStudioEclipseRemoteAccessProvider.authenticate(RuleStudioEclipseRemoteAccessProvider.java:117)
    at ilog.rules.synchronization.endpoint.remote.client.Http4RemoteAccessProvider.connect(Http4RemoteAccessProvider.java:66)
    at ilog.rules.synchronization.endpoint.remote.client.RemoteRuleModelDataAccess.connect(RemoteRuleModelDataAccess.java:152)
    at ilog.rules.synchronization.subscriber.service.SynchronizationService.connectTarget(SynchronizationService.java:58)
    at ilog.rules.dataaccess.rs4j.synchronization.RuleStudioSynchronizationService.connectTarget(RuleStudioSynchronizationService.java:111)
    at ilog.rules.synchronization.subscriber.client.AbstractSynchronizationClient.connectTarget(AbstractSynchronizationClient.java:61)
    at ilog.rules.synchronization.eclipseui.wizards.ConfigurationMainPage$5$1.run(ConfigurationMainPage.java:510)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
    at ilog.rules.synchronization.eclipseui.wizards.ConfigurationMainPage$5.handleEvent(ConfigurationMainPage.java:481)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
    at org.eclipse.jface.window.Window.open(Window.java:799)
    at ilog.rules.synchronization.eclipseui.actions.ConfigurationAction.run(ConfigurationAction.java:62)
    at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:76)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:229)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:579)
    at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:413)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1158)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1047)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1447)



    ------------------------------
    Kian Seng Goh
    ------------------------------



  • 6.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center
    Best Answer

    Posted Fri June 03, 2022 03:08 AM
    Hello,

    It's the java version that is not correct. You are certainly not using a Java8.
    BR

    ------------------------------
    Mathias Mouly
    ------------------------------



  • 7.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Fri June 03, 2022 05:22 AM
    thank you very much! it works!!!!

    ------------------------------
    Kian Seng Goh
    ------------------------------



  • 8.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Fri June 03, 2022 09:44 AM
    I had the same problem, only to realize in the end that my Rule Designer (Eclipse) was set to use a later Java version than 1.8.

    1. Make sure you have Eclipse 2020-06 for ODM 8.11.
    2. Also make sure you have JDK (1.)8 on your system.  (Different JDK versions can co-exist in most cases, but for ODM and Rule Designer, you need Java 8 to be present)
    3. Open eclipse.ini in a code or text editor 
      (On Windows, it is usually right below Eclipse.exe, on the Mac it is usually at a path like: /Applications/eclipse2020-06/modeling-2020-06/Eclipse.app/Contents/Eclipse/eclipse.ini)
    4. Find the argument -vm (where, in the next line, full path to the Java version to be used needs to specified)
    5. Example for windows:
      -vm
      C:\Program Files\Java\jdk1.6.0_23\bin

      Example for Mac:
      -vm

      /Library/Java/JavaVirtualMachines/jdk1.8.0_321.jdk/Contents/Home/bin

      (The two lines of the -vm argument can be put at the beginning of the ini file or at least must precede -vmargs)


    While already in there, you may also want to change -Xmx1024m to at least -Xmx2048m (depending on the capacity of the RAM on your computer)

    Finally, save the file and restart Eclipse. The problem should be solved so that you can connect to Decision Center and Rule Execution Server.

    Below is the full eclipse.ini dump on my Mac:

    -startup
    ../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
    --launcher.library
    /Users/go/.p2/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1200.v20200508-1552
    -product
    org.eclipse.epp.package.modeling.product
    -showsplash
    /Users/go/.p2/pool/plugins/org.eclipse.epp.package.common_4.16.0.20200615-1200
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vm
    /Library/Java/JavaVirtualMachines/jdk1.8.0_321.jdk/Contents/Home/bin
    -vmargs
    -Dosgi.requiredJavaVersion=1.8
    -Dosgi.instance.area.default=@user.home/eclipse-workspace
    -XX:+UseG1GC
    -XX:+UseStringDeduplication
    --add-modules=ALL-SYSTEM
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -Dosgi.requiredJavaVersion=1.8
    -Dosgi.dataAreaRequiresExplicitInit=true
    -Xms256m
    -Xmx2048m
    --add-modules=ALL-SYSTEM
    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -Declipse.p2.max.threads=10
    -Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
    -Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/







    ------------------------------
    Gökhan Ozar
    ------------------------------



  • 9.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Fri June 03, 2022 12:23 AM
    Hello I tried on windows machine. Still the same issue.

    ------------------------------
    Kian Seng Goh
    ------------------------------



  • 10.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Fri June 03, 2022 10:05 AM

    Hi Kian,

    See my answer (#8) above your post (#9).

    Hope it helps.



    ------------------------------
    Gökhan Ozar
    ------------------------------



  • 11.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Tue June 07, 2022 11:48 PM

    Hi Gökhan Ozar

    yes managed to get it to connect! thank u



    ------------------------------
    Kian Seng Goh
    ------------------------------



  • 12.  RE: how to connect Rule Designer 8.11 to Docker's Decision Center

    Posted Tue June 07, 2022 11:52 PM

    But i faced another issue after use the 

    "New Rule Project from Decision Center"

    I see alot of these error. do u experience this?



    ------------------------------
    Kian Seng Goh
    ------------------------------