Donate Share

HA-JDBC

Tracker: Bugs

5 Data sources inside cluster tag cannot be parsed - ID: 2888684
Last Update: Settings changed ( ferraro )

When using JNDI bound datasources, following error occurs at start up:
javax.management.MBeanException

at
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(Ref
lectedDispatcher.java:180)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.jav
a:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.jav
a:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOp
erationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:2
64)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417
)
... 283 more
Caused by: javax.management.MBeanRegistrationException: preRegister()
failed: [ObjectName='net.sf.hajdbc:cluster=pgcluster',
Class=net.sf.hajdbc.sql.DriverDatabaseCluster (pgcluster)]
at
org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBea
nRegistry.java:713)
at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanReg
istry.java:211)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.jav
a:155)
... 293 more
Caused by: org.jibx.runtime.JiBXException: Expected "cluster" end tag,
found "datasource" start tag (line 12, col 3)
at
org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(Unmarshal
lingContext.java:800)
at
net.sf.hajdbc.sql.DriverDatabaseCluster.JiBX_binding_driver_unmarshal_2_0(D
riverDatabaseCluster.java)
at
net.sf.hajdbc.sql.JiBX_binding_driverDriverDatabaseCluster_access.unmarshal
()
at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingCo
ntext.java:2773)
at
net.sf.hajdbc.sql.AbstractDatabaseCluster.preRegister(AbstractDatabaseClust
er.java:1045)
at
org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInv
oker.java:966)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvok
er.java:489)
at
org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.j
ava:654)
at
org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBea
nRegistry.java:697)
... 298 more


Nobody/Anonymous ( nobody ) - 2009-10-29 10:05

5

Closed

Invalid

Paul Ferraro

None

v2.0

Public


Comment ( 1 )

Date: 2009-10-29 13:20
Sender: ferraroProject AdminAccepting Donations

This is not a bug, but rather a mis-configuration. <datasource> style
configurations are only valid for clusters originating from a
net.sf.hajdbc.sql.DataSource (implements javax.sql.DataSource),
net.sf.hajdbc.sql.DataSourceReference (implements javax.naming.Reference),
or net.sf.hajdbc.sql.DataSourceFactory (implements
javax.naming.spi.ObjectFactory).
The stack trace indicates that the exception orginated from
net.sf.hajdbc.sql.DriverDatabaseCluster, which means the connection was
obtained using the HA-JDBC driver (i.e. net.sf.hajdbc.sql.Driver). Only
<database> style configurations are supported by the driver.


Attached File ( 1 )

Filename Description Download
ha-jdbc-pgcluster.xml Cluster configuration Download

Changes ( 6 )

Field Old Value Date By
close_date - 2009-10-29 13:21 ferraro
allow_comments 1 2009-10-29 13:21 ferraro
assigned_to nobody 2009-10-29 13:21 ferraro
resolution_id None 2009-10-29 13:21 ferraro
status_id Open 2009-10-29 13:21 ferraro
File Added 348686: ha-jdbc-pgcluster.xml 2009-10-29 10:05 nobody