SharePoint Sample WebPart build errors - spfx

Good Evening i get the following error when i try to build a sample webpart quite lost now very new to this
\react-tiles-v2> gulp serve
Build target: DEBUG
[19:58:28] Using gulpfile ~\Downloads\sp-dev-fx-webparts-main\sp-dev-fx-webparts-main\samples\react-tiles-v2\gulpfile.js
[19:58:28] Starting gulp
[19:58:28] Starting 'serve'...
[19:58:28] Starting subtask 'configure-sp-build-rig'...
[19:58:28] Finished subtask 'configure-sp-build-rig' after 4.94 ms
[19:58:28] Starting subtask 'spfx-serve'...
[19:58:28] [spfx-serve] To load your scripts, use this query string: ?debug=true&noredir=true&debugManifestsFile=https://localhost:4321/temp/manifests.js
[19:58:28] Starting server...
Starting api server on port 5432.
Registring api: /workbench
Registring api: /
[19:58:29] Finished subtask 'spfx-serve' after 305 ms
[19:58:29] Starting subtask 'pre-copy'...
[19:58:29] Finished subtask 'pre-copy' after 12 ms
[19:58:29] Starting subtask 'copy-static-assets'...
[19:58:29] Starting subtask 'sass'...
[19:58:29] Server started https://localhost:4321
[19:58:29] LiveReload started on port 35729
[19:58:29] Running server
[19:58:29] Opening https://iococlouddev.sharepoint.com/sites/STD_DEV/_layouts/15/workbench.aspx using the default OS app
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist#latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
[19:58:29] Finished subtask 'copy-static-assets' after 390 ms
[19:58:29] Finished subtask 'sass' after 656 ms
[19:58:29] Starting subtask 'tslint'...
[19:58:30] [tslint] tslint version: 5.12.1
[19:58:30] Starting subtask 'tsc'...
[19:58:30] [tsc] typescript version: 3.3.4000
[19:58:40] Error - [tsc] src/webparts/Tiles/TilesWebPart.ts(39,61): error TS2345: Argument of type 'import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-http/node_modules/#microsoft/sp-core-library/dist/index-internal").ServiceKey<import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node...' is not assignable to parameter of type 'import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-core-library/dist/index-internal").ServiceKey<import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-component...'.
[19:58:40] [tsc] Types of property 'defaultCreator' are incompatible.
[19:58:40] [tsc] Type 'import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-http/node_modules/#microsoft/sp-core-library/dist/index-internal").ServiceCreator<import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/...' is not assignable to type 'import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-core-library/dist/index-internal").ServiceCreator<import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-compo...'.
[19:58:40] [tsc] Types of parameters 'serviceScope' and 'serviceScope' are incompatible.
[19:58:40] [tsc] Type 'import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-core-library/dist/index-internal").ServiceScope' is not assignable to type 'import("C:/Users/admin/Downloads/sp-dev-fx-webparts-main/sp-dev-fx-webparts-main/samples/react-tiles-v2/node_modules/#microsoft/sp-http/node_modules/#microsoft/sp-core-library/dist/index-internal").ServiceScope'.
[19:58:40] [tsc] Types have separate declarations of a private property '_registrations'.
[19:58:40] Error - 'tsc' sub task errored after 9.85 s
exited with code 2
[19:58:42] Finished subtask 'tslint' after 13 s
Request: '/temp/manifests.js'

Related

No tuples is emitted or transffered by topology in storm ui

