Fixing “error ASPCONFIG: Could not load file or assembly ‘ClearScriptV8-32.DLL’ or one of its dependencies. The specified module could not be found.”

This error can occur when adding the ReactJS.NET package to an ASP.Net project and deploying to AppHarbor: error ASPCONFIG: Could not load file or assembly ‘ClearScriptV8-32.DLL’ or one of its dependencies. The specified module could not be found. When you added this Nuget package, it adds the following four assemblies to your project: ClearScriptV8-32.dll ClearScriptV8-64.dll […]

Fixing scala type errors in gradle (“incompatible types: inference variable E has incompatible bounds” + “cannot infer type-variable”)

I experienced an error, where gradle failed to build some Scala code using the ZincCompiler, with a Java 8 JDK: FAILURE: Build failed with an exception. (cannot infer type-variable(s) K#1,V#1 (actual and formal argument lists differ in length)) error: incompatible types: inference variable E has incompatible bounds This error can be caused by having an […]

Fixing Oracle installer error PRVF-7501 : Sufficient space is not available at location “/tmp”

If your “/tmp” location is limited in space, you can experience the following error installing Oracle 12c: INFO: INFO: ERROR: [ResultSet.addErrorDescription:1078] PRVF-7501 : Sufficient space is not available at location "/tmp" on node "ora" [Required space = 1GB ] To fix this (and avoid various similar errors), you should make a location on a drive […]

Installing Solr 5.x on CentOS 7

To install Solr 5.+ on centos 7, you need a JDK, preferably 64 bit: yum search openjdk   yum -y install java-1.8.0-openjdk.x86_64 Then, download from a mirror and extract Solr: wget http://mirrors.gigenet.com/apache/lucene/solr/5.2.1/solr-5.2.1.tgz   tar xvf solr-5.2.1.tgz If everything worked, it should be simple to start: cd solr-5.2.1   bin/solr start -h 45.55.156.155 -p 8000 To […]

Fixing “Cannot allocate memory” with Solr 5.2.1

If you run Solr on a VM, it may appear to start and fail. bin/solr start -p 8000 -f If you run it with “-f” (preventing backgrounding the process) you will then seen an out of memory error: Starting Solr on port 8983 from /root/solr-5.2.1/server OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e8000000, 402653184, 0) failed; […]

Fixing NullPointerException in EdmNavigationPropertyImplProv.getMultiplicity

Sometimes you may receive a NullPointerException in the getMultiplicity function of EdmNavigationPropertyImplProv.java, part of the Olingo OData library. This is caused by not having set associations / association sets up correction (i.e. foreign keys). To fix the problem you either need to fix your associations and association sets to match and have ‘setMultiplicity’ calls, or […]

Fixing Olingo Error “Format of ‘1’ is not compatible with ‘Edm.String’.”

When changing types in Olingo OData services, you may get an error like the following: Format of ‘1’ is not compatible with ‘Edm.String’. This indicates you have a line like this: return type.valueOfString(key.getLiteral(), EdmLiteralKind.DEFAULT, property.getFacets(), Integer.class); Which should in fact be like this: return type.valueOfString( key.getLiteral(), EdmLiteralKind.DEFAULT, property.getFacets(), String.class);

How to fix MojoFailureException configuring Olingo

If you set up Olingo, they have you run a Maven archetype (project template) like so: mvn archetype:generate \ -DinteractiveMode=false \ -Dversion=1.0.0-SNAPSHOT \ -DgroupId=com.sample \ -DartifactId=my-car-service \ -DarchetypeGroupId=org.apache.olingo \ -DarchetypeArtifactId=olingo-odata2-sample-cars-service-archetype \ -DarchetypeVersion=RELEASE \ If you didn’t follow the instructions correctly, you’ll get the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project OlingoSampleClient: […]

Exception in thread “main” java.lang.RuntimeException: Error parsing file: edu/stanford/nlp/models/sutime/defs.sutime.txt

The following error: Exception in thread “main” java.lang.RuntimeException: Error parsing file: edu/stanford/nlp/models/sutime/defs.sutime.txt Is caused by using the Stanford NLP jars, but not the entire project on the classpath. To fix it, you want to download the “full” distribution and add that folder to the classpath.