{"action":"created","issue":{"url":"https://api.github.com/repos/stefanrinderle/sonar-softvis3d-plugin/issues/5","labels_url":"https://api.github.com/repos/stefanrinderle/sonar-softvis3d-plugin/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/stefanrinderle/sonar-softvis3d-plugin/issues/5/comments","events_url":"https://api.github.com/repos/stefanrinderle/sonar-softvis3d-plugin/issues/5/events","html_url":"https://github.com/stefanrinderle/sonar-softvis3d-plugin/issues/5","id":116781704,"number":5,"title":"PluginVersion 0.3 not working with Sonar 5.2 (jdk1.8.0_40/postgresql-9.3)","user":{"login":"guidowojke","id":4688086,"avatar_url":"https://avatars.githubusercontent.com/u/4688086?v=3","gravatar_id":"","url":"https://api.github.com/users/guidowojke","html_url":"https://github.com/guidowojke","followers_url":"https://api.github.com/users/guidowojke/followers","following_url":"https://api.github.com/users/guidowojke/following{/other_user}","gists_url":"https://api.github.com/users/guidowojke/gists{/gist_id}","starred_url":"https://api.github.com/users/guidowojke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidowojke/subscriptions","organizations_url":"https://api.github.com/users/guidowojke/orgs","repos_url":"https://api.github.com/users/guidowojke/repos","events_url":"https://api.github.com/users/guidowojke/events{/privacy}","received_events_url":"https://api.github.com/users/guidowojke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-13T14:49:32Z","updated_at":"2015-11-14T09:45:01Z","closed_at":null,"body":"Hallo everybody,\r\n\r\nsimply putting the file sonar-softVis3D-plugin-0.3.jar into the ./sonarqube-5.2/extensions/plugins folder and restarting sonar with sonar.sh file produces the following error:\r\n\r\nuname -a:  Linux 3.2.0-4-amd64 1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux\r\n\r\n```\r\n--> Wrapper Started as Daemon\r\nLaunching a JVM...\r\nWrapper (Version 3.2.3) http://wrapper.tanukisoftware.org\r\n  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.\r\n\r\n2015.11.13 15:25:52 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[search]: /export/home/bsci/tools/jdk/jdk1.8.0_40/jre/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/export/home/bsci/server/sonarqube/sonarqube-5.2/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /tmp/sq-process6222138717536646989properties\r\n2015.11.13 15:25:53 INFO   es[o.s.p.ProcessEntryPoint]  Starting search\r\n2015.11.13 15:25:53 INFO   es[o.s.s.SearchSettings]  Elasticsearch listening on 127.0.0.1:9001\r\n2015.11.13 15:25:53 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] version[1.7.2], pid[15850], build[e43676b/2015-09-14T09:49:53Z]\r\n2015.11.13 15:25:53 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] initializing ...\r\n2015.11.13 15:25:53 INFO   es[o.e.plugins]  [sonar-1447424752708] loaded [], sites []\r\n2015.11.13 15:25:53 INFO   es[o.elasticsearch.env]  [sonar-1447424752708] using [1] data paths, mounts [[/export (/dev/drbd0)]], net usable_space [871gb], net total_space [899.5gb], types [xfs]\r\n2015.11.13 15:25:54 WARN   es[o.e.bootstrap]  JNA not found. native methods will be disabled.\r\n2015.11.13 15:25:55 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] initialized\r\n2015.11.13 15:25:55 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] starting ...\r\n2015.11.13 15:25:55 INFO   es[o.e.transport]  [sonar-1447424752708] bound_address {inet[/127.0.0.1:9001]}, publish_address {inet[/127.0.0.1:9001]}\r\n2015.11.13 15:25:55 INFO   es[o.e.discovery]  [sonar-1447424752708] sonarqube/u5SDHQiES1uYcG3EmBhwTw\r\n2015.11.13 15:25:58 INFO   es[o.e.cluster.service]  [sonar-1447424752708] new_master [sonar-1447424752708][u5SDHQiES1uYcG3EmBhwTw][bscibeadev02.be.server.lan][inet[/127.0.0.1:9001]]{rack_id=sonar-1447424752708}, reason: zen-disco-join (elected_as_master)\r\n2015.11.13 15:25:58 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] started\r\n2015.11.13 15:25:58 INFO   es[o.e.gateway]  [sonar-1447424752708] recovered [6] indices into cluster_state\r\nJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0\r\n2015.11.13 15:25:59 INFO  app[o.s.p.m.Monitor] Process[search] is up\r\n2015.11.13 15:25:59 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[web]: /export/home/bsci/tools/jdk/jdk1.8.0_40/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx768m -Xms256m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Dhttps.proxyHost=********** -Dhttps.proxyPort=3128 -Djava.io.tmpdir=/export/home/bsci/server/sonarqube/sonarqube-5.2/temp -cp ./lib/common/*:./lib/server/*:/export/home/bsci/server/sonarqube/sonarqube-5.2/lib/jdbc/postgresql/postgresql-9.3-1102-jdbc41.jar org.sonar.server.app.WebServer /tmp/sq-process5056604064872068091properties\r\n2015.11.13 15:26:00 INFO  web[o.s.p.ProcessEntryPoint] Starting web\r\n2015.11.13 15:26:00 INFO  web[o.s.s.app.Webapp] Webapp directory: /export/home/bsci/server/sonarqube/sonarqube-5.2/web\r\n2015.11.13 15:26:00 INFO  web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler [\"http-nio-0.0.0.0-8999\"]\r\n2015.11.13 15:26:00 INFO  web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read\r\n2015.11.13 15:26:01 INFO  web[o.e.plugins] [sonar-1447424752708] loaded [], sites []\r\n2015.11.13 15:26:01 INFO  web[o.s.s.p.ServerImpl] SonarQube Server / 5.2 / f045be98be3ba032b6b19d71574038eeeb91803b\r\n2015.11.13 15:26:01 INFO  web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://*************/sonar\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.DefaultServerFileSystem] SonarQube home: /export/home/bsci/server/sonarqube/sonarqube-5.2\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Build Stability / 1.3 / adf81f731fc54be04431d4ccf753900c44ec33bd\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Checkstyle / 2.3 / 7c62fe8a00123b8df1fa16cc25ad77888e50e811\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Findbugs / 3.3 / e1a76544ee6aed765106e7e2bb64072adf63ccaf\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.1 / 21e7329a632904350bb9a2e7f1b17b9967988db8\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin Java / 3.6 / 88ff47a7574edcc4472ff495c15b6f94d8dbd98f\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 1.4 / 18ba3a13ba4c6c07e6b0ad77940a52734159c27e\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin PHP / 2.6 / 153f397dc6cac76c93eca5df541278447ed85ea4\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin PMD / 2.4.1 / 2f30e0a7177041a4fb9f7ecefdb301e2bfc15903\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin SVN / 1.2 / d04c3cdb21f48905dd8300d1129ec90281aa6db2\r\n2015.11.13 15:26:02 INFO  web[o.s.s.p.ServerPluginRepository] Deploy plugin SoftVis3D / 0.3 / c5f74dec1790d1b3945855d18f29757a6f2d29ba\r\n2015.11.13 15:26:03 INFO  web[o.s.s.p.RailsAppsDeployer] Deploying Ruby on Rails applications\r\n2015.11.13 15:26:03 INFO  web[o.s.s.p.UpdateCenterClient] Update center: http://update.sonarsource.org/update-center.properties (HTTP proxy: ***********:3128)\r\n2015.11.13 15:26:04 ERROR web[o.a.c.c.C.[.[.[/sonar]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener\r\njava.lang.NoClassDefFoundError: org/sonar/api/database/DatabaseSession\r\n\tat java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.8.0_40]\r\n\tat java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[na:1.8.0_40]\r\n...\r\n2015.11.13 15:26:08 INFO  web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler [\"http-nio-0.0.0.0-8999\"]\r\n2015.11.13 15:26:09 INFO  web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler [\"http-nio-0.0.0.0-8999\"]\r\n2015.11.13 15:26:09 INFO  web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler [\"http-nio-0.0.0.0-8999\"]\r\n2015.11.13 15:26:09 INFO  web[o.s.s.a.TomcatAccessLog] Web server is stopped\r\n2015.11.13 15:26:09 INFO  app[o.s.p.m.TerminatorThread] Process[search] is stopping\r\n2015.11.13 15:26:09 INFO   es[o.s.p.StopWatcher]  Stopping process\r\n2015.11.13 15:26:09 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] stopping ...\r\n2015.11.13 15:26:09 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] stopped\r\n2015.11.13 15:26:09 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] closing ...\r\n2015.11.13 15:26:09 INFO   es[o.elasticsearch.node]  [sonar-1447424752708] closed\r\n2015.11.13 15:26:09 INFO  app[o.s.p.m.TerminatorThread] Process[search] is stopped\r\n<-- Wrapper Stopped\r\n```\r\n\r\nAfter removing the plugin and restarting again, everything is running fine again.\r\n\r\nRegards,\r\nGuido"},"comment":{"url":"https://api.github.com/repos/stefanrinderle/sonar-softvis3d-plugin/issues/comments/156677680","html_url":"https://github.com/stefanrinderle/sonar-softvis3d-plugin/issues/5#issuecomment-156677680","issue_url":"https://api.github.com/repos/stefanrinderle/sonar-softvis3d-plugin/issues/5","id":156677680,"user":{"login":"stefanrinderle","id":2418659,"avatar_url":"https://avatars.githubusercontent.com/u/2418659?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanrinderle","html_url":"https://github.com/stefanrinderle","followers_url":"https://api.github.com/users/stefanrinderle/followers","following_url":"https://api.github.com/users/stefanrinderle/following{/other_user}","gists_url":"https://api.github.com/users/stefanrinderle/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanrinderle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanrinderle/subscriptions","organizations_url":"https://api.github.com/users/stefanrinderle/orgs","repos_url":"https://api.github.com/users/stefanrinderle/repos","events_url":"https://api.github.com/users/stefanrinderle/events{/privacy}","received_events_url":"https://api.github.com/users/stefanrinderle/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T09:45:01Z","updated_at":"2015-11-14T09:45:01Z","body":"Hey,\r\n\r\nfirst of all, thanks for trying to use my plugin. Unfortunately, my plugin is not working with version 5.2 of SonarQube yet. As I've been very busy the last few weeks and SonarQube 5.2 was released 2 weeks ago I did not had the time to state that correctly on my project page or the README file. This is done now.\r\n\r\nThe database access is not longer available for plugins in version 5.2. This causes the ClassNotFoundException during the initialization. It would be great to check the version during the initialization to avoid SonarQube from being stopped, but I don't know a way to do that.\r\n\r\nIt would be great to get an alternative or workaround for the server side code of the plugin to gather any data. It is also not possible to access the web service interface from the server side somehow. As a result, I have no data access currently. There's an open discussion on the sonarqube [google group](https://groups.google.com/forum/#!searchin/sonarqube/Plugin$20development$20with$20SonarQube$20%3E$3D$205.2/sonarqube/Ly6CaKGJpHA/9CSirmQY5wEJ) about that topic. More details on that in [my blog](http://softvis3d.com/#/blog).\r\n\r\nLong story short. This issue can only be fixed if the platform changes, but I'm pretty confident that they will provide a way.\r\n"}}