dstl / Open_Source_ECOA_Toolset_AS5

The Open Source ECOA Toolset (OSETS) allows developers to produce experimental system software which conforms to version 5 of the European Component Oriented Architecture (ECOA) standard.
http://www.ECOA.technology
MIT License
8 stars 8 forks source link

Compilation Warnings for osets-eclipse-plug-in #3

Open JMLCarter opened 6 years ago

JMLCarter commented 6 years ago

Not sure these warnings are significant, but may be significant to the issue "Null Pointer Exception at Assembly Stage" screenshot from 2018-01-19 10-07-17

The two errors types in full are 1) Type null of the last argument to method invoke(Object, Object...) doesn't exactly match the vararg parameter type. Cast to Object[] to confirm the non-varargs invocation, or pass individual arguments of type Object for a varargs invocation.

2) Type null of the last argument to method invoke(Object, Object...) doesn't exactly match the vararg parameter type. Cast to Object[] to confirm the non-varargs invocation, or pass individual arguments of type Object for a varargs invocation.

Stuart-Palin-BAES commented 6 years ago

OSETS is not particularly robust to errors in the design - particularly if elements are not completed (i.e. some information is omitted).

Some assistance in tracing errors can be obtained by downloading Eclipse XML tools and the ECOA meta-model (from the ECOA website) - and using the Eclipse XML tools to validate generated XML against the ECOA meta-model.

Some further assistance can be gained by running the OSETS tool from the project source using Run As and Eclipse Application". This creates a new instance of Eclipse (with OSETS). Load the problematic project into this new instance and run repeat the action causing the Java exception. Viewing the Console window on the parent instance of Eclipse usually gives some information on progress - which may help identify the area in which the problem exists.