1 Reply Latest reply on Apr 5, 2013 5:06 PM by Abhilash Chandran

    ERROR Queue[null, name=XYZ.QUEUE] startService java.sql.SQLException: Invalid argument(s) in call: setFetchSize

    Abhilash Chandran Newbie

      Hi Together,

       

      Currently I am working on a migration activity where we migrate from Jboss 4.2.2 Ga to Jboss 5.1.

       

      During this, somehow i am unable to proceed with the Queue configurations and stuck up with the setFetchSize Error.

       

      I configured my Queues as follows.

       

      <mbean code="org.jboss.jms.server.destination.QueueService"

            name="jboss.messaging.destination:service=Queue,name=XYZ"

            xmbean-dd="xmdesc/Queue-xmbean.xml">

                  <attribute name="JNDIName">queue/XYZ</attribute>

            <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

            <depends>jboss.messaging:service=PostOffice</depends>     

         </mbean>

       

      and my topic as follows.

       

        <mbean code="org.jboss.jms.server.destination.TopicService"

            name="jboss.messaging.destination:service=Topic,name=XYZTopic"

            xmbean-dd="xmdesc/Topic-xmbean.xml">

            <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

            <depends>jboss.messaging:service=PostOffice</depends>

                  <attribute name="JNDIName">topic/XYZTopic</attribute>

         </mbean>

       

       

      And am using the Oracle-persistence-service.xml, Oracle-ds.xml instead HSQl Db..

       

      I have removed the cluster related properties from my oracle-persitence-service.xml file to avoid the null pointer exception facedd while trying to get the postoffice instances.

       

      But currently i am facing the following issue- Any kind of adivce or suggestion is welcome. Thanks a lot in advance.

       

      Topics are deploying while the Queues are not deploying and giving away the following exception

       

      23 Jan 13 13:25:37, ERROR Queue[null, name=XYZ] startService

      java.sql.SQLException: Invalid argument(s) in call: setFetchSize

                at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)

                at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)

                at oracle.jdbc.driver.OracleStatement.setPrefetchInternal(OracleStatement.java:2384)

                at oracle.jdbc.driver.OracleStatement.setFetchSize(OracleStatement.java:3323)

                at org.jboss.resource.adapter.jdbc.WrappedStatement.setFetchSize(WrappedStatement.java:647)

                at org.jboss.messaging.core.impl.JDBCPersistenceManager.loadFromStart(JDBCPersistenceManager.java:1069)

                at org.jboss.messaging.core.impl.PagingChannelSupport.load(PagingChannelSupport.java:213)

                at org.jboss.messaging.core.impl.MessagingQueue.load(MessagingQueue.java:519)

                at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:109)

                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)

                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)

                at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)

                at $Proxy38.start(Unknown Source)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                at org.jboss.system.ServiceController.start(ServiceController.java:460)

                at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                at org.jboss.Main.boot(Main.java:221)

                at org.jboss.Main$1.run(Main.java:556)

                at java.lang.Thread.run(Thread.java:662)

        • 1. Re: ERROR Queue[null, name=XYZ.QUEUE] startService java.sql.SQLException: Invalid argument(s) in call: setFetchSize
          Abhilash Chandran Newbie

          Dear Friends,

           

          Today I took up this after nearly 3 months as I was working on some other activities and alternatively used HsQlDb..  as work around.

          Fortunately I was able to resolve this issue with a simple configuration today.

          The attribute 'FullSize' has to be defined for every Queue/Topic that we define in the Jboss5.1.2.

           

          Cause:

           

          1. Use of Ojdbc14.Jar since this was used in Jboss4.2.2. This restricts the fetchSize to be greater than 0 and less than 32754.

          2. But if we dont set the FullSize attribute, this defaults to 200000 in the JbossMessagin related Jars and throws this FetchSize error.

           

          Solution1:

           

          Set the following attribute for your Queues/Topics if you still want to use Ojdbc14.jar.

          <attribute name="FullSize">32700</attribute> <!-- Slightly lesser than the full size permitted in Ojdbc14.Jar --> 

           

          Solution 2:

           

          Switch to Ojdbc5.jar(1.5- JDK) or Ojdbc6.jar(1.6 - JDK).

           

          Hope this helps a restless sould somewhere.....

           

          Happy Coding/configing...