Error List

Error List for the ‘Java’ Category

Unsupported Protocol Error when deploying a 3rd party jar

Applies to:
Maven

Description:
Occurs while using Maven.

Cause:
When using deploy-deploy-file goal and encountered this error
“Error deploying artifact: Unsupported Protocol: ‘ftp': Cannot find wagon which supports the requested protocol: ftp”

JAVA-Tools , , , ,

JavaMail does not properly encode and decode filenames in non-ASCII character sets

Applies to:
NA

Description:
Occurs while encoding and decoding filenames in non-ASCII character sets

Cause:
The filename is stored as a parameter in MIME headers. Encoded filenames of the form =?ISO-8859-15?B?5OTkLUluZm8ucGRm?= are not part of the MIME spec. A filename of the form =?A?B?C?= is a perfectly valid filename, not an incorrectly encoded filename. JavaMail does not encoded and decode filenames by default because doing so would violate the MIME spec.
The base MIME spec does not allow for encoding parameters. RFC 2231 defines a new way to include encoded paramters, including filenames, in MIME headers. It is not compatible with the de facto way that many applications illegally encode filenames. Even though JavaMail supports RFC 2231, that alone does not allow JavaMail to interoperate with these existing programs. As far as I know, very few existing programs support RFC 2231.
If you choose to violate the MIME spec, in order to interoperate with other programs that also violate the MIME spec, JavaMail gives you all the tools you need to do so. Starting with JavaMail 1.4, setting the System properties “mail.mime.encodefilename” and “mail.mime.decodefilename” to “true” will cause JavaMail to encode and decode the filename parameter.

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

Connection refused to host: 127.0.0.1

Applies to:
JBoss

Description:
Occurs when when accessing JBoss from a remote client. When attempting to use JMS or RMI remotely, you might run across an exception that looks like this:
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1



Cause:
This is the result of a problem in the JBoss server side configuration. You’re successfully talking to the correct server, but it does not know its own hostname or IP address.

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

Class loading errors using Jetty

Applies to:
Jetty

Description:
Occurs while using Jetty

Cause:
Class loading in a web container is slightly more complex than a normal java application. Probably You have incorrect configuration.

JAVA-Jetty , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Skipped targets are still executed

Applies to:
Ant

Description:
Occurs while using Apache Ant.

Cause:
You have a target You want to skip if a property is set, so You have unless=”property” as an attribute of the target, but all the targets this target depends on are still executed.

JAVA-Tools

java.lang.UnsupportedOperationException when fetching a JDBC connection

Connection refused error

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
The host you’re trying to connect to is most likely not running a mail server.

JAVA-Mail ,

Error starting a clean JBoss-4.2.3 GA with JDK 1.5

Applies to:
JBoss 4.2.x, JDK 1.5

Description:
Occurs when using JBoss-4.2.3 GA with JDK 1.5, you see errors such as this, during the server startup:

ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
java.lang.NoClassDefFoundError: javax/annotation/Resource
ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init
javax.management.RuntimeErrorException: Error invoking method addChild

Caused by: javax.management.RuntimeErrorException: Error invoking method addChild

Cause:
There are 2 versions of JBoss-4.2.3 GA. One for JDK6 and one for JDK5. You probably downloaded the JDK6 version which cannot be used with a JDK5.



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

StackOverflowError when using Jakarta Commons Logging

Applies to:
DBUnit, Jakarta Commons Logging

Description:
Occurs when using DBUnit

Cause:
You have more then one slf4j implementation library in your classpath.

JAVA-DBUnit , , ,

java.io.IOException: javadoc: cannot execute