2 Replies Latest reply on Feb 26, 2010 12:50 PM by Konstantin Pupkov

    Old MDB won't start

    Konstantin Pupkov Newbie

      Same MDB works fine on 6M1.

      On 6M2 it throws exception:

      14:33:34,362 INFO  [org.jboss.resource.adapter.jms.inflow.JmsActivation] Attempting to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1187b50(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@1a505be destination=queue/docflow-server destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=doc DLQPass=<not shown> DLQMaxResent=5)
      14:33:34,388 ERROR [org.jboss.messaging.util.ExceptionUtil] ConnectionFactoryEndpoint[jboss.messaging.connectionfactory:service=ConnectionFactory] createFailoverConnectionDelegate [qa-834s446g-1-i1gr446g-426p38-110j3]: javax.jms.JMSSecurityException: User null is NOT authenticated
          at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
          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 com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
          at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
          at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
          at javax.management.StandardMBean.invoke(StandardMBean.java:391)
          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy124.authenticate(Unknown Source)
          at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:233)
          at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegate(ServerConnectionFactoryEndpoint.java:171)
          at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectionDelegate$aop(ConnectionFactoryAdvised.java:108)
          at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.createConnectionDelegate(ConnectionFactoryAdvised.java)
          at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDelegateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:91)
          at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)
          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)
          at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
          at org.jboss.remoting.Client.invoke(Client.java:1927)
          at org.jboss.remoting.Client.invoke(Client.java:770)
          at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:178)
          at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
          at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:80)
          at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_23179452.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_23179452.java)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
          at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
          at org.jboss.jms.client.JBossConnectionFactory.createXAQueueConnection(JBossConnectionFactory.java:142)
          at org.jboss.jms.client.JBossConnectionFactory.createXAQueueConnection(JBossConnectionFactory.java:136)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupQueueConnection(JmsActivation.java:536)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupConnection(JmsActivation.java:507)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:354)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:293)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:734)
          at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172)
          at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
          at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:780)
          at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
          at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:800)
          at java.lang.Thread.run(Thread.java:619)
          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

        • 1. Re: Old MDB won't start
          jaikiran pai Master
          When exactly does this error occur? Can you post any relevant code?
          • 2. Re: Old MDB won't start
            Konstantin Pupkov Newbie

            I figured out. Problem migrated to my JaasLoginModule.

            follow code

            DataSource ds=(DataSource) ctx.lookup("MySqlDS-remote"); 
            
            
            
            

            Throws ClassCastException. Actual object is not DataSource but javax.naming.Reference

             

            My Swing application trying to login to server. Previous JBoss6M1 works fine.

            Queues are using same JaasLoginModule but local dataSource (java:/MySqlDS)

            I guess that is why my Queue cannot be authenticated. Any ideas what is wrong with dataSource declaration?

             


            <local-tx-datasource>
              <jndi-name>MySqlDS-remote</jndi-name> 
              <use-java-context>false</use-java-context> 
              <connection-url>jdbc:mysql://localhost:3306/doc</connection-url> 
              <driver-class>com.mysql.jdbc.Driver</driver-class> 
              <user-name>***</user-name> 
              <password>***</password> 
               <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
             <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> 
            <metadata>
              <type-mapping>mySQL</type-mapping> 
              </metadata>
             </local-tx-datasource>