Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception error after Reaction commit to building block #79

Closed
UlrichSi opened this issue Apr 19, 2017 · 1 comment
Closed

Exception error after Reaction commit to building block #79

UlrichSi opened this issue Apr 19, 2017 · 1 comment

Comments

@UlrichSi
Copy link
Member

  1. Open ManualModel_Sim.mbp3
  2. Open the Reactions BB, then add a +global+ parameter to reaction R1.
  3. Update simulation S1 from Reactions BB, then open it. - These steps were all preparation to add a feature that will allow a "Commit" after change.
  4. Change the value of the newly added global parameter in R1. Reaction will be flagged red in S1 configuration.
  5. Commit Reaction to building block.
  6. Open Reaction, then click on any reaction symbol in the chart (or switch to the list and click there).

The following exception is thrown, build 36 was used:

Application:
MoBi 7.1.0 - Build 36

Unable to cast object of type 'OSPSuite.UI.Diagram.Managers.ReactionDiagramManager`1[MoBi.Core.Domain.Model.IMoBiReactionBuildingBlock]' to type 'MoBi.Core.Domain.Model.Diagram.IMoBiReactionDiagramManager'.

Stack trace:

at OSPSuite.Utility.Extensions.ConversionExtensions.DowncastTo[T](Object objectToCast)
   at MoBi.UI.Presenters.ReactionDiagramPresenter.get_reactionDiagramManager()
   at MoBi.UI.Presenters.ReactionDiagramPresenter.Select(IReactionBuilder reactionBuilder)
   at MoBi.Presentation.Presenter.EditReactionBuildingBlockPresenter.SelectBuilder(IReactionBuilder reactionBuilder)
   at MoBi.Presentation.Presenter.EditBuildingBlockPresenterBase`4.selectObjectAndParent(IObjectBase parentObject, IObjectBase selectedObject)
   at MoBi.Presentation.Presenter.EditBuildingBlockPresenterBase`4.Handle(EntitySelectedEvent eventToHandle)
   at OSPSuite.Utility.Events.EventPublisher.<>c__DisplayClass4_0`1.<PublishEvent>b__1()
   at OSPSuite.Utility.Exceptions.ExceptionManagerBase.Execute(Action action)
@UlrichSi
Copy link
Member Author

Ok now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants