Giter Club home page Giter Club logo

dexter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dexter's Issues

Workspace is closed error

===== 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)

[monitor] Cannot run Mocha tests

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-server] Management Guide for Dexter Server (using PM2)

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.

Unimplemented password reset in CLI

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.

[dexter-server] TypeError: Object -p has no method 'startsWith'

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)

Eclipse Mars > java.lang.NoClassDefFoundError: com/samsung/sec/dexter/eclipse/ui/util/EclipseLog

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

[dexter-cppcheck] Analysis doesn't work if project path contains spaces

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

Server Checking Error on Eclipse Mars

  • Version: 0.9.1
  • Message:
    java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null : Connection refused connect. check your server is on > http://:-1/api/v1/accounts/checkLogin
  • Exception Stack Trace:
    com.samsung.sec.dexter.core.exception.DexterRuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null : Connection refused connect. check your server is on > http://:-1/api/v1/accounts/checkLogin
    at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.getText(JerseyDexterWebResource.java:149)
    at com.samsung.sec.dexter.core.util.DexterClient.login(DexterClient.java:211)
    at com.samsung.sec.dexter.eclipse.ui.DexterUIActivator.initDexterClient(DexterUIActivator.java:107)
    at com.samsung.sec.dexter.eclipse.ui.DexterUIActivator.start(DexterUIActivator.java:82)
    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)
    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)
    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)
    at com.samsung.sec.dexter.eclipse.DexterEclipseActivator.start(DexterEclipseActivator.java:88)
    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)
    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)
    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)
    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: com.sun.jersey.api.client.ClientHandlerException: java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null
    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.get(WebResource.java:509)
    at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.getText(JerseyDexterWebResource.java:147)
    ... 56 more
    Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1242)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2714)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:477)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:253)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)
    ... 61 more
    Caused by: java.lang.IllegalArgumentException: protocol = http host = null
    at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:170)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:926)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
    ... 63 more
  • Session Data:
    eclipse.buildId=4.5.0.I20150603-2000
    java.version=1.7.0_40
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ko_KR
    Framework arguments: -product org.eclipse.epp.package.rcp.product -product org.eclipse.epp.package.rcp.product
    Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.rcp.product -data file:/C:/DEV/temp/ws/ -product org.eclipse.epp.package.rcp.product

[dexter-cli_0.9.0_64] Connection refused connect. http://127.0.0.1:4982/api/analysis/result

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

[dexter-cli] Can't run Standalone Mode.

  1. Without ID & PASWWD option :
    ===== Starting Dexter Analysis =====
    ★ ERROR : use -u and -p options: (see ../log/dexter-executor.log file for more information)
    ★ ERROR : eg) dexter id password (see ../log/dexter-executor.log file for more information)
    ★ ERROR : eg) java -jar dexter-executor_#.#.#.jar -u id -p password (see ../log/dexter-executor.log file for more information)
    If you want create an account. use -c -u your_id -p your_password
    If you want reset your password. use -r -u your_id
    ★ ERROR : system exit code : 2
  2. with ID&PASSWD option:
    ===== Starting Dexter Analysis =====
    Exception in thread "main" com.samsung.sec.dexter.core.exception.DexterRuntimeException: java.net.ConnectException: Connection refused: connect : Connection refused connect. check your server is on >
    at com.samsung.sec.dexter.core.util.DexterClient.getDexterPluginChecker(DexterClient.java:1060)
    at com.samsung.sec.dexter.core.plugin.DexterPluginManager$1.run(DexterPluginManager.java:101)
    at com.samsung.sec.dexter.core.plugin.DexterPluginManager.updateCheckerConfig(DexterPluginManager.java:108)

[dexter-cli] The exception occurrence "com.sun.jersey.api.client.ClientHandlerException"

[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

OutOfMemoryError : when analysis massive files(over 570,000 files)

!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)

Support Both JDT and CDT

to use both java and c/c++ project in one Eclipse instance

  • need new project : dexter-eclipse-cdt

[dexter-cli_0.9.0_64] User create error by create-user.sh

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

Wrong manifest files

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: .

[dexter-monitor] Column "Number of developers finished with installation" is empty

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)

separate out result files of static analysis by module path and filename

  1. As-Is
    Separating by only filename
  2. Problem
    Last result file rewrites old file. It was design-intended function.
    But, when dexter analyzes massive projects or intergrates with code review system(eg. swarm/p4),
    some results are removed.
    This is because sometimes same file has different module path in some branches.
  3. To-Be
    Change result-filename rules:
    source file name + long ms + .json
    ==> source file name + module path hash value + long ms + .json
    For now, use JDK String Hash function, but it should be modified to avoid hash collisons later.

[dexter-cli_0.9.0_64] Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

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)

Error of -c option in Dexter CLI

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>

[dexter-monitor 0.9.2] Email is not sent when server is down

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"
    }
}

[dexter-daemon] It can't set Client, Config information at the first login.

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.

[dexter-monitor 0.9.2] Cannot run dexter-monitor

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.