i am using stormcrawler 1.16 with elasticsearch 7.2.0. i have built project with with acrhetype.
command i run to submitted topology
storm jar target/stormcrawler-1.0-SNAPSHOT.jar org.apache.storm.flux.Flux --remote es-crawler.flux
i am getting this in output -
Parsing file: /home/ubuntu/stormcrawler/es-crawler.flux
835 [main] INFO o.a.s.f.p.FluxParser - loading YAML from input
stream...
841 [main] INFO o.a.s.f.p.FluxParser - Not performing property
substitution.
841 [main] INFO o.a.s.f.p.FluxParser - Not performing environment
variable substitution.
900 [main] INFO o.a.s.f.p.FluxParser - Loading includes from
resource: /crawler-default.yaml
901 [main] INFO o.a.s.f.p.FluxParser - loading YAML from input
stream...
903 [main] INFO o.a.s.f.p.FluxParser - Not performing property
substitution.
903 [main] INFO o.a.s.f.p.FluxParser - Not performing environment
variable substitution.
Configuration (interpreted):
then i last output lines -
2014 [main] WARN o.a.s.u.Utils - STORM-VERSION new 1.2.3 old 1.2.3
2376 [main] INFO o.a.s.StormSubmitter - Finished submitting topology: crawler
but when i check this crawler topology in storm ui, then in topology stats, no tuple is emitted or transffered by this crawler topology.
i have atteched a snapshot of storm ui in link below.
[in topology stats, no tuples is emitted or transffered. how can i solve this issue ? 1
Your POM file is probably missing the storm-crawler-elasticsearch dependency.
You could compare your code with what is generated by the storm-crawler-elasticsearch-archetype, which should give you a working configuration.
Use the archetype for Elasticsearch with:
mvn archetype:generate
-DarchetypeGroupId=com.digitalpebble.stormcrawler -DarchetypeArtifactId=storm-crawler-elasticsearch-archetype -DarchetypeVersion=LATEST
You'll be asked to enter a groupId (e.g. com.mycompany.crawler), an
artefactId (e.g. stormcrawler), a version and package name.
This will not only create a fully formed project containing a POM with
the dependency above but also a set of resources, configuration files
and a topology class. Enter the directory you just created (should be
the same as the artefactId you specified earlier) and follow the
instructions on the README file.

Running Sonar analysis through a service is resulting in an error, running in cmd prompt works fine

Running Sonar analysis through a service is resulting in this error, whereas when I login using the same user on same machine and running the same command works just fine and searching on that error also doesn't provide any details.
<message>08:34:48.066 WARN - ReSharper plugin is running in deprecated mode. inspectcode.exe should be ran outside the plugin and the report imported through sonar.resharper.cs.reportPath property.</message>
<message>08:34:48.082 INFO - Executing command: E:\Program Files\ResharperCommandLine\inspectcode.exe /output=E:\ccnet\server\AdAutomation\wd\.\.sonar\com.xyz.appdev_AdAutomation_ADAutomation.WebAPI\resharper-report.xml /no-swea /project=ADAutomation.WebAPI /profile=E:\ccnet\server\AdAutomation\wd\.\.sonar\com.xyz.appdev_AdAutomation_ADAutomation.WebAPI\resharper-sonarqube.DotSettings /no-buildin-settings E:\ccnet\server\AdAutomation\wd\.\ADAutomation.sln</message>
<message>08:34:48.285 INFO - InspectCode 8.1.23.523</message>
<message>08:34:48.285 INFO - Running in 64-bit mode, .NET runtime 4.0.30319.34209 under Microsoft Windows NT 6.1.7601 Service Pack 1</message>
<message>08:34:50.191 INFO - Internal exception thrown: Component CatalogType: JetBrains.ReSharper.Psi.Impl.Reflection2.ExternalAnnotations.ProductExternalAnnotationsFileProvider [Singleton, Corrupted] construction has failed. The component ProductExternalAnnotationsFileProvider constructor requires JetBrains.Application.Env.Components.ProductSettingsLocation, which we do not have.</message>
<message>08:34:50.191 INFO - </message>
<message>08:34:50.191 INFO - --- EXCEPTION #1/3 [InvalidOperationException]</message>
<message>08:34:50.191 INFO - Message = "The component ProductExternalAnnotationsFileProvider constructor requires JetBrains.Application.Env.Components.ProductSettingsLocation, which we do not have."</message>
<message>08:34:50.191 INFO - ExceptionPath = Root.InnerException.InnerException</message>
<message>08:34:50.191 INFO - ClassName = System.InvalidOperationException</message>
<message>08:34:50.191 INFO - Data.RejectedConstructors.#0.Signature = "Void .ctor(JetBrains.Application.Env.Components.ProductSettingsLocation)"</message>
<message>08:34:50.191 INFO - Data.RejectedConstructors.#0.UnsatisfiedTypes.#0 = "JetBrains.Application.Env.Components.ProductSettingsLocation, JetBrains.Platform.ReSharper.Shell, Version=8.1.23.523, Culture=neutral, PublicKeyToken=1010a0d8d6380325"</message>
<message>08:34:50.191 INFO - Data.DescriptorType = "JetBrains.Application.Extensibility.PartComponentDescriptor, JetBrains.Platform.ReSharper.ComponentModel, Version=8.1.23.523, Culture=neutral, PublicKeyToken=1010a0d8d6380325"</message>
<message>08:34:50.191 INFO - Data.State = Null</message>
<message>08:34:50.191 INFO - HResult = COR_E_INVALIDOPERATION=80131509</message>
<message>08:34:50.191 INFO - Source = JetBrains.Platform.ReSharper.ComponentModel</message>
<message>08:34:50.191 INFO - StackTraceString = "</message>
So far I have tried to update resharper command line tools but still no luck.
Any help is highly appreciated

Launch Neo4j 2.3.2 from the commandline

I have installed Neo4j 2.3.2 Community Edition on Mac OS 10.10. I can launch the application and connect to it from localhost:7474/browser/. So far, so good.
I would like to launch Neo4j 2.3.2 from a Terminal window, so that I don't have the overhead of a windowed application running at the same time. When I run the following command...
$ ~/neo4j/bin/neo4j console
... I get this output in the Terminal window:
WARNING: Max 256 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server console-mode...
Unable to find any JVMs matching version "1.7".
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow -XX:hashCode=5 -Dneo4j.ext.udc.source=tarball
2016-02-25 14:03:18.755+0000 INFO [API] Setting startup timeout to: 120000ms based on 120000
2016-02-25 14:03:58.356+0000 INFO [API] Successfully started database
2016-02-25 14:04:04.220+0000 INFO [API] Starting HTTP on port :7474 with 2 threads available
2016-02-25 14:04:13.512+0000 INFO [API] Enabling HTTPS on port :7473
09:04:20.201 [main] INFO org.eclipse.jetty.util.log - Logging initialized #98517ms
2016-02-25 14:04:23.034+0000 INFO [API] Mounting static content at [/webadmin] from [webadmin-html]
2016-02-25 14:04:25.785+0000 INFO [API] Mounting static content at [/browser] from [browser]
09:04:25.993 [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.4.v20141103
09:04:26.722 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.MovedContextHandler#1611ba2{/,null,AVAILABLE}
09:04:27.794 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet
09:04:27.981 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext#132ea25{/webadmin,jar:file:/Users/james/neo4j/system/lib/neo4j-server-2.2.5-static-web.jar!/webadmin-html,AVAILABLE}
09:04:38.841 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#60bfaa02{/db/manage,null,AVAILABLE}
09:04:39.326 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#28e2e149{/db/data,null,AVAILABLE}
09:04:39.353 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /browser, did not find org.apache.jasper.servlet.JspServlet
09:04:39.355 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext#78e6aa71{/browser,jar:file:/Users/james/neo4j/system/lib/neo4j-browser-2.2.5.jar!/browser,AVAILABLE}
09:04:39.536 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#4994d9ab{/,null,AVAILABLE}
09:04:39.745 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector#2d19cf20{HTTP/1.1}{localhost:7474}
09:04:40.576 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector#43c742c{SSL-HTTP/1.1}{localhost:7473}
09:04:40.577 [main] INFO org.eclipse.jetty.server.Server - Started #119058ms
2016-02-25 14:04:40.577+0000 INFO [API] Server started on: http://localhost:7474/
2016-02-25 14:04:40.590+0000 INFO [API] Remote interface ready and available at [http://localhost:7474/]
I have Java version 8, update 74 installed (build 1.8.0_74-b02), so I assume that I can ignore the warning Unable to find any JVMs matching version "1.7".
However, when I visit http://localhost:7474/ in Chrome Version 45.0.2454.85 (64-bit), I see three errors in the Developer Console: two files that fail to load and a subsequent script error.
localhost/:28 GET http://localhost:7474/browser/styles/68eddd94.main.css
localhost/:466 GET http://localhost:7474/browser/scripts/ded362b3.scripts.js
Uncaught Error: [$injector:modulerr] Failed to instantiate module neo4jApp due to:
Error: [$injector:nomod] Module 'neo4jApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
As a result, the Neo4j interface does not appear in the browser window.
Is it possible to run Neo4j 2.3.2 from the Terminal, and if so, what do I need to do to get http://localhost:7474/ to load correctly?
Shift-reload, or test in an incognito window.
Looks like a JS file mismatch due to aggressive browser caching.

Read timed out on /batch/project (SonarQube 4.5)

I am struggling with the following problem.
Log of the executed when sonar-runner in Jenkins.
SonarQube Runner 2.4
Java 1.7.0_67 Oracle Corporation (64-bit)
Windows 7 6.1 amd64
SONAR_RUNNER_OPTS=-Xms256m -Xmx512m
INFO: Runner configuration file: D:\CI_BUILD\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: NONE
INFO: Default locale: "ko_KR", source code encoding: "UTF-8"
INFO: Work directory: D:\CI_BUILD\jenkins_home\jobs\CAFE-CLIENT\workspace\.sonar
INFO: SonarQube Server 4.5
05:17:52.119 INFO - Load global referentials...
05:17:53.382 INFO - Load global referentials done: 1263 ms
05:17:53.414 INFO - User cache: C:\Users\pcms_build\.sonar\cache
05:17:53.445 INFO - Install plugins
05:17:54.225 INFO - Install JDBC driver
05:17:54.303 INFO - Create JDBC datasource for jdbc:jtds:sqlserver://10.240.232.145/sonardb;SelectMethod=Cursor
05:17:56.222 INFO - Initializing Hibernate
05:17:59.217 INFO - Load project referentials...
05:18:19.232 INFO - Load project referentials done: 20015 ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 34.757s
Final Memory: 21M/291M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Unable to request: /batch/project?key=CAFE-CLIENT&preview=false
ERROR: Caused by: Read timed out
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
05:18:19.232 INFO - Load project referentials done: 20015 ms
When "Load project referentials done" value is larger than 20,000 ms,
Always "Read timed out" occurs.
Loading of project referentials is not expected to take more than a few seconds. It is very likely you have a performance issue on your SQ server (or with your DB). Here are some criteria that may increase duration of this web service:
you have installed a lot of language plugins or you have enabled a lot of rules in quality profiles
your project is a multi-module project with a lot of modules
Compare for example with:
http://nemo.sonarqube.org/batch/project?key=org.codehaus.sonar%3Asonar&preview=true
that returns more than 1000 rules and 33 modules. It takes less than 2 seconds to return data.
EDIT: it seems there was some SQL issues depending on your DB vendor. See http://jira.codehaus.org/browse/SONAR-5849 and http://jira.codehaus.org/browse/SONAR-6063. Should be fixed in upcoming 4.5.3

xtext: basic "wizard" project gives errors on first build

I'm using (the rather heavy weight) xtext to create a basic DSL parser and text highlighting.
I'm following the getting started tutorial at http://wiki.eclipse.org/Xtext/GettingStarted
The output in the console i'm getting is:
0 [main] INFO eclipse.emf.mwe.core.WorkflowRunner - --------------------------------------------------------------------------------------
0 [main] INFO eclipse.emf.mwe.core.WorkflowRunner - EMF Modeling Workflow Engine 0.7.2, Build v200908120417
0 [main] INFO eclipse.emf.mwe.core.WorkflowRunner - (c) 2005-2009 openarchitectureware.org and contributors
0 [main] INFO eclipse.emf.mwe.core.WorkflowRunner - --------------------------------------------------------------------------------------
0 [main] INFO eclipse.emf.mwe.core.WorkflowRunner - running workflow: C:/Users/Richard/workspace/org.xtext.example.mydsl.generator/src/workflow/MyDslGenerator.mwe
0 [main] INFO eclipse.emf.mwe.core.WorkflowRunner -
297 [main] ERROR eclipse.emf.mwe.core.WorkflowRunner - [ERROR]: Class not found: 'org.xtext.example.MyDslStandaloneSetup'(Element: bean register class='org.xtext.example.MyDslStandaloneSetup' in C:/Users/Richard/workspace/org.xtext.example.mydsl.generator/src/workflow/MyDslGenerator.mwe:11; Reported by: -UNKNOWN-)
297 [main] ERROR eclipse.emf.mwe.core.WorkflowRunner - Workflow interrupted because of configuration errors.
I get this output at step 4 "DSL Generation" in the tutorial.
The answer was a simple mestake made by me, while following the tutorial. In short I was running the incorrect .mwe file. The one I was running found in org.xtext.example.mydsl.generator/src/workflow while the .mwe I needed is listed under org.xtext.example.mydsl/src/org.xtext.example.

Resources