Error List

Error List for the ‘Java’ Category

Using format="xml", fails with a NoClassDefFoundError if forked.

Applies to:
Ant

Description:
Occurs while using Apache Ant.

Cause:
The XML formatter needs the DOM classes to work. If you are using JDK 1.4 or later they are included with your Java Runtime and this problem won’t occur. If you are running JDK 1.3 or earlier, the DOM classes have to be on your task’s .

JAVA-Tools , , , , ,

Can't invoke the ResultSet methods afterLast and beforeFirst

Applies to:
NA

Description:
Occurs while using invalid JDBC driver.

Cause:
You are probably using a driver implemented for the JDBC 1.0 API.

JAVA-JDBC , , , ,

ClassCastExceptions when hot deploying ears

Applies to:
JBoss

Description:
You have A.ear and B.ear, and B.ear relies upon an EJB that is packaged in A.ear. You update some code inside A.ear and redeploy it, and when you go to test the updated code using a method contained in B.ear, you get a ClassCastException.

Cause:
First off, this is not a bug with the JBoss classloader, this is normal expected behavior. What is happenning is when A.ear is redeployed any references that B.ear may have to classes contained inside A.ear are no longer valid.

JAVA-JBoss , , , , , , , ,

LoadContexts fail-safe cleanup

Applies to:
JBoss Portal, JBoss AS 4.2.1.GA

Description:
Occurs while using JBoss Portal:
WARN LoadContexts fail-safe cleanup (collections)… org.hibernate.engine.loading.CollectionLoadContext@cd7045

Cause:
Nothing’s wrong, it’s a small issue that will be resolved in future versions of Hibernate.

JAVA-JBoss , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

SMTPSendFailedException: 530, Address requires authentication

Applies to:
NA

Description:
Occurs when trying to send a message

Cause:
You have tried to send a message.

JAVA-Mail , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

StreamCorruptedException

Applies to:
JBoss

Description:
Occurs while using JBoss

Cause:
The most common cause of this error is due to missing a class on the client classpath that is unmarshalling a serialized object. This can happen in JNDI lookups, ejb calls, etc.

JAVA-JBoss , , , , , , , , , , , ,

AssertionFailedError: No tests found in xxx

Applies to:
NA

Description:
Occurs when running tests

Cause:
You have no methods for test in Your class.

JAVA-JUnit , , ,

Symbol makeJavaString not found

Applies to:
JNI

Description:
You have used a third party library (a JDBC driver, actually) that contained native code. When running Your application with this library, I’ve got an “UnsatisfiedLinkError: symbol makeJavaString not found.”

Cause:
The problem is that the native code in that third party library uses the old NMI.

JAVA-JNI , , , , , , , , , , , ,

IllegalStateException while using JSP

Applies to:
NA

Description:
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.

Cause:
a. The most common cause of this exception is a servlet or JSP attempting to write to the output stream after the response has been committed.
b. Another way this can happen is by attempting to redirect from within the middle of a JSP page:

hello world

<% if ("not logged in") response.sendRedirect("login.jsp"); %>

more stuff

c. Another common place where an IllegalStateException is likely to occur is in a JSP that attempts to stream binary data. JSPs are primarily designed to format output as HTML. With HTML, white space characters are ignored. It is not uncommon for JSP compilers to inject their own white space charaters to the beginning and/or end of the output stream. Line breaks in the developer’s code can also be interpreted as white space in the output stream. These white space characters can interfer with the generated servlet’s ability to create and stream the binary outputdata, resulting in the IllegalStateException.

JAVA-JSP , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

java.lang.InstantiationException: org.apache.tools.ant.Main

Applies to:
Ant 1.6.x

Description:
Occurs while using Apache Ant.

Cause:
You have installed Ant 1.6.x and now get java.lang.InstantiationException: org.apache.tools.ant.Main. The cause of this is that there is an old version of ant somewhere in the class path or configuration.

JAVA-Tools , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,