samsung / dexter Goto Github PK
View Code? Open in Web Editor NEWDexter is a static analysis platform to find and remove defects efficiently and immediately during the coding-time.
License: BSD 2-Clause "Simplified" License
Dexter is a static analysis platform to find and remove defects efficiently and immediately during the coding-time.
License: BSD 2-Clause "Simplified" License
===== Starting Dexter Analysis =====
Loaded cppcheck 0.9.4
Loaded dexter-vd-cpp 0.9.4
Loaded findbugs 0.9.4
Loaded dexter-opensource 0.9.4
Exception in thread "main" java.lang.NullPointerException
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:480)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.addSourceFileFullPathHierachy(DexterConfigFile.java:481)
at com.samsung.sec.dexter.core.config.DexterConfigFile.generateSourceFileFullPathListAsProjectType(DexterConfigFile.java:470)
at com.samsung.sec.dexter.core.config.DexterConfigFile.generateSourceFileFullPathList(DexterConfigFile.java:398)
at com.samsung.sec.dexter.executor.cli.Main.initSourceFileFullPathList(Main.java:372)
at com.samsung.sec.dexter.executor.cli.Main.initialize(Main.java:136)
at com.samsung.sec.dexter.executor.cli.Main.main(Main.java:118)
use escape module to parameter to prevent SQL Injection
When I try to run Mocha tests for dexter-monitor, I've got a following error:
/opt/dexter/dexter-monitor/test/front-end/test-defectByProjectCtrl.js:28
beforeEach(module('dexterMonitorApp'));
^
TypeError: module is not a function
at Suite.<anonymous> (/opt/dexter/dexter-monitor/test/front-end/test-server-service.js:30:16)
at context.describe.context.context (/usr/local/lib/node_modules/mocha/lib/interfaces/bdd.js:47:10)
at Object.<anonymous> (/opt/dexter/dexter-monitor/test/front-end/test-server-service.js:26:1)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at /usr/local/lib/node_modules/mocha/lib/mocha.js:220:27
at Array.forEach (native)
at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:217:14)
at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:469:10)
at Object.<anonymous> (/usr/local/lib/node_modules/mocha/bin/_mocha:404:18)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
Dexter Home is not set, so static analysis plug-ins are not initialized
these plugins are not exist.
I'm running Dexter Monitor with following command:
node app.js -p 4982 -database.admin.user=user -database.admin.password=password
However, it always runs on port 4981 instead of 4982.
P(rocess) M(anager) 2
PM2 embeds a simple and powerful module system.
PM2 is a production process manager for Node.js applications with a built-in load balancer.
It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.
@Karol Antczak
At CppcheckDexterPlugin.java / Line. 89
Please check "DOWNLOADPATH\dexter-home\temp\cppcheck-windows_0.0.0.zip' file after delivery dexter-daemon.
We expect a name with "cppcheck-windows_0.9.3.zip".
Currently there is no possibility for user to change its password.
CLI prints:
If you want reset your password. use -r -u your_id
but r
option is not implemented.
In web dashboard there is no such possibility for non-admin user.
When I start dexter-server, I faced the below error ;
/vagrant/project/dexter-server/util/dexter-util.js:178
return key.startsWith('-');
^
TypeError: Object -p has no method 'startsWith'
at isValidCliOption (/vagrant/project/dexter-server/util/dexter-util.js:178:16)
at /vagrant/project/dexter-server/util/dexter-util.js:128:12
at arrayEach (/vagrant/project/dexter-server/node_modules/lodash/index.js:1289:13)
at Function. (/vagrant/project/dexter-server/node_modules/lodash/index.js:3345:13)
at baseWrapperValue (/vagrant/project/dexter-server/node_modules/lodash/index.js:2768:30)
at LodashWrapper.wrapperValue (/vagrant/project/dexter-server/node_modules/lodash/index.js:6124:14)
at Object.exports.getCliOptions (/vagrant/project/dexter-server/util/dexter-util.js:133:8)
at setRunOptionsByCliOptions (/vagrant/project/dexter-server/server.js:91:27)
at initialize (/vagrant/project/dexter-server/server.js:82:5)
at Object. (/vagrant/project/dexter-server/server.js:79:1)
org.eclipse.core.runtime.CoreException: Plug-in dexter-eclipse was unable to load class com.samsung.sec.dexter.eclipse.DexterStartup.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:293)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:288)
at org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:120)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:68)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$56.run(Workbench.java:2812)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle dexter-eclipse (562).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:116)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:327)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:402)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
... 11 more
Caused by: org.osgi.framework.BundleException: Exception in com.samsung.sec.dexter.eclipse.DexterEclipseActivator.start() of bundle dexter-eclipse.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 21 more
Caused by: java.lang.NoClassDefFoundError: com/samsung/sec/dexter/eclipse/ui/util/EclipseLog
at com.samsung.sec.dexter.eclipse.DexterEclipseActivator.start(DexterEclipseActivator.java:87)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
... 28 more
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle dexter-eclipse-ui (564).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:116)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:327)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 33 more
Caused by: org.osgi.framework.BundleException: Exception in com.samsung.sec.dexter.eclipse.ui.DexterUIActivator.start() of bundle dexter-eclipse-ui.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 42 more
Caused by: java.lang.NullPointerException
at com.samsung.sec.dexter.core.config.DexterConfig.stopJobSchedulForServer(DexterConfig.java:239)
at com.samsung.sec.dexter.eclipse.ui.DexterUIActivator.handleDexterStandaloneChanged(DexterUIActivator.java:110)
at com.samsung.sec.dexter.core.config.DexterConfig.runDexterStandaloneListener(DexterConfig.java:565)
at com.samsung.sec.dexter.core.config.DexterConfig.setStandalone(DexterConfig.java:557)
at com.samsung.sec.dexter.eclipse.ui.DexterUIActivator.start(DexterUIActivator.java:83)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
... 49 more
Analysis of c++ project doesn't work if project path contains spaces.
Example of non working configuration file:
{
"dexterHome": "D:/Applications/dexter/0.9.4/dexter-cli_0.9.4_32/",
"dexterServerIp": "dexter-server",
"dexterServerPort": "0000",
"projectName": "ExampleCppProject",
"projectFullPath": "C:\\Example Cpp Project\\ExampleCppProject",
"sourceDir": [
"C:\\Example Cpp Project\\ExampleCppProject"
],
"headerDir": [
"C:\Example Cpp Project\\ExampleCppProject"
],
"binDir": "",
"libDir": [],
"fileName": [
"ExampleCppProject.cpp"
],
"modulePath": "",
"sourceEncoding": "UTF-8",
"type": "FILE"
}
dexter-executor.log contains following line:
analyzed failed : C:/Example Cpp Project/ExampleCppProject/ExampleCppProject.cpp
current>
manually change the version in a concrete class that implements IDexterPlugin interface
change>
set version from gradle script
I have an error after I executed the dexter-cli for java project.
[ERROR] 2015-09-30 19:38:42 - com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
[ERROR] 2015-09-30 19:38:42 - com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
com.samsung.sec.dexter.core.exception.DexterRuntimeException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
at com.samsung.sec.dexter.core.job.SendResultJob.sendResult(SendResultJob.java:100)
at com.samsung.sec.dexter.core.job.SendResultJob.send(SendResultJob.java:70)
at com.samsung.sec.dexter.executor.cli.Main.run(Main.java:444)
at com.samsung.sec.dexter.executor.cli.Main.main(Main.java:119)
Caused by: com.samsung.sec.dexter.core.exception.DexterRuntimeException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.postWithBody(JerseyDexterWebResource.java:180)
at com.samsung.sec.dexter.core.util.DexterClient.sendAnalsysisResult(DexterClient.java:262)
at com.samsung.sec.dexter.core.job.SendResultJob.sendResult(SendResultJob.java:95)
... 3 more
Caused by: com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.postWithBody(JerseyDexterWebResource.java:178)
... 5 more
Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found
at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:288)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)
... 10 more
WIKI : https://dexter.atlassian.net
PDF: github 'doc' folder
Contents : how to install and use
[ERROR] 2016-04-21 22:43:21 - com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://10.89.33.162:6007/api/v1/analysis/snapshot/source
com.samsung.sec.dexter.core.exception.DexterRuntimeException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://10.89.33.162:6007/api/v1/analysis/snapshot/source
at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.postWithBody(JerseyDexterWebResource.java:180)
at com.samsung.sec.dexter.core.util.DexterClient.insertSourceCode(DexterClient.java:300)
at com.samsung.sec.dexter.executor.DexterAnalyzerThread.sendSourceCode(DexterAnalyzerThread.java:149)
at com.samsung.sec.dexter.executor.DexterAnalyzerThread.run(DexterAnalyzerThread.java:75)
at com.samsung.sec.dexter.executor.DexterAnalyzer.runSync(DexterAnalyzer.java:88)
at com.samsung.sec.dexter.executor.cli.Main.run(Main.java:574)
at com.samsung.sec.dexter.executor.cli.Main.analysis(Main.java:566)
at com.samsung.sec.dexter.executor.cli.Main.run(Main.java:439)
at com.samsung.sec.dexter.executor.cli.Main.main(Main.java:119)
Caused by: com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.postWithBody(JerseyDexterWebResource.java:178)
... 8 more
Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found
at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:288)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)
... 13 more
!ENTRY org.eclipse.core.jobs 4 2 2016-04-15 11:36:59.189
!MESSAGE An internal error occurred during: "Static Analysis...".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.samsung.sec.dexter.util.DexterUtilHelper.getContentsFromFile(DexterUtilHelper.java:94)
at com.samsung.sec.dexter.util.CppUtil.generatorCodeMetrics(CppUtil.java:107)
at com.samsung.sec.dexter.metrics.CodeMetricsGenerator.getCodeMetrics(CodeMetricsGenerator.java:88)
at com.samsung.sec.dexter.executor.DexterAnalyzerThread.run(DexterAnalyzerThread.java:83)
at com.samsung.sec.dexter.executor.DexterAnalyzer.runSync(DexterAnalyzer.java:88)
at com.samsung.sec.dexter.eclipse.ui.analysis.ProjectOrFolderAnalyzer.analysisFile(ProjectOrFolderAnalyzer.java:154)
at com.samsung.sec.dexter.eclipse.ui.analysis.ProjectOrFolderAnalyzer.analysisTargetFileList(ProjectOrFolderAnalyzer.java:131)
at com.samsung.sec.dexter.eclipse.ui.analysis.ProjectOrFolderAnalyzer.run(ProjectOrFolderAnalyzer.java:68)
at com.samsung.sec.dexter.eclipse.ui.RunDexterAnalysisHandler$1.run(RunDexterAnalysisHandler.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
to use both java and c/c++ project in one Eclipse instance
create-user.sh is not possible by the below error.
[ERROR] 2015-09-30 19:55:03 - Missing argument for option: o
[ERROR] 2015-09-30 19:55:03 - Missing argument for option: o
org.apache.commons.cli.MissingArgumentException: Missing argument for option: o
at org.apache.commons.cli.Parser.processArgs(Parser.java:343)
at org.apache.commons.cli.Parser.processOption(Parser.java:393)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at com.samsung.sec.dexter.executor.cli.Main.createCommandLine(Main.java:159)
at com.samsung.sec.dexter.executor.cli.Main.handleProgramArguments(Main.java:149)
at com.samsung.sec.dexter.executor.cli.Main.initialize(Main.java:129)
at com.samsung.sec.dexter.executor.cli.Main.main(Main.java:118)
[ERROR] 2015-09-30 19:55:03 - system exit code : 2
it creates dexter-findbugs_${version}.jar
'version' property should copy to each plug-in's ant file.
If there is dexter marker on a source code file, it will not analysis again.
When you import all project into eclipse workspace with 'copy' option, the setting of gradle and ant are broken.
This is because eclipse copy them the same level of folder.
remove some JUnit files, until transfer ant to gradle completely.
Manifest files from [project-name]/META-INF/MANIFEST.MF aren't copied properly. As a result, manifest files in jars are wrong.
For example:
dexter-executor/META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
BUndle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-Name: Dexter Executor
Bundle-SymbolicName: dexter-core;singleton:=true
Bundle-Version: 0.9.2
...
dexter-executor.jar/META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.4
Created-By: 1.8.0_65-b17 (Oracle Corporation)
Main-Class: com.samsung.sec.dexter.executor.cli.Main
Class-Path: .
This is caused by null exception when stopping job scheduler which is a null object
refactoring the feature:
This is because of a mistake of boolean condition. it will be fixed soon.
Column "Number of developers finished with installation" is empty, although I have multiple users listed in "User List" page.
Moreover, there is an error thrown on browser console:
angular.js:13920TypeError: Cannot read property 'toLocaleString' of null
at UserService.getUserStatus.then (overviewCtrl.js:145)
at angular.js:16383
at m.$eval (angular.js:17682)
at m.$digest (angular.js:17495)
at m.$apply (angular.js:17790)
at l (angular.js:11831)
at J (angular.js:12033)
at XMLHttpRequest.t.onload (angular.js:11966)
Job is executed after rerunning.
It happened when source path pointed in non-java source path in dexter_cfg.json
for example, "sourceDir":["/Dexter/project/dexter-executor/src"],
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at com.samsung.sec.dexter.core.analyzer.AnalysisEntityFactory.createAnalysisResult(AnalysisEntityFactory.java:76)
at com.samsung.sec.dexter.core.analyzer.AnalysisResultFileManager.writeJson(AnalysisResultFileManager.java:66)
at com.samsung.sec.dexter.core.plugin.DexterPluginManager.analyze(DexterPluginManager.java:126)
at com.samsung.sec.dexter.executor.DexterAnalyzerThread.run(DexterAnalyzerThread.java:88)
at com.samsung.sec.dexter.executor.DexterAnalyzer.runSync(DexterAnalyzer.java:88)
at com.samsung.sec.dexter.executor.cli.Main.run(Main.java:572)
at com.samsung.sec.dexter.executor.cli.Main.analysis(Main.java:564)
at com.samsung.sec.dexter.executor.cli.Main.run(Main.java:437)
D:DEV_GITexportdexter-cli_0.9.0_32�in>dexter2.bat -c -u createTest -p createTest
D:DEV_GITexportdexter-cli_0.9.0_32�in>java -Xms256m -Xmx786m -XX:MaxPermSize=256m -jar dexter-executor.jar -c -u createTest -p createTest -c0 -c1 -c2 -c3 -c4 -c5
===== Starting Dexter Analysis =====
★ ERROR : Unrecognized option: -c0 (see ../log/dexter-executor.log file for more information)
★ ERROR : system exit code : 1
D:DEV_GITexportdexter-cli_0.9.0_32�in>
When dexter-server instance is down, dexter-monitor should sent an email to server administrator. But the email is not sent.
Here is my server-list.json:
{
{
"type": "Dexter Server",
"group": "SE",
"name": "Test server",
"heartbeat": "http://123.123.123.10:4982/api/v1/isServerAlive",
"heartbeatInDetail":"http://123.123.123.10:4982/api/v2/server-detailed-status",
"emailingWhenServerDead": true,
"emailList": ["[email protected]" ],
"serverAdministrator": "Admin name"
}
}
When developers are login the Dexter Daemon, Show the error log for related failures.
[ java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null :
Connection refused connect. check your server is on > http://:-1/api/v1/accounts/checkLogin ]
But dexter-daemon can set the Client, Config information at the second login.
after fixing a defect, the modifiedDateTime is updated by createDateTime.
When trying to start dexter-monitor, following error occurs:
~/dexter/project/dexter-monitor$ node app.js -p=1111
return key.startsWith('-');
^
TypeError: Object -p has no method 'startsWith'
at isValidCliOption (/home/test.user/dexter/project/dexter-monitor/util/dexter-util.js:96:16)
at /home/test.user/dexter/project/dexter-monitor/util/dexter-util.js:59:12
at arrayEach (/home/test.user/dexter/project/dexter-monitor/node_modules/lodash/index.js:1289:13)
at Function.<anonymous> (/home/test.user/dexter/project/dexter-monitor/node_modules/lodash/index.js:3345:13)
at baseWrapperValue (/home/test.user/dexter/project/dexter-monitor/node_modules/lodash/index.js:2768:30)
at LodashWrapper.wrapperValue (/home/test.user/dexter/project/dexter-monitor/node_modules/lodash/index.js:6124:14)
at Object.exports.getCliOptions (/home/test.user/dexter/project/dexter-monitor/util/dexter-util.js:64:8)
at loadCliOptions (/home/test.user/dexter/project/dexter-monitor/app.js:69:27)
at initialize (/home/test.user/dexter/project/dexter-monitor/app.js:42:5)
at Object.<anonymous> (/home/test.user/dexter/project/dexter-monitor/app.js:37:1)
I'm using Node.js v0.10.25 running on Ubuntu 14.04.
What can be wrong?
The DexterResultManager should delete old files when there are the result from the same source file.
This will cause improving performance when there are many the static analysis results from the same file which are not sent to Dexter Server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.