[JBoss Messaging] - java.lang.NullPointerException at org.jboss.jms.client.conta
by dejanb
Hi,
We have an application that uses a cluster (from the JBoss AS server point of view all servers are standalone but we have our own clustering) of JBoss 5.0 servers and a single JBoss 5.0 server that only deploys JBM 1.4.1.GA .
Everything works fine if the JBM service is deployed on all JBoss servers and connecting to the standalone JBM server.
However removing the JBM service causes the exception below to be thrown on connect:
anonymous wrote : java.lang.NullPointerException
| at org.jboss.jms.client.container.ConnectionAspect.getConnectionState(ConnectionAspect.java:252)
| at org.jboss.jms.client.container.ConnectionAspect.handleSetExceptionListener(ConnectionAspect.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 org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate.setExceptionListener(ClientConnectionDelegate.java)
| at org.jboss.jms.client.JBossConnection.setExceptionListener(JBossConnection.java:116)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
|
I searched and found a couple of issues related to deployment isolation but I don't think these apply in our case because of the version we use.
The classpath doesn't change between runs so it's probably not the cause of the issue either.
Thanks for your help,
Deyan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235458#4235458
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235458
16 years, 10 months
[Beginners Corner] - Setting Up JBoss POJO Cache
by hootier
I posted this in the POJO Cache forum, but judging by the dates on the posts there, that forum isn't frequented much. Any help or suggestions would be greatly appreciated.
I am trying to follow the instructions at http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs...
Attempting to follow section 5.4.3:
1. I have taken the XML in the code block in the appendix (8.2) and put that info my JBoss AS's deploy directory with -beans.xml at the end of the file name.
2. I have put jbosscache-core.jar, jbosscache-pojo.jar, and jgroups.jar into my JBoss lib directory.
3. I tried to start the JBoss AS.
This is the stack trace that follows:
16:30:51,043 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/JBoss/jboss-5.0.1.GA/server/default/deploy/pojocache-jboss-beans.xml state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/JBoss/jboss-5.0.1.GA/server/default/deploy/pojocache-jboss-beans.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)
... 22 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 30 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235456#4235456
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235456
16 years, 10 months
[Clustering/JBoss] - How to add a clustering node?
by Allen_Lei
Hi,
I have a worker.properties define like this:
worker.list=loadbalancer,status
|
| # Define Node 1
| worker.node1.port=8009
| worker.node1.host=192.168.0.101
| worker.node1.type=ajp13
| worker.node1.lbfactor=1
|
| # Define Node 2
| worker.node2.port=8009
| worker.node2.host=192.168.0.102
| worker.node2.type=ajp13
| worker.node2.lbfactor=1
|
| # Load-balancing behaviour
| worker.loadbalancer.type=lb
| worker.loadbalancer.balance_workers=node1,node2
| worker.loadbalancer.sticky_session=true
|
| worker.status.type=status
| worker.list=jkstatus
| worker.jkstatus.type=status
Then I want to add a new JBoss instance(node3),and apache httpd is in running.How can I add a new worker node without stop and start apache?Does jk support dynamic load the worker.properties?If so,how to configure it?Or some other suggests?Thank you!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235444#4235444
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235444
16 years, 10 months