Open xdevroey opened 5 years ago
Stack trace for botsing-reproduction is:
java.lang.RuntimeException: Failed to load XML schemas: [classpath:pdp.xsd]
at org.ow2.authzforce.core.pdp.impl.SchemaHandler.createSchema(SchemaHandler.java:541)
at org.ow2.authzforce.core.pdp.impl.PdpModelHandler.<init>(PdpModelHandler.java:159)
at org.ow2.authzforce.core.pdp.impl.PdpEngineConfiguration.getInstance(PdpEngineConfiguration.java:682)
at org.ow2.authzforce.core.pdp.impl.PdpEngineConfiguration.getInstance(PdpEngineConfiguration.java:699)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
Class org.ow2.authzforce.core.pdp.impl.PdpExtensions
has a user defined static class initialiser. EvoSuite class loader seems unnable to load the class (?).
Tried with target_frame 1: works fine with the 1.0.3 command line (at least, generates a test). But the 1.0.4-SNAPSHOT maven plugin does not seem to work: it does not seem to support multimodule projects ?
mvn eu.stamp-project:botsing-maven:1.0.4-SNAPSHOT:botsing -Dcrash_log=/tmp/ex1.log -Dtarget_frame=1
If run in authzforce/core, an error occurs: INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.250 s [INFO] Finished at: 2019-03-15T16:21:57+01:00 [INFO] Final Memory: 16M/208M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal eu.stamp-project:botsing-maven:1.0.4-SNAPSHOT:botsing (default-cli) on project authzforce-ce-core: Error executing Botsing: Classpath element does not exist on disk at: /home/gibello/STAMP/STAMP-project/authzforce/core/target/classes -> [Help 1]
If run inside modules directories (I tried them all), there is no error, but an empty test is generated. I never obtain a test, like with the command line.
Running botsing-1.0.3 with ./dependencies containing all the jars of authzforce + all the deps I could get with maven dependency plugin:
Produces the following error without stopping the execution:
Originally posted by @gibello in https://github.com/STAMP-project/botsing/issues/58#issuecomment-473199957