Subject Re: [Firebird-Java] Re: Error while checking if table aleady exists;
Author Stephen Thompson

 

 Roman Rokytskyy <rrokytskyy@...> wrote:

Phil,

> > Can you confirm the fact that if table name is greater than 10
> > characters, JBoss CMP will fail with exactly this exception?
>
> I am using Jboss 3.0.6 CMP with latest CVS Jaybird with tablenames
> longer than 10 characters with no problems.  I am using NONE as a
> character set, if that makes any difference

Thanks for the information. Can you try deploying your beans with
UNICODE_FSS? It might be the issue (however, should not)...

Thanks!
Roman

 

 

How can I do this. I am using JBoss3.2.0 with the firebird-ds.xml file. I have tried adding the line <config-property name="Encoding">UNICODE_FSS</config-property> but the server fails with the following:

 

16:24:08,671 INFO  [RARDeployment] Starting
16:24:08,687 ERROR [RARDeployment] Starting failed
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:460)
        at org.jboss.mx.loading.ClassLoaderUtils.getPackageName(ClassLoaderUtils.java:141)
        at org.jboss.mx.loading.UnifiedLoaderRepository3.getPackageClassLoaders(UnifiedLoaderRepository3.java:155)
        at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:148)
        at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at org.jboss.resource.connectionmanager.RARDeployment.setMcfProperties(RARDeployment.java:702)
        at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:543)
        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
        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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
        at $Proxy11.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:392)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy5.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:231)
        at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:177)
        at $Proxy16.start(Unknown Source)
        at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:220)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:827)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:612)
        at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy7.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:404)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:531)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:195)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:206)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:185)
16:24:08,859 WARN  [ServiceController] Problem starting service jboss.jca:service=ManagedConnectionFactory,name=SecurityDS
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:460)
        at org.jboss.mx.loading.ClassLoaderUtils.getPackageName(ClassLoaderUtils.java:141)
        at org.jboss.mx.loading.UnifiedLoaderRepository3.getPackageClassLoaders(UnifiedLoaderRepository3.java:155)
        at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:148)
        at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at org.jboss.resource.connectionmanager.RARDeployment.setMcfProperties(RARDeployment.java:702)
        at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:543)
        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
        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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
        at $Proxy11.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:392)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy5.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:231)
        at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:177)
        at $Proxy16.start(Unknown Source)
        at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:220)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:827)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:612)
        at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy7.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:404)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:531)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:195)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:206)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:185)
16:24:09,015 INFO  [JBossManagedConnectionPool] Starting
16:24:09,031 INFO  [JBossManagedConnectionPool] Started
16:24:09,046 INFO  [MainDeployer] Deployed package: file:/C:/Java/jboss-3.2.0RC3_tomcat-4.1.18/server/default/deploy/firebird-ds.x
ml
16:24:09,062 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  <none>
Incompletely deployed packages:
  <none>
MBeans waiting for classes:
  <none>
MBeans waiting for other MBeans:
[ObjectName: jboss.j2ee:jndiName=ejb/cass/security/ProfileLocal,service=EJB
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (java.sql.SQLExceptio
n: Problem getting connection: org.firebirdsql.jca.FBResourceException: I/O error during "CreateFile (open)" operation for file "t
est?lc_ctype=NONE"
Error while trying to open file
null
Reason: I/O error during "CreateFile (open)" operation for file "test?lc_ctype=NONE"
Error while trying to open file
null), ObjectName: jboss.j2ee:jndiName=ejb/cass/security/PermissionLocal,service=EJB
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (java.sql.SQLExceptio
n: Problem getting connection: org.firebirdsql.jca.FBResourceException: I/O error during "CreateFile (open)" operation for file "t
est?lc_ctype=NONE"
Error while trying to open file
null
Reason: I/O error during "CreateFile (open)" operation for file "test?lc_ctype=NONE"
Error while trying to open file
null), ObjectName: jboss.j2ee:jndiName=ejb/cass/security/UserLocal,service=EJB
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (java.sql.SQLExceptio
n: Problem getting connection: org.firebirdsql.jca.FBResourceException: I/O error during "CreateFile (open)" operation for file "t
est?lc_ctype=NONE"
Error while trying to open file
null
Reason: I/O error during "CreateFile (open)" operation for file "test?lc_ctype=NONE"
Error while trying to open file
null), ObjectName: jboss.j2ee:jndiName=ejb/cass/security/GroupLocal,service=EJB
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (java.sql.SQLExceptio
n: Problem getting connection: org.firebirdsql.jca.FBResourceException: I/O error during "CreateFile (open)" operation for file "t
est?lc_ctype=NONE"
Error while trying to open file
null
Reason: I/O error during "CreateFile (open)" operation for file "test?lc_ctype=NONE"
Error while trying to open file
null), ObjectName: jboss.jca:service=TxCM,name=SecurityDS
 state: CREATED
 I Depend On:   jboss.jca:service=ManagedConnectionFactory,name=SecurityDS
  jboss.jca:service=ManagedConnectionPool,name=SecurityDS
  jboss.jca:service=CachedConnectionManager
  jboss:service=TransactionManager

 Depends On Me: , ObjectName: jboss.jca:service=ManagedConnectionFactory,name=SecurityDS
 state: FAILED
 I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

 Depends On Me:   jboss.jca:service=TxCM,name=SecurityDS
java.lang.StringIndexOutOfBoundsException: String index out of range: 0]

 

 

Thanks.

 

Stephen.

 



With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs