When running Sonar 3.2 I get the following error message displayed when I try to list the projects analyzed in a web browzer.
An error occurred while trying to display the widget "Filter". Please contact the administrator.
when looking at sonars logs I see this message:
rails Can not render widget filter: org.sonar.api.utils.SonarException: Fail to execute filter: Filter[rootSnapshotId=,baseSnapshotId=,baseSnapshotPath=,scopes=,qualifiers=[TRK],languages=,favouriteIds=,dateCriterion=,keyRegexp=,nameRegexp=,onDirectChildren=false,measureCriteria=[],periodIndex=0,sortedMetricId=,sortedByMeasureVariation=false,sortedByLanguage=false,sortedByName=true,sortedByKey=false,sortedByDate=false,sortedByVersion=false,isNumericMetric=true,ascendingSort=true], sql=SELECT s.id, MAX(s.project_id) as pid, MAX(s.root_project_id) as rpid, MAX(p.long_name) as name FROM snapshots s INNER JOIN projects p ON s.project_id=p.id WHERE s.status=:status AND s.islast=:islast AND s.qualifier IN (:qualifiers) AND p.copy_resource_id IS NULL GROUP BY s.id
I am using SQL Server 2008 in the backend. The query doesn't look right for SQL. What could be wrong? When analyzing the project using Maven, I get no issues. It gives me a build success.
I am using Apache Maven 3.0.2 and Sonar 3.2 on window. any clues about what is going on?
Are you using the sqljdbc drivers to connect to SQL Server? I solved this issue by using the jTDS driver as detailed in this answer.
Related
I am new to spring-data and neo4j, so if there is something painfully bad about my code please say.
I want to deploy my application to heroku, however I cannot get remote neo4j connections to work. I have tried
Remote connection to a local docker image (which works in browser)
Local server
Heroku add-on (Graphstory)
Sadly, they all give the same exception, the most important being:
Factory method 'typeRepresentationStrategyFactory' threw exception; nested exception is java.lang.RuntimeException: Error reading as JSON ''
You can see my Neo4j Spring Configuration here (unit profile is for unit testing) and part of my pom is here.
Neo4j docker image version: 2.3.3
Neo4j local version: 2.3.3
GraphEntity model (Comment) here
As it turns out my dependencies are incompatible with the Neo4j server I think.
Furthermore the only compatible version is on neo4j's private maven repository.
Flavorwocky by luanne (not me) is a good reference for how it should look
Also go and have a look at Neo4j OGM documentation if you are here.
[update] Please find the config classes here : https://github.com/veeseekay/fooflix.
To run, you can just do a
gradle clean build
java -jar build/libs/fooflix.jar
When you point to localhost:8686 - gives a 404. However, I am running this within my IDE and the browser shows up fine.
I have successfully embedded neo4j within my spring boot application. I could even bring up the webadmin/browser for neo4j using this :
How to enable neo4j webadmin when using spring-data-neo4j?
However there is a weird problem which am not able to figure out. When I run this spring boot application in my IDE, am able to access the neo4j webadmin from the browser and view the graphs, however, if I build an uber jar and run it on a terminal, am not able to access the webadmin. I get a 404.
<code>
HTTP ERROR 404
Problem accessing /browser/. Reason:
Not Found
Powered by Jetty://
</code>
looks like a path issue, but am not able to figure out why. any pointers would be of great help.
here are my gradle deps
<code>
compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework:spring-context")
compile("org.springframework:spring-tx")
compile("org.springframework.data:spring-data-neo4j:3.4.0.RELEASE")
compile("org.hibernate:hibernate-validator")
compile("javax.el:javax.el-api:2.2.4")
compile("javax.el:javax.el-api:2.2.4")
compile("org.neo4j.app:neo4j-server:2.2.5")
compile("org.neo4j.app:neo4j-server:2.2.5:static-web")
</code>
thanks
i am trying to track latest changes in neo4j in Server Mode
so i followed this link https://github.com/graphaware/neo4j-changefeed
as i see some extra node are added and here are changes about my db
but http://localhost:7474/graphaware/changefeed/CFM gives me 404
i am using neo4j 2.2.2
and my neo4j.properties
com.graphaware.runtime.enabled=true
com.graphaware.module.CFM.1=com.graphaware.module.changefeed.ChangeFeedModuleBootstrapper
com.graphaware.module.CFM.maxChanges=100
com.graphaware.module.CFM.pruneDelay=10000
com.graphaware.module.CFM.pruneWhenExceeded=10
com.graphaware.module.CFM.node=!hasLabel('NotIncluded')
com.graphaware.module.CFM.relationship=!isType('NOT_INCLUDED')
plugins i added
graphaware-server-community-all-2.2.2.31.jar
graphaware-changefeed-2.2.2.31.7.jar
The GraphAware framework and modules will work on Windows only if you've installed Neo4j from the zip and not the installer.
I'm running sqlpackage.exe as park of an automated deployment script creation process, however we have synonyms in the database, which are different depending on the environment (Dev/Test/Live). The problem is that the database project has the synonyms as they are in the Dev environment, but when I run sqlpackage to compare against Test or Live, the synonyms are different and so they get scripted to be dropped and re-added to point to Dev.
I've seen on http://blogs.msdn.com/b/ssdt/archive/2015/02/23/new-advanced-publish-options-to-specify-object-types-to-exclude-or-not-drop.aspx that apparently there's a new parameter "ExcludeObjectType", but when I try running it using that parameter it gives me an error 'ExcludeObjectType' is not a valid argument for the 'Script' action (and I have the latest version of sqlpackage.exe).
Any ideas on what I can do here?
After downloading the latest SSDT for Visual Studio I still had the same issue. Next I downloaded Data-Tier Application Framework (May 2015) and used the new SqlPackage installed at C:\Program Files\Microsoft SQL Server\120\DAC\bin\sqlpackage.exe and the error went away and worked as expected.
Thank you sir! When I created the deployment script in VS, no change detected but when I tried to deploy using sqlpackage I got the error:
* The object [x] already exists in database with a different definition and will not be altered.
After adding the ExcludeObjectTypes switch I got the following error:
* 'ExcludeObjectTypes' is not a valid argument for the 'Publish' action.
But after downloading and installing latest Data-Tier App framework all works as expected with no errors.
I have created nodes and relationships in java using Neo4j jars,I am trying to display the same from Neoclipse,
I am getting Exception when trying to create connection from Neoclipse to the folder created by java program (I am using windows 7) .
Exception:
java.lang.IllegalStateException:Mismatching store version found(v0.A.1 while expecting v0.A.0)
and the store is not cleanly shutdown.
Recover the database with previous database version and then attempt to upgrade .
after this i added graphDb.shutdown(); code then i got different exception:
org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnableToUpgradeException:
Not all store Files match the version required for successful upgrade.
List of jar Files:
geronimo-jta_1.1_spec-1.1.1.jar
lucene-core-3.6.2.jar
neo4j-2.0.1.jar
neo4j-cypher-2.0.1.jar
neo4j-graph-algo-2.0.1.jar
neo4j-graph-matching-2.0.1.jar
neo4j-jmx-2.0.1.jar
neo4j-kernel-2.0.1.jar
neo4j-lucene-index-2.0.1.jar
neo4j-udc-2.0.1.jar
Please guide me.
It looks like you've created your datastore with Neo4j 2.0.1. Neoclipse seems to use an earlier version. Datastore downgrades are not supported.
However you could drop your database into a Neo4j 2.0.1 server and connect to it remotely using Neoclipse.