Error List

Error List for the ‘Java’ Category

does not work: the files never get deleted

Applies to:
Ant

Description:
Occurs while using Apache Ant.

Cause:
You have used a task to delete unwanted SourceSafe control files (CVS files, editor backup files, etc.)

JAVA-Tools

MySQL throws an exception: Cannot disable AUTO_COMMIT

Applies to:
Hibernate

Description:
Occurs while using Hibernate with MySQL

Cause:
Problem is in MySQL driver.

JAVA-Hibernate , , , ,

javax.mail.SendFailedException: 550 Unable to relay for my-address

LinkageError

Applies to:
JBoss 5

Description:
Occurs while starting JBoss

Cause:
While starting JBoss, you get

Error installing to Create: name=ManagedConnectionFact oryParserDeployer state=Configured java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (fr om vfszip:/C:/Java/jboss-5.0.0.CR1/lib/jaxb-impl.jar/com/sun/xml/bind/v2/model/impl/ModelBuilder.cla ss) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap class loader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/) at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:173) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.create(ManagedConnect ionFactoryParserDeployer.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56) at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImp l.java:110) at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrappe r.execute(KernelControllerContextAction.java:241) at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrappe r(KernelControllerContextAction.java:109) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(Kerne lControllerContextAction.java:70) at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction .java:221) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction .java:54) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction .java:42) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(Sim pleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControlle rContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerC ontextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext. java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:78 4) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9 12) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:8 34) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442) at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer. java:88) at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer. java:46) at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Abstra ctSimpleRealDeployer.java:62) at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer .java:50) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja va:970) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja va:991) at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext. java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:78 4) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9 12) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:8 34) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455) at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594) at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileService Bootstrap.java:250) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst rap.java:135) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:544) at java.lang.Thread.run(Thread.java:619)

JAVA-JBoss , , , , ,

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Applies to:
DBUnit, SLF4J

Description:
Occurs when using DBUnit

Cause:
Since version 2.2.1, DbUnit uses SLF4J for logging purposes. So probably SLF4J is missing.

JAVA-DBUnit , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

or does not work in Ant 1.3 on Unix

Applies to:
Ant 1.3, Unix

Description:
Occurs while using Apache Ant.

Cause:
The antRun script in ANT_HOME/bin has DOS instead of Unix line endings.

JAVA-Tools

Connection refused exception

Applies to:
NA

Description:
Occurs while connecting to a database using JDBC.

Cause:
There are several things you need to check to isolate the source of this type of exception.
1. Your database server is accepting TCP connections.
2. Check that your database server is running on the server address you think it is
3. Check for firewalls. Is there a port or ports being blocked between your application and the database?
4. Check that you are not having a security problem. Is your application an Applet? If you are connecting to a database that is not on the same physical box as your web server then you need to sign your applet.
5. Check that you are using the right username and password
6. Check that the database user has the correct permissions and is able to log in from the location you are attempting to log in from.
7. Check that you are using the correct driver for your database. There often different versions of the same driver for the same database but different versions of the database since the underlying protocol had some changes between versions.


JAVA-JDBC , , , , ,

JMF applets does not work in a browser

Applies to:
JSF

Description:
Occurs when trying to load JSF applet in a browser

Cause:
Possible reasons are:
a. JMF is not properly installed on your machine or is not available on the website that contains the applet in question.
b. Your browser does not have a JDK 1.1.x compatible Java VM.
c. The applet might have thrown a security exception.

JAVA-JMF , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

New request is not allowed to start because it should come with valid transaction descriptor

Applies to:
JBossMQ, Microsoft SQL Server

Description:
Occurs while using the Microsoft SQL Server JDBC driver in JBoss during the boot sequence

Cause:
The MS JDBC driver is doing an internal rollback – anti-spec behaviour – when JBossMQ fails to create a table that already exists.


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

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 , , , ,