Giter Club home page Giter Club logo

code-quality-game's People

Contributors

mechero avatar ricardogarfe avatar systemtrap avatar yamikuronue avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

code-quality-game's Issues

some closed issues have no closeDate

Sorry if this is a bit hurried, but I think it's sufficient to identify the root problem.

/src/main/java/com/thepracticaldeveloper/devgame/modules/stats/service/ScoreCardServiceImpl.java

can throw an NPE when filtering on getClosedDate()

        final Set<Issue> issuesFilteredByLegacyDate = fixedIssues.stream()
                .filter(i -> IssueDateFormatter.format(i.getCreationDate())
                        .isBefore(legacyDate))
                .filter(i -> IssueDateFormatter.format(i.getCloseDate())
                        .isAfter(campaignStartDate))
                .collect(Collectors.toSet());

When encountering a data structure containing a record like:

{
  "key": "AW72GI5CFw3lvOQ95If8",
  "rule": "python:S4721",
  "component": "test_code:a/b/sniff.py",
  "project": "test_project",
  "line": 31,
  "hash": "dcd2b55435d5198bf2dc023f79fd5b14",
  "textRange": {
    "startLine": 31,
    "endLine": 31,
    "startOffset": 15,
    "endOffset": 39
  },
  "flows": [],
  "resolution": "FIXED",
  "status": "REVIEWED",
  "message": "Make sure that executing this OS command is safe here.",
  "effort": "30min",
  "debt": "30min",
  "assignee": "redacted",
  "tags": [
    "cwe",
    "owasp-a1",
    "sans-top25-insecure"
  ],
  "creationDate": "2019-12-11T17:53:40+0000",
  "updateDate": "2019-12-11T20:54:11+0000",
  "type": "SECURITY_HOTSPOT",
  "organization": "default-organization",
  "fromHotspot": true
}

Note -- the issue is fixed, reviewed, and closed out, but there's no closedDate. I speculate because the code in question was fixed by deleting a file that should never have been present anyway, and it showed up in the query that was issued to sonarqube.

This crashed the service and caused no cards to render.

Question - Reseting statistics is a bit unclear

Hi,

I have setup Quboo in my workplace recently and it looks like a smart and fun solution to addressing our code debt problem.

It is unclear to me though, when resetting statistics, they just come back again. I only guess it is because Quboo recalculates based on the fixed and assigned issues on Sonar.
But suppose we want to reset the score every, let's say, month (we have monthly sprints), so that who came short last month can have a chance to shine. How would we be able to do that?

I thought maybe I can unassign users from fixed issues, but SonarQube (7.6) doesn't allow this.
I thought also whether Quboo can calculate the statistics based on a legacy date (created before a date) and a solution date. (solved after a date)

It is such a wonderful tool and I would very much appreciate a feedback on how to better use it.

Thanks.

Can't start frontend project

Hello,

I didn't have any problem configuring and starting the SonarQube connector as either a WAR file or a Maven goal, but I can't resolve an issue getting the front end to start. I upgraded npm and node to the latest versions, and created an environment variable called Node_ENV and set it to development. (I'm not sure about the environment variable though, as I'm not a JS developer).

Could you please point me in the right direction? the debug log is below:

Regards,

