Error List

Error List for the ‘Java’ Category

Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log

Applies to:
Maven

Description:
Occurs while using Maven Checkstyle plugin.

Cause:
Checkstyle uses commons-logging, which has classloader problems when initialized within a Maven plugin’s container. This results in the above message – if you run with ‘-e’, you’ll see something like the following:
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log
buried deep in the stacktrace.

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

Can't find a service provider for "smtp" or "imap" or address type "rfc822"

Applies to:
NA

Description:
Occurs when servlet can’t find JavaMail classes

Cause:
Usually this is because JavaMail can’t access the configuration files in mail.jar, possibly because of a security permission problem.

JAVA-Mail , , , , , ,

UT factory lookup failed when trying to obtain a UserTransaction from a standalone client

Applies to:
JBoss

Description:
Standalone client. You want to lookup a UserTransaction from JNDI according to the AS guide . You do it by specifying the properties for the InitialContext programmatically, like so:
UserTransaction tx = null;
Properties props = new Properties();
props.setProperty(Context.INITIAL_CONTEXT_FACTORY,
“org.jnp.interfaces.NamingContextFactory”);
props.setProperty(Context.PROVIDER_URL, “jnp://localhost:1099”);
props.setProperty(Context.URL_PKG_PREFIXES, “org.jboss.naming:org.jnp.interfaces”);
InitialContext ctx = new InitialContext(props);
tx = (UserTransaction) ctx.lookup(“UserTransaction”);
tx.begin();

But the lookup does not work, instead you get a java.lang.RuntimeException: UT factory lookup failed

Cause:
The properties are not forwarded to the lookup within UserTransactionSessionFactory.

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

org.jboss.portal.portlet.InvokerUnavailableException: Problem getting service description for producer self, please see the logs for more information.

Oracle throws this exception: too many open cursors

Applies to:
Hibernate

Description:
Occurs while using Hibernate with Oracle

Cause:
The Oracle JDBC driver doesn’t much like to have its prepared statements cached.

JAVA-Hibernate , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Must issue a STARTTLS command first

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
Your SMTP server wants you to switch from a plain text connection to a secure connection using the STARTTLS command.

JAVA-Mail ,

java.lang.ExceptionInInitializerError on with non-SUN JVMs

Applies to:
JBoss, Sun’s JVM

Description:
Occurs while using JBoss

Cause:
Sun’s 1.3.x/1.4.x implementation of the method javax.rmi.CORBA.Util.isLocal(),
always assumes that proprietary SUN stubs are used, which is wrong.

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

UnsatisfiedLinkError with the DB2 driver

Applies to:
DBUnit

Description:
Occurs when using DBUnit with the DB2 driver

Cause:
JDBC 2.0 is not installed.

JAVA-DBUnit , , , , , , ,

Cannot build the test jar unless JUnit is present

Applies to:
Ant 1.7.0

Description:
Ant 1.7.0 doesn’t build from sources without JUnit

Cause:
When building Ant 1.7.0 from the source release without junit.jar the build fails with the message “We cannot build the test jar unless JUnit is present”.
With Ant 1.7.0 ant-testutil.jar is added as part of the distribution and this causes a hard dependency on JUnit – at least in version 1.7.0.

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

NoClassDefFoundError: org/aspectj/lang/Signature

Applies to:
NA

Description:
Occurs while connecting to a database using JDBC.

Cause:
This issue relates to some confusion on the MySQL site between the normal MySQL driver and a special debugging/tracing mode driver. This error indicates that you are attempting to use the tracing driver instead of the normal driver.

JAVA-JDBC , , , , , , , , , , , ,