eclipse-researchlabs / scava

Eclipse Public License 2.0
7 stars 1 forks source link

unversionedOSGiImportedPackages exceptions #48

Open davidediruscio opened 4 years ago

davidediruscio commented 4 years ago

In the latest build, I have the following exceptions. It appears dozen of times. It seems to slow down the analysis a lot. The related project is https://github.com/xwiki/xwiki-platform

Flag @tdegueul

INFO  [AnalysisSchedulingService] (15:04:17): Starting MetricExecution 'trans.rascal.dependency.osgi.unversionedOSGiImportedPackages'
INFO  [AnalysisSchedulingService] (15:04:17): Update the worker 'w3' heartBeat Tue Sep 10 15:04:17 UTC 2019'
INFO  [MetricListExecutor (XWiki, 20190102)] (15:04:17): Starting Metric Execution (unversionedOSGiImportedPackages).
ERROR [RascalMetricProvider (Unversioned OSGi imported packages)] (15:04:17): metric threw an exception: |bundleresource://173
.fwk961419791/src/org/eclipse/scava/dependency/model/osgi/model/OSGiModelBuilder.rsc|:69,19: IO("You can only access ls on an 
existing location.") at |bundleresource://173.fwk961419791/src/org/eclipse/scava/dependency/model/osgi/model/OSGiModelBuilder.
rsc|(2485,11,<69,19>,<69,30>)
org.rascalmpl.interpreter.control_exceptions.Throw: |bundleresource://173.fwk961419791/src/org/eclipse/scava/dependency/model/
osgi/model/OSGiModelBuilder.rsc|:69,19: IO("You can only access ls on an existing location.")
        at org.rascalmpl.interpreter.control_exceptions.ControlException.reallyFillInStackTrace(ControlException.java:42)
        at org.rascalmpl.interpreter.control_exceptions.Throw.fillInStackTrace(Throw.java:138)
        at java.lang.Throwable.<init>(Throwable.java:266)
        at java.lang.Exception.<init>(Exception.java:66)
        at java.lang.RuntimeException.<init>(RuntimeException.java:62)
        at org.rascalmpl.interpreter.control_exceptions.ControlException.<init>(ControlException.java:25)
        at org.rascalmpl.interpreter.control_exceptions.Throw.<init>(Throw.java:73)
        at org.rascalmpl.interpreter.control_exceptions.Throw.<init>(Throw.java:93)
        at org.rascalmpl.interpreter.utils.RuntimeExceptionFactory.io(RuntimeExceptionFactory.java:154)
        at org.rascalmpl.interpreter.result.SourceLocationResult.fieldAccess(SourceLocationResult.java:313)
        at org.rascalmpl.semantics.dynamic.Expression$FieldAccess.interpret(Expression.java:872)
        at org.rascalmpl.semantics.dynamic.Declarator$Default.interpret(Declarator.java:53)
        at org.rascalmpl.semantics.dynamic.LocalVariableDeclaration$Default.interpret(LocalVariableDeclaration.java:36)
        at org.rascalmpl.semantics.dynamic.Statement$VariableDeclaration.interpret(Statement.java:1005)
        at org.rascalmpl.interpreter.result.RascalFunction.runBody(RascalFunction.java:383)
        at org.rascalmpl.interpreter.result.RascalFunction.call(RascalFunction.java:322)
        at org.rascalmpl.semantics.dynamic.Expression$CallOrTree.interpret(Expression.java:531)
        at org.rascalmpl.semantics.dynamic.Statement$Expression.interpret(Statement.java:365)
        at org.rascalmpl.semantics.dynamic.Statement$Assignment.interpret(Statement.java:205)
        at org.rascalmpl.interpreter.result.RascalFunction.runBody(RascalFunction.java:383)
        at org.rascalmpl.interpreter.result.RascalFunction.call(RascalFunction.java:322)
        at org.rascalmpl.semantics.dynamic.Expression$CallOrTree.interpret(Expression.java:531)
        at org.rascalmpl.semantics.dynamic.Statement$Expression.interpret(Statement.java:365)
        at org.rascalmpl.semantics.dynamic.Statement$Return.interpret(Statement.java:783)
        at org.rascalmpl.interpreter.result.RascalFunction.runBody(RascalFunction.java:383)
        at org.rascalmpl.interpreter.result.RascalFunction.call(RascalFunction.java:322)
        at org.rascalmpl.semantics.dynamic.Expression$CallOrTree.interpret(Expression.java:531)
        at org.rascalmpl.semantics.dynamic.Statement$Expression.interpret(Statement.java:365)
        at org.rascalmpl.semantics.dynamic.Statement$Assignment.interpret(Statement.java:205)
        at org.rascalmpl.semantics.dynamic.Statement$NonEmptyBlock.interpret(Statement.java:759)
        at org.rascalmpl.semantics.dynamic.Statement$IfThen.interpret(Statement.java:604)
        at org.rascalmpl.interpreter.result.RascalFunction.runBody(RascalFunction.java:383)
        at org.rascalmpl.interpreter.result.RascalFunction.call(RascalFunction.java:292)
        at org.eclipse.scava.metricprovider.rascal.RascalMetricProvider.compute(RascalMetricProvider.java:311)
        at org.eclipse.scava.metricprovider.rascal.RascalMetricProvider.measure(RascalMetricProvider.java:213)
        at org.eclipse.scava.metricprovider.rascal.RascalMetricProvider.measure(RascalMetricProvider.java:1)
        at org.eclipse.scava.platform.osgi.analysis.MetricListExecutor.run(MetricListExecutor.java:103)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
ERROR [RascalMetricProvider (Unversioned OSGi imported packages)] (15:04:17):   at manifestLocations(|bundleresource://173.fwk
961419791/src/org/eclipse/scava/dependency/model/osgi/model/OSGiModelBuilder.rsc|(2388,373,<68,0>,<82,1>))
        at createOSGiModelFromWorkingCopy(|bundleresource://173.fwk961419791/src/org/eclipse/scava/dependency/model/osgi/model
/OSGiModelBuilder.rsc|(959,34,<28,17>,<28,51>))
        at getOSGiModelFromWorkingCopy(|bundleresource://173.fwk961419791/src/org/eclipse/scava/dependency/model/osgi/OSGi.rsc
|(677,108,<22,0>,<24,45>))
        at unversionedOSGiImportedPackages(|bundleresource://324.fwk961419791/src/OSGi.rsc|(9003,49,<244,6>,<244,55>))
        at ******scava******(|main://******scava******|)