Jim

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\Bob\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: C:\Users\Bob\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\code-quality-game\frontend\node_modules\.bin;C:\Oracle\Software\bin;C:\Program Files\avs\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\IBM\ITM\bin;C:\IBM\ITM\TMAITM6;C:\IBM\ITM\InstallITM;D:\apache-maven-3.5.0\bin;C:\Program Files\Java\jdk1.8.0_131;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Program Files\Java\jdk1.8.0_131\jre\bin;C:\Program Files\Git\cmdC:\ProgramData\Oracle\Java\javapath;C:\Oracle\Software\bin;C:\Program Files\avs\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\IBM\ITM\bin;C:\IBM\ITM\TMAITM6;C:\IBM\ITM\InstallITM;C:\apache-maven-3.5.0\bin;C:\Program Files\Java\jdk1.8.0_131;C:\Program Files\Java\jdk1.8.0_131\lib;C:\Program Files\Java\jdk1.8.0_131\jre\bin;Program Files\nodejs\;C:\Program Files\Git\cmd;%M2;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\nodejs\;S:\proddlls\pbnt;Z:.;Y:.;X:.;S:\proddlls\sql\bin;S:\proddlls\sql\dll;C:\Users\Bob\AppData\Roaming\npm
9 verbose lifecycle [email protected]~start: CWD: D:\code-quality-game\frontend
10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'tsc && concurrently "tsc -w" "lite-server" ' ]
11 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `tsc && concurrently "tsc -w" "lite-server" `
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Users\Bob\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:283:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (C:\Users\Bob\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd D:\code-quality-game\frontend
16 verbose Windows_NT 6.3.9600
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Bob\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v8.11.1
19 verbose npm  v5.8.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `tsc && concurrently "tsc -w" "lite-server" `
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Suggestion - Adding manual badges

Allow certain users to manually enter badges in the user file. This makes it possible to insert rewards for short events and MiniGames into the Leaderboard.

Fails to start

I had an error trying to launch the application. I am not aware with Spring and README configuration part is not very explanatory . Below is the stack. I appreciate if you can help , because I want to start using this game.

`Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)

00:10:13,516 ERROR [org.springframework.boot.SpringApplication](ServerService Thread Pool -- 66) Application startup failed: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:142)
at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:89)
at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:51)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:184)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1103)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:963)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)
... 28 more

00:10:13,519 ERROR [org.jboss.msc.service.fail](ServerService Thread Pool -- 66) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./code-quality-game: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./code-quality-game: java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:142)
at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:89)
at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:51)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:184)
... 8 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1103)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:963)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)
... 28 more

00:10:13,526 ERROR [org.jboss.as.controller.management-operation](Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "code-quality-game.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./code-quality-game" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./code-quality-game: java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}"}}
00:10:13,570 INFO [org.jboss.as.server](ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "code-quality-game.war" (runtime-name : "code-quality-game.war")
00:10:13,572 INFO [org.jboss.as.controller](Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./code-quality-game: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./code-quality-game: java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sonarServerConfigurationService' defined in "/home/robson/dev/wildfly-10.0.0.Final/standalone/deployments/code-quality-game.war/WEB-INF/classes/es/macero/cqgame/modules/configuration/service/SonarServerConfigurationService.class": Unsatisfied dependency expressed through constructor argument with index 0 of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao]: : No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [es.macero.cqgame.modules.configuration.dao.SonarServerConfigurationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

00:10:13,775 INFO [org.jboss.as](Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
00:10:13,776 INFO [org.jboss.as](Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
00:10:13,776 ERROR [org.jboss.as](Controller Boot Thread) WFLYSRV0026: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started (with errors) in 18998ms - Started 449 of 743 services (2 services failed or missing dependencies, 383 services are lazy, passive or on-demand)
00:10:13,814 INFO [org.jboss.as.connector.deployers.jdbc](MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = code-quality-game.war_org.h2.Driver_1_3
00:10:13,876 INFO [org.jboss.as.server.deployment](MSC service thread 1-2) WFLYSRV0028: Stopped deployment code-quality-game.war (runtime-name: code-quality-game.war) in 69ms
00:10:13,990 INFO [org.jboss.as.server](DeploymentScanner-threads - 2) WFLYSRV0009: Undeployed "code-quality-game.war" (runtime-name: "code-quality-game.war")
00:10:13,992 INFO [org.jboss.as.controller](DeploymentScanner-threads - 2) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.unit."code-quality-game.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.ArgumentTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.BindErrorsTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.BindTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.EscapeBodyTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.EvalTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.HtmlEscapeTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.MessageTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.NestedPathTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.ParamTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.ThemeTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.TransformTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.UrlTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.ButtonTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.CheckboxTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.CheckboxesTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.ErrorsTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.FormTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.HiddenInputTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.InputTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.LabelTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.OptionTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.OptionsTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.PasswordInputTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.RadioButtonTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.RadioButtonsTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.SelectTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.deployment.unit."code-quality-game.war".component."org.springframework.web.servlet.tags.form.TextareaTag".START (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
service jboss.undertow.deployment.default-server.default-host./code-quality-game (missing) dependents: [service jboss.deployment.unit."code-quality-game.war".deploymentCompleteService]
WFLYCTL0186: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./code-quality-game`

Get issues URL format

Seems like your code might have been developed using a now obsolete (deprecated) API, as I had to replace the pipe characters with ampersands in es.macero.cqgame.modules.retriever.service.SonarDataRetriever class:

private static final String GET_ISSUES_COMMAND = "/api/issues/search?assignees={assignees}&resolutions={resolutions}&p={page}&ps={pageSize}";

I tried to commit the patch to master but seems like it's forbidden, perhaps I just don't know the procedure to do it.

Authentication against sonarqube fails

Hi,

I am trying to user your wonderful code game. I installed a local sonar qube 7.5 on a Win2016 Server. The docker container is up and running inside the server as well. Whenever quboo backend starts retrieving the users from sonar with http://localhost:9000/api/users/search?p=1&ps=500 I get a 401 back. I have inserted the API key, answer is always the same as I get when I try to call the API without authentication (401). The API key itself seems to be working, using it with postman gives me the list of users back.

quboo-backend_1 | 2019-01-11 14:08:43.127 TRACE 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Retrieving users, page 1
quboo-backend_1 | 2019-01-11 14:08:43.192 TRACE 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : URI: http://localhost:9000/api/users/search?p=1&ps=500
quboo-backend_1 | 2019-01-11 14:08:43.219 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
quboo-backend_1 | 2019-01-11 14:08:43.243 INFO 1 --- [ main] c.t.devgame.Application : Started Application in 15.316 seconds (JVM running for 17.436)
quboo-backend_1 | 2019-01-11 14:08:43.431 ERROR 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Error while trying to retrieve users from SonarQube, page 1
quboo-backend_1 |
quboo-backend_1 | org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9000/api/users/search": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

Any idea what I am doing wrong?

Regards,

Miriam

sonar run error

Nice example,

But I have some issue when running the CLI :

mvn sonar:sonar
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project code-quality-game: /Users/hendisantika/Documents/IdeaProjects/code-quality-game/sonar-connector doesn't seem to be contained in a Git repository

I have run my sonar service.

Do you have any solution?

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.