Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Error in oplrun: Failed to create the part's controls

  • 1.  Error in oplrun: Failed to create the part's controls

    Posted Tue December 02, 2014 04:15 PM

    Originally posted by: _Hadi_


    I can't open my model file in opl ide and it only shows me this: Failed to create the part's controls. This is happening for one of my model files and not for all of them.

    in details it says: 

    java.lang.NullPointerException
    at ilog.odms.ide.opllang.ast.checker.ExpressionChecker.findFunction(ExpressionChecker.java:82)
    at ilog.odms.ide.opllang.ast.checker.ExpressionChecker.processFunctionCall(ExpressionChecker.java:378)
    at ilog.odms.ide.opllang.ast.checker.ExpressionChecker.visit(ExpressionChecker.java:357)
    at ilog.odms.ide.opllang.ast.node.expression.FunctionCall.accept0(FunctionCall.java:63)
    at ilog.odms.ide.opllang.ast.node.OplNode.accept(OplNode.java:1198)
    at ilog.odms.ide.opllang.ast.checker.ExpressionChecker.visit(ExpressionChecker.java:101)
    at ilog.odms.ide.opllang.ast.node.expression.BinaryExpression.accept0(BinaryExpression.java:67)
    at ilog.odms.ide.opllang.ast.node.OplNode.accept(OplNode.java:1198)
    at ilog.odms.ide.opllang.ast.node.OplNode.acceptChild(OplNode.java:1249)
    at ilog.odms.ide.opllang.ast.node.expression.ParenthesisExpression.accept0(ParenthesisExpression.java:46)
    at ilog.odms.ide.opllang.ast.node.OplNode.accept(OplNode.java:1198)
    at ilog.odms.ide.opllang.ast.checker.ExpressionChecker.visit(ExpressionChecker.java:186)
    at ilog.odms.ide.opllang.ast.node.expression.AggregateExpression.accept0(AggregateExpression.java:77)
    at ilog.odms.ide.opllang.ast.node.OplNode.accept(OplNode.java:1198)
    at ilog.odms.ide.opllang.ast.checker.Resolver.visit(Resolver.java:77)
    at ilog.odms.ide.opllang.ast.node.Objective.accept0(Objective.java:66)
    at ilog.odms.ide.opllang.ast.node.OplNode.accept(OplNode.java:1198)
    at ilog.odms.ide.opllang.ast.checker.Resolver.visit(Resolver.java:59)
    at ilog.odms.ide.opllang.ast.node.CompilationUnit.accept0(CompilationUnit.java:52)
    at ilog.odms.ide.opllang.ast.node.OplNode.accept(OplNode.java:1198)
    at ilog.odms.ide.opllang.ast.ASTParser.internalTypeCheck(ASTParser.java:315)
    at ilog.odms.ide.opllang.ast.ASTParser.parse(ASTParser.java:199)
    at ilog.odms.ide.opllang.ast.ASTParser.parse(ASTParser.java:191)
    at ilog.odms.ide.internal.core.IloModelFileImpl.updateAST(IloModelFileImpl.java:106)
    at ilog.odms.ide.ui.editors.model.IloModelEditor.initAST(IloModelEditor.java:175)
    at ilog.odms.ide.ui.editors.model.IloModelEditor.createPartControl(IloModelEditor.java:205)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:138)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:313)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:607)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
    at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
    at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
    at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
    at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
    at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99)
    at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99)
    at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
    at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
    at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at ilog.odms.ide.rcp.IloApplication.start(IloApplication.java:120)
    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:76)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:607)
    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)
     

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Error in oplrun: Failed to create the part's controls



  • 3.  Re: Error in oplrun: Failed to create the part's controls

    Posted Wed December 03, 2014 11:00 AM

    Originally posted by: _Hadi_


    I had tried deleting  some of the files in the workspace, but it didn't work. ACtually in my case, opl ide works and opens other mod files, but there is this specific mod file that it doesn't open. I can open that from another computer. Then, I tried copying it back to the main opl ide but when I have all the code in there, again it doesn't open it. In other words, when I copy the whole code in to a new mod file, everything works, but the moment I close that mod file, I can open it again and it gives me the same error. This is very odd, I searched this error and I think this might be opl's java code bug. Spent a 2-3 hours on this yesterday and my conclusion was to not to close the ide, but of I use the oplrun to save some memory, I have to close the ide and then problem rises again....


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Error in oplrun: Failed to create the part's controls

    Posted Wed January 21, 2015 02:33 AM

    Originally posted by: LindaKing


    Hi, friend

    I meet the same problem today. Have you solved it right now? If so, please tell me. 

    Thank you very much.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Error in oplrun: Failed to create the part's controls

    Posted Wed January 21, 2015 05:16 PM

    Originally posted by: _Hadi_


    Not a very scientific solution but I also tried copying and pasting the origianl mod file, peiece by peice into another one then checked if ti works right or not, I noticeds there is a certain point that, after that the mod file crashes. You may want to try that, and see if it works for you. This was very odd, I tried making new workspace or deleting some temp files, non worked.

    good luck


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: Error in oplrun: Failed to create the part's controls

    Posted Thu January 22, 2015 02:37 AM

    Hi,

    do not hesitate to attach your model that crashes the IDE here.

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Error in oplrun: Failed to create the part's controls

    Posted Thu January 29, 2015 12:23 PM

    Originally posted by: LindaKing


    Hi, Alex

    Everyday the newly made mod file met the same problem: if I closed it, I couldn't open it anymore. 

    Actually, the model seems not feasible. I kept modified it in the past week.

    Is that the reason why the mod file cannot be opened?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: Error in oplrun: Failed to create the part's controls

    Posted Sat January 31, 2015 08:30 PM

    Originally posted by: LindaKing


    Hi, Alex

    Actually, the same problem always happens since it occurred the first time. Once I close the mod. file, I couldn't open it any longer. I cannot figure it out.

    I tried another model, but it met the same situation. I attached the .mod file here. 

    Please help me check it. Any comment will be appreciated.

    Thank you very much.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 9.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 02, 2015 02:41 AM

    Originally posted by: LindaKing


    Hi, Alex

    I think maybe I found the problem. In the model I define a big-M number. I set a too "large" value to it. After I change it from 10000000000 to 1000. The problem is gone. I don't know the range of the int type number in OPL, but I guess maybe this is the reason.

    Thank you very much.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 10.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 02, 2015 03:14 AM

    Hi,

    by the way which CPLEX version do you use ?

    Can you also attach the .dat so that others could try ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 11.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 09, 2015 08:01 AM

    Originally posted by: LindaKing


    Hi, Alex

    I use 12.6.0. 

    The .dat file is uploaded here. 

    Thank you.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 12.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 09, 2015 08:13 AM

    Hi

    try

    int K = 10000000*1000;

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 13.  Re: Error in oplrun: Failed to create the part's controls

    Posted Thu January 29, 2015 12:19 PM

    Originally posted by: LindaKing


    You're right. I also tried deleting old and making new workspace. It didn't work.

    I will try to find the point as you say.  Thanks for your reply. 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 14.  Re: Error in oplrun: Failed to create the part's controls

    Posted Fri January 30, 2015 04:59 AM

    Hi,

    what about what I suggested 8 days ago ?

    Attaching the project here ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 15.  Re: Error in oplrun: Failed to create the part's controls

    Posted Thu February 05, 2015 10:21 AM

    Hi

    as a workaround you may right click on the file and choose to open with something else like system editor

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 16.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 09, 2015 09:20 AM

    Originally posted by: LindaKing


    Hi, Alex

    Sorry, I'm a little confused with this reply. Which problem did you mean?  


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 17.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 09, 2015 09:26 AM

    Hi

    if the mod editor does not work you may use another one by right clicking as can be seen in attached screenshot.

    You may also fix the issue and write

    int K = 10000000*1000;

    regards

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 18.  Re: Error in oplrun: Failed to create the part's controls

    Posted Mon February 09, 2015 09:48 AM

    Originally posted by: LindaKing


    OK, I understand now. Thank you very much.

    Best Regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 19.  Re: Error in oplrun: Failed to create the part's controls

    Posted Tue April 28, 2015 06:48 PM

    Originally posted by: LiyuanWang


    Hello all,

    When you meet this error message "

    Failed to create the part's controls

    "

    Please right click on the file and open with Text Editor. Use this as a workaround. Causes might vary, for example, there is an illegal usage in the program that brings issues to our syntax parser.

    At the same time, please do not hesitate to open PMR with us for further investigation. We would like to further debug on these instances to improve our product.

    http://www.ibm.com/support/entry/portal/overview

     

    Thanks and regards,


    #DecisionOptimization
    #OPLusingCPLEXOptimizer