Error List

Error List for the ‘JAVA-JBoss’ Category

A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.

Applies to:
JBoss, Log4j

Description:
Occurs while using log4j in JBoss

Cause:
You see exceptions similar to:
ERROR STDERR log4j:ERROR A “org.jboss.logging.util.OnlyOnceErrorHandler” object is not assignable to a “org.apache.log4j.spi.ErrorHandler” variable. 20:05:44,757 ERROR STDERR log4j:ERROR The class “org.apache.log4j.spi.ErrorHandler” was loaded by 20:05:44,757 ERROR STDERR log4j:ERROR [WebappClassLoaderDelegateFalseRepositories/WEBINF/Classes/ParentClassloaderjava.net.FactoryURLClassLoader31c43f|WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -

Parent Classloader: java.net.FactoryURLClassLoader@31c43f ] whereas object of type 20:05:44,757 ERROR STDERR log4j:ERROR “org.jboss.logging.util.OnlyOnceErrorHandler” was loaded by Org.jboss.system.server.NoAnnotationURLClassLoaderab95e6. 20:05:44,820 ERROR STDERR log4j:ERROR Could not create an Appender. Reported error follows.



JAVA-JBoss , , , , ,

Exception creating identity

Applies to:
JBoss

Description:
Occurs while using JBoss

Cause:
You see:

Caused by: javax.management.MBeanRegistrationException: preRegister() failed: ObjectNamejboss.remotingserviceNetworkRegistryClassorg.jboss.remoting.network.NetworkRegistryorg.jboss.remoting.network.NetworkRegistrybe41ec at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713) at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) … 51 more Caused by: java.lang.RuntimeException: Exception creating identity: ip-10-251-110-98: ip-10-251-110-98 at org.jboss.remoting.ident.Identity.get(Identity.java:211) at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268) at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966) at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489) at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654) at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)

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

Invalid invocation

Applies to:
JBoss, EJB

Description:
Indicates that there is an inconsistent type system between the caller of the ejb and the ejb container.

Cause:
An exception like the following:
javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract SomeInterface SomeClass

JAVA-JBoss ,

java.rmi.NoSuchObjectException

Applies to:
JBoss

Description:
When you export a RemoteObject via RMI, the RMI server keeps a map of “object id” to the server side skeleton that is used to locate and invoke upon the exported object.
These mappings (object ids) only last for the duration of the JVM.

* If you reboot, you don’t get the same object id.
* If you export on a different server you get a different object id.
* If you rebind, you get a different object id.
The remote stub given to the client holds this object id. It also holds the ip address or host name of the server.

Cause:
a. You rebooted the server
If you reboot the server, any remote stub held by clients are now invalid.

b. You contacted the wrong server
You have some bad dns/bind configuration that means the remote stub holds the wrong ip address or host name.

c. The remote object is no longer bound on the server
* You undeployed the remote object (if it was explicitly bound).
* If it was implicitly bound, e.g. passed as a parameter on an RMI request, the distributed GC has decided that nobody is using it – nothing in JBoss uses implicit binding

d. Your DNS’ localhost is set to loopback, 127.0.0.1
Alter /etc/hosts to have the localhost entry match the IP address of your machine. Also some Linux distros (e.g. Ubuntu) add an entry matching the hostname to 127.0.1.1. This entry will need to be changed to the IP address of your machine, too.



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

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

java.net.ConnectException: Connection timed out: connect

Applies to:
JBoss

Description:
Occurs when trying to connect to the JBoss server

Cause:
You got an error like this when you tried to connect to the JBoss server:

javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 10.10.34.77; nested exception is:
java.net.ConnectException: Connection timed out: connect]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)


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

java.lang.IllegalAccessError: tried to access field org.apache.xpath.compiler.FunctionTable.m_functions from class org.apache.xml.security.Init at org.apache.xml.security.Init.init(Init.java:233)

Applies to:
JBoss 4.0.0, Java version 1.4.2_05

Description:
Occurs while launching JBoss from the IDE

Cause:
Ever since Java version 1.4.2_05, Java has included an out-of-date version of Xalan. The JBoss 4.0.0 startup scripts fix this by overriding the version of Xalan by setting the java.endorsed.dirs property. The JBoss IDE launcher does not do this.

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

java.lang.NoClassDefFoundError: Files\jbossX/Y/Z

Applies to:
JBoss, Windows

Description:
Occurs while launching JBoss from the IDE

Cause:
You are using JBoss on Windows and you should never install JBoss in a path that contains spaces. This causes the NoClassDefFoundException to be raised.

JAVA-JBoss , , ,

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

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