Category Archives: Java

java.util.concurrent.CopyOnWriteArrayList not found in java.net.URLClassLoader

Simply said: You are most likely trying to run a java app on a too old version of Java, try upgrading to java 1.6 and see if that helps.

Posted in Java | Leave a comment

java.io.FileNotFoundException: no segments* file found (Solr)

You will receive that error from Solr when you (for example) have removed the index data, but not the index folder itself. Simply remote the folder that are supposed to contain the index data, and Solr will then recreate the … Continue reading

Posted in Java | Tagged | 1 Comment

The hierarchy of the type Foo is inconsistent

You can get the error: The hierarchy of the type *classname* is inconsistent If you are trying to compile a class that requires another class not available. Normally due to compilation errors in the dependent classes. So fix the classes … Continue reading

Posted in Development, Java | Tagged | Leave a comment

Locate hidden files on a given path

I have created a simple java command line tool that prints out all hidden files/folders in a given directory. If you need it, you can find it here: http://h3x.no/apps/hiddenFinder/hiddenFinder_v1.zip

Posted in Java | Tagged | Leave a comment

Hint: “org.apache.jasper.JasperException: java.lang.NumberFormatException”

Getting the exception “org.apache.jasper.JasperException: java.lang.NumberFormatException” when developing a JavaEE-app? If you are basing yourself on data from a query, make shure that you are doing a SELECT against the table name and NOT the individual fields!

Posted in Java | Tagged , , , , | Leave a comment

A hint for the “Object foo is not a known entity type” errors from Glassfish

As a JavaEE-codemonkey you have perhaps noticed this error: java.lang.IllegalArgumentException: Object: Ting@193c227 is not a known entity type. This will occur when you have redeployed an app f.ex through Eclipse to Glassfish, the Glassfish server has not quite understood that … Continue reading

Posted in Java | Tagged , | 10 Comments

One possible solution for Glassfish cluster node-agent startup problems

Just a quick hint for those of you who are experiencing problem with getting node-agents up and running in a Glassfish cluster. If the problem is that the asadmin start-agent command simply times out/uses a long time to start, and … Continue reading

Posted in Java, Linux | Tagged , , , | Leave a comment