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

NullPointerException in Check Unhandled Faults #2092

Closed
brlarson opened this issue Dec 2, 2019 · 5 comments · Fixed by #2100
Closed

NullPointerException in Check Unhandled Faults #2092

brlarson opened this issue Dec 2, 2019 · 5 comments · Fixed by #2100
Assignees
Milestone

Comments

@brlarson
Copy link

@brlarson brlarson commented Dec 2, 2019

Summary

Running Check Unhandled Faults causes a NullPointerException

Expected and Current Behavior

Expected: generate .csv file in UnhandledFaults folder

Current:

java.lang.NullPointerException
	at org.osate.aadl2.modelsupport.errorreporting.AnalysisErrorReporterManager.error(AnalysisErrorReporterManager.java:249)
	at org.osate.ui.handlers.AbstractAaxlHandler.error(AbstractAaxlHandler.java:604)
	at org.osate.aadl2.errormodel.analysis.handlers.UnhandledFaultsHandler.checkPropagationPathErrorTypes(UnhandledFaultsHandler.java:98)
	at org.osate.aadl2.errormodel.analysis.handlers.UnhandledFaultsHandler.doAaxlAction(UnhandledFaultsHandler.java:78)
	at org.osate.ui.handlers.AbstractAaxlHandler.processAaxlAction(AbstractAaxlHandler.java:482)
	at org.osate.ui.handlers.AbstractAaxlHandler.actionBody(AbstractAaxlHandler.java:191)
	at org.osate.ui.handlers.AaxlReadOnlyHandlerAsJob$ActionAsJob.runInWorkspace(AaxlReadOnlyHandlerAsJob.java:124)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Steps to Reproduce

I'd need to upload, or emai:
liPCA_Context_Open_PCA_Context_i_Instance.aaxl2

Only saw the stack trace because I'm running from sources from the master branch, pulled 12/1/2019.

Before I made significant model changes, Unhandled Faults ran fine.

Environment

I tried it with downloaded 2.6.0 too, and there was no .csv output, either. (Can only see stack trace when running from sources.

  • OSATE Version: 2.6.0.vfinal
  • Operating System: MacOS 10.14.6
@lwrage lwrage added the info needed label Dec 2, 2019
@lwrage

This comment has been minimized.

Copy link
Contributor

@lwrage lwrage commented Dec 2, 2019

Waiting for AADL model.

@brlarson

This comment has been minimized.

Copy link
Author

@brlarson brlarson commented Dec 3, 2019

@lwrage

This comment has been minimized.

Copy link
Contributor

@lwrage lwrage commented Dec 3, 2019

The whole model, please. With instructions which component to instantiate, where to find that component, how to run the analysis, etc.

@brlarson

This comment has been minimized.

Copy link
Author

@brlarson brlarson commented Dec 3, 2019

@lwrage

This comment has been minimized.

Copy link
Contributor

@lwrage lwrage commented Dec 4, 2019

Got the model. The issue is reproducible.

@lwrage lwrage added this to the 2.7.0 milestone Dec 4, 2019
@lwrage lwrage modified the milestones: 2.7.0, 2.6.1 Dec 7, 2019
@lwrage lwrage closed this in #2100 Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.