Error using sample firebird-ds.xml file
txpet Jul 5, 2003 9:08 PMWith JBOSS-4.0.0DR2 I get a NumberFormatException when I deploy. Any suggestions would be appreciated.
Here is my firebird-ds.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- New ConnectionManager setup for firebird dbs using jca-jdbc xa driver-->
<!-- Build jmx-api (build/build.sh all) and view for config documentation -->
<!-- ==================================================================== -->
<connection-factories>
<!--FBManager can be used to create and drop databases.
Drop is especially useful during testing, since it
assures a clean start next time. -->
c:/jboss/as/jboss-4.0.0DR2/server/default/data/JBOSS.FDB
sysdba
masterkey
false
false
<tx-connection-factory>
<jndi-name>FirebirdDS</jndi-name>
<xa-transaction/>
<adapter-display-name>Firebird Database Connector</adapter-display-name>
<config-property name="Database">c:/jboss/as/jboss-4.0.0DR2/server/default/data/JBOSS.FDB</config-property>
<user-name>sysdba</user-name>
masterkey
<!--additional properties. only use one way of setting tx isolation, please
<config-property name="TransactionIsolation"></config-property>
<config-property name="TransactionIsolationName">TRANSACTION_READ_COMMITTED</config-property>
<config-property name="BlobBufferLength"></config-property>
<config-property name="Encoding">UNICODE_FSS</config-property>
-->
<min-pool-size>0</min-pool-size>
</tx-connection-factory>
</connection-factories>
Here is the error:
org.jboss.mx.util.JBossNotCompliantMBeanException: Error parsing the XML file:
at org.jboss.mx.metadata.JBossXMBean10.build(JBossXMBean10.java:117)
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:270)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:262)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:909)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:297)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:324)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:130)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:159)
at org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:447)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:347)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:187)
at org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:447)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:347)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:187)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:116)
at org.jboss.system.ServiceController.install(ServiceController.java:229)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
at $Proxy6.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:185)
at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272)
at $Proxy18.create(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.create(XSLSubDeployer.java:486)
at org.jboss.deployment.DeploymentInfo.create(DeploymentInfo.java:243)
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:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1036)
at $Proxy14.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:307)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:748)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:593)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:558)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:518)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:532) at org.jboss.util.propertyeditor.IntegerEditor.setAsText(IntegerEditor.java:28)
at org.jboss.mx.metadata.JBossXMBean10.convertValue(JBossXMBean10.java:531)
at org.jboss.mx.metadata.JBossXMBean10.buildAttributeInfo(JBossXMBean10.java:452)
at org.jboss.mx.metadata.JBossXMBean10.buildMBeanMetaData(JBossXMBean10.java:223)
at org.jboss.mx.metadata.JBossXMBean10.build(JBossXMBean10.java:108)
... 80 more
here is the result of the transformation:
c:/jboss/as/jboss-4..FDB
sysdba
timbo2
false
false
<mbean display-name="ConnectionManager for ConnectionFactory FirebirdDS" name="jboss.jca:service=TxCM,name=FirebirdDS" code="org.jboss.resource.connectionmanager.TxConnectionManager">
false
false
<depends optional-attribute-name="ManagedConnectionPool">
<mbean display-name="Connection Pool for DataSource FirebirdDS" name="jboss.jca:service=ManagedConnectionPool,name=FirebirdDS" code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
<depends optional-attribute-name="ManagedConnectionFactoryName">
<mbean display-name="ManagedConnectionFactory for ConnectionFactory FirebirdDS" xmbean-version="-//JBoss//DTD JBOSS XMBEAN 1.0//EN" name="jboss.jca:service=ManagedConnectionFactory,name=FirebirdDS" code="org.firebirdsql.jca.FBManagedConnectionFactory">
Generated xmbean for ManagedConnter
<display-name value="Firebird Database Connector"/>
org.firebirdsql.jca.FBManagedConnectionFactory
DefaultConstructor
default ManagedConnectionFactory constructor
Database
java.lang.String
TransactionIsolation
java.lang.Integer
TransactionIsolationName
java.lang.String
UserName
java.lang.String
Password
java.lang.String
BlobBufferLength
java.lang.Integer
Encoding
java.lang.String
Loe
LogWriter
java.io.PrintWriter
HoljectName
ResourceAdapterName
javax.management.ObjectName
Display name of the resource adapter
DisplayName
java.lang.String
Class of thhis resource adapter
ManagedConnectionFactoryClass
java.lang.String
Set the ResourceAdapter for thee.
setResourceAdapter
<return-type>void</return-type>
The ResourceAdapter instance
resourceAdapter
javax.resource.spi.ResourceAdapter
Get the ResourceAdapter for the mcf.
getResourceAdapter
<return-type>javax.resource.spi.ResourceAdapter</return-type>
Artinterceptor
start
<return-type>void</return-type>
Creates a CoConnectionManager
createConnectionFactory
<return-type>java.lang.Object</return-type>
Creates app server
createConnectionFactory
The ConnectionManager supplied by the app server
cm
javax.resource.spi.ConnectionManager
<return-type>java.lang.Object</return-type>
Creates a ManagedConnectinfo and parameters
createManagedConnection
The Subject from the server's security framework
subject
javax.security.auth.Subject
The Cy info.
cri
javax.resource.spi.ConnectionRequestInfo
<return-type>javax.resource.spi.ManagedConnection</return-type>
Returns ats supplied.
matchManagedConnections
The set of candidate ManagedConnections
mcs
java.util.Set
The reqr security framework.
subject
javax.security.auth.Subject
The requiom the ConnectionFactory
cri
javaxnfo
<return-type>javax.resource.spi.ManagedConnection</return-type>
The equals method, requir.
equals
the other ManagedConnectionFactory object
other
java.lang.Object
<return-type>boolean</return-type>
Hashcode function, rg-properties.
hashCode
<return-type>int</return-type>
sysdba
timbo2
c:/jboss/as/jb/JBOSS.FDB
0
20
5000
15
ByNothing
FirebirdDS
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="TransactionManagerService">jboss.tm:service=TransactionManagerService