Posts

Exported type should have comment or be unexported

Problemexported type <type> should have comment or be unexported
SolutionThe type

should have a comment in the form:

heroku[router]: at=error code=H10 desc="App crashed"

While trying to deploy a Spring application: Problem: heroku[router]: at=error code=H10 desc="App crashed" (...) Solution: Create a `Procfile` under the project root with the contents:
web: java -Dserver.port=$PORT $JAVA_OPTS -cp target/classes:target/dependency/* <path to main class> The problem is that the application is not binding with the Heroku provided port.

com.sksamuel.elastic4s.TcpClient$ - No cluster.name was specified in the settings for the client.

Problem: com.sksamuel.elastic4s.TcpClient$ - No cluster.name was specified in the settings for the client."
Solution: Add the cluster name as a parameter on the connection URI:
Go to http://<elasticsearch_host>:9200Retrieve the cluster_name value and add it as a parameter to the connection URI: elasticsearch://<elasticsearch_host>:9300?cluster.name=<cluster_name_value

Angular - apollo-client/core/types.d.ts (17,45): ',' expected

Problem: Starting problems while using the apollo graphQL client:

$ npm install apollo-client apollo-angular graphql-tag --save

(...)

$ npm start

(...)

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (17,45): ',' expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (17,47): '>' expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (19,2): ';' expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (19,4): Expression expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (20,10): Expression expected.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (20,5): Cannot find name 'data'.

ERROR in /(...)/node_modules/apollo-client/core/types.d.ts (20,12): Cannot find name 'T'.

ERROR in /(...)/node_modules/apollo-client/data/mutationResults.d.ts (8,48): ',' expected.

ERROR in /(...)/node_modules/apollo-client/data/mutationResults.d.ts (8,50): '>' expected.

ERROR in /(.…

Angular - UNMET PEER DEPENDENCY apollo-client@1.9.0-0

Problem: Adding apollo GraphQL client to a Angular 4 application:
$ npm install apollo-client apollo-angular graphql-tag --save

UNMET PEER DEPENDENCY apollo-client@1.9.0-0
Solution: Update npm version
$ npm install -g npm

XSL - Transformer configuration exception error checking type expression funcall replace

Problem:javax.xml.transform.TransformerConfigurationException: Error checking type of the expression 'funcall(replace,
Solution:Make sure to be using an updated xsl transalation engine like, for instance, saxon 9.

Maven dependency:

<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.8.0-3</version>
</dependency>


Usage example:


XMLToCSVStyle.xsl