Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Java Errors Simulink Manual Importer and Design Manager 5.0

I'm trying to import models into Design Manager 5.0. I've installed Simulink Manual Importer 5.0

I'm using MATLAB R2013b.

Following the steps below from here

Procedure

  1. Open Matlab, and click the Apps page.
  2. Click on the Design Manager application.
  3. In the dialog window, click Publish to Design Manager or Move to Design Manager.
  4. Type the location of the Simulink model and the Simulink Library location of the 'slblocks.m' file associated with the library. After the Model/Library is opened, the connection to Design Manager dialog will open.
  5. In the dialog window, type the URI, the Connect field, Project Area field, and Workspace field and click OK.

At step 5, after I enter the URI and the username/password and click connect, I get the errors below:   

I think it could have something to do with a missing path I need to add, but I can't find the

org.apache.http.util.EntityUtils.consume jar anywhere on my computer.

Any other ideas?

Thanks,

Dan

 

Loading model...

Opening "nlairframe_demo"...

Error using publishSimulinkModelToDM (line 19)

Java exception occurred:

java.lang.NoSuchMethodError:

org.apache.http.util.EntityUtils.consume(Lorg/apache/http/HttpEntity;)V

                at

    org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:499)

                at

    org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)

                at

    org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)

                at

    org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)

                at

    com.ibm.xtools.rmpx.oauth.internal.jaf.OAuthConsumerClientHelper.performOAuthChallenge(OAuthConsumerClientHelper.java:207)

                at com.ibm.xtools.rmpx.oauth.OAuthClientImpl.execute(OAuthClientImpl.java:219)

                at com.ibm.xtools.rmpx.oauth.OAuthCommunicator.execute(OAuthCommunicator.java:104)

                at com.ibm.xtools.rmpx.oauth.OAuthCommunicator.execute(OAuthCommunicator.java:100)

                at com.ibm.rational.rdm.simulinkintegration.manage.DMConnection.testConnection DMConnection.java:130)

                at com.ibm.rational.rdm.simulinkintegration.manage.DMConnection.connectToDMServer(DMConnection.java:100)

                at  com.ibm.rational.rdm.simulinkintegration.ui.OpenSimulinkModelFromDMDialog.connectToServer(OpenSimulinkModelFromDMDialog.java:483)

                at

    com.ibm.rational.rdm.simulinkintegration.ui.OpenSimulinkModelFromDMDialog.access$0(OpenSimulinkModelFromDMDialog.java:455)

                at

    com.ibm.rational.rdm.simulinkintegration.ui.OpenSimulinkModelFromDMDialog$1.widgetSelected(OpenSimulinkModelFromDMDialog.java:270)

                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)

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

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)

                at  com.ibm.rational.rdm.simulinkintegration.ui.OpenSimulinkModelFromDMDialog.open(OpenSimulinkModelFromDMDialog.java:147)

                at  com.ibm.rational.rdm.simulinkintegration.manage.DMConnection.openPublishToDMDialog(DMConnection.java:305)

Error in openDesignManagerDialog (line 64)

        publishSimulinkModelToDM();

Error in DesignManagerApp/startApp (line 58)

            eval('openDesignManagerDialog');

Error in DesignManagerApp (line 37)

      startApp(obj)  

Error in appinstall.internal.runapp>execute (line 75)

    out = evalin('caller', [script ';']);

Error in appinstall.internal.runapp>runapp13a (line 57)

    outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));

Error in appinstall.internal.runapp>runcorrectversion (line 35)

        appobj = runapp13a(appinstalldir);

Error in appinstall.internal.runapp (line 17)

            out = runcorrectversion(appmetadata, appentrypoint, appinstalldir);

0 votes



One answer

Permanent link

Hi,

Please do the following steps (from the readme.txt in the SimulinkManualImporter install directory)

1. Goto <Matlab_Install_Dir>/toolbox/local.
2. Open the 'classpath.txt' file in a text editor.
3. At the top of the file, add '<SimulinkManualImporter_Install_Dir>\domains\simulink\bin\httpcore-4.1.3.jar'.
4. Save the file, and restart Matlab.
5. Done.

Chaim

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020
× 6,122
× 12

Question asked: Apr 14 '15, 10:41 a.m.

Question was seen: 5,009 times

Last updated: May 19 '15, 6:05 a.m.

Confirmation Cancel Confirm