NullPointerException in parser if the @service or the <service/> tag is omited
A NullPointerException is thrown if the @service annotation or the tag (implementation value) is omited. The parser should display an explicit warning like : "The xxxx interface implementation is not defined for the xxx service/reference. You should add an interface implementation tag in the composite description file or add the related annotation in the source code." This problem can be reproduced by customizing the HelloWorld pojo example.
FraSCAti Standalone Runtime Running the Runtime Factory with helloworld/null/null
Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ow2.frascati.Launcher.main(Launcher.java:108) Caused by: java.lang.NullPointerException at org.ow2.frascati.factory.core.parser.util.InterfaceComparator.compare(InterfaceComparator.java:23) at org.ow2.frascati.factory.core.parser.util.TargetResolver.resolve(TargetResolver.java:35) at org.ow2.frascati.factory.core.parser.util.ModelResolver.resolve(ModelResolver.java:99) at org.ow2.frascati.factory.core.parser.util.ModelResolver.parse(ModelResolver.java:130) at org.ow2.frascati.factory.core.parser.Sca2EcoreInterceptorLC1a2eb783.parse(Sca2EcoreInterceptorLC1a2eb783.java:53) at org.ow2.frascati.factory.core.parser.Sca2EcoreFcItf.parse(Sca2EcoreFcItf.java:32) at org.ow2.frascati.factory.core.dispatcher.ManagerImpl.loadComposite(ManagerImpl.java:123) at org.ow2.frascati.factory.core.dispatcher.ManagerInterceptorLC1a2eb783.loadComposite(ManagerInterceptorLC1a2eb783.java:53) at org.ow2.frascati.factory.core.dispatcher.ManagerFcItf.loadComposite(ManagerFcItf.java:32) at org.ow2.frascati.factory.Factory.getComposite(Factory.java:50) at org.ow2.frascati.factory.Factory.run(Factory.java:78) at org.ow2.frascati.factory.FactoryCommandLine.main(FactoryCommandLine.java:286) ... 5